Tuesday, July 28, 2009

How do you make install packages for linux programs you make?

I know absolutely nothing about linux application development, and am a C++ programmer. What I mean is that I'm not familiar with linux's API nor how to create deployment packages.


Do the packages have to be unique for every flavour of linux?


Once I compile an application, what am I supposed to do next. What if it has a GUI, not using wxWidgets (as well as using wxWidgets)


I've tried googling with not much success.

How do you make install packages for linux programs you make?
Usually the formats for source code that is distro free are either compressed on bzip2 or tar.gz files. You may need filters capable of converting to these type of files in order to get the source code packed. Also you need to make a "configure" and "make" script (one of each) in order to get the software installed on the system in order to run it.





Hope this info gives you some ideas.


Just how possible is it to make a command line hex editor for Linux?

I am very curious as to experimenting with these programs, and I have downloaded a graphical one named KHexEdit. I am using a Linux computer and am wondering as to how one could be made to work in the terminal. For example, I am just looking for the basic program without any GUI so I can learn how to make one. If anyone has any help on how to make one, please explain. I would also appreciate it if you could explain how to program one in C, if you can tell me. Otherwise, any way to make one is fine.

Just how possible is it to make a command line hex editor for Linux?
Why would you want to make something that already exist?
Reply:If you are a skilled enough programmer, probably not too hard. If you don't know file structures, you don't know programming, and you don't know how to use google to find such information - lotsa luck! You will need it!


Is it possible to make & sell games using Visual Basic 6.0?

If this is the only language I'm self educated enough to learn, and use, as far as programming as a beginner with having ADD/ADHD and difficulty learning at a comprehention level, would I be able to still come up with a game I could possibly sell on ebay or such...examples of the like would be already made games, that I think I could possibly try and program like, "Siege of Avalon" or "Betrayal in Antara" that have interactive charecters, with little animation except for battle encounters, and moving etc. The "C" Language is totaly difficult for me to even begin to comprehend, even reading the book that teaches it, I can't even understand what the books even talking about, I'm not at all familiar with terms like, "API" or "pixel shading" or "GUI", and I'm still trying to grasp the concept of how to call variables in subroutines using VB.6.0 along with other forms of animation, and how to make, "movement of bitmap images" with self drawn house doors, people, etc. with a 3D rendering?

Is it possible to make %26amp; sell games using Visual Basic 6.0?
Yes, it's possible. But DON'T DO IT.





Learn Python and Pygame instead. The Python language is easy to learn and it works on Windows, Linux and Mac OS X. So that means your Mac-using friends can play your game too, yay!





Pygame is a library for Python that helps you out when making games. It has collision-detection, sprites, etc. There are some good tutorials, but you really need to learn the language Python first.





The advantage of using Python and Pygame is that you can type in commands at a Python "command-line" and it'll show you the result. For example, enter "2 + 3" and it'll print out "5". So if you're testing something, you have instant results.
Reply:You can surely make games but for selling you need to be in touch with someone else or have your own website.
Reply:If you know visual basic, then you might want to try and create web based games using asp.net


You can still use visual basic programming in asp.net.


The reason I bring this point out is that Microsoft has developed something called silverlight. You can develop in silverlight using visual basic.





In fact, I was at a Microsoft event last night and watched a VB program that utilized silverlight to create a webpage that supported video editing on the web. (It was under 3000 lines of code)
Reply:You probably could make games in VB6. I don't know if anybody would buy a game (that somebody programed) from ebay. You more would have to do some shareware type things. (but I would probably try to do a couple of freeware games just to get feedback).


But with todays games, I don't think you would be able to go very far with VB, or even VB.net (which is more powerful). Except for basic games, that people probably expect to be free. But you can always try for the fun of it!
Reply:C is pretty low level and while a lot of people start with it, I wouldn't. Vb is good but you may want to start smaller and make something like a text game first. Then you could add in the animation later if you wanted.





Also might want to check out java or flash which seems to be the two most common web game languages. The flash games tend to be stupid and simple but fun. Java is a powerful language bug I'm still not sure if its good for games. I don't know vb so maybe it's perfect I'm not sure.


JAVA Review - Terminology?

I have a practice test, but no answer sheet. Help?





(a) When writing a class that inherits from another, this reserved word is used on the class header before the superclass's name.


