The Way to Programming
The Way to Programming
SELECT a.*, b.username AS testamentUser FROM users AS a LEFT JOIN users AS b ON a.testament=b.id WHERE a.id=1
i personally would recommend php because:
-PHP provided by all web hosting companies
-It is free and Open Source (You could download a full working application and learn how it is made)
-You could easily install bundle of Apache, php, mysql and others on to your box.
-PHP is easy to learn and once you learn it well you could easily write an aspx script with little training of some syntax difference.
-If you learn php well and you continue with learning oop then you would not do any repetitive work.
-There is so much help available and so much tutorial available for free.
-If you are a visual learner there is wealth of professional tutorial on ytube.
-If you search wbb for php training you could download hundreds of hours of php training from lynda, total training, nettuts++ and more.
The list can go on for ever and you can not say that about aspx. First of all you would need to purchase visual studio of course wbb is always there for you
but stuff you download here should only be limited to educational purpose and should not be used as if you own the license.
That is just my opinion, you would have to make the last call. Good luck.
Just because php is compatible with most webhost doesn’t mean you shouldn’t use asp.net platform.
Most webhosts are changing their packets to support even the newer versions of asp.net such as asp.net mvc 3 and webmatrix.
Downside is you’ll probably use MSSQL which pays extra when buying a webhost. Well recently there have been various updates of MYSQL support in the asp.net platform (mysql connector).
Microsoft’s web development is really expanding at a ridiculous rate. It’s worth learning it and using it for your projects. Especially if all you develop for are Microsoft products.
Even companies are switching over to a microsoft product for web development (well here it is, been seeing more and more .aspx webpages everyday).
It is really a bad programming, but if you are a beginner you are allowed to do this mistake a couple of times!
Generally you could return more than one object in a java method by using an array. For example the following method returns an Object array:
Object[] testMethod() { Object a,b; ........ ........ Object[] obj = new Object[2]; obj[0]=a; obj[1]=b; return obj; }
You can access the returned value by:
Object[] ret = testMethod(); System.out.println(ret[0]); System.out.println(ret[1]);
First a program is compiled from code (C/Java/Et Cetera) into machine code (A lower form of Assembly, IIRC. It’s what people used to code in before assembly was invented to make things easier than remembering things like 169 1
).
A disassembler converts the machine code (Also known as op codes (Look on the wiki, I’m too lazy to post the link xD) ) back into the more readable.
hexadecimal opcodes and assembler, so you end up with something like this (This isn’t actual code, this is just an example of what you might see when you use something like objdump:
069686868686 8099 0x90 mov eax, 0x81 ^ this is the ^ this is ^ this is the hexadecimal the hex assembler
So the Programmers/733T H4X0RZ(Wow, it hurts to type that :0)/Hackers (MIT usage, as code is an art form. I use cracker when I mean the filthy scum that break into computers) read the assembler, line by line, and get an idea of what the original programmers did, then they construct tools based around their understanding of the original programmer’s algorithms. For example, in the case of a crack, it basically injects code into the executable to modify what the program does.
If you want to join the crowd that does this sort of thing. Learn basic programming, then get yourself a grounding in C (Programming C by Dennis Ritchie and Brian Kernighan is THE GUIDE to C. It’s written by the people that created the language, and it’s considerably smaller than most of the other books in the market, this is not to say it lacks anything that any other book in the market does, it just doesn’t drone on, like I am now, welp, gotta get back to writing outside the parenthesis. THERE IS NO LIFE OUTSIDE THIS PARENTHESIS. NOOOOOOOO-.).
One thing I should have mentioned is to learn a variant of UNIX, and learn it well, as most of the best professional tools for programming have been written specifically for this OS. And depending on your distribution of UNIX, it should come with a wealth of programming tools as part of the system. After all of that learn assembly, then try writing your own programs and disassembling them with a tool like objdump.
http://en.wikibooks.org/wiki/C_Programming
http://en.wikibooks.org/wiki/X86_Disassembly
http://en.wikibooks.org/wiki/Subject:Computing
The best guide to assembly can be found on two sites, one of those is http://www.os-dev.org, and the other one is
http://www.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html
There is nothing wrong with learning C per se. C is the root language of C++, Objective C, C#, PHP, etc. Learning the syntax of C will enable any student to migrate with minimal difficulty into the other variations.
Since late 1978, I’ve coded millions of lines of code in more than 11 different languages. The language is irrelevant. Finding the solution or creating the algorithm is paramount.
With a definitive algorithm, I could code in any language if I have something to show me the syntax of the language.
if a = b then if(a==b) { if a .eq. b then
all are asking, in different languages, if the variable a equals the variable b … one has to know why, at that precise moment, it is necessary to place that statement in the sequence of steps.
The discipline of programming requires that a person create solutions (hopefully elegant, easily maintainable solutions) to perform a particular task.
Remember, a program is a set of finite steps that performs a task. Nothing more.
I found this MIT course excellent for the beginning student to grasp (fundamentally) what programming is.
As a bonus, the course will also teach, as part of the lab exercises, Python.
http://www.youtube.com/watch?v=bX3jvD7XFPs
Question is, why are you learning C? I’m extremely worried if you’re learning a language you’ve identified has no purpose to you. Every language I’ve learnt thus far I’ve learnt for a specific reason, and that reason fuels research into how/where to use it.
So it depends, what type of developer do you want to be? Perhaps by answering that we can point you in the right direction by offering relevant tutorials/tips/advice.
I’m not gonna give you your answer straight away (you learn so much more by figuring it out by yourself).
The first thing you’ll want to do is explicitly setting the width and height of the Div’s. This’ll prevent some possible issues, and also you won’t need to check the images for the dimensions every time. I’d also recommend putting the parts of the splash screen in a container. Why? Simply because you can hide it, or do other stuff with it more easily.
you’ll need to grab the window size (both width and height) and divide it by 2 (or the container, if you’re gonna use it. This will give you the absolute center of the screen, no matter what resolution you have. Hint: use innerWidth and innerHeight if you aren’t gonna use a container. This’ll get you the viewport width and height (thus excluding scrollbars, toolbars and stuff like that).
Now that you have the center of your splash screen, you can calculate the offset of each part of the splash screen. For the Top part that’ll be the (vertical) Center minus the image height and minus the space between the 4 parts (20 pixels I’d guess). You can do the math for the other parts.
Now you have the position for every part of the splash screen. The next thing you want to do is hide them. There are various methods for this. I’d reccommend using CSS.
What I would do, is giving the parent (another reason for using a container), be it the body, or your new container the CSS property overflow hidden. Next, hide each element just outside the viewport. Use position absolute, and position them just outside the container. For example, the top part needs to be -62 pixels from the top. To be certain it’ll work amongst most browsers, I’d make it -72px, just to be safe.
Finally it’s time to animate the splash screen.
This is pretty easy, considering we already done the hard part.
Simply animate each Div (splash screen part) to the position we calculated earlier.
One thing to keep in mind, is that you animate the Div’s at the same time. Thus if you use the callback to fade in the name, it’ll be called 4 times. You’ll want to set some timeout, for the duration of the splash screen, before fading in the name.
I hope it’s a bit clear on what you need to do, the method I explained is easy, but explaining my method is a bit harder. Let me know if you don’t understand, and I’ll try to explain it a bit better. I’m sure there are other (better) ways, but this seems pretty straight forward to me. Good luck!
I do programming for my job (mixed with 3D and other stuff) and despite having a few years of experience (mainly in C#) now, I would still struggle to find a programming-specific job. Most programming jobs, where I’m from at least, are looking for people with a lot more experience or at least a degree in Computer Science. If you just learn a bit of C and C++ on your own you would have to be very lucky to find a job.
You can definitely learn this on the side while you are working another job, but do not hold off making money until you have a programming job – it will take you a long time to learn it to a reasonable level, and again you’d need some luck to get an entry level job in it.
Also, getting a job in 3D/VFX is even harder as these jobs are less common. If anything, web and application programming is more common so look around on some job boards and see what languages/skills those types of jobs require.
Well what everyone said above is basically a waste of time, At the end of the day Learning something like a computer language all comes down to individual it’s a simple as that, the only way you are going to find out how difficult it is, is by trying to learn it!
On top of all that what’s wrong with living with your parents, it’s great and a dam site cheaper than having your own place, and by the way you are talking best thing you can do, is take any reasonable job you can get, try learning the language you want to learn in your spare time and start saving up for a proper course, by which time you should already have knowledge and experience to make it a breeze, then plan and advance from there, something i have learned and am still learning in life is not everything just happens when you want it to, things take time thought and patients.
You cant find a job worth working? Bro seriously you should be really happen to have a job even if it’s just low wage. It does help somewhat rather than 0 buck a day sitting at home. Plenty who cannot qualify for a job end up being homeless due to no relative or any help from others.
Learning programing is easy if your into it. If you’re not into it of course you can still learn it but it wont take you to the next level as pay goes. Now learning C++ or any other language will cost you time and money which you don’t have. These days… people will hire someone who know a lots not just simple C++. DO like what most people do. Work odd jobs and go to school on free time. High paid job are not easy to get and require a lots of qualify things. Pick what you want to do then start building it up from scratch.
I am currently having my own business bringing in around 4k+ a month. My uncle has his business and does the same thing. I helped him out after school when I was around 13 and started to get paid when I was about 16. Now Ill be turning 25 in a few months. Guess what? I still live with my parents and I loved it. I paid the mortgage and my other expenses but everything else in the house is free Smile
I have good connections with my parents and relative so I cant speak for others but really… Whats so bad about living with your parents? Even tho your going to be homeless if you don’t…..
Bottom line. I think you should sit down and think over what you want to do and going to do. Make plans and stick to it will go in a long run. Homeless can be easy said and done but making it out are a really tough road.
the easiest way would really be to have a self extracting exe with password ( key ) protection.
If you’d want to encrypt the USB drive directly, the product will become quite expensive as you will need to pay for the encryption software on the USB drive and that is expensive …
Not 100% sure what you mean. Do you want to show the same image on each tabpage in the control? Please explain.
To add something to each page at the same time you would just do this given your TabControl is called tabControl1
TabControl.TabPageCollection pages = tabControl1.TabPages; foreach (TabPage page in pages) { page.UseVisualStyleBackColor = false; page.BackColor = Color.FromArgb(235, 235, 235); page.ForeColor = Color.FromArgb(35, 96, 147); page.Font = new Font("Tahoma", 9, FontStyle.Regular); }
Like any extensive API you’re never going to learn the full library from memory; use Googles database as a reference. The idea is the most important part to any successful Application. Once you have a great idea write it down on paper set about how you’re going to translate it into code. Too many people get hooked up on the coding aspect.
Don’t be afraid to copy other people’s ideas and put your own twist on them.
Rather than doing ‘sizeof(spy)’ constantly, initialise a variable or create a constant at the beginning. looking at that might give you a clue as per the previous response.
Sign in to your account