-  [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 474 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/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).

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

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


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


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]

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

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]

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

Doesn't seem like it's enough.

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

Go away, you're ruining all the fun

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

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

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

I think the word you were looking for was absurdity.

Perl Neckbearded Basement Dweller 13/12/20(Fri)04:49 No. 4254 [Reply]

File 138751139221.jpg - (17.88KB , 251x201 , images.jpg )

Has anyone ever done any Perl? I wrote some Perl to write, currently, minor SQL queries for me, I hope to expand upon it in the future, here's the code, any tips on improving it? I know a lot of it is unnecessary definitions and such, but other than that?

Neckbearded Basement Dweller 14/01/12(Sun)03:42 No. 4274

File 138949452794.jpg - (81.11KB , 400x400 , itstechnology.jpg )

You should add some logic in your for loop to check if the command was processed by the SQL server. Basically a SELECT statement that checks for null data that is returned. Also some sleeps would help to account for lagg.

Neckbearded Basement Dweller 14/01/12(Sun)05:12 No. 4275

>tyool 2014
do you even program?

Neckbearded Basement Dweller 14/01/29(Wed)12:50 No. 4291

iono OP, your code is simple, and your task is simple. There's not too much to say.


Some notes:
-Didn't see a strict, so I added a strict on instinct.
-Use autodie. Just do it.
-Use 'say' if you are saying something to the terminal, unless your perl is <5.10 I guess.
-A C style for loop isn't really needed, just use $min .. $max.
--Why are you using $i < 1001 in a loop when you really mean $i <= 1000? Seems trivial, but it's important for maintainers.
-Your if/else seemed to be reusing code so I trimmed it down. Not sure why you think a final "\n" is unneeded but, eh, whatever.
-close() isn't needed as file handles auto close when they go out of scope. But I left it there because you have gone and declared the filehandle in the main scope, which you may not be leaving for quite some time.. Many people wrap some {curlies} around the block of code using the filehandle, so that it is automatically cleaned up asap.

Tox Neckbearded Basement Dweller 13/07/27(Sat)05:51 No. 4016 [Reply]

File 137489710255.jpg - (5.61KB , 250x140 , 1374894847249[1].jpg )

Repo Admin: irungentoo

#InsertProjectNameHere on irc://irc.freenode.net:6697

Site Admin: NemDiggers

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

6 posts and 1 image omitted. Click Reply to view.
Neckbearded Basement Dweller 13/11/13(Wed)18:00 No. 4210


What the fuck...

Neckbearded Basement Dweller 14/01/05(Sun)17:36 No. 4269

File 138893978367.png - (611.48KB , 658x669 , IAO-logo.png )

The DHT protocol is not secure. Multiple security researchers have shown that large scale surveillance of bittorrent traffic is possible and easy. No wonder it's a problem for tox as well.


Neckbearded Basement Dweller 14/01/06(Mon)11:14 No. 4270

Bear in mind, that this information is freely available and paying for it is fucking stupid.

PHP help Neckbearded Basement Dweller 13/10/29(Tue)09:41 No. 4181 [Reply]

File 138303610973.jpg - (1.28MB , 1724x3284 , 1382467201300.jpg )

Hey guys! I was wondering if anyone here new PHP and could help me out with my problem.


I'm writing a program that will read from one file and then write three separate files.

The file I'm reading from is this:
Sally F 35 A
Donald M 38 A
Susan F 22 N
Richard M 21 N
Dave M 39 A

What that should look like in the end is this:

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

3 posts omitted. Click Reply to view.
parley!!uyZwqvZ2Vl 13/12/14(Sat)12:34 No. 4243

since this is a PHP thread, I might as well post this here.

I'm parley, from 314chan, and I'm looking for a (really small) team of developers to work on the imageboard software I was stuck with, Anonsaba 2. I am not switching to another imageboard software, like Tinyboard, or Kusaba X, because me and my previous developer had the agreement to use Anonsaba (I like it more anyways.)

You would need to know Object-Oriented PHP, and have a deep understanding that we need the site up as soon as possible. My email here if you would like to help, and you will get compensation

parley!!uyZwqvZ2Vl 13/12/14(Sat)12:36 No. 4245

god damn mouse clicked before I could finish..

You will get compensation for helping us, as well a spot on the developer team. Thanks!

Cool Post Bro Neckbearded Basement Dweller 13/12/22(Sun)02:10 No. 4257

Semi-Unrelated. This was a cool problem to work out. I did it in Python and it was quite fun.

Delete post []
Report post