Interesting. Haven't updated Xcode a couple of months at this point, seems gross!
Yeah. Kinda annoyed it got updated when I updated to 10.8.2. Bleh.
At least it got me off my ass and made me learn to use the vi editor and become proficient at it real fucking quick, so I guess it's all not a loss.
This isn't always true. The two numbers have to be relatively prime for this to hold (elementary number theory yo).Right anything that is divisible by two numbers is divisible by their product as far as I can recall. Been a while though, haha
So if something is divisble by 5 and 6 it is also divisble by 5 * 6.
To be clear, you mean that the least common multiple can sometimes be less than the product of the two numbers. For example, for 4 and 6, the least common multiple is 12.This isn't always true. The two numbers have to be relatively prime for this to hold (elementary number theory yo).
To be clear, you mean that the least common multiple can sometimes be less than the product of the two numbers. For example, for 4 and 6, the least common multiple is 12.
Of course, the product of the two number is always divisible by both of them... It's just not always the least common multiple.
I was a bit confused when I first read your post.
I don't see what's so bad about PHP except that everyone knows how to do PHP. It has so many built-in functions that makes things so convenient, sorta like Python.PHP has it too but PHP is the shittiest language known to man so you should be avoiding it anyway.
I don't see what's so bad about PHP except that everyone knows how to do PHP. It has so many built-in functions that makes things so convenient, sorta like Python.
When asked for code samples, what do you guys usually submit?
I don't really have a github, or anything to create to put in one.
You can think of bit shifts as multiplication and division by powers of 2. For example:basically i have to write bitwise functions without using the built in operators. so i have to write the function myself. for left shift, i need to move over an 8 bit pattern to the amount of spaces of an integer. i have no idea what to do here, any idea?
If I wanted to create a website, make it look nice and not use flash, where should I start? I am almost a complete noob when it comes to this stuff.
If I wanted to create a website, make it look nice and not use flash, where should I start? I am almost a complete noob when it comes to this stuff.
What are the prospects of Ruby in the next few years and how much is it used?
Yeah, the differences in workloads are glaring. I remember that the usual thesis topics at my brother's college were just machine problems we had to do in a week or so. They're basic stuff like inventory systems.
YoAny Ruby users here? I've been interested in learning it and Rails for some time.
I recently looked at several sites for beginners, and even looked at the PDF that came with the install, The Book Of Ruby. After a bit of an intro, it seems great and easy to use -- I like Ruby's OO and Rails' MVC approaches. Ideally, I would continue to learn and use it, and create or port a website.
What are the prospects of Ruby in the next few years and how much is it used?
What's WPI?I'm in a rough spot, programming-GAF.
What's WPI?
Go for MVC. It'll be a better product in the end. Do you have experience with it?Working on pre-production (data management, site flow, etc) on a fairly complex piece of web software, and I have to decide on a web programming paradigm.
Essentially I need to decide whether or not to use a MVC type system for organizing my code.
I'll be using:
- Linux Apache Server
- PHP + MySQL for page generation
- HTML + CSS (duh) for layout and design
- JavaScript for most actual functionality.
I'd say that about 80% of the code will be PHP, so I want to use a system that will be easy to add functionality/features to.
Ruby seems very straight forward from what I was reading. I absolutely adore that it's all OO.Yo
. . . Lots of stuff . . .
I can't recommend a book, but honestly I think wikipedia is pretty good. I guess other things you need to learn about are other sorts of synchronization constructs like Monitor, Lock, Mutex, etc? Also terms like race condition, dead lock, etc? I learned most of this stuff on this awesome site http://www.albahari.com/threading/ but it's for .net. Still, doing all that stuff in .net really helped me understand concurrent and parallel programming in general. I don't have any specific recommendations for a C or C++ approach.I need to educate myself on the concepts behind threading. More so in C or C++, but I need a general background of the concepts using the terms such as semaphore and whatnot. Can someone recommend a decent book on this topic? Amazon doesn't seem to be producing much. And it looks like threading in straight C is extremely low level.
I am super bad at this. I can tell you the running time usually, but recurrence relations were so confusing to me in school. Looking at wikipedia they don't seem that bad, but I'm probably underestimating them.This is a little outside the realm of coding, but I figure this is a good place to ask. Is anyone here familiar with and good at solving recurrences?
I'm a little confused as to what the resulting recurrence would be for an algorithm, and could use some help. Thanks.
Thanks for replying man. I was able to catch my instructor on an off day, though, and cleared things up.I am super bad at this. I can tell you the running time usually, but recurrence relations were so confusing to me in school. Looking at wikipedia they don't seem that bad, but I'm probably underestimating them.
This was the textbook we used on the subject when I was in school, though I had the 7th edition. I thought it was quite well written.I need to educate myself on the concepts behind threading. More so in C or C++, but I need a general background of the concepts using the terms such as semaphore and whatnot. Can someone recommend a decent book on this topic? Amazon doesn't seem to be producing much. And it looks like threading in straight C is extremely low level.
We also used this book. It covers a wide range of stuff. The dinosaurs were great.This was the textbook we used on the subject when I was in school, though I had the 7th edition. I thought it was quite well written.
The older version is better solely due to having cuter dinosaurs on the cover.
I have very minimal experience with CakePHP (I didn't like it). Might give CodeIgniter a go. I wouldn't want to write an MVC site from scratch...Go for MVC. It'll be a better product in the end. Do you have experience with it?
If you haven't used a framework, you should try CodeIgniter (since it seems to be the most easy to get into). I believe it uses ActiveRecord for the DB, but you can incorporate Doctrine ORM if you wish.
Write lots of code.Fuck I have to learn Java, C, assmebly, and MySQL this quarter.
Do you guys have any specific tips for learning new languages (quickly)?
I don't really like CakePHP; it seems like overkill. CI should be fine because it's actually light-weight (especially compared to Cake) and provides you with all the basics, plus things like Forms and Validation.I have very minimal experience with CakePHP (I didn't like it). Might give CodeIgniter a go. I wouldn't want to write an MVC site from scratch...
static void oneLine(String name, String region,
int area, long pop, long gdp)
{
int lengthname = name.length();
int lengthregion = region.length();
if (name.length().equals(region.length()))
{
System.out.println(name+" "+region);
}
}
I'm sure what your function is supposed to do but your if statement is wrong since length() returns an int and equals() can only be used to compare objects and not primitive type (== is used).
Are you trying to display countries that are in the same region? It's a bit unclear what you want.
Write out what you want and the steps before you start coding. You aren't even using the lengthname and lengthregion integers that you're setting.
Okay, so I'm looking to start learning programming which has been a daunting goal of mine that I've put off for a long time. I kinda want to apply for Mathematics and Computer Science at University but I have not a lot of prior experience with CompSci/programming in general (I'm big into math academically and generally succeed at it and that's all I need to apply for the course) - it's just something that really fascinates me and engages me and I'd love to study it. Has anyone got any suggestions as to what could start me off with what I need to know? What language to start with? Any help would be appreciated. I read the OP but I figure there might be some better advice from asking people directly.
I want to improve my programming skills because they suck. Can someone give me a few programming ideas that would help me improve my skills? Also what steps should I take to tackle a programming task?
Write one of these:I want to improve my programming skills because they suck. Can someone give me a few programming ideas that would help me improve my skills?
Design, implement, refine. Keep iterations small because you're one person. Either start from the bottom or from the top, but don't do both at the same time. Be sure about what you want to achieve before typing stuff.Also what steps should I take to tackle a programming task?
— Pick a website with a REST API and use it to monitor changes of stuff, visualize
— Network chat system
A brilliant suggestion for learning Threads/Threadpools, in fact I can't think of a better way to learn them than this!— Webserver
Design, implement, refine. Keep iterations small because you're one person. Either start from the bottom or from the top, but don't do both at the same time. Be sure about what you want to achieve before typing stuff.
I want to improve my programming skills because they suck. Can someone give me a few programming ideas that would help me improve my skills? Also what steps should I take to tackle a programming task?