[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 314
Thread images: 40

File: akari great.jpg (15KB, 250x244px) Image search: [Google]
akari great.jpg
15KB, 250x244px
old thread: >>56479338

What are you working on, /g/?
>>
>>56485995
First for D
>>
>>56486036
Second for A
>>
File: fonts.png (3KB, 317x158px) Image search: [Google]
fonts.png
3KB, 317x158px
Fucking around with fonts again because I didn't like ProFont's symbols.

Monte Carlo seems very similar but with decent symbols.
>>
>>56486081
>date
How do you validate that? Using DateTime?
>>
>>56486081
absolutely disgusting
>>
What is /dpt/ opinion on this book: "CODE: the hidden language of computer hardware and software"? I bought it on amazon for a good price, because I wanted to learn more about what goes "under the hood" on computers.
>>
Link to my last post: >>56485908

plz halp
>>
>>56486133
if you bought it, then read it, don't mind /dpt/'s shitty opinion
>>
>>56486137
a[k:m] = (a[k:m] - a[k-1])/(xData[k:m] - xData[k - 1])

a[k:m] - a[k-1]


You're trying to subtract an int from a slice, which don't work
>>
>>56485995
Finally learning html css etc
>>
>>56485908
well according to the error, at least one of your '-' expressions has a left side with type list and a right side with type int.

to me it would look like a[k:m] would be a list type that is a subrange of a[k] - a[m]
a[k-1] would be a single item at list place k-1, and it would be of type int by the looks of it.
>>
>>56486103

It's not validated, thus "simple".
>>
>>56486133
It's okay. It's like the Cosmos of technology.
>>
File: 1472300988435.gif (2MB, 450x250px) Image search: [Google]
1472300988435.gif
2MB, 450x250px
>using do notation and monad comprehensions as a way of writing functions
i have transcended memes
>>
>>56486160
We need more people like you
>>
So i'm writing a simple chat thing in Python using sockets, but I can't get the server to accept more than one client to be connected at the same time.
>>
Are templates in C++ a meme?
>>
>>56486283
yes
>>
Post your dev machine!
>>
>>56486213

>insert Computerphile video about how programmers shouldn't handle dates/times if they can at all avoid it

>>56486283

No; they're a primary language feature. There's a reason why the biggest part of the standard library is called the Standard Template Library (STL).

>>56486278

Oh look, someone already had the same problem as you before:
http://stackoverflow.com/questions/10810249/python-socket-multiple-clients
>>
>>56486336

I haven't seen that video yet, but I'm glad I'm already doing the right thing by not even checking.
>>
My current project (at work) is to find out why our piece-of-shit Windows CE embedded device locks up so much. Locks up as in, throws access violation exception and freezes. Sometimes it's literally a matter of "I pushed buttons for 2 hours and pushing button X after the two hour mark resulted in a crash". There's no rhyme or reason. Oh, and to reproduce any of these lock-ups, I have a managed debugger attached to the process. With no debugger, everything works great.

The crash I just fixed, for example, involved C++ code trying to execute a C# callback, but the memory for the callback delegate on the managed side has, for some stupid fucking reason, been unloaded from memory (or something) even though all the proper steps have been taken to prevent garbage collection of that memory. This only happens after loading one of our formatted HTML documents and displaying it on the screen using the .NET WebBrowser control. The fix for it? Call the methods on the C# side once. Just once. Then the memory is never fucked with and the C++ code can call into it just fine.

There is no logic in this place. Put me out of my misery, anons.
>>
What's an easy way to understand operating systems?
>>
>>56486426

It's worth checking out, because it points out all of the complexities in handling time. Because time zones, leap seconds, changes in calendar systems, etc... argument is to just use a library if at all possible.

>>56486491

In what way do you wish to understand operating systems?
>>
File: newtonPoly.png (76KB, 601x617px) Image search: [Google]
newtonPoly.png
76KB, 601x617px
>>56486166
I know it shouldn`t work, but that`s literally what the book says (pic related). Am I retarded or is the book retarded?
>>
File: 1448851653606.jpg (141KB, 508x648px) Image search: [Google]
1448851653606.jpg
141KB, 508x648px
>>56486491

This joint right 'ere.
>>
File: dev_beast.jpg (123KB, 1024x768px) Image search: [Google]
dev_beast.jpg
123KB, 1024x768px
>>56486316
>>
>>56486610
What is a[k:m] - a[k-1] even supposed to mean? Is it supposed to remove all occurrences of the value of a[k-1] from a[k:m]? Or is it supposed to subtract the value of a[k-1] from each value in a[k:m]?
>>
>>56486794
>>56486610
this is pseudocode you retards
>>
>>56486808
It`s clearly python, but if you`re such a genius than please enlighten us as to the true meaning of the mysterious: a[k:m] - a[k-1]
>>
>>56486851
>python isn't pseudocode

Extended summer?
>>
I know rudimentary C++, where do I go on now? Which books should I read if I want to know how to use general use functions? Is the 2nd edition book on the STL for C++ suitable?
>>
>>56486880
Yeah, python is basically psuedocode, it`s just that in this case the psuedocode is totally open to interpretation (not by the python interpreter, obviously, because it doesn`t run at all).

I remember my first "programming" assignment ever, I was supposed to hand in psuedocode so I handed in a python script instead and told my teacher that python is psuedocode, not a real language.
>>
>>56486973
>I was supposed to hand in psuedocode so I handed in a python script instead and told my teacher that python is psuedocode

Assuming this isn't fabricated (it is), this just makes you a cunt -- as does using backticks in place of apostrophes.

Cool story though
>>
Only interested in changing the spirtes_collided function to return multiple values, starting out with turning the working functions from return bool, to returning a struct with the same information before expanding on it. I want sprite_collided to return the specific locations of the collision because the function basically handles that as is. My problem is trying to get it to work, I an noob at C. I'm basis this off what I've tried to find online, another method was to use pointers, but that's beyond me for now.

used struct type value where scalar is required
if (sprites_collided(compPad, ball))



struct CollisionResult sprites_collided( sprite_id sprite_1, sprite_id sprite_2 );

struct CollisionResult {

bool result;
//int location;
};


if (sprites_collided(compPad, ball)) {

//do stuff
}

struct sprites_collided( sprite_id sprite_1, sprite_id sprite_2 ) {

//comparison magic here

if (sprite_1_bottom < sprite_2_top
|| sprite_1_top > sprite_2_bottom
|| sprite_1_right < sprite_2_left
|| sprite_1_left > sprite_2_right) {

return CollisonResult.result = false;
}
}
>>
>>56485995
is that you akari admin?
>>
>Arguments on what is and isn't pseudocode

Python is not pseudocode
C is not pseudocode
Javascript is not pseudocode

