-  [WT]  [PS]  [Home] [Manage]

  1.   (new thread)
  2. [ No File]
  3. (for post and file deletion)
/pr/ - Programming
  • Supported file types are: C, CSS, DOC, DOCX, GIF, H, JAVA, JPG, PDF, PNG, SVG, SWF, TXT
  • Maximum file size allowed is 10000 KB.
  • Images greater than 200x200 pixels will be thumbnailed.
  • Currently 317 unique user posts. View catalog

  • Blotter updated: 2011-01-12 Show/Hide Show All

Reminder: IPv6 enabled users have exclusive access to the /vip6/ board. You don't need access to /VIP/ to access /vip6/.

Channel7 is streaming Movies and TV daily, click here for the web player, or here for the .m3u.


JAVA unkownwarrior 13/02/26(Tue)08:27 No. 3456 [Reply]

Please help me figure out how to do this.

Write a program (using netbeans) that will reverse any entered string using a MyStack. The program must have two classes, first the MyStack class and the ReverseString class.
Both classes must be encapsulated
eg

class Mystack{
...
}
class ReverString{
............
}

output:

Message too long. Click here to view the full text.


>>
Nattajerk 13/02/28(Thu)09:36 No. 3463

this is pretty easy if you know how to visualize a stack.


A stack is a data container that most closely represents a deck of cards (in any game where you always draw from the top of the deck)

anything inside a stack will be popped in the opposite order it is first stored in (last in, first out).

so basically, just pop everything in MyStack into ReverString and display the results.




JRPG in a browser Neckbearded Basement Dweller 13/02/23(Sat)03:15 No. 3451 [Reply]
3451

File 13615857325.jpg - (20.88KB , 600x448 , sd3.jpg )

Hello guys!

Can any of you guys recommend me a good 2D game engine for JS/HTML5?
Of course I googled it and I found quite a lot, but I have no idea which one to choose.

I want to use it to create a Final Fantasy 5-6/ Seiken Densetsu 3 like game.


>>
Neckbearded Basement Dweller 13/02/28(Thu)09:25 No. 3461

I actually like Gamemaker Studio. It's pretty easy to use and pumps out html5.




Neckbearded Basement Dweller 13/02/21(Thu)02:09 No. 3446 [Reply]
3446

File 136140896985.jpg - (77.97KB , 651x480 , java.jpg )

Java noob here. Anyone care to elaborate briefly on how I would go about painting a gradient in java through recursion? Any help would be appreciated.


>>
Neckbearded Basement Dweller 13/02/21(Thu)02:34 No. 3447

