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

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.

Programming Languages Adrien 13/09/20(Fri)17:26 No. 4121 [Reply]

File 137969081315.jpg - (725.17KB , 1920x1200 , programmer.jpg )

Alright, lowly peon of a tech student here. I know basic computer repair, and I am good at html. I really want to get more mainstream into application programming and development. I need to know, should I go with these programs?


I think this would be a good list to build fundamental knowledge on, and learn. Unless, there is something you think I should learn other than these, or instead of these. Ideas, /pr/?

13 posts and 1 image omitted. Click Reply to view.
Neckbearded Basement Dweller 13/11/08(Fri)15:05 No. 4204

Haskell, because functional programming is popping up everywhere. Even functional style in other languages, because it obviously makes sense.

Neckbearded Basement Dweller 13/11/09(Sat)00:18 No. 4205

It is my first language and I have the pleasure to endure pressure to get credit points for my BS.

Neckbearded Basement Dweller 13/12/02(Mon)23:46 No. 4230

Of the languages you'be got there, I think Java would be the best one to learn with.

Pascal represents linguistic concepts that never really gained traction, so it wouldn't really be good to learn because it wouldn't help you learn most other modern langauges. Also, it's rarely used in modern systems.

C is a wonderful language (my personal favorite), and it is more or less the basis of many other modern languages. That said, it's a lot more complex than most modern languages, which makes it (probably) a poor choice for learning. Something that would be trivially easy in other languages can be quite challenging in C.

Some people really like C++, but I hate it. C++ was designed to be C except with support for the Object Oriented programming paradigm. Unfortunately, the way they implemented this ended up making the language (in my mind) more or less a game of having to book keep context. Either way, this shares the same problem with C, namely that it is likely too complicated to be a good language for beginners.

I like Java to learn with because it is both pretty easy and also people actually use it today. Java is easier than C because it deals with the program's memory on the user's behalf, so you don't have to worry about allocating and deallocating memory throughout the program.

Javascript is one of the biggest clusterfucks of a language there is, and only shares a name with Java. It is a bad language to learn with because it is poorly structured and because there are few languages that are similar to it. That said, if you are dead set on programming for the web then it's worth considering that Javascript is one of the most popular languages there.

If I were you, I would start learning with Python. This is because Python is syntactically simple, yet extraordinarily powerful. Someone above said that Python wasn't useful in production, but that simply isn't true (fun fact, anytime someone says a language is completely useless they're wrong; languages are tools, and every tool is the best for some job). As an example, Reddit runs entirely on Python.

Darknet... Pls Neckbearded Basement Dweller 13/11/25(Mon)17:35 No. 4223 [Reply]

File 138539731684.jpg - (31.69KB , 500x331 , 303358_373361682719089_2074813103_n.jpg )

Anyone else notice that more onion sites than usual are down including most chan sites... wtf is going on? maybe it has something to so with that sybil attack?

Neckbearded Basement Dweller 13/11/26(Tue)04:51 No. 4225

File 138543788287.jpg - (397.71KB , 1600x1193 , Red_onions.jpg )

Quite a while ago the most popular hosting company, Freedom Hosting (I think), was taken down. With it many onions fell and apparently haven't recovered yet.

Neckbearded Basement Dweller 13/11/26(Tue)07:51 No. 4226

File 138544870318.jpg - (44.59KB , 550x550 , 1305453_10151663965663837_1640145825_n.jpg )

True, but since then even sites that weren't hosted with Freedom Hosting have fallen...

I wonder what happened to the webmasters of the old sites... where have they all gone? because they sure as shit aren't here.

Neckbearded Basement Dweller 13/11/12(Tue)04:10 No. 4209 [Reply]

File 138422585243.jpg - (107.00KB , 640x480 , crusader.jpg )

Anyone know some good resources for writing a 2D isometric engine?

Neckbearded Basement Dweller 13/11/23(Sat)00:58 No. 4222

You could always grab the code for OpenXCom and have a look at that.

Delete post []
Report post