Pseudocode is often written in a syntax similar to other, commonly used languages, but it does not have a set syntax. Its purpose is to clearly explain the details of an algorithm such that they can be easily implemented in other languages. Pseudocode should ideally not follow a language's features to a T, as it may be not obvious what it does for a programmer who has not used that language before.
>>
>>56487126
I entered the course when they changed from using scheme/c++ to python/java. I was angry about this and tried to prove a point because I was young and arrogant back then. Needless to say, I dropped out.
>>
>>56487144

Think I understand a bit of my error, it's no longer a bool so that if won't work. How do I then get the function to trigger (only time it would actually go and fill/alter the struct) and then start the if statement using CollisionResults.result
>>
>>56487233
C is the lingua franca so it might as well be psuedocode.

I see textbooks trying to push language-agnostic psuedocode all the time and it just gets in the way.
If you have to learn their fucking syntax, it's not psuedocode anymore.
>>
File: a.jpg (58KB, 1080x833px) Image search: [Google]
a.jpg
58KB, 1080x833px
coder life
>>
File: ZjnxV.jpg (652KB, 3264x1840px) Image search: [Google]
ZjnxV.jpg
652KB, 3264x1840px
>>56486316
>>
File: IMG_20160907_230105087.jpg (2MB, 4160x2340px) Image search: [Google]
IMG_20160907_230105087.jpg
2MB, 4160x2340px
>>56486316
Just missed my Spiderland wallpaper desu
>>
File: thinkpaddu.jpg (1MB, 2576x1932px) Image search: [Google]
thinkpaddu.jpg
1MB, 2576x1932px
>>56486316
I've thought about changing my color scheme, but xfce4-terminal makes it a giant pain.
>>
>>56486572
Why did you spend hundreds of dollars on a pony stuffed toy, clopper? That thing better have a fucking hole.
>>
>>56487356
>that indent hell
You are a meme
>>
Here is a list of languages that it is acceptable to use.

>Assembly
>C
>C++
>Rust
>Common Lisp
>Scheme
>OCaml
>Haskell
>Idris

You're welcome.
>>
>>56487524
You missed D
>>
>>56487524
>>Haskell
nice try faggot
>>
@56487524
>Rust
>(((((((((((((((((((((((listp))))))))))))))))))))))))))))))))))
>Haskell
>irrevlants
no
>>
>>56487548
It's good for doing AI and writing compilers.
>>
>try '\a'
>terminal doesn't make a sound
Disappointment
>>
>>56487566
""""""""""""""""AI""""""""""""""""
>>
>>56487543
No, I didn't.
>>
>>56487585
Yes you did
>>
Exokernel in ARM64 assembly
the whole thing will prob be under 512 bytes and do all the functions it needs
>>
>>56487524
Over half of those are not acceptable to use.
>>
>>56487595
I assure you, I did not. D does not belong on that list no matter how hard you protest. I suggest you channel your energy into learning a useful language (i.e. not D).
>>
>>56487624
I disagree
>>
>>56487639
Then you are wrong.
>>
>>56487649
no u
>>
>>56487664
I regret not. You see, my view of programming languages is objective, whereas yours isn't.
>>
File: iDontCare.webm (631KB, 624x352px) Image search: [Google]
iDontCare.webm
631KB, 624x352px
>>56487688
>>
>>56487688
Name at least 500 programming languages
You can't
>>
>>56487704
Allow me to elucidate you. It was your fondness for D that gave it away. Such affection is a sign of a seriously unbalanced mind. I hope you get better soon.
>>
>>56487723
That wasn't me
>>
Pair programming is shit.
>>
>>56487723
>fondness for D

you got that right
>>
>>56487524
>Rust
>Scheme
>Haskell
>Idris

Kanker
>>
>>56487731
Don't try to escape blame. You're all at fault here, with your dismal opinions on programming languages.
>>
>>56485002
>16
>>56485252
>C or Asm
read this book? http://www.plantation-productions.com/Webster/www.artofasm.com/index.html
>>
File: WhatAStoryLoop.webm (245KB, 960x540px) Image search: [Google]
WhatAStoryLoop.webm
245KB, 960x540px
>>56487759
>>
>>56487822
I'm not seeing any defense of your utterly moronic views on programming language. Truly, we must weep for the future of our species if /dpt/'s views are representative of those of the the wider population.
>>
>>56487356
Stop it
>>
The source code for Phobos looks so nice
>>
>>56487874
Well that's what happens when it's run by competent people.
>>
>>56487874
No, it doesn't. Please stop embarrassing and making a fool of yourself forthwith.
>>
>>56487896
>caring about how you look online
i feel sorry for you anon
>>
>>56487614

I highly doubt that. AArch64 instructions are fixed width, and so 512 bytes affords you 128 instructions exactly. Loading address constants for DMA may easily take multiple instructions due to the fact that ARM (both 32-bit and 64-bit) can only use 12 bits for immediates, 4 of which are used for a barrel shifter. Getting much done in this ISA is not exactly easy in a small amount of bytes. Not to mention the fact even in x86, most boot loaders use multiple stages, as you can't exactly get an ELF or PE loader in 512 bytes, even with the smaller instructions in the 8086.
>>
>>56485995
Anyone using MSYS2 on Windows XP here that had mintty broken by a recent update?
>>
>>56487988
Stop horsing around with pony examples like that.
>>
>>56488007
Hey, look at Mr 2005 over here.
>>
Okay, I want to try programming again because I am a NEET. I have to stay home to take care of a puppy and that leaves me with a lot of time to read and work on stuff whilst she sleeps or generally lies around.

What would I want to learn if I want to do freelance stuff but not be in competition with Rajeesh and Sandocupta? I tried learning Python but I eventually gave up because it wasn't going anywhere. What I am looking for though is self-employment.
>>
>>56488021
Yes.
>>56487926
>>
>>56487988
it'll take less than 128 instructions to initialize all processors, initialize GIC and set up traps that prevent allocation of already allocated / unprivileged resources anon
>>
>>56488024
without specific industry knowledge or excellent communication skills, there is no programming language you can learn that will make you preferable to a pajeet.

sorry
>>
>>56488095

I am killing myself then. Goodbye.
>>
>>56488024
unless you are just using programming as a tool to build something you're already an expert in, you're going to be permenantly fucked by the loos.
>>
Before I redo my VM, I'm going to put some effort in to learn git
>>
>>56488024
>I tried learning the easiest programming language and it was too hard for me
It's not gonna work out scrub.
>>
>>56488117
Please leave the front door open so your dog can get out.

Otherwise godspeed
>>
>>56488068
As suggested get an Asus Chromebook w/Rockchip. They're $200 USD brand new.

