-  [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, WEBM
  • Maximum file size allowed is 10000 KB.
  • Images greater than 200x200 pixels will be thumbnailed.
  • Currently 477 unique user posts. View catalog

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

Movies & TV 24/7 via Channel7: Web Player, .m3u file. Music via Radio7: Web Player, .m3u file.

WebM support has been added on a trial basis.UPDATE: WebM is now available sitewide! Please check this thread for more info.

Statistics meets programming Neckbearded Basement Dweller 14/05/17(Sat)09:57 No. 4452 [Reply]

File 140031342719.jpg - (12.14KB , 215x184 , 4679d64605fdb45908b1bcf85978d7c1_m.jpg )

Has anyone else noticed that looking at individual studies and not at a metaanalysis is like using a greedy algorithm that doesn't give the globally optimal result?

Btw, anyone have an ideas for coding pareto efficiency (economics term)? I can only read python by the way.

phk on how to sabotage everything Neckbearded Basement Dweller 14/04/12(Sat)15:42 No. 4397 [Reply]

File 139731017820.jpg - (43.97KB , 600x400 , Behj8RUCYAAR42X.jpg )

Talk by Poul-Henning Kamp (FreeBSD) @ FOSDEM '14

- he covers how open source projects are sabotaged
- how shit is distracted purposely
- how NSA shills can sneak in patches
- how NSA can shutdown privacy projects with patent trolling
- how Skype was likely bought by the NSA thru proxy
- how totally fucked OpenSSL is
- how totally fucked Ipv6 is
- how totally fucked DNSSEC is


6 posts and 3 images omitted. Click Reply to view.
Neckbearded Basement Dweller 14/04/18(Fri)05:17 No. 4407

i can't tell if sarcasm or not.... seriously i can't

Neckbearded Basement Dweller 14/04/18(Fri)05:18 No. 4408

nice gif btw

GHØST 14/04/26(Sat)00:25 No. 4425


Sadly, Yes this is true. They have fully cracked the Tor network and now using reverse machanics to get users that are using tor network for hitman, drug traffic, child porn, etc. The best example would be Silk Road how in no time after the arrest of its owner it relaunched.. in reality.. it was a trap being runned by a high lv agentcy we are thinking CIA cause it has there stank all over it.. but we are still unsure, but since its relaunch many silkroad members has secretly been getting arrested... ---GHØST(Anonymous)

Neckbearded Basement Dweller 14/04/21(Mon)10:30 No. 4413 [Reply]

File 139806905115.jpg - (89.53KB , 1000x750 , Image-16.jpg )

I don't know and don't care if this is old news or not to you
but it's new to me
and i didn't know he was there so here you go
it's the snowden stuff at SXSW

Neckbearded Basement Dweller 14/04/24(Thu)03:40 No. 4420

File 139830364964.png - (97.04KB , 1155x600 , wat.png )

is Java dead? Neckbearded Basement Dweller 14/01/05(Sun)05:55 No. 4268 [Reply]

File 138889774551.jpg - (12.51KB , 258x195 , images.jpg )

Is Java dead? or does it have as comeback in the future

13 posts and 1 image omitted. Click Reply to view.
Neckbearded Basement Dweller 14/03/20(Thu)12:34 No. 4374

>kids probably get freaked out by the sight of a terminal.
I strongly feel programming should be taught as an extension of math, regardless of language. Beginning with user interfaces and cat pictures produces programmers who struggle to code actually useful things to put in those pretty windows.

As for java, been there, done that. It's a decent learning language, and it's binary/vm portability isn't to be scoffed at, but as a language it may encourage some bad habbits if you are going to do C++ later. It's no biggie if you are aware of it though. I would however probably suggest Python for someone starting out.

Neckbearded Basement Dweller 14/03/20(Thu)12:38 No. 4375

Addit*: And by teaching it as math/science it doesn't seem weird to work on a command line or produce only text output.

* Like edit, except you add something. :S

Neckbearded Basement Dweller 14/04/13(Sun)11:59 No. 4399

i'm in high school too and there are no AP computer courses here though they do teach c# and i did score #1 in the class and get a metal since then i haven't done anything with C# and have only been interacting with C++. But most of the time when i did learn it my freshman year in a class full of sophomores juniors and seniors the teacher didn't know what she was talking about and we had to figure it out ourselves it was a game dev class too. Numerous amounts of students taking her class now have trouble debugging due to the fact that the computer thinks it's running more than one C# and i had to explain why it won't run but i really don't know if they listened. But yeah to what the OP said Java is still alive and well i knew a guy that used java and still does and he hates C and any form of it.

Neckbearded Basement Dweller 13/09/03(Tue)22:18 No. 4087 [Reply]

File 137823948674.gif - (4.70KB , 350x450 , utp_colors.gif )

Where can I get info for writing network code for multiplayer games?

4 posts and 2 images omitted. Click Reply to view.
Neckbearded Basement Dweller 14/03/14(Fri)12:44 No. 4369

For most game related things I tend to end up on gamedev.net when searching for answers.

Neckbearded Basement Dweller 14/03/20(Thu)13:08 No. 4377

Also, http://open-game-protocol.org/

Neckbearded Basement Dweller 14/03/23(Sun)01:37 No. 4383


Read the whole. goddamned. thing.

Neckbearded Basement Dweller 14/03/22(Sat)10:05 No. 4379 [Reply]

File 139547910234.jpg - (110.17KB , 500x390 , le selfie.jpg )

I want to use C++ for a 2d gaymen SFML project. Since it would take a life time to learn everything about C++ im gonna focus on a small part. I have some basic C++ knowledge but now i wonder what are the essential parts you need to know about C++?


C is not an option

Neckbearded Basement Dweller 14/03/23(Sun)01:32 No. 4382

OOP: Inheritance, polymorphism, multiple inheritance. All very useful.

Vectors, arrays, loops: this is so basic that if you
struggle with it you have no chance, sorry.

Pointers: Definitely. It's imperative to know how to pass parameters by reference. Also, shared pointers.

In addition, I'd strongly advice you to get a grip on:
* Template functions and classes.
* Operator overloading.
* Unit testing. (Google test is nice and easy)
* Const. Learn to love it.

And _then_ you are ready to start looking at graphically related things like SDL or OpenGL.

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

GameMaking Neckbearded Basement Dweller 14/03/22(Sat)20:20 No. 4380 [Reply]

File 139551601012.jpg - (53.40KB , 1024x768 , java_tech.jpg )

/pr/ im trying to make a breakout game and I cant figure out a couple details.

this is the code for the ball

import java.awt.geom.*;
import java.awt.*;

public class Ball extends ColorShape {

// location and size variables
private int xPos;
private int yPos;
private int xSpeed;
private int ySpeed;
private static final int height = 10;
Message too long. Click here to view the full text.

Neckbearded Basement Dweller 14/03/23(Sun)01:20 No. 4381

Been a while since I did Java, but are you calling repaint (think that's the method) at any point in your code? Ie. are you updating your view/canvas after you have modified your ball?

Neckbearded Basement Dweller 13/11/20(Wed)16:42 No. 4215 [Reply]

File 138496216953.jpg - (226.67KB , 855x563 , phagestructure[1].jpg )

So, what are the rules of /pr/? I've never seen a sticky nor are there any real rules in the Rules tab a the top of the page.

So, what are they?

3 posts and 2 images omitted. Click Reply to view.
Nattajerk 14/03/10(Mon)11:35 No. 4365

Not sure why you're misconstruing everything I've said.

Regardless, the reason doesn't matter. The legality does.

Neckbearded Basement Dweller 14/03/15(Sat)07:04 No. 4370

That's the thing though, discussing the technique of writing viruses isn't illegal. Neither is writing them. If you USE them, then sure, it's illegal. But before that point, it's pretty much all legal.

Neckbearded Basement Dweller 14/03/16(Sun)00:34 No. 4371

Some hosting companies do not like it, though. Which I think is the reason it isn't allowed here.
When I was messing with assembly googling always landed me on shady russian websites that used the same technique I was trying to use but for nefarious purposes.

Neckbearded Basement Dweller 14/01/31(Fri)05:41 No. 4294 [Reply]

File 139114326324.png - (64.00KB , 752x538 , Screen Shot 2014-01-30 at 9_35_07 PM.png )

How do I into reading content with Python 3.3?

Pic related is a little script I wrote (Python 2.7) for pulling in the current ask/bid on specified stock tickers.

I know urllib is a bit different in 3.3 but how the fuck do I parse through this data? Pastebin is as far as I've gotten


5 posts omitted. Click Reply to view.
Neckbearded Basement Dweller 14/02/17(Mon)18:16 No. 4324

Why would you remove the pastebin you little shit? I wanted to read that...

Neckbearded Basement Dweller 14/02/27(Thu)17:29 No. 4343

since this is one of the less viewed boards, calm down satan. Besides, it always takes a couple days to get a first response to several of my threads. Honestly it is better for you to look up and find the answer yourself since now you have the rescources to go to for simple shit like parsing a fucking url.

Neckbearded Basement Dweller 14/03/12(Wed)15:59 No. 4367

>calm down satan
I can't calm myself -- parsing the url is too much for me
also why did you remove the picture?

Manipulating Filetypes Neckbearded Basement Dweller 14/02/03(Mon)01:55 No. 4300 [Reply]

File 139138894612.png - (34.93KB , 512x512 , x-psd-icon.png )

Question, /pr/, I just realized I've never seen this topic covered in my schooling and oddly enough, I couldn't find any books or help on the subject on Google.

What I want to do is more or less learn about reading files. As in, how to take a file and just learn how its data is stored and how it works. Not text files, but more advanced files - files which have image data, text data, etc. Project documents, nothing specific. For an example, think a Word document with an image inside. I want to open the file in an application of my design and read/display the image. To do this, I need to know how and where the image is stored in the file; how would I go about figuring that out?

The problem is that I cannot find any discussion of how to examine a file and uncover what and where to read from it to acquire desired information. http://hexedit.duttke.de/ was a nice start for a hex editor, but I'm none too sure where to go or frankly what to do with it.

Any leads or help are appreciated.

1 post omitted. Click Reply to view.
Neckbearded Basement Dweller 14/02/03(Mon)18:39 No. 4302

Look for the specification. If one isn't available then you'll have to reverse-engineer it as the guy above says.

GabeNewell 14/02/26(Wed)08:44 No. 4340

The best reader for Photoshop documents is psd.rb.

It supports everything in the CS3 psd format, and is not far behind on the latest version of Photoshop.

There's a few other ones too, like psd.js (bought by Twitter but still online) as well as a few C#.NET libs, but they are all very outdated and only useful for obtaining some basic XML data from the psd (no ability to work with vector data, thumbnail images, anything else that isn't just text or layer configs, etc).

Delete post []
Report post