-  [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 483 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. Please check this thread for more info.

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.

Neckbearded Basement Dweller 13/11/03(Sun)23:54 No. 4189 [Reply]

File 138351928185.png - (159.88KB , 1920x1080 , 2013-11-03-155404_1920x1080_scrot.png )

Can anybody help me with this assembly? I'm trying to write a function like memset but instead of copying 1 byte at a time it copies 4. The function appears to have no effect on the array though.

I've tried different conditional jumps on line 13 and it still doesn't do anything.

4 posts omitted. Click Reply to view.
Neckbearded Basement Dweller 13/11/04(Mon)06:41 No. 4194

Nevermind I realized the problem was that I was subtracting from rdi instead of adding to it. Well its fixed thanks for your help!

Neckbearded Basement Dweller 13/11/04(Mon)06:44 No. 4195


Also disregard that comment about causing an infinite loop. I didn't need to decrease edx so that won't be a problem (I figured if for some reason they entered 0 it'd decrease to -1 and it'd never be 0).

Neckbearded Basement Dweller 13/11/27(Wed)23:31 No. 4229

What are you, 12? I suppose you also think that GCs and JITs are decidedly gnarly.

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

File 138706560126.png - (91.42KB , 880x1360 , elpljBY.png )

C+= (pronounced either C-plus-Equality, or See Equality) is a feminist programming language, created to smash the toxic Patriarchy that is inherent in and that permeates all current computer programming languages.

Pretty funny parody of feminists vs programmers. They've had to move the repo from GitHub to BitBucket after GitHub removed the project for not being PC. I wouldn't have heard of it otherwise, though.

Neckbearded Basement Dweller 13/11/26(Tue)11:28 No. 4227 [Reply]

File 138546170652.png - (73.15KB , 1026x598 , tumblr_mtqhjira4V1roprhno1_1280.png )

I understand the idea behind algorithmic trading. I am trying to understand how 'bot vs bot' trading algorithms manage to isolate agents from aggregate market data to capitalise on their predictions? AM I right in supposing they would only work where the targeted bot can manipulate the market in a statistically visible way correlating with specific real world or market events?

That+other.guy 13/11/26(Tue)12:16 No. 4228

I find myself wanting you to talk about that pick more.....

Neckbearded Basement Dweller 13/12/05(Thu)19:53 No. 4235

>AM I right in supposing they would only work where the targeted bot can manipulate the market in a statistically visible way correlating with specific real world or market events?

Not 100% - if you can predict that in situation X, they will make trade Y, you can build your own algorithm with the knowledge that X->Y

First, if you know how they act, you know how the market will react.

A very simplified example could be that if you know they're going to bid for google stock, you buy some yourself and sell it when the price increases because of the bid for it. Alternatively, if you can predict that they will sell off a lot of stock at a loss because they predict a price drop, you can short that stock even if you disagree with the price drop would otherwise happen because their sale will draw the market down.

Second: If you know how the market is BEFORE THEY DO, you can know what they will do before they're even aware.

Simple example of making money here: If google trades at X and you know they will make a bid at X+Y+Z, you can buy at X+Y, sell at X+Y+Z and make Z profit. Doesn't matter how tiny Y and Z are, so long as they are non-zero.

Neckbearded Basement Dweller 13/12/06(Fri)03:02 No. 4239

>Second: If you know how the market is BEFORE THEY DO, you can know what they will do before they're even aware.
Don't forget they have their machines at the exchange.
And if their code causes them to lose a lot of money the exchange will revert the trades. They give exactly zero shits if you lose money.

3to2 Neckbearded Basement Dweller 13/12/06(Fri)01:02 No. 4236 [Reply]

File 13862881308.png - (188.55KB , 1920x1080 , 3 to 2.png )

Can anyone tell me what I'm doing wrong? First time using 3to2 and not exactly sure what I'm doing.

Neckbearded Basement Dweller 13/12/06(Fri)01:04 No. 4237

Derp. 2 to 3. Because dyslexia is a whore.

Neckbearded Basement Dweller 13/12/06(Fri)02:58 No. 4238

The Python interpreter isn't whatever Microsoft calls their shitty shell. You can't run programs inside it with that syntax. What you want to do is open a shell ("DOS prompt") where the 2to3 script is (assuming it isn't in your PATH) and then try to run it like you tried to.

please help Alice Walsh 13/12/03(Tue)02:01 No. 4231 [Reply]

File 138603247325.png - (44.22KB , 654x780 , uhmm.png )

Hey guys. I'm studying Games Technology and there's this module which I wasn't really prepared for. Can you help me with this question please?
Question: There is a potential memory leak in the below code. Where is it? How would you fix it?

Neckbearded Basement Dweller 13/12/03(Tue)03:04 No. 4232

In SomeClass::setPoint(), SomeClass::p is reassigned without attempting to free its memory. Memory is leaked if the user calls that function more than once per instance.

Delete post []
Report post