No microcode, libreboot support, can use generic free drivers for everything else. Has TPM build in so you can play around with it for a Hardened Gentoo install if you wanted to.

Will run any linux distro, and XP in a virtual machine if you max the ram out.

>>56488024
google:

weworkremotely
jobspresso

and look at the customer support positions, they're all remote, pay real salary, and just need CSS/HTML/java/python experience for the most part. Many positions are just email support for some SaaS corp.

Then can learn programming while you make money
>>
>>56488024

Learn COBOL. It's an ugly as fuck language, you won't be working freelance, but you'll have a well-paying job and not a lot of competition.

>>56488117

Read what I just said before contemplating this.

>>56488072

And to load a program into memory?
>>
>>56487874
it's fucking nothing, and the allman braces are pig disgusting, get rid of the GC and maybe it'll be decent
>>
>>56488334
I'll either use a subset of ELF or not at all, separate the loader from the kernel (keep it modular), or use the OVMF firmware callbacks to load an ELF binary into an address
>>
File: kek.png (1MB, 800x600px) Image search: [Google]
kek.png
1MB, 800x600px
>>56488335
>removing the GC will make the source code look better
>>
>>56488334
>Learn COBOL
I keep seeing this and have no idea whether to take it as meme/fuckery or serious career advice.

I do love old-fashioned retardation, though, so I might go ahead and learn it just for the sake of that.
>>
>>56488546

I wish it was a meme, but it really isn't. You aren't likely to find a TON of COBOL jobs, but you will find some, and you'll have very little competition on them. Here's the facts:

1. A large portion of our banking infrastructure runs on COBOL
2. Banking software needs maintenance, and banks aren't by and large looking to port their COBOL software to other platforms.
3. The average COBOL programmer is in their 50s and getting close to retirement.
4. Most new programmers will turn up their nose after getting a good look at COBOL.
>>
Still slogging along the basics (Learning Python3 to get a grasp), is it possible to create a separate dictionary/database for the main program to pull from or does it have to be all on index?
>>
File: Deimos_End_Picture.png (262KB, 640x480px) Image search: [Google]
Deimos_End_Picture.png
262KB, 640x480px
>>56487874
What about Deimos?
>>
File: 1473294694760.webm (1MB, 640x360px) Image search: [Google]
1473294694760.webm
1MB, 640x360px
Is this accurate?
>>
What good books are there for me to read so I can gain general knowledge on commonly used functions in C++?

is this good enough?
http://www.cppstdlib.com/
>>
>>56488732
On the same index*
>>
>>56489047
>>56488732
Reading up it looks like I could do this with a MySQL variant for data retention and an XML for referencing tables.

Or am I being retarded and losing my ability to read? I'm thinking my first project will be a shitty RPG and storing classes, items and shit of the like on a separate database so I don't over clutter any system I start making.
>>
File: catgirl.png (1MB, 1630x1948px) Image search: [Google]
catgirl.png
1MB, 1630x1948px
Why are webdevs afraid of C?
I've seen javascript code where quirks in the language are abused as "idiomatic techniques" on a scale that's much worse than even the most obtuse C code.
>>
>>56488829
No. You never see the programmers in that show.
>>
>lolcat language
Why do autists like this exist?
>>
I'm doing a simple Swift thing for uni in Xcode. Xcode constraints are fucking retarded.
Also some cardboard vr thing in unity where we stack blocks or something.

I want to hang out with the /vg/agdg guys but I have no game and not enough commitment or enthusiasm to build one entirely on my own. Anyone want me to build game with them?
>>
>>56489405
Webdevs are not afraid of C, it's just that C does not do what they want the language to do.
>>
File: stunpepe.jpg (55KB, 500x473px) Image search: [Google]
stunpepe.jpg
55KB, 500x473px
>>56485995
GUYS I NEED HELP

I signed up for java data structures this winter and ive been un enrolled from the class, because i havent responded to the teacher online during the weekend. He wanted to make sure who was actually attending and who wasnt, and monday he sent me and to a few other students an email if im still going to participate. I needed to respond to the email before 8pm or else he would un enroll me.

I was at my grandma's house meeting some new cousins and i missed the email completely, i should have probably responded to him as soon as i could have during the start of the weekend but i didnt. Now i responded back to him pleading to enroll me again, and so did this one other guy. But i used all caps on the title to get his attention.

He responds to me saying he doesnt have authority to re enroll, only the dean of the CIS department can do that. I emailed her. Guess what.
>Hello, Anon
>At this point it is deemed too late to re-enter the class. We plan to offer it again next semester and encourage you to enroll again.
>Ms.Dean

I dont know what the fuck to do, i just lost around 200 for this class and i cant get it back. Should i email her again or just sudoku it all???
>>
>>56489557
ahahahahaha
>>
>>56489557
Just do it next semester. It is not the end of the world as you know it.
>>
>>56489557
that's ridiculous
>>
>>56489557
>i just lost 200 for this class
Is this a for-profit college or something?
Since you were dropped from the course and it hasn't even started yet, there's no reason why they wouldn't give you enrollment fee back.
>>
>tfw laziest dude ever

>tfw I only know front-end html/css/java bullshit

I'll never learn anything deeper than this if I keep being like this
>>
>>56489557
I don't believe a word of this anon
>>
File: sincitysuicidy.gif (621KB, 500x267px) Image search: [Google]
sincitysuicidy.gif
621KB, 500x267px
>>56489576
go fuck yourself

>>56489577
But you see i have deadlines to make, im hindering my chance of transferring to a UC with bullshit like this happening. Also I still live with my parents and im trying to gtfo asap.

>>56489611
School started like around aug. 18, I was supposed to turn in my first lab in this week. I mean i was only unenrolled for like TWO DAMN DAYS, why the fuck is this happening?!

>>56489642
Want me to show you?
>>
>>56489651
>School started like around aug. 18, I was supposed to turn in my first lab in this week. I mean i was only unenrolled for like TWO DAMN DAYS, why the fuck is this happening?!

You mean to tell me you've been in this class for 3 weeks and you didn't even bother to look at your email once?
You deserve to fail. Enjoy dropping out and your eventual neethood.
>>
>>56489557
Why is this posted in /dpt/?
>>
>>56489669
NO I HAVE BEEN CHECKING MY DAMN EMAIL

this weekend was when it was most important, and i missed it. I missed the 8pm deadline by two hours
>>
>>56489684
Why is this posted in /dpt/?
>>
>>56489692
how could you not bother to reply in time

