-  [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 480 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.

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

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

http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html

Read the whole. goddamned. thing.




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

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++?

>OOP
>Vectors
>Arrays
>Loops
>Pointers




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]
4380

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]
4215

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

>>4358
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

>>4365
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

>>4370
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]
4294

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

http://pastebin.com/tcVrM8ef


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

>>4298
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

>>4343
>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]
4300

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).




google form autoscript Neckbearded Basement Dweller 14/02/17(Mon)17:16 No. 4323 [Reply]
4323

File 139265380918.jpg - (52.59KB , 855x621 , 4chan_b_rig.jpg )

So the org I'm in is having this year end awarding event in recognition for the different members. There are a lot of awards that were put in there just for fun like life of the party, best couple, etc. I was wondering how I could go about making a script that could auto-submit entries in the google form that they set up. They also added a field that required the submitters to include their ID no. Is there a way for the script to iterate through a list and include that in the submission, along with the desired "votes"?

From what I could dig up from 4chan's Time 100 fiasco, I guess it would take some Javascript, C#, or Ruby. I'm familiar with none of these, although I am quite experienced with Java. Any help?

pic semi related


>>
Neckbearded Basement Dweller 14/02/19(Wed)18:21 No. 4326

>>4323
LOL.

No offense, but you don't sound very well-versed in the art of bot creation.

With today's technologies, none of those languages you mentioned are needed. If you link me to the form as well as who you want for what (and IDs too!) I can vote a few hundred thousand times for you, should be fun stuff.

Anyway, hit me up.


>>
Neckbearded Basement Dweller 14/02/21(Fri)07:17 No. 4331

>I am quite experienced with Java
You are not. If you were experienced with programming at all you would at the very least know Java can do this.


>>
Neckbearded Basement Dweller 14/02/25(Tue)21:41 No. 4335

>>4331
this.

Literally any language can fill out forms, all you need to do is find some HTTP Wrappers for your language (There are tons for Java, you can use LibCurl for C++, Python has them built in, etc) and just craft requests to the website (again, takes two minutes)

Don't feign intelligence, it just makes people not want to help you. If you can't admit your ignorance, don't ask for help.




Looking for fellow noobs Neckbearded Basement Dweller 13/05/08(Wed)22:12 No. 3696 [Reply]
3696

File 136804395429.png - (427.33KB , 499x344 , 0332123.png )

SHalom fellow basement dwelling neckbeards!!! I have recently been looking to learn programming and a mwondering if there is anyone out there that would be seriously interested in starting a programming/hacking group for begginers, we could potentialy use somthing like FB and fake accounts to communicate (inb4 cancer) and share any knowlage we gained. i would like to know if anybody still on /pr/ or just passing by would like to join me, if so just drop a reply and we can figure out the details


33 posts and 5 images omitted. Click Reply to view.
>>
OP 14/02/20(Thu)00:48 No. 4328

Both sound like good ideas to me, in a few days ill be able to host whatever service we decide on myself provided it actually gets used, we could always star t with SSH and then upgrade to a webpage if it takes off


>>
Neckbearded Basement Dweller 14/02/22(Sat)08:08 No. 4332

>>3698
Hello Glen, how is Slovenia?


>>
Neckbearded Basement Dweller 14/02/25(Tue)21:40 No. 4334

Why was this thread necro'd?

Anyway, there are already a few Telnet BBS's that are still up and available for our use if we still choose. If you give me a day I can post a list of them.

This could be hard for younger people who have never used a BBS or Telnet, but it's a fun no-GUI experience.




Neckbearded Basement Dweller 14/01/24(Fri)14:45 No. 4285 [Reply]
4285

File 139057112242.jpg - (68.57KB , 798x503 , photo.jpg )


11 posts and 4 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 14/02/19(Wed)18:22 No. 4327

You guys are retarded, the solution has already been posted. It's just a USGOV seal.


>>
Neckbearded Basement Dweller 14/02/20(Thu)04:48 No. 4329

>>4327
Doesn't seem like it's enough.


>>
Neckbearded Basement Dweller 14/02/20(Thu)16:12 No. 4330

>>4327
Go away, you're ruining all the fun




C+= Neckbearded Basement Dweller 13/12/15(Sun)14:00 No. 4247 [Reply]
4247

File 138711245929.png - (15.33KB , 495x373 , 1387093841123.png )

This thread is strictly for CODING.
===================================
Here's the bitbucket: https://bitbucket.org/FeministSoftwareFoundation/c-plus-equality

IRC: #cplusequality@irc://chat.freenode.net

Here's the website: http://feministsoftwarefoundation.org/
===================================
TL;DR recap:
Retarded feminist writes an article filled with gibberish on how a feminist programming language is needed: http://www.hastac.org/blogs/ari-schlesinger/2013/11/26/feminism-and-programming-languages
/pol/ and /g/ commences to establish the Feminist Software Foundation (a joke to the actual Free Software Foundation), and starts writing the C-plus-Equality lanuage on GitHub.
/g/ contributed the actual code, /pol/ contributed the specification.
Twitter SJWs got hold of it, GitHub bans the repo.
Twitter shitstorm: https://twitter.com/search?q=FeministSoftwareFoundation&src=typd&f=realtime
The project then moved to BitBucket. A website FeministSoftwareFoundation.org is then made.
Message too long. Click here to view the full text.


7 posts and 1 image omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 14/01/05(Sun)04:59 No. 4267

A language should not be about what it represents. A language should be about usability and performance.


>>
Neckbearded Basement Dweller 14/01/23(Thu)23:51 No. 4283

>>4259
Exactly, the whole point of c+= is to show the obserdety of certain groups who think differently,

Also generally; wow exactly can i contribute to the project


>>
Neckbearded Basement Dweller 14/01/30(Thu)21:39 No. 4293

>>4283
I think the word you were looking for was absurdity.




Delete post []
Password  
Report post
Reason