Who can make me a wakaba based chan(imageboard)? for let's say $50-$100
Hai guiseI'm studying software engineering and I'd like a good book/resource on modern Java. I'm good in C/C++ and OOP concepts, so I need something a bit more like a Java for C++ programmers. I don't wanna go through what types, arrays, control loops etc. are. Just something that'll get me productive in Java as quick as possible.Most books I can find, are pretty old, and I have no idea if they're obsolete or not. Please help me /prog//Anon
Hai guise
I'm studying software engineering and I'd like a good book/resource on modern Java. I'm good in C/C++ and OOP concepts, so I need something a bit more like a Java for C++ programmers. I don't wanna go through what types, arrays, control loops etc. are. Just something that'll get me productive in Java as quick as possible.Most books I can find, are pretty old, and I have no idea if they're obsolete or not. Please help me /prog/
/Anon
>>3147Right. Since the value of y is unavailable to the programmer, what sets y and the value it represents apart as far as the programmer is concerned?Tell me why variables are not meaningless. I understand that fundamentally variables and values are very distinct, but in practice in a language like Java they are not. Give me an example where you can't view a variable identically to it's value. Like I said, all you care about a Bar b is the Bar class which b points to, and nothing else -- so in effect b IS the Bar. Comment too long. Click here to view the full text.
>>3147Right. Since the value of y is unavailable to the programmer, what sets y and the value it represents apart as far as the programmer is concerned?
Tell me why variables are not meaningless. I understand that fundamentally variables and values are very distinct, but in practice in a language like Java they are not. Give me an example where you can't view a variable identically to it's value. Like I said, all you care about a Bar b is the Bar class which b points to, and nothing else -- so in effect b IS the Bar.
>>3148because variables in carry a type, and assignment requires that the object assigned be an instance of or derived from that type. furthermore, the compiler checks method calls via the type of the variable, i.e. if you try to call a method implemented in a derived class via a variable of the base class, the compiler will complain. clearly, the programmer needs to understand the difference.
>>3149No, he doesn't. The programmer just needs to understand that b is a Bar. A subclass of Bar is still a Bar, and anything you can do with a Bar you can do with it's subclasses.Anyways, as you just described, the variable is clearly treated as an object instance, which is the key point here.
>>3149No, he doesn't. The programmer just needs to understand that b is a Bar. A subclass of Bar is still a Bar, and anything you can do with a Bar you can do with it's subclasses.
Anyways, as you just described, the variable is clearly treated as an object instance, which is the key point here.
>>3153But not everything that can be done with a subclass can be done via a base class variable. Duh.Well done. You trolled me long and hard, but your nature is clear now. Thanks for playing, now fuck off.
>>3153But not everything that can be done with a subclass can be done via a base class variable. Duh.
Well done. You trolled me long and hard, but your nature is clear now. Thanks for playing, now fuck off.
>>3155...yes, that's why b is Bar b, not BarSubClass b.Like I was saying, as far as the programmer is concerned b is an object of type Bar, irrespective of subclassing.
>>3155...yes, that's why b is Bar b, not BarSubClass b.
Like I was saying, as far as the programmer is concerned b is an object of type Bar, irrespective of subclassing.
I know it's just about the simplest programming language out there, but it's what I started with, what about you, /prog/?Pic unrelated.
I know it's just about the simplest programming language out there, but it's what I started with, what about you, /prog/?
Pic unrelated.
>>3134See, this is bullshit. Absolute shit.Java and C++ aren't too advanced for a beginner. They're not what I'd recommend, but kids in the 80's taught themselves motherfucking assembly (though most started with BASIC, to be fair). You'd be amazed what kids could learn. I started on Java in a high school CS class; by the end of the year, my friend and I had spent most of the classes poring over the online API documentation and succeeded in writing tic-tac-toe and a few other things -- and this was in the days of AWT. Remember how shitty AWT was? Comment too long. Click here to view the full text.
>>3134See, this is bullshit. Absolute shit.
Java and C++ aren't too advanced for a beginner. They're not what I'd recommend, but kids in the 80's taught themselves motherfucking assembly (though most started with BASIC, to be fair). You'd be amazed what kids could learn. I started on Java in a high school CS class; by the end of the year, my friend and I had spent most of the classes poring over the online API documentation and succeeded in writing tic-tac-toe and a few other things -- and this was in the days of AWT. Remember how shitty AWT was?
>>3135> > IGNORE THE GUYS WHO SAID JAVA OR C++, THEY ARE BOTH WAY TOO ADVANCED FOR A BEGINNER.> My university's computer science department starts off all first-years on Java. Most of them have never programmed before. This is also true of a lot of other universities. Would you like to rethink your argument?lol ! b/c universities can always be trusted to make the best choice!
>>3135
> > IGNORE THE GUYS WHO SAID JAVA OR C++, THEY ARE BOTH WAY TOO ADVANCED FOR A BEGINNER.
> My university's computer science department starts off all first-years on Java. Most of them have never programmed before. This is also true of a lot of other universities. Would you like to rethink your argument?
lol ! b/c universities can always be trusted to make the best choice!
Some universities start with C, which is a more difficult language than Java. Really, though, it doesn't matter what language you start with so long as you learn the same stuff.
Starcraft Triggers. I don't even think it counts as a programming language, but it resembles the structure of one so whateva
processing!
Write a program that ask the user to enter a positive integer. Your program should then count up (starting at 0) to the user’s number and then count back down to 0. Try to write this program using only a single loop.I can easily make the loop count up, that's simple. int number; int sum = 0; Console.Write("Please enter a positive interger: "); Comment too long. Click here to view the full text.
Write a program that ask the user to enter a positive integer. Your program should then count up (starting at 0) to the user’s number and then count back down to 0. Try to write this program using only a single loop.
I can easily make the loop count up, that's simple.
int number; int sum = 0;
Console.Write("Please enter a positive interger: ");
>>3117Well, I kind of had this before. But, how can you make it only use a single loop? Is there a way? Should I give up and just have two loops?
>>3117
Well, I kind of had this before. But, how can you make it only use a single loop? Is there a way?
Should I give up and just have two loops?
>>3117oops, didn't see the one loop requirement. so this one, then: int i = 0; bool up = true; while (i >= 0 || up) { Console.Write("{0} ", i); Comment too long. Click here to view the full text.
>>3117oops, didn't see the one loop requirement. so this one, then:
int i = 0; bool up = true; while (i >= 0 || up) { Console.Write("{0} ", i);
>>3120So that's what the other person meant, ok cool. This has opened my eyes a bit for these loop questions.Thanks /prog/ I'm smoking a bowl for you.
>>3120
So that's what the other person meant, ok cool. This has opened my eyes a bit for these loop questions.
Thanks /prog/ I'm smoking a bowl for you.
Another way to do it apart from a boolean (not necessarily better though):for( int x = 0; x < number*2; x++ ){if( x < number ) Console.Write( "{0} ", x );else Comment too long. Click here to view the full text.
Another way to do it apart from a boolean (not necessarily better though):
for( int x = 0; x < number*2; x++ ){
if( x < number ) Console.Write( "{0} ", x );else
>>3114Well that depends on when you set the boolean :)This is ugly as shit, but it does what you're asking:Console.WriteLine("What do you wanna count to?");int sum = 0, numberToCount = Int32.Parse(Console.ReadLine()); Comment too long. Click here to view the full text.
>>3114
Well that depends on when you set the boolean :)
This is ugly as shit, but it does what you're asking:
Console.WriteLine("What do you wanna count to?");int sum = 0, numberToCount = Int32.Parse(Console.ReadLine());
Hey /prog/ I'm 19 and wondering if it is to late for me to start programing? i don't have much computer skill but i would like to learn. Also, where should i start?
>>3099You need to change your file-associations, so that a .py file isn't associated with IDLE, but with the Python interpreter. I think you can right click the file -> properties -> open in -> and change it there.
>>3105thanks ill check it out tomorrow
>>3105
thanks ill check it out tomorrow
Learn some assembly then Java, C and Python.
>>2966I learned HTML when I was like 11 give or take. I started making websites and learned CSS, JavaScript (not very well), XML, XSLT and PHP in a few months a few years later.If an 11 year old can learn it a 19 year old can
>>2966
I learned HTML when I was like 11 give or take. I started making websites and learned CSS, JavaScript (not very well), XML, XSLT and PHP in a few months a few years later.
If an 11 year old can learn it a 19 year old can
>>3110Why would he want to learn assembly?
Writing my own disassembler for fun. (Just going to work on flat 16-bit binaries in x86 for now, no need to bother with different executable formats) Unfortunately I'm not really sure how to begin translating the hundreds of possible instructions to strings that represent the correct mnemonics. I mean I could do it in an incredibly unsophisticated way, but it would be horribly inefficient and just a big waste of time, and very difficult to maintain.So my problem is thinking up how I can do this. I already have the Intel IA-32 instruction reference manual and I understand how the opcodes are encoded. I'm just not sure what would be a good method to translate a byte sequence into the correct corresponding string in a manner that isn't embarrassing. Tips? How would you do it?
Writing my own disassembler for fun. (Just going to work on flat 16-bit binaries in x86 for now, no need to bother with different executable formats) Unfortunately I'm not really sure how to begin translating the hundreds of possible instructions to strings that represent the correct mnemonics. I mean I could do it in an incredibly unsophisticated way, but it would be horribly inefficient and just a big waste of time, and very difficult to maintain.
So my problem is thinking up how I can do this. I already have the Intel IA-32 instruction reference manual and I understand how the opcodes are encoded. I'm just not sure what would be a good method to translate a byte sequence into the correct corresponding string in a manner that isn't embarrassing. Tips? How would you do it?
opcodes / mnemonics in a tableindexed lookup for speed (hash table, map, etc)input stream of bytesoutput stream of textread bytes until match foundoutput matching mnemonicrepeat until finished
Hello /prog/My roomate Andrea is representing our girlsflat in an incredibly fail miss-contest by our students rent-organisation. Whoever gets the most votes wins 3 months rent for free, which we could use immensely for great justice of course. Now, it's a simple php-form with an IP-ban, which i thought would be easy to tune by the use of delicious anonymizer.org etc. - but it seems, i already reached the limit out of all of them (i used lists like the one on encyclopedia dramatica..) because i can't vote anymore. I know there are far more professional ways to tune this contest, but i don't know where to search.Can anyone of you lead me in the right direction as to what kind of methods are usually used in such a case? Comment too long. Click here to view the full text.
Hello /prog/
My roomate Andrea is representing our girlsflat in an incredibly fail miss-contest by our students rent-organisation. Whoever gets the most votes wins 3 months rent for free, which we could use immensely for great justice of course. Now, it's a simple php-form with an IP-ban, which i thought would be easy to tune by the use of delicious anonymizer.org etc. - but it seems, i already reached the limit out of all of them (i used lists like the one on encyclopedia dramatica..) because i can't vote anymore. I know there are far more professional ways to tune this contest, but i don't know where to search.Can anyone of you lead me in the right direction as to what kind of methods are usually used in such a case?
Also, please excuse my bad english, i always read but do not often write..
hay guise. how do proggers prog dis?#include <stdio.h>#include <stdlib.h>int main(){ int dicks; Comment too long. Click here to view the full text.
hay guise. how do proggers prog dis?
#include <stdio.h>#include <stdlib.h>
int main(){ int dicks;
oblige him guys
>>3077fuck I don't know what he's asking for... someone get him his sheen code
MACHINE CODE!!!! :DDDD
>>3078?
>>3096lolSorry guys, I was really just trying to get a laugh out of this. I wasn't trying to troll anyone, I just thought it would get a few laughs here and there.
>>3096lol
Sorry guys, I was really just trying to get a laugh out of this. I wasn't trying to troll anyone, I just thought it would get a few laughs here and there.
Is there a program out there that turn a laptop touchpad into a weight scale? I know it can detect how much pressure is applied to it, but I'd like to see this applied to weighting grams-whatever.
There's a scale app for the iphone. It sucks.And normal touchpads don't measure pressure. Where the hell did you get that idea?
There's a scale app for the iphone. It sucks.
And normal touchpads don't measure pressure. Where the hell did you get that idea?
I stumbled upon this and realized wait touch pads don't measure pressure. but tablets do. I would love to know if I could use my tablet instead as it has a MUCH higher surface area than my scale
>>3098If you're going to use a tablet, get a box, put tablet pen though box until the nib is sticking through.Put your tablet on the box so it's sticking up a bit. Place stuff on tablet. The tablet itself don't check pressure, the pressure is checked with the nib and the contraption behind the nib Comment too long. Click here to view the full text.
>>3098
If you're going to use a tablet, get a box, put tablet pen though box until the nib is sticking through.
Put your tablet on the box so it's sticking up a bit. Place stuff on tablet.
The tablet itself don't check pressure, the pressure is checked with the nib and the contraption behind the nib
Okay, so I got this question in C#:Write a program which prompts the user to enter integers repeatedly. The program should stop reading in numbers when the user enters the number 0 or when the sum of all numbers entered is greater than 100.The Code I wrote for it is this: int number; Comment too long. Click here to view the full text.
Okay, so I got this question in C#:
Write a program which prompts the user to enter integers repeatedly. The program should stop reading in numbers when the user enters the number 0 or when the sum of all numbers entered is greater than 100.
The Code I wrote for it is this:
int number;
You should be using or not and. Should be obvious.While the number is not zero AND the sum is less than 100, do this.
You should be using or not and. Should be obvious.
While the number is not zero AND the sum is less than 100, do this.
>>3094er, sorry, and not or
Enter number: 50 (number = 50, sum = 50) = (true||true) = trueEnter number: 75 (number = 75, sum = 125) = (true||false) = trueEnter number: 0 (number = 0, sum = 125) = (false||false) = falseOn the first two cases, the loop condition is satisfied and the loop continues. On the third case, the loop condition is not satisfied and the loop stops.Do this >>3095
Enter number: 50 (number = 50, sum = 50) = (true||true) = trueEnter number: 75 (number = 75, sum = 125) = (true||false) = trueEnter number: 0 (number = 0, sum = 125) = (false||false) = false
On the first two cases, the loop condition is satisfied and the loop continues. On the third case, the loop condition is not satisfied and the loop stops.
Do this >>3095
Stupid question, but I need to know. Why in C++ must you use doubles with the POW function?For example:#include <iostream>#include <cstdlib>#include <cmath>using namespace std; Comment too long. Click here to view the full text.
Stupid question, but I need to know. Why in C++ must you use doubles with the POW function?
For example:
#include <iostream>#include <cstdlib>#include <cmath>using namespace std;
You're not limited to strictly doubles in C++. The following overridden functions are available in math.h:double pow(double x, double y);double pow(double x, int y); // C++ onlydouble pow(int x, int y); // C++ onlyfloat pow(float x, float y); // C++ onlyfloat pow(float x, int y); // C++ onlylong double pow(long double x, long double y); // C++ only Comment too long. Click here to view the full text.
You're not limited to strictly doubles in C++. The following overridden functions are available in math.h:
double pow(double x, double y);double pow(double x, int y); // C++ onlydouble pow(int x, int y); // C++ onlyfloat pow(float x, float y); // C++ onlyfloat pow(float x, int y); // C++ onlylong double pow(long double x, long double y); // C++ only
double pow(double x, double y);
double pow(double x, int y); // C++ only
double pow(int x, int y); // C++ only
float pow(float x, float y); // C++ only
float pow(float x, int y); // C++ only
long double pow(long double x, long double y); // C++ only
Because if either x or y are doubles the answer will be a double. You couldn't have one that would be (int int --> int) because if y is negative the answer would need to be a double.Well, I suppose it would be possible but it wouldn't be as useful.
Because if either x or y are doubles the answer will be a double. You couldn't have one that would be (int int --> int) because if y is negative the answer would need to be a double.
Well, I suppose it would be possible but it wouldn't be as useful.
UNIX HelpSo i need to make multiple conditions in this case statement and for some reason some of them work and some of them dont... Heres the codelet CYEAR=$(date '+%Y')ELAPSED=expr $CYEAR - $AGE Comment too long. Click here to view the full text.
UNIX Help
So i need to make multiple conditions in this case statement and for some reason some of them work and some of them dont...
Heres the code
let CYEAR=$(date '+%Y')ELAPSED=expr $CYEAR - $AGE
expr $CYEAR - $AGE