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

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.




Neckbearded Basement Dweller 15/02/09(Mon)20:00 No. 4688 [Reply]
4688

File 142350844190.png - (38.44KB , 937x1033 , キャプチャ.png )

Sup /pr/.
In the image is a program for adding 400 to a variable and one for adding 2b to a variable. The one for the bottom adds 2000000000. This is with 32 bit ARM, so the bottom add needs to do extra work to add the larger number (op codes and registers take up some of the 32 bits for the instruction, so it needs to load the 32 bit number into a register and add the registers together instead of just adding like the add r3, r3, #400 instruction). If I have a 64 bit processor and a 32 bit operating system, can I make a compiler that uses the 64 bit word size to add for both of these programs in just the one assembly instruction or does the OS limit itself to 32 bit words?


>>
Neckbearded Basement Dweller 15/02/12(Thu)04:46 No. 4689

bump for science


>>
Neckbearded Basement Dweller 15/02/13(Fri)00:06 No. 4691

You can compile it, but unless ARM does some magic Intel doesn't you won't be able to run the program.
Every time the running thread changes the OS saves the registers in memory (as they will be used by the next thread). A 32-bit OS only needs to save the 32-bit registers. To make sure, you could test it in QEMU.
Disclaimer: I don't have much experience with ARM.


>>
Neckbearded Basement Dweller 15/02/13(Fri)07:06 No. 4692

>>4691
I was mostly thinking Intel since I don't have anything that's 64 bit ARM. I'm not sure how Intel does the machine code yet since they do some kind of variable length instruction magic. I guess my idea works better with fixed length instructions though, maybe there are some instructions for Intel that can use it, I'll try to find that out eventually.




Hello Hi 15/02/03(Tue)01:19 No. 4684 [Reply]
4684

File 142292278771.png - (7.61KB , 200x240 , zbar_200.png )

I was wondering if anyone can give me insight on how to add the Zbar QR scanner into my Xcode. I have searched all over the place and I have only found tutorials on how to do it on older versions (Objective-C) Any help is greatly appreciated!




SQL ? Neckbearded Basement Dweller 15/01/24(Sat)13:34 No. 4680 [Reply]
4680

File 142210287754.jpg - (259.39KB , 720x480 , 1350159034001.jpg )

SQL Bernds, please halp:

We have the table "Qualifications" with the following fields:
1. Class (1,2,3, .., 2)
2. Subject (English, Mathematics, Computer_science, ...)
3. Family Name (Anderson, Sullivan, Smith ..)
4. Nick Name (Mary, John, ..)
5. Score (9,10,4 ..)
6. Date (13.03.2014,02,04.2014 ...)

Write a SELECT statement that returns the highest score for each student in a given class, on a given subject, along with the date, when the score was obtained.
"Class" and "Subject" for selection are transmitted through host variables. (H-CLASS , H-SUBJECT)
Variable "H-SUBJECT" may contain the name of a subject or the word "All".
In this case the top scores for all subjects for all students of the given class will be listed.
These two cases (one specific subject and all subjects) will be managed in the same select statement.
Message too long. Click here to view the full text.


>>
Neckbearded Basement Dweller 15/02/02(Mon)11:24 No. 4682

fuck databases, make games.
but it will probably be the stackoverflow result for a google query containing lots of databasy words like "sql select from max value"
https://stackoverflow.com/questions/612231/how-can-i-select-rows-with-maxcolumn-value-distinct-by-another-column-in-sql
or
https://stackoverflow.com/questions/7745609/sql-select-only-rows-with-max-value-on-a-column




Neckbearded Basement Dweller 14/12/28(Sun)07:39 No. 4656 [Reply]
4656

File 141974875541.jpg - (131.39KB , 1280x720 , maxresdefault.jpg )

So, what do you think about Bret Victor?

http://vimeo.com/115154289


>>
Neckbearded Basement Dweller 14/12/28(Sun)18:32 No. 4657

he's standing in front of a macbook.
I doubt anything of value will come from his lips but let's see...


>>
Neckbearded Basement Dweller 14/12/30(Tue)05:29 No. 4658
4658

File 141991378135.jpg - (402.86KB , 2298x1725 , air2008.jpg )

Well, I had macbook (air) once too. It took me about a month to figure how to get linux there, but once installed, it was almost usable.


>>
beard on face also, basement too cold 15/01/26(Mon)10:02 No. 4681
4681

File 142226292938.jpg - (150.72KB , 1280x720 , WIN_20150126_015805.jpg )

>>4656

I actually attended the conference from which the video was recorded.

I very much liked his talk, specifically I liked his attention on the ways information is represented.

"Perspective is worth 70 IQ points"
- A professor of mine




java help Neckbearded Basement Dweller 15/01/18(Sun)03:53 No. 4676 [Reply]

need help with a java project. I would like to fill an array with a class that has multiple data types.

for example

class student{
int age;
String firstName;
String lastName;
}

Then in another class something like

student[] stus=new student[4]{some way to initialize entire array}

let me know if you need any more info
Message too long. Click here to view the full text.


>>
Nattajerk 15/01/18(Sun)14:04 No. 4677

this is nothing too difficult.

http://pastebin.com/DqLLYSgY

i dont have java installed to verify any errors i made, but all you would have to do in this is populate the array, i believe. however you want to do that is up to you.


>>
Neckbearded Basement Dweller 15/01/18(Sun)18:42 No. 4678

I figured out what i needed. I knew how to create the array. i just didnt know how to fill the array without doing like
stu[0].name=joe;
stu[0].age=20;
and so one i wanted to do it all basically inline with the constructor.
what i did was

student[] stus=
{new student("mark","jones",22),
new student("faith","hart",20),
new student("james","johns",22),
new student("spongebob","squarepants",20)};

an array of students filled with the constructor




Delete post []
Password  
Report post
Reason