now i feel no pity for you
>>
>>56489692
you should enroll for committing sudoku
>>
>>56489697
It's a response to a post that doesn't belong.
>>
>>56489692
>he sent me and a few other students an email
Did you skip the lectures?
Is this a community college?
Most community colleges treat you like high school pt 2, as in, they'll penalize you for not attending and will eventually drop you.
>>
I've been using visual studio on windows for a while, but now I want to try using ubuntu to see how it feels.
How should I be programming on linux?
>>
>>56489740
My tool of choice has been Qt Creator lately. Despite its name, it's an IDE that can be used to write/build/debug programs that don't use Qt.
>>
>>56489651
>Want me to show you?
Kind of. At least at my school I don't even think it's possible for instructors to unenroll students.
>>
>>56489706
>>56489708
>>56489715
Im taking community college and doing requirement classes to transfer to a UC. I went to a thursday lecture and he talked about some of this, to send him a message to notify im in the class. Im kicking myself for not doing it then and now im in this shit situation. ON MONDAY he sent the final message of whether we are in or not, I never got to check my mail that day until around 10pm. fuuuuuuuck

I cant believe the dean wont do anything about this, is it that my score will have to be reset or some complicated shit? I mean we didnt even turn in our FIRST ASSIGNMENT!
>>
File: Capture.png (17KB, 770x209px) Image search: [Google]
Capture.png
17KB, 770x209px
>>56489775
this is all i can show you
>>
I have about 10 auto created variables from a XML which I have to assign to a label:

input1desc.text = result.Input1Description
...
input10desc.text = result.Input10Description


Instead of manually typing everything, how do I automate it in a for 1-10 loop?
The language is Swift, if it matters.
>>
>>56489785
You were warned that this would happen and you didn't bother emailing the professor, and you waited until AFTER they sent the final call to respond.

>>56489800
And on top of that, you didn't even show up to class.
Why the fuck are you on here asking for pity? You clearly didn't give two fucks about this course.
You deserve it.
>>
>>56489800
That so shitally formatted I believe it was from a professor. Interesting. You really should have gone to class though.
>>
>>56489800

>I have not seen you for a while
If you have been continuously attending lectures, show up to the next lecture and explain to him in person that he has made a mistake. If he is unwilling to correct the mistake, file a complaint directly to the university president.

If you haven't been regularly attending lectures, I won't say you don't deserve it, though it would seem suspicious that the professor had not sent out earlier emails warning of this possibility. A one day window is not exactly a reasonable expectation for a response.
>>
>>56489824
>>56489836
WTF I DID SHOW UP TO CLASS, REEEEAAAD

He is referring to the site we use to check up on the class assignments, where he posts slides and lecture notes. I didnt respond in there and he emailed me through gmail.

also >>56489824
i didnt wait until the final call, I didnt see it coming that monday night when i read the email saying after 8pm i would be dropped
>>
>>56489800
this is a stretch, but... cerritos college?
>>
>>56489869
I'd still go complain to the dean, the letter clearly says "seen" as in, he thinks you weren't attending the lectures.
You can prove you've been attending class and that he had no reason to drop you.
>>
File: Capture.png (9KB, 560x138px) Image search: [Google]
Capture.png
9KB, 560x138px
>>56489854
>>56489895
He says he doesnt have the authority to re enroll, only the dean. Dean says its too late or some bs. Also in my college, if i dropped out before sep10, it wouldnt show on my record. Can i use something with this, like i should be re enrolled since its before the drop out deadline or someshit.

also pic

>>56489876
nope, but it looks pretty damn similar to mine i gotta say
>>
>>56489924
Have you talked to anyone in person?
Go talk to the dean and ask for your money back.
>>
>>56489954
The thing is they wont because there is a two week or one-n-a half week deadline that gives you time to try the course and get out with your money if you dont. They will throw that shit at me and make me look like a bitch.
>>
>>56489991
>make me look like a bitch
But you attended every class.
I feel like there's something you're not telling us.
Why were you the only person dropped?
Why not the whole class?
Clearly they all did something right and you're in the wrong.
>>
File: graduate.png (17KB, 2414x648px) Image search: [Google]
graduate.png
17KB, 2414x648px
>>56490030
No wait im not the only one who was dropped, i think. There were like five people who received the same email as i did. Only me and this one guy responded to it, late.

and let me tell you about the class. We only attend class once a week for three hours in the evening. Its all just lecture, take some notes if ya want but theres no real point since he posts it online in the school website we use to get assignments and communicate.
>>
>>56486480
Debugging on windows ce can be horrible. I would blame the BSP provider and hardware because I've experienced unexplained errors that can be tracked back to the BSP implementation or hardware.

But when you say that attaching a debugger makes things wonky it sounds like a memory error somewhere. Sure enough memory is allocated and deallocated correctly everywhere?
>>
>>56490071
Explain why the entire class wasn't dropped like you.
What did everyone else do to stay in?
>>
>>56486910
Check this out https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list

I have C++ Primer and Effective C++. I'd say you need to start coding to progress. Codereview is a pretty good place to get your C++ code torn apart.
>>
>>56490104
because most of the class probably responded to him in the school website, like they were supposed to? Did i not explain this clearly
>>
>>56490195
why didn't you do that
>>
>>56490195
There's nothing left to do but go and talk to Dean in person. Present your case and beg for her to re-enroll you. One day to reply to email is not a sensible window.
>>
>>56488843
https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list
Books are often better structured. If you are looking for a STL reference book buy a STL reference book.
>>
>>56487524

>C
>C++
>Perl

Fixed that list for you my friend.
>>
>>56487524
>assembly
mein neger
>>
>>56490295
That's an unusual choice.

Here are languages that I mainly use:
>C
>C++
>Perl
>Python
>Javascript
>Java
>C#
>>
This is all child's play.

You talk so much about programming, but you cant talk about hacking because you cant actually do anything. I run a hacked network of computers that I programmed to click on googles ads in my secret website. I even write my own viruses to make people get hacked into my network. I work at home and have a bunch of screens showing me what people on my network are doing on their screens. I can even set it so that i can see the code of their computers. can you gals do any of that? I dont think so. I bet you dont know where all the websites real hackers hang out are either? if you name them, I just might tell them that marshviperX sent you.
>>
File: Meatballs-for-Spaghetti.jpg (362KB, 1600x1071px) Image search: [Google]
Meatballs-for-Spaghetti.jpg
362KB, 1600x1071px
>>56490405
Stale pasta.
>>
>>56490209
because i never got to it, i already said this earlier. I never got to it, im regretting it big time. I checked monday night late, found out im out and so on.

>>56490227
ill see if i can do this, prob wont budge her though
>>
>>56487524
replace CL with Python and it's best list
>>
File: 1375582105296.png (141KB, 796x631px) Image search: [Google]
1375582105296.png
141KB, 796x631px
>>56490295
>>56487524
>C++
>>
>>56488334

Is COBOL difficult? Would I be able to get a job knowing only one language (for the moment)?
>>
>>56486137

open System