>>3446
void drawG(int pos, Color c) {
drawG(pos - 1, new Color(c.getRed(), c.getGreen(), c.getBlue() -1);
drawLine(pos, pos + LINE_WIDTH, c);
}


>>
Neckbearded Basement Dweller 13/02/21(Thu)02:38 No. 3448

>>3447
I tip my hat to you. twice.




Neckbearded Basement Dweller 13/02/10(Sun)14:14 No. 3414 [Reply]
3414

File 136050208899.jpg - (45.31KB , 843x403 , green_mx_DK9008G2_Pro.jpg )

How do I into python? Are there any free online classes?


5 posts and 1 image omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 13/02/15(Fri)05:25 No. 3434

>>3422
>>3422

Are you kidding? TheNewBoston?

OT: don't even learn Python and waste your time.


>>
Neckbearded Basement Dweller 13/02/18(Mon)03:18 No. 3440

http://thenewboston.org/tutorials.php
Not just python too, tons of other languages.


>>
Neckbearded Basement Dweller 13/02/20(Wed)12:10 No. 3444

>>3434
Python is quite useful as a prototyping language. There are of tradeoffs, but they are mostly irrelevant when your goal is to produce or test something quickly.

For people who are already comfortable with another programming language I'd actually suggest taking this class at udacity https://www.udacity.com/course/cs373 . You'll be using an online python interpreter to solve most of the problems and by the end of the course you should have a working knowledge of the basics of Python (plus you'll have learned the basics of AI).




Neckbearded Basement Dweller 13/02/11(Mon)20:03 No. 3426 [Reply]
3426

File 13606093967.jpg - (129.98KB , 640x360 , 7610957682_c238829afa_z.jpg )

making a simple c program using void functions and the while loop, i guess.
its about reading a text file and calculate net balance with import and export amounts then reporting to a file under a specified format with total amount and transactions processed.
I forgot my maths on finding a net balance.

anyone wanna give me a pseudo code of this?
i got something like
1.getinfo();
2.docalcs();
3.report();
Getinfo = read txt
= scan amounts
=


>>
Nattajerk 13/02/18(Mon)15:54 No. 3441

this is pretty hard to answer given what youve told me. I'm guessing you're doing homework?

That's the only real reason anyone would be doing an excersize like this anyway.

on one hand, this is actually pretty easy if you know how to read the file.

mind you I havent written a lick of code in at least 6 months. but oh well.
For what I can show you, at least:

#include <stdio.h> float doCalculations(float data); void report(char *data); int main () { char lineData[100]; FILE myFile; myFile = fileopen("somefile"); while( fgets(lineData,100,myFile) != NULL) //read the first 99 characters of "somefile" { report(lineData); //parse and report linedata } return 0; } float doCalc(float data) { docalculations; return 3.14; } void report(char *data) { float myData; parse data somehow; //what am i doing? myData = doCalc((float)data); puts(myData); return; }




Neckbearded Basement Dweller 13/02/09(Sat)10:02 No. 3411 [Reply]
3411

File 136040055514.jpg - (36.34KB , 327x314 , mobile_construction_vehicle.jpg )

Hey guys, so I have two job offers for my next internship and I'm forced to take one of the two.

One job is with a startup company and I will be responsible for monitoring their entire network for various networking problems. Essentially a *nix admin job. They said I also have to learn perl, which I don't think is that hard to pick up since I know php.

The second job is for a large organization where I will be responsible for doing development work on all of the websites they run. These sites are built with wordpress, and I am a little put off by it since I wanted to really dive into a MVC instead of going back to shit like wordpress.

My skills right now involve working with LAM(PHP) and about a year of work experience with the drupal api, some non on the job *nix admin skills (web/smtp/mysql/iptables). I'm taking a data structures/algorithms course right now and it's far beyond my level of interest and understanding. I also hear from people that I need to start diving into a php framework instead of working with drupal. No, I don't want to go learn RoR right now.

I want your opinion on what path I should take. Should I be paying more attention in my data structures lecture? Should I just fuck around with a framework(and if so, which one). Also, the most important thing is, which job should I take? I feel like formal work experience with *nix administration will separate me from the other developers when I'm looking for a job after I graduate.


1 post omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 13/02/10(Sun)15:30 No. 3415

OP here. My problem with the first job is that I will mostly be the tech guy answering emails about dropped packets and fixing them rather than doing any actual development work. How useful is this?


>>
Neckbearded Basement Dweller 13/02/16(Sat)17:09 No. 3435

>>3415

Once you get skilled at solving those issues quickly and have set up preventative measures you have bucketloads of time to do whatever you want, like learn a new language or skill!

You get paid to learn, sounds like a sweet gig to me.


>>
Neckbearded Basement Dweller 13/02/17(Sun)00:46 No. 3436

>>3411
Do the development job faggot. If you just monitor shit and answer questions you won't improve as a coder. Coding all summer helps you a shit ton so get on it. Good luck.




Neckbearded Basement Dweller 13/02/08(Fri)06:23 No. 3405 [Reply]
3405

File 136030097621.gif - (493.64KB , 318x180 , WFAKj.gif )

So I want to major in software engineering this upcoming school year.

Do I HAVE to have some background knowledge in programming? I'm totally willing to learn as much as required, I just need to know what the class needs me to know before I look like a dumbass.

I'm going to Rochester Institute of Technology if that gives you any ideas.


1 post omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 13/02/08(Fri)06:44 No. 3407

Seriously, you should have nothing to worry about as long as you have good work ethic. That's always the kicker in school, moreso in programming majors.

They will teach you what you need to know, but programming is all about doing. The best way to learn is to write code, even if it isn't for school.

(Everyone will tell you this, hardly anyone actually follows the advice.)


>>
Neckbearded Basement Dweller 13/02/08(Fri)06:45 No. 3408

>>3406
I took a couple of very basic stuff on code academy and took some stuff on python.

I understand assigning values to variables, strings, math functions, and a little bit about if, then, and elif statements. Seem like a good foundation?


>>
Neckbearded Basement Dweller 13/02/10(Sun)21:03 No. 3417
3417

File 136052660173.png - (34.80KB , 1060x1040 , qa-uml.png )

>>3408
I would study a little more logic control flow; given that is what you know.
Software engineering is a lot of control flow and knowing the interactions of the system.

Picture is a small example of a UML Diagram.




Neckbearded Basement Dweller 13/01/20(Sun)01:40 No. 3356 [Reply]
3356

File 135864245774.jpg - (14.15KB , 466x331 , 1354771519163.jpg )

Hello /pr/!

So, for the past few months, I've been dicking around with a little project; basically, I'm writing a futaba-style imageboard script from the ground up (i.e. not looking at any existing examples) in PHP

I've got 90% of things working well enough, however, I'm a bit stumped on something that's kinda embarassing.

I need to code inline replies
(i.e. >>4847385 kinda thing)
I treat the message content as a single string, and was thinking I could:

>parse the message with regular expressions for ">>"
>read from ">>" to "/n"
>replace ">> ... /n" with an <a> that points to the post referenced in "..."

I can't seem to think of a way to do the "read from '>>' to '/n'" part, though. I was thinking of using eregi(), but I don't really see that working...
Message too long. Click here to view the full text.


12 posts and 3 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 13/01/29(Tue)13:05 No. 3382
3382

File 135946111546.png - (162.49KB , 403x349 , jewbuntu.png )

>>3374

they are annoying~! it took me a while to realize that the reason it was breaking is because I was using a * for zero or any instead of a + which requires at least one in the expression. This works as far as I can tell.

$new = preg_replace("/>>(\d+)/", "<a href = '#$1'>>>$1</a>", $post);


>>
Neckbearded Basement Dweller 13/01/30(Wed)05:25 No. 3386

>>3382
Op here...totally gonna try this. Thanks for the help /pr/!


>>
Neckbearded Basement Dweller 13/02/09(Sat)04:22 No. 3410
3410

File 13603801656.jpg - (83.74KB , 355x342 , 1356305705942.jpg )

>>3382
OP here again. This snippet actually solved my issue entirely! Thanks!

I need to draft something up to auto-populate the post-box with the ">>herplderpl" part, and that's a bit tricky for me, but I'm sure I'll make due!

I just got done deploying flood detection, and I'll likely start on something to enable sage and bump limits here soon.

Anyway, if anyone wants to look at the board software in action, I have it running as the forum for a minecraft server at glowbox.cc

I'll admit its nowhere near as feature complete as kusaba x or wakaba, but hey...




Neckbearded Basement Dweller 13/02/08(Fri)04:17 No. 3404 [Reply]
3404

File 136029342854.gif - (54.81KB , 1280x780 , c_free-25490.gif )

im taking online classes in buisness programming and software development. do you have any charts that show key functions and whatnot while having a description of what they each do? just for quick references and study for my free time.


>>
Nattajerk 13/02/09(Sat)00:37 No. 3409

for what language... C?




Book Plz Neckbearded Basement Dweller 12/12/13(Thu)02:06 No. 3260 [Reply]
3260

File 135536078816.jpg - (9.99KB , 128x164 , books.jpg )

Any one have starting out with visual basic 2010 5th edition in pdf?

I have starting out with C++ early objects 7th e and starting out with Java from control structures through objects 5th e

Thanks!


>>
Neckbearded Basement Dweller 13/01/05(Sat)08:31 No. 3315

I would also like this


>>
Neckbearded Basement Dweller 13/02/04(Mon)19:07 No. 3397

I would enjoy one as well
bump for justice




Delete post []
Password  
Report post
Reason