-  [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 486 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 13/11/03(Sun)23:54 No. 4189 [Reply]
4189

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.

http://pastebin.com/MZq9CGjG
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

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

>>4192

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

>>4224
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]
4246

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.
https://bitbucket.org/FeministSoftwareFoundation/c-plus-equality

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

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

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


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

>>4227
>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]
4236

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

>>4236
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]
4231

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

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?

Pascal
C
C++
Java/Javascript

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

>>4204
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]
4223

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

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.




Just how much Neckbearded Basement Dweller 13/09/14(Sat)11:38 No. 4114 [Reply]
4114

File 137915152076.gif - (492.02KB , 500x281 , timon hula.gif )

Have you guys ever wondered how much content, how much code and graphics and music, you generate in a year?
Right now I'm up to 143 MB!
Pic unrelated


3 posts omitted. Click Reply to view.
>>
OP With Tools OP 13/11/10(Sun)01:45 No. 4206
4206

File GNU_LICENSE.txt - (14.59KB , GNU LICENSE.txt )

OP here and I finally got down and created two tools one for the File level and one for the directory level.

Both tools are released with the GNU License!

https://docs.google.com/viewer?a=v&pid=sites&srcid=ZGVmYXVsdGRvbWFpbnxoYXNlcmVubGFuZXNoZXJzdHVkaW9zfGd4OjU2MGExOTRiNmYyNjMyMTY


>>
Neckbearded Basement Dweller 13/11/20(Wed)16:40 No. 4214

>>4206

I'm >>4129 and wow, I never actually expected a tool to be made! As simple as it is, I like how precise it is. Nice job!


>>
OP 13/11/21(Thu)09:52 No. 4218
4218

File 138502392119.gif - (4.59MB , 450x253 , lol.gif )

You just made my week, sir. Thank you for the praise, I wasn't expecting it.




I have a request, kind of... lawful 13/08/29(Thu)07:50 No. 4076 [Reply]
4076

File 137775545787.jpg - (387.27KB , 1680x1050 , windy-day-on-tropic-beach-wallpaper.jpg )

so /pr/, before i tell you why i'm asking this, i need to ask. Do you guys know how to make time bomb computer viruses?
Pic unrelated


>>
Neckbearded Basement Dweller 13/08/30(Fri)03:04 No. 4078

Any programmer can do that. Be careful with your next question if you don't want a ban.


>>
Average+Whovian 13/11/20(Wed)10:27 No. 4212

I think his next question was going to get him banned. lol


>>
Neckbearded Basement Dweller 13/11/20(Wed)16:36 No. 4213

Yes, we know how to make time-bomb computer viruses. Its trivial, you just get the current date of the computer using built-in functions. They have them in windows.h if you're using c++, which I assume you are if you're making viruses.

Would you like me to post some example source code for a time-triggered program? (Note, this is not an actual virus, its just time-triggered code. Nothing malicious, so not against the rules)




Delete post []
Password  
Report post
Reason