-  [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 465 unique user posts. View catalog

  • Blotter updated: 2011-01-12 Show/Hide Show All

There's a new /777/ up, it's /selfhelp/ - You're Pathetic, We're Pathetic, We Can Do This! Check it out. Suggest new /777/s here.

Movies & TV 24/7 via Channel7: Web Player, .m3u file. Music via Radio7: Web Player, .m3u file.

WebM is now available sitewide! Please check this thread for more info.

How bad is it? rayman 14/12/02(Tue)01:39 No. 4625 [Reply]
4625

File iwlmem.c - (1.27KB )

How bad is this piece of code?


7 posts omitted. Click Reply to view.
>>
legit 14/12/20(Sat)23:34 No. 4648
4648

File iwlmem2.c - (1.19KB )

>>4625

I'm attaching an improved version of your code, if you want more info let me know, I had typed then inside the form, but when I submitted, the site said that the file name already existed and I'm not gonna write it all again if it's not worth it.

BTW, here is your source


>>
Neckbearded Basement Dweller 15/05/22(Fri)20:20 No. 4733

>>4648
>args[0]+2
Isn't that just args[2]?


>>
Nattajerk 15/05/25(Mon)14:47 No. 4736

>>4733
no, that is 2 plus the value of args[0].

args+2 would give you the equivalent of args[0+2].




Closures & Callbacks(javascript) Boy Next Door 15/05/04(Mon)13:27 No. 4730 [Reply]

Can someone please explain these two concepts to me? I've been going through different books & youtube videos and I think I got the gist of them, but I'd like an explanation from others. I'm more confused how these concepts tie in with asynchronous vs. synchronous.


>>
Nattajerk 15/05/19(Tue)23:33 No. 4732

A closure can be thought of as a function within a function, which has access to variables in its scope. That's basically all it is, there are some technical things about it but you need not concern yourself with them just yet.

A callback is passing a function to another function as a variable. Wikipedia probably describes it best,

http://pastebin.com/6rXWAQEd

in this, someAction requests a function as a parameter. what this means is you can insert your own compatible function and it will be executed within the someAction function, rather than evaluated it if it were just asking for a standard variable.




show urself and find a bug Neckbearded Basement Dweller 15/04/24(Fri)10:24 No. 4728 [Reply]
4728

File 142986389971.jpg - (438.23KB , 2000x1000 , bug.jpg )

Find da bug!

http://pastebin.com/dKm2G2XV


>>
find bugs in popular open-source projects Neckbearded Basement Dweller 15/04/25(Sat)11:53 No. 4729

Authors of PVS-Studio static code analyzers offer programmers to test their sight and to try finding errors in C/C++ code fragments. https://software.intel.com/en-us/blogs/2015/04/24/lets-play-a-game-find-bugs-in-popular-open-source-projects




Iffy vocational school Neckbearded Basement Dweller 15/01/15(Thu)20:03 No. 4672 [Reply]
4672

File 142134860082.jpg - (19.80KB , 364x329 , 1365193232_Guy-with-Question-Mark-over-his-headFot.jpg )

I'm attending a one-year training in COBOL. So far, I've seen these alarming signs of varying importance:

*There is these mandatory exercises. But you can pass a course despite not having made them all. The general modus seems to be dragging people trough the education so that they can get their tax money at the end of the spring semester.

*There is no paper towels in the dining room nor the toilets. Despite our complaints.

*We had a week with a horrible sales pitch with a representative from IBM. z/OS and stuff. He was knowledgeable, but he was the worst teacher ever. And of course a few megabrains did catch everything he said. But not the most of us.

*This education will be crowned with a 2-month period of an internship. But the school had only some 15-20 places earmarked for us. Then a few places disappeared, because one of the banks has decided to move all the COBOL-development to Balticum. Then a few places will be taken by children to people working at these banks.

*Applying for internship will be as if you was applying for a real job. So the last week before christmas there was this little course on how to promote ourselves. One of the panaceas suggested was LinkedIn, yeah THAT LinkedIn, THAT spam-engine.

So what do you think? Am I only training for unemployment?


>>
Neckbearded Basement Dweller 15/01/16(Fri)04:44 No. 4673

There's supposedly a lot of legacy COBOL code that isn't going anywhere. Get in touch with someone who works where you want to work, then get a job there.


>>
Neckbearded Basement Dweller 15/04/17(Fri)21:54 No. 4726

For now, COBOL is very sought-after, because lots of shit is programmed in COBOL, and the old geezers who are proficient in it are dying out. So for a decade or so, I'd say you're set.

I strongly suggest you learn some more modern programming languages though, too.




take the international OOP TEST JAVA MexicanRedneck 15/03/26(Thu)03:50 No. 4721 [Reply]
4721

File 14273382427.jpg - (1.48MB , 3264x2448 , IMG_20150325_085920 - Copy.jpg )

although this exam is in Spanish and in java it should be about the same in some programming languages. here Google translate is your friend. Good luck. serves as a good learning tool (collage exam unit 3) . (theme inheritance)


>>
Nattajerk 15/03/27(Fri)08:50 No. 4722

do you have a link? or is that the test in the image. it's a bit blurry.




Neckbearded Basement Dweller 15/03/22(Sun)21:37 No. 4715 [Reply]
4715

File 142705664858.png - (8.89KB , 600x523 , mono-logo.png )

Java, C# or F# for my new project?

It's a small project but not too small. I master none of them but can put my shit together pretty well with Java. Anyways I don't mind learning a new language, will be the first one in years (not counting interpreted ones) which is always a good thing.

Also, is Visual Studio + Blend a good thing or a bad thing?


1 post omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 15/03/23(Mon)00:14 No. 4718

>>4716

Well, as I said it's a small project so it does what basic programs do: it takes information out of databases, make not too complex operations with them, needs extensive external input but for a few sources and peripherals, update databases, create new ones, use some files too to store certain kind of info (mostly current user configurations and states) and uses a big enough GUI.

Nothing special.


>>
Neckbearded Basement Dweller 15/03/23(Mon)20:02 No. 4719

C# might be easiest way. Easy GUI editor,friendly dataset,
you can use WPF for GUI, microsoft will support this at least 10 years or more after win10


>>
Neckbearded Basement Dweller 15/03/23(Mon)23:01 No. 4720

>>4719

Now that's something useful.

Finally I've decided to delay at least a week the writing of the first line of code because my interest on F# has grew enough to take a step in.

I'll probably do as you said, anyways, and make it in C#, which seems much more reliable known that I can already code Java.

But F# really tickled my apetite for learning something new and that's something uncanny since... lots of time.

As for WPF, thanks, I was looking for something Blend and didn't know where to start. All this shit gets rusty fucking fast.




phk on how to sabotage everything Neckbearded Basement Dweller 14/04/12(Sat)15:42 No. 4397 [Reply]
4397

File 139731017820.jpg - (43.97KB , 600x400 , Behj8RUCYAAR42X.jpg )

Talk by Poul-Henning Kamp (FreeBSD) @ FOSDEM '14

- he covers how open source projects are sabotaged
- how shit is distracted purposely
- how NSA shills can sneak in patches
- how NSA can shutdown privacy projects with patent trolling
- how Skype was likely bought by the NSA thru proxy
- how totally fucked OpenSSL is
- how totally fucked Ipv6 is
- how totally fucked DNSSEC is

http://youtu.be/fwcl17Q0bpk


8 posts and 3 images omitted. Click Reply to view.
>>
GHØST 14/04/26(Sat)00:25 No. 4425

>>4405

Sadly, Yes this is true. They have fully cracked the Tor network and now using reverse machanics to get users that are using tor network for hitman, drug traffic, child porn, etc. The best example would be Silk Road how in no time after the arrest of its owner it relaunched.. in reality.. it was a trap being runned by a high lv agentcy we are thinking CIA cause it has there stank all over it.. but we are still unsure, but since its relaunch many silkroad members has secretly been getting arrested... ---GHØST(Anonymous)


>>
Neckbearded Basement Dweller 15/01/01(Thu)22:13 No. 4662

>>4397 nice one, OP. haven't seen that yet.

>>4398 you can use jitsi instead of skype or any other tool supporting ZRTP.

>>4425 not sure if idiot or troll. anyway, there are other darknets so just use those if you think tor is compromised.


>>
Neckbearded Basement Dweller 15/03/20(Fri)16:55 No. 4711

>>4405
>As a matter of fact i was watching a youtube video and it said the NSA has fully cracked TOR
The problem is that it's easy to uncover yourself through your browsing habits when using TOR if you don't know what you're doing.
Was this video by a fat screaming Texan, by any chance?




Neckbearded Basement Dweller 15/03/19(Thu)11:20 No. 4707 [Reply]
4707

File 142676041448.png - (194.51KB , 1920x1080 , sequention.png )

Hey guys,

I am trying to make a sequention diagram out of my class diagram.

I have never made a sequention diagram, all I know is that I am working in the wrong order.


This is what I currently have, do you guys have any pointers and or tips on how to progress.


>>
Neckbearded Basement Dweller 15/03/19(Thu)11:21 No. 4708

I could rewrite it in english if anybody would like that.


>>
Neckbearded Basement Dweller 15/03/19(Thu)12:09 No. 4709

I have 2 players, playing a game of 4 in a row against eacht. I have a reactToDoTurn() but I dont know how to place it in my diagram, do I have to make 2 seperate questions, or just 1 as player1 and 2 are the same object.


>>
Nattajerk 15/03/19(Thu)19:34 No. 4710

That looks more like a class diagram rather than a sequence diagram.

I don't really know UML (i know nothing of it) but from the look of it there isn't too much to know - its basically a flowchart

In this case I think every class would be set side by side, below them would be a stem - you would draw on the stem the flow the program would make. probably labelled with each function call.

I'm not entirely sure, that's just an 'at a glance' observation




Nigar Ercan 15/02/28(Sat)01:00 No. 4701 [Reply]
4701

File CENG_112_Programming_Lab1.pdf - (221.02KB , CENG 112 Programming Lab1.pdf )

Please help me with this, I have 2 more days to do




U w0t Neckbearded Basement Dweller 14/04/24(Thu)07:01 No. 4421 [Reply]

I came across this. What does /pr/ think about systemd? I'm not a huge fan. I like the BSD style shit arch had until this shit came along :|

http://boycottsystemd.org/


5 posts and 2 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 14/12/24(Wed)03:04 No. 4650

>it's made by the same guy who made PulseAudio
holy shit the more I hear about this, the more I hate it.
is there still any doubt about it being a massive backdoor?


>>
Neckbearded Basement Dweller 15/02/22(Sun)01:15 No. 4697

>>4634
you realize RedHat has earned the right to direct kernel development right?

They've been a player in it for a long time, and we'd be decades behind otherwise

regardless, most people i find complaining, have no idea how it even works. Lennart might be a cunt, but christ. people send death threats to this guy. Often you'll see "PID1!!" usually followed by stuttering when asked why its a big deal how sysd implements it.

Its honestly a step torwards standardizing, so people can actually write software for linux.

its still completely foss, openRC exists, you can still use sysv,

maybe someday Linux will get a good debugger


>>
Neckbearded Basement Dweller 15/02/22(Sun)04:17 No. 4698

>>4421
Slackware still has the BSD init scripts. If someone could make the package management better, it would probably be more useful.




Delete post []
Password  
Report post
Reason