(b) When writing a class that satisfies an interface, this reserved word is used on the class header before the name of the interface.


(c) There might be several methods with the same name within a class, with each having a different signature. This is an example of what?


(d) This type of java program is designed to run from a web page.


(e) This is the name of the default layout manager for a JPanel.


(f) Interfaces can have method headers in them and what else?


(g) Write a single line of code that would declare and create an array (called scores) for 20 ints.


(h) Class Fields (as opposed to instance fields) are labeled with what reserved word when they are declared?


(i) What class has the method showInputDialog?


(j) Which package should be imported if using JButtons, JPanels, etc in a GUI?

JAVA Review - Terminology?
(a) extends


(b) implements


(c) overloading


(d) applet


(e) FlowLayout


(f) class fields


(g) int[] scores = new int[20];


(h) static


(i) JOptionPane


(j) javax.swing
Reply:Go ahead and do the practice test. Post your answers and we will let you know if you are wrong. You can do it...





Good Luck
Reply:do your own assignment
Reply:Well you should probably ask your teacher, because from experience they will sometimes have small caveats that will screw up your answers and you'll say "well that's what the book says! and everyone on Y!A!" and your teacher will just look at you and say "but that's not what **I** said"

land survey

HTML to EXE Windows compiler with functions?

is there a compiler for windows in which the GUI is created with HTML, but it still supports major functions like networking (FTP), opening files and editing them ... [like c++ but the DISPLAY is HTML]? THANKS

HTML to EXE Windows compiler with functions?
I don't know if this is exactly what you want, but MS offers Hypertext Applications (hta's) that basically do this:


http://msdn2.microsoft.com/en-us/library...





Essentially, it's just like designing a web page. You use HTML/CSS for layout, then javascript/etc. to provide functionality. Save the file with a .hta extension and windows will render it using IE. There's a bit more to it, but it's not terribly complicated, and the link above does a really good job of getting you started quickly.


Good luck, hope this was helpful...


Is there a modern, supported and preferably cheap equivalent of Turbo Pascal?

I don't want to become a C programmer, but remember enjoying the structured yet fairly comprehensible syntax of Pascal. What choices are available today - the ability to code for Windows and preferably other GUI/OSs a must.





As an aside, if one was to go back to basics with an old copy of Borland Turbo Pascal 5.x, would it be feasible and practicable to write code that makes use of the Windows API?

Is there a modern, supported and preferably cheap equivalent of Turbo Pascal?
Have you had a look at Delphi? It's basically Object Oriented Pascal
Reply:You might enjoy learning Python. It has a similar structured yet comprehensive syntax. Libraries are available for most things, including GUI programming on Windows and other platforms. See http://www.python.org, and for a good tutorial see http://www.diveintopython.org


Can anybody assist me in the installation of a non-Microsoft Operating System?

The Red Hat Linux SetUp offers the option of a GUI set up or a text based set up. Most non-Microsoft set ups don't offer this option. I am presented with a CLI screen with the command line a:%26gt; and I need to know how to proceed from there. The installation would be to the 'd' drive - 'c', 'e' and 'i' are all already occupied. The 'd' drive is currently an NTFS partition.

Can anybody assist me in the installation of a non-Microsoft Operating System?
A gui setup is what a M$ or apple os is now. Graphical User Interface. Pick the easier GUI setup. The problem with installing any OS is that the hard drive must be low level formatted and then single or multiple partitioned(i.e. Linux OS won't load on NTFS, FAT16, FAT32, etc. formats)You can get this low level format software from the hard drive manufacturer's website. WARNING: YOU WILL PERMANENTLY LOSE ALL YOUR INFORMATION ON THE DRIVE YOU ARE LOW LEVEL FORMATTING, BACKUP ANYTHING YOU WISH TO SAVE. You must have a ready and wating open hd with nothing on it. Now I know there are alot of other ways to this answer this person's problem to make it work, this is just a quick and easy way. Or you could go to Red Hat's site and look for the installation FAQ. Or you could ask this question at a Linux discussion site; they love to help people graduate from the handcuffs of M$.
Reply:you really need to use the GUI installer, for you are too much a noob to even use the 'linux fdisk' program in CLI (Command Line Interface).





Better yet, would be that you grab a LiveCDrom of http://www.mepis.org that is Kubuntu with 1% more goodness. Installs in about 20 minutes, with the click on the "Install" icon.