// eval newton polynomial P at X:
let evalPolynomial (a : double[], xData : double[], x : double) : double =
let n : int = xData.Length - 1
let mutable p : double = (double) a.[n]
for i = 1 to n do
p <- a.[n - i] + (x - xData.[n - i]) * p
done
p

// compute coefficients:
let coefficients (xData : double[], yData : double[]) : double[] =
let m : int = xData.Length - 1
let mutable a : double[] = [|1.0 .. 10.0|]
yData.CopyTo(a, 0)
for k = 1 to m do
for i = k to m do
a.[i] <- (a.[i] - a.[k-1])/(xData.[i] - xData.[k-1])
done
done
a

[<EntryPoint>]
let main argv =
let x : double = 5.27
let xData : double[] = [|1.0 .. 10.0|]
let yData : double[] = [|10.0; 2.0; 8.0; 3.0; 6.0; 4.0; 1.0; 9.0; 7.0; 11.0;|]
let a : double[] = coefficients(xData, yData)
let p : double = evalPolynomial(a, xData, x)
xData |> Seq.iter (fun x -> printf "%f " x)
printfn "\n"
yData |> Seq.iter (fun x -> printf "%f " x)
printfn "\n"
a |> Seq.iter (fun x -> printf "%f " x)
printfn "\n"
Console.WriteLine("X = " + x.ToString())
Console.WriteLine("Y = " + p.ToString())
0 // exit code


my latest fizz buzz
>>
>>56491328
Realistically, you would need at a bare minimum five years of experience working with large scale infrastructure, unix systems, COBOL and other languages if you want a job at a bank. If you want to go old school cool, try porting FORTRAN programs to one of your favourite languages. There`s a lot of cool shit written in FORTRAN.
>>
pls help, anyone done QT?
I'm having problems with their networking, specifically simple QTcpSocket.

I need to connect to a server and that works fine with:
tcpSocket->connectToHost(QHostAddress(ui->hostLineEdit->text()), 1337);

and then after it connects successfully I instantly write:
void MainWindow::connectSuccess()
{
clientUsername = ui->usernameLineEdit->text();
ui->stackedWidget->setCurrentWidget(ui->friendsPage);
tcpSocket->write(QString("/CLIENT:" + ui->usernameLineEdit->text() + "\n").toUtf8());
}


that works fine and the server gets the message, prints out the raw for debugging purposes so the information is correct.

Now the problem comes when I try to write to that socket again, somewhere later in the code I do a:
 tcpSocket->write(QString("/CLIENTMESSAGE:" + recipient + ";" + message).toUtf8());

again and the server just doesn't seem to get the message, it doesn't print it out in the console so it basically never gets it.
If I abort the connection and connect to the host again before writing to the socket, it works fine.
I'm guessing this might be a problem with the server, maybe it only reads the first message it gets after getting a new connection.
Server class inherits QTcpServer and is started by 'server->listen'.
After that, it waits for a new connection:
[codevoid Server::incomingConnection(int socketDesc)
{
QTcpSocket* newClient = new QTcpSocket(this);
newClient->setSocketDescriptor(socketDesc);
clients.insert(newClient);
//setup other shit
}] .
So now it has that QTcpSocket of the connected client and waits for the 'readyRead' signal to be sent (This signal is emitted once every time new data is available for reading from the device. - in this case the QTcpSocket ).
Not much here, the slot that deals with that signal is:
void Server::readyRead()
{
QTcpSocket* senderClient = (QTcpSocket*)sender();
while(senderClient->canReadLine())
{
//do shit here
}
>>
File: 1473031911167.png (294KB, 960x800px) Image search: [Google]
1473031911167.png
294KB, 960x800px
Reminder that Haskell is pure and best girl
>>
>>56491633
cancer
>>
>>56491633
qt

i'd >>= her
>>
Do you guys think there's a good reason to use something like C over Python or LISP for doing Euler exercises?
I.e. is the manual IO handling actually adding more good excercises to learn or is it just added busywork on top of the real problem solving?
>>
>>56486480

Do you have an agreement with Microsoft to get support from them about the problem or even the source code? The reason for Windows CE's shittiness is the fact that it uses a custom hybrid kernel instead of Windows NT for some inane reason.

Ideally, you should seriously be looking at Windows IoT, which is based upon NT. It's pretty obvious CE will be quietly deprecated.
>>
>>56491929

Reason to use C for Project Euler is to get better at C. If you're just trying to do the exercises in general and aren't trying to improve at a specific language, use whatever you want.
>>
>>56488843

If you want a reference website, I highly suggest http://en.cppreference.com/w/.
>>
2 year meme degree here, So far we were introduced with C and the basics of webdev shit

Most of our tasks were in C/C++, last year we could choose to stay with C++ or move to Java for the OOP parts and shit.

I chose C++, I liked it, understand it, the pointers and all the stuff etc.

We had an assignment to implement a simple linear regression and neural network that predicts the stock prices, I imagined it how its going to be, spend a day designing the classes (coz OOP was the main subject) and the relation between it, then started to "code" it with C++ and STL.

Two days later it was all done, blackbox verified and OOP pajeet level-enterprice-quality-good.

It was a lot of work, it runs somewhat good, its small program and its, lets say ~90% accurate (which is not good in real world), however.. this summer I started to learn Python just to see what everybody is hating it.

>Took me 3 hours to make the same program, 0 classes, 4 functions and 60 lines of code, including the comments.
>Also added GUI in less than 10 minutes

So tell me again, how is Python shitty ? I mean C++ is great for the game industry I guess, and demanding embedded systems, but for general purpose, where the job just needs to be done, Python is really useful.
>>
>>56491581

I'm just doing a quick scan here on the documentation since I'm not familiar with Qt, but I'm just wondering don't you need to query waitForReadyRead() on the server before reading from the socket?

I can say this doesn't seem to be a client implementation issue.
>>
File: 1473291096431.jpg (13KB, 250x239px) Image search: [Google]
1473291096431.jpg
13KB, 250x239px
>>56485995
Question: What is an elegant way in C (without ++) to calculate the cross sum of a number?
>>
I got one question about C++. Does it have an index for all the standard modules like this?
https://docs.python.org/3/library/index.html
I just wanna learn the basic syntax and then move on to have fun quickly as possible.
>>
>>56492196

What is a cross sum? I'm just looking at Google and it's referencing a puzzle and system of equations stuff which I think has nothing to do with your problem.

>>56492234

Not officially. But seriously, it isn't even 5 posts after, you could just see >>56492023, you lazy ignoramus.
>>
>>56492234
>quickly as possible.
>quickly

not a chance with C++

C++ is life, you need to take your time, just learn the basic OOP
and start with the pointers, when you understand the pointers move to threading and multi threading, then you are at ~40% knowledge of C++

at around 95% starts the fun ;^)
>>
>>56492196
Don't you mean the cross product of two vectors?
>>
>>56492189
yes, I've just read somewhere that that could most likely be the issue. I'll admit I used the server's part from some other example I found, but that one was a chatroom where the client just keeps sending messages and the server distributes that message to everyone else connected to the server.

The problem is I don't know where to put that or how to remake it properly.
Right now, this is how the server works

1. Make Server instance and make it listen on all addresses.
2. On an incoming connection make a new QTcpSocket and save it in the list of currently active ones. Also set up the signals & slots for 'readyRead' and 'disconnected'.
It says that readyRead is sent when new data is available but it doesn't guarantee that it is sent everytime you write to the socket.
The disconnected function is just there to remove the tcpSocket from the list once the connection ends.
3.readyRead looks like this:

void Server::readyRead()
{
QTcpSocket* senderClient = (QTcpSocket*)sender();
while(senderClient->canReadLine())
{
QString line = QString::fromUtf8(senderClient->readLine()).trimmed();
qDebug() << tr("Read line: %1").arg(line);

QRegExp newClientExp("^/CLIENT:(.*)$");
QRegExp clientMessageExp("^/CLIENTMESSAGE:([^:]+);(.*)$");

if(newClientExp.indexIn(line) != -1)
{
QString user = newClientExp.cap(1);
users[senderClient] = user;
sendUserList();
}
else if(clientMessageExp.indexIn(line) != -1)
{
QString recipient = clientMessageExp.cap(1);
QString message = clientMessageExp.cap(2);
QString user = users[senderClient];
qDebug() << "User:" << user;
qDebug() << "Recipient:" << recipient
qDebug() << "Message:" << line;
}
}


Seems like I need to completely change this thing but i have no idea where to even start
>>
>>56492262
>>56492334
I mean something like
qs(1234) = 1 + 2 + 3 + 4 = 10
>>
>>56492371
4 = 1234 / 1 % 10
3 = 1234 / 10 % 10
2 = 1234 / 100 % 10
1 = 1234 / 1000 % 10
you get the deal
>>
>>56492371

I mean, I dunno if you are looking for a one liner or something, but this is as elegant as I can make it.

int n = 1234;
while (n != 0) {
sum += n % 10;
n /= 10;
}


You could probably wrap that in some fancy for loop but whatever, my brain is pretty fried atm.
>>
>>56492522
>>56492506
These solutions are similar to mine, but they are too slow. I need a really fast one. One without divisions would be perfect.
>>
>>56492553
unless you have the number as ascii string, I don't think you can get away without using division.

If >>56492522 is too slow for you, you schould start looking into asm.
But I can't understand why this would be too slow, how many times a millisecond do you need to do this operation? And do you really need to?
>>
>>56492371
while( x > 0 )
{
sum += x % 10;
x /= 10;
}


Oops sorry I did it in "C++". Do the rest of your homework Pajeet.
>>
>>56492553

You could do something like

//Use whatever size you want
char buffer[50];
int sum = 0;
sprintf(buffer, "%d", n);
for(int i = 0; i < 50; i++)
{
sum += buffer[i] - '0';
}


This will ensure you will only use additions and subtractions. I have no clue if this will be faster though.
>>
What's the best programming language *not* inspired by C? I'm tired of all the braces and cryptic function names. Extra points if it's statically & strongly typed.
>>
>>56492728
I can promise you that anything in stdio or any console output will be slower than division. Same with conversion to and from strings.
>>
>>56492747
Haskell lol
>>
>>56492747
any ml
haskell is shit
>>
>>56492728
Inb4: conditional jumps. Loop over uninitialised bytes.
>>
>>56492747

>No braces
>Static and strongly typed
Ada.
>>
>>56491986
>is the fact that it uses a custom hybrid kernel instead of Windows NT for some inane reason.
That particular kernel is real time and have properties that allows it to run on embedded systems with very limited hardware. Also the source code for the kernel should be available under a shared source license agreement.
>It's pretty obvious CE will be quietly deprecated
Actually no. Windows ce is still big business. Pretty long support times at 10 years+ and so far the only kernel from MS providing real time properties. Windows IoT appears to target the same market segment .NET Micro Framework is doing.
>>
>apply for job
>they use angular 1
>mfw have to learn outdated shit

What do
>>
>>56492948
learn React
>>
>>56492136
I see python as a rapid prototype tool and a way to handle frontend stuff that's labour intensive in C++. But are you sure you would have passed the assignment with the python program? Assignments aren't there to prove you can do #import solution.
>>
>>56487524
C# should be on this list, otherwise it's complete.

Also, why Common Lisp and Scheme but not Clojure?
>>
>>56491834
I'd flat map you too anon.
>>
>>56492342
>>56492189
alright I've figured it out

void MainWindow::sendMessage(QString recipient, QString message)
{
if(!message.isEmpty())
{
tcpSocket->write(QString("/CLIENTMESSAGE:" + recipient + ";" + message).toUtf8());
}
}


The problem is here, IT'S MISSING A FUCKING "\n" AFTER THE FUCKING MESSAGE. So I was sending shit to the server without a newline indicator and I guess without that it never got into the state of being ready to read
>>
>>56487874
What is Phobos?
>>
>>56493523
>flat map
triggered
>>
>>56488829
what anime?
>>
>>56493656
new game
>>
>>56493569
You should consider framing your messages and use a readbytes function instead. That is if you want to expand on your program. I'd recommend google protobuf for serialization. Then just send the bytes to read before the serialized data to frame it.
>>
>>56493711
I'll keep that in mind but this program is simply for demonstration for my paper, this is as simple as it needs to be
>>
>>56492652
>while( x > 0 )
>that spacing
No friend, it is you that is the Pajeet.
>>
>>56493837
Mate that % finds the remainder right?
>>
>>56493877
do it. post results
>>
>>56493877
????
>>
>>56492747
Lisp, of course :^)
>>
>>56493877
do you have realistic trap bone structure and height?

if youre over 5'9" don't bother.
>>
>>56493912
5'95", any solutions? Bone structure isn't bad
>>
>>56492904

>real-time

Yeah, if you want to talk about something on the scale of 10-100 ms real time.
>>
>>56493902
Did you even read the post?
>no braces
Yeah, it just has dozens more parentheses instead
>cryptic function names
setq, rplaca, princ, terpri, mapcon, progn, etc.
>statically & strongly typed
Pfft
>>
>>56493950
You're 13 feet tall?
>>
>>56493968
kek, meant 5'5,9", sorry tired
>>
>>56486166
>You're trying to subtract an int from a slice, which don't work
Of course it would work for numpy arrays.
>>
>>56493997
>5,9

Fucking communist.
>>
File: le randlet.jpg (198KB, 1267x714px) Image search: [Google]
le randlet.jpg
198KB, 1267x714px
>>56493912
>5'9''
Further proof trannies are just beta manlets that can't get laid.
>>
>>56493957
I don't think you understand what real-time OS is.
>>
>>56492904
Windows CE is a realtime OS?
>>
File: tek.webm (1MB, 720x1280px) Image search: [Google]
tek.webm
1MB, 720x1280px
>>56494019
>5'9"

is literally the average height for an American male

I'm 5'9" but I live in Montenegro where the average height is 6'4" for men, and it's 5'11" for women.

Literally our women are taller than your manlet country's men. HA!

Although I'm still short I would be average in your manlet country.

It really explains your giant military budget quite well...
>>
>>56494197
>he keeps posting this disgusting chipmunk ""woman""
>>
>>56494213
>said the literal tripfag
>>
>>56494156
Yes. It's even a hard real-time system if your application allows 50-100 microseconds of jitter.
>>
File: mpv-shot0017.png (2MB, 1920x1080px) Image search: [Google]
mpv-shot0017.png
2MB, 1920x1080px
Is there IDE for python with GUI assistance?
>>
>>56494197
>projecting this much
>bragging that the average woman in your country is 2 inches taller than you
Insecure manlet is insecure.
>>
>>56494222

That's really not relevant to this """woman"""'s attractiveness.
>>
>>56494213
>>56494253
m8 you get off on sheboons, you're not one to talk
>>
File: shlong.png (250KB, 1092x446px) Image search: [Google]
shlong.png
250KB, 1092x446px
>>56494245
i don't really give a shit, my usual pickup line is "I'm bigger than your boyfriend"


>tfw there has never been found any correlation between penis size and height/weight/race of a man

dicklet BTFO
>>
>>56494224
holy crap. No wonder WP7 was so smooth...
>>
>>56494197
>6'4''
ma da
ak dodjes do Zagreba drage volje cu ti pomoci s tranzicijom ;^)
>>
>>56494238
VS does Python, dunno about GUI

>>56494289
>*.png
Why did you go to that kind of site?
>>
>>56494272

At least they have the correct parts for a woman.
>>
>>56494289
>i don't really give a shit
Doubtful, short men look pathetic to females. Claiming you have a big dick just makes you sound even more desperate.
>>
>>56494213
Hi there!
You seem to have made a bit of a mistake in your post. Luckily, the users of 4chan are always willing to help you clear this problem right up! You appear to have used a tripcode when posting, but your identity has nothing at all to do with the conversation! Whoops! You should always remember to stop using your tripcode when the thread it was used for is gone, unless another one is started! Posting with a tripcode when it isn't necessary is poor form. You should always try to post anonymously, unless your identity is absolutely vital to the post that you're making!
Now, there's no need to thank me - I'm just doing my bit to help you get used to the anonymous image-board culture!
>>
>>56494304

mogu samo curu da ti jebem dok ti sedis u cosku dickletu jedan >>56494289
>>
>>56494289
>being this desperate
cringed
>>
>>56494316
I don't claim, I have it lol
and let me tell you they care a lot more about penis size than height, don't be a salty little dicklet now
>>
>>56494318
fug :^(
>>
>>56494336
Sure thing kiddo, they're just saying that so they don't make you cry.
>>
I'm almost 6 feet, do I still stand a chance at becoming a qt programmer?
>>
>>56494336
>I don't claim, I have it lol
Doesn't matter. All you can do to women is claim you have it. You can't exactly whip it out in most situations. That's what's so pathetic about it.
>>
>>56493902
Lisp is shit

>>56494336
Do you just go up to random women and take your dick out? Fucking pervert, kill yourself
>>
>>56494348
hahahha oh you poor thing...

american women don't fuck niggers for no reason you know hahah get cucked boi
>>
File: pathetic.jpg (21KB, 500x311px) Image search: [Google]
pathetic.jpg
21KB, 500x311px
>>56494365
>still projecting and deflecting
>>
>>56494358
>in the club
>take her hand put it on my crotch
>she feels my penis and thinks I'm erect
>I whisper "I'm still flacid"
>she realizes I'm bigger flacid than her boyfriend is erect

boom she's wet
>>
>>56494046

Let me reiterate. I don't consider soft real-time operating systems to be a RTOS at all, when all it is doing is applying a built in QoS and allocating resources to the point where certain tasks will complete better but nowhere near what hard deterministic RTOS require. I would just rather use Linux with real-time patches since I can probably get around the same or better guarantees from using a soft RTOS.
>>
Fuck, I'm leaking threads.
>>
>>56494385
You can't consent, you're clearly underage
>>
File: i've had you up to here randlet.jpg (76KB, 480x320px) Image search: [Google]
i've had you up to here randlet.jpg
76KB, 480x320px
>>56494385
keep dreaming faglet
>>
>>56494404
are you even 6 inches? do you actually think women like your little pipi? lmao
>>
>>56494385
If you say so.

Still doubt she would do anything but fuck you and keep it private. Most women will utterly refuse to go out with anyone shorter than them because they don't want to be seen in public with a bf shorter than them. I guess you know that by now though.
>>
File: sheboon close.jpg (288KB, 1536x2048px) Image search: [Google]
sheboon close.jpg
288KB, 1536x2048px
>>56494315
They sure don't look that way.
>>
What the fuck is even going on this thread?
>>
File: 2a6.png (260KB, 563x542px) Image search: [Google]
2a6.png
260KB, 563x542px
>someone asks me if that's a roll of quarters in my pocket or if I'm just happy to see them
>it's actually a roll of silver dollars
>>
File: f0de.png (30KB, 512x204px) Image search: [Google]
f0de.png
30KB, 512x204px
what's the notation on f mean? i understood d to mean "a given number of a's followed by a given number of b's", e.g. aaaab, a, bb, empty string
>>
Monad transformers should be in base

>>56494429
Stupid frogposter
>>
>>56494291
Just because the OS is real time doesn't mean you have to write software that utilize it. They might have used scheduling features for communication, audio and video stuff though. Win CE is light with little overhead.

There exists software to turn your current windows install into a real-time system with timers that have 1µs resolution. Not that it will help anything with your day to day use.
>>
>>56494427
Thirsty manlet trying to be an internet tough guy
>>
>>56494434
U is union, as in "both"

I assume:
* is "any number of"
+ is "one or more"
>>
>>56494448
I know. But Wp7 was smooth af. Things got waay slower with WP8 when they switched to NT.
>>
File: tumblr_nnvy35p9VS1titub2o1_500.jpg (42KB, 409x409px) Image search: [Google]
tumblr_nnvy35p9VS1titub2o1_500.jpg
42KB, 409x409px
>>56494438
mtl should be in base
>>
File: 1473337501637.jpg (121KB, 600x665px) Image search: [Google]
1473337501637.jpg
121KB, 600x665px
Ruby, if you're still here, get a look at this shit. Come on.
>>
Comonad too

>>56494466
Stupid frogposter
>>
>>56494454
that's what i ended up interpreting it as also. thanks
>>
>>56494197
Who is this semen receptor monster?
>>
>>56494506
>Trump
>Hillary
>Gary Johnson
What a great selection of presidential candidates you have picked this year America.
>>
>>56494312
>VS
So you can create a simple program with very basic knowledge ?
Like this
https://www.youtube.com/watch?v=Is1EHXFhEe4
>>
>>56494393
Windows CE is not a soft real time system. It fits the definition of a hard real-time system according to OMAC.

>I would just rather use Linux with real-time patches since I can probably get around the same or better guarantees from using a soft RTOS.
You can use regular Linux without patches because that also fits the definition of a hard real-time system according to OMAC. You spouting 1-100ms jitter times for windows CE is just nonsense with no basis.

You can use RTAI to improve the numbers but since it's free as in beer there is no one to hold responsible. If you require full determinism and reliability your only choices are QNX Neutrino and VxWorks. Chances are you don't.
>>
>>56494631
How do I make windows run more realtime? Any resources?
>>
>>56494538

Just fuck my election up. :(
>>
>>56494655
I know of intervalzero. They were first to turn windows into a RTOS.
>>
>>56494661
i know, i wish we had 2 neocon republicrats running instead of just 1
>>
>>56493912
6'5" here, what do
>>
>>56494713
interesting shit..

Is there a way to disable memory paging for certain applications?
>>
>>56494506
>>56494538
>>56494661
>>>/pol/
>>
>>56494506
So what is Alleppo?
>>
>>56494357
Yeah traps are pretty shitty programmers after 5'10" but if you try hard enough..
>>
>>56494841
Gary, you can just fucking use google you know
>>
>>56494771
I'm not that familiar with their product but I do know they claim to have a deterministic memory pool. I only have dev experience with VxWorks, win ce and a small local RTOS product. Nothing too interesting to discuss. If you are interested in real-time programming I suggest picking up a book and do some examples.
>>
>>56494864
Oh it's a city in Syria. Lol, who cares. I acknowledge the US's hand in the creation of ISIS and the destabilization of the country but interfering in other countries was the reason we are in this mess, so let's just stay out of it from now on. Russia has an interest in Syria, let them rebuild the country. Fuck the refugees, they can stay put and rebuild their country once the dust settles.
>>
>>56494904
and you're a gary johnson supporter? because his refugee position is to let them all in
>>
Can someone help me with modifying this script?
How to add and exit function to python script?
I want this script to exit with enter.
http://hastebin.com/cekikinomi.vala
>>
>>56494855
>tfw i'll never be a good programmer
>>
what should i read after "Programming: Principles and Practice Using C++"?
>>
>>56495218
>tfw shitty programmer so i do security instead
actually pretty comfy
>>
File: specialNeedsAnon.png (480KB, 726x782px) Image search: [Google]
specialNeedsAnon.png
480KB, 726x782px
>What are you working on, /g/?
I'm officially about to become a Linux Kernel Developperâ„¢, hold me /g/.

>Task 10 of the Eudyptula Challenge
>Create a patch that fixes one coding style problem in any of the files in drivers/staging/
>Get the patch accepted into the subsystem maintainers git tree.

I can do this. Maybe.
>>
File: 1473278144208.jpg (32KB, 567x561px) Image search: [Google]
1473278144208.jpg
32KB, 567x561px
>>56495331
>a patch that fixes one coding style problem
>coding style problem
>>
>>56495297
C++ Primer and maybe effective C++ are good starts.
>>
>>56494238
try codimension(but it's python2 only)
>>
>>56495369
Fuck that, if I even manage to submit a proper patch and get it mainlined without fucking it up I'll be happy.
I can write code that actually does something later.
>>
>>56495331
>Developper
You're no autist. I've been lied to.
>>
>>56495039
No. I don't think I support any of the candidates, but I'm voting Trump. Fuck Hillary.
>>
>>56495716

Benny?
>>
>>56495716
>My face is pretty passable but my dong is huge
Nothing a bottle of scotch and a rusty bread knife can't fix :^)
>>
>>56495795
>tfw no sadistic psycho bf to tear me to pieces and code with
>>
>>56495852
is your penis feminine?
>>
>>56495996
kinda
>>
File: 1460115987647.png (30KB, 246x200px) Image search: [Google]
1460115987647.png
30KB, 246x200px
>tfw it's been two days and i still can't figure out this combobox nullref shit
If/else statements aren't even fired. I can't even try/catch it. I don't even know how I can do this thing differently. It's not even a big program - it's 100 LOC. The cli version of it works just fine.

JUST
>>
>>56496092
>try/catch

fuck off pajeet
>>
>>56496112
ples sir i needings directions to nearest street
>>
File: 1470268053228.png (2MB, 1920x1080px) Image search: [Google]
1470268053228.png
2MB, 1920x1080px
>>56496092
>OOP + imperative + null references
>>
>>56496092
poast code?
>>
>>56496161
A match made in heaven.
>>
>>56496210
http://pastebin.com/xJENSHy0
Straight from the shitting street

Line 81 always throws a nullref if I try to change the first combobox after selecting something from it AND selecting something from a second combobox; unloading the second one doesn't stop it, either.
>>
>>56496295
*line 81 should be line 63
>>
>Rust still missing untagged unions
FUCK OFF
>>
>>56495716
yeah not a problem, my cock is pretty feminine and it's 20-21cm
>>
>>56496295
>>56496327
It's probably the case that countyBox.SelectedItem is null, probably because it doesn't have a meaningful value? (i.e. nothing selected, or multiple items selected?)

Consider just not doing anything in that method if SelectedItem is null?
>>
NEW THREAD!

>>56496465
>>
>>56496355
They're already in nightly: https://github.com/rust-lang/rust/pull/36016

Example:
#![feature(untagged_unions)]

union Foo {
x: u64,
y: (u32, u32),
}

fn main() {
let f = Foo {x:1};

println!("{}", unsafe{f.x});
println!("{:?}", unsafe{f.y});
}


Output:
1
(1, 0)
>>
>>56496527
Oh, neat.
>>
>>56490494
> shitty inconsistent syntax
> shitty inconsistent semantics
> author is clinically retarded
> no fast compilers
> no advantages over cl to make up for it's shittiness
>>
>>56492652
>>56492371
>>56492262
 digitSum x = x mod 9 
>>
>>56486610
>xD
Thread posts: 314
Thread images: 40


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.