[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y ] [Search | Home]
4Archive logo
/dpt/ - Daily Programming Thread
If images are not shown try to refresh the page. If you like this website, please disable any AdBlock software!

You are currently reading a thread in /g/ - Technology

Thread replies: 311
Thread images: 34
File: NSA.jpg (89 KB, 1366x768) Image search: [iqdb] [SauceNao] [Google]
NSA.jpg
89 KB, 1366x768
old thread: >>52975775

What are you working on, /g/?
>>
Which unit testing framework for c++ would you recommend?
>>
>>52980170
py.test
>>
Installing Gentoo.
>>
finally, a good OP
>>
>GTP failing to respond to the call out

no type erasure = no function signatures
>>
can someone troubleshoot this function in my java game?
    public static void executeSkill(Entity caster, Skill skill, Entity target){

damage(caster, target, skill.getDamage());
System.out.println(caster.getName() + " " + skill.getCombatText() + " " + target.getName());


System.out.println(skill.getSkillName() + " has " + skill.getBleedStacks() + " stacks of bleeding associated with it");

if( skill.getBleedStacks() > 0)
{
target.setBleeding(skill.getBleedStacks()); System.out.println(" BLEED"); System.out.println("");
}

target.setBleeding(skill.getBleedStacks());

System.out.println(target.getName() + " has " + target.getBleeding() + " stacks of bleeding");
}



and this is the output
 trsgh attacks GEORGE SOROS
Server Artery has 3 stacks of bleeding associated with it
BLEED

GEORGE SOROS has 0 stacks of bleeding
>>
Writing Java on command line.
Is there a way I can have it auto-compile external .jar files so i don't have to type it in every time?

I'm having a hard time finding the right things to say to type into google :(
>>
>>52980232
Use an IDE.
>>
>>52980232
Use C#.
>>
>>52980173
Can I unit test c++ code with python somehow?

Or if you're not being serious, right now I'm deciding between either Aeryn or Boost.Test. Any thoughts?
>>
>>52980209
Is that output expected or the actual current output?
>>
Someone told me to switch to Orwell Dev-C++ from regular Dev-C++ and now my DLLs are 7 times as big. Why?
>>
>>52980255
it's the actual output. i'm trying to get it to apply severArtery's bleeding stacks to enemy, so george soros should have 3 stacks of bleeding after the skill is executed
>>
>>52980209
Entity.setBleeding or Entity.getBleeding is fucked up. Probably both.
>>
>>52980209
if( skill.getBleedStacks() > 0)
{
target.setBleeding(skill.getBleedStacks()); System.out.println(" BLEED"); System.out.println("");
}

target.setBleeding(skill.getBleedStacks());



What are you doing here? You're first checking, then setting the bleed stacks regardless. It doesn't make sense.
Fix that first and if it still doesn't work there's something wrong with one of your setters or getters, it's not like we can tell.
Why don't you learn how to debug, set a breakpoint and go from there?
>>
>>52980279
>Server artery has 3 stack of bleeding associated with it
>Server
There's one fuck up, not related though.

setBleeding or getBleeding is fucked, post those and we might be able to get somewhere.
>>
>>52980103
if it was not about removing the dependency on windows only namespaces like system.drawing and system.windows then ok I guess.

You're still reading the stream into a bitmap and then converting to a bytearray whereas the stream is already a stream of bytes, you can just read it to the end and return the array.

i would recommend trying to get it to work on .net core too though since I think the only dependency that doesn't work with .net core are these two.
>>
>>52980290
    public void setBleeding(int bleeding) {
if (this.bleeding > 0)
{
this.bleeding = bleeding;
}
}

i have zero idea why i put that condition in there. i was up until 1 on this last night so i guess i was tired. thanks
>>
>>52980346
Oh, really? I never paid much attention to the return type, I didn't know shit about it when I wrote it.

I'll go ahead and just do that then.

I wish there was a tool for removing unused references, hard to tell exactly what you are/aren't using in a project.
>>
>>52980190
>i wish the us american presidential election theatre wouldn't affect me as a european

It doesn't.
>>
>>52980170
GoogleTest, it even comes with Google Mock for mocks.
>>
>>52980207

Good. Functions are garbage anyway.
>>
>>52980374
>It doesn't
American policy directly affects the entire world
>>
"Adapted from the Node.js Policy on Trolling " - Rust Code of Conduct
>>
I'm trying to make a chrome extension or superscript that can replace a .js file called with a script tag
Does anyone know how to do this?
>>
>>52980248
Fuck that

>>52980251
Fuck that
>>
>>52980384
Any form of reducing redundancy requires something akin to type erasure
>>
int average_of_two_ints(int a, int b)
{
return (int)(((long long)a + (long long)b) / 2);
}


Am I a real coder now?
>>
>>52980260
welcome to the botnet
>>
>want to implement mouse panning in a QWidget
>mouse stops at the edge of the screen
>try to teleport cursor to the center of the widget
>QCursor.setPos sends another mouseMoved event
>view pans back to the beginning
>>
>>52980421

Go on. I'm interested.
>>
>>52980461
fails given sizeof(long long) == sizeof(int)
>>
>>52980461
no
https://stackoverflow.com/questions/5697500/take-the-average-of-two-signed-numbers-in-c
>>
>>52980482
int average_of_two_ints(int a, int b)
{
return (int)(((long long long)a + (long long long)b) / 2);
}
>>
>>52980461
Don't forget this!

#if SIZEOF_LONG_LONG < SIZEOF_INT * 2
#error "Compilation not supported on this platform. (Long long is not long enough.)"
#endif
>>
>>52980480

All values are actually distinct subtypes
>>
N#
PORTABLE ~~~ >>52980516
T#
>>
>>52980507
>using long long long
>not using long long long long
>>
>>52980532

I don't follow
>>
http://www.strawpoll.me/6819992
>>
>>52980153
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
https://software.intel.com/en-us/isa-extensions/intel-sgx
>>
>>52980613

These selections are retarded. I picked C, although I think Scheme is pretty good, too.
>>
>>52980599
Have you used the Option type in C#?
>>
>>52980636
Why are they retarded? What would you have picked if it existed?
>>
>>52980637

What option type? Are you sure you aren't thinking about F#?
>>
>>52980658
Oh I mean nullable, which is basically option
>>
>>52980633
WTF is this anon?
>>
>>52980678

Nullables aren't as robust as real option types. In any case, I've only used them sparingly..
>>
Writing a hobby os for ARM64 with virtualization of other operating systems
>>
What are the conventions surrounding memory management in SDL using C++? Do people just free resources wherever like in C, or handle them using destructors on their application's objects, or manually write RAII wrappers for SDL types, or use templated helper functions for RAII on SDL types?

All these options seem to sort of suck.
>>
>>52980633
>>52980679
looks like a new anti-reverse-engineering set of instructions of some kind...
>>
>>52980346
Cleaned the dependencies up massively, only has 2 .NET dependencies as well as both Newtonsoft.JSON and HtmlAgilityPack.

Hopefully that should make it much easier to use.
>>
>>52980734
https://software.intel.com/sites/default/files/332680-002.pdf
https://software.intel.com/sites/default/files/managed/3e/b9/SF15_ISGC003_81_SGX_DL_100_small.pdf
>>
Every CS major should know

C
Python or other high-level language
Assembly
Haskell
Some Lisp
A little bit of Shell
Prolog
SQL
>>
>>52980879
>C
>relevant in 2019

lol grandpa
>>
>>52980890
Really C is the language you pick out of that? Not Prolog, not Haskell, not Assembly, not Lisp, but """""""""C"""""""""?
>>
File: 1421519955428.jpg (46 KB, 413x427) Image search: [iqdb] [SauceNao] [Google]
1421519955428.jpg
46 KB, 413x427
>working on path tracer
>mfw I find myself struggling to understand the most basic linear algebra shit like ray / object intersections
>lecturer assumes we all had prior experience with ray tracers
>I didn't. No ray tracing in my bachelor graphics course years ago.
I have no idea how I'm doing a master's in CS. And doing well at that. Either I feel way more retarded than I really am or my uni has set the bar ridiculously low.

Ah well, any place to brush up on my linear algebra? Bonus for being in the context of graphics.
>>
>>52980748
looks much nicer now

however, your async methods are now calling this method that blocks until it has read the entire image, which I think "new Bitmap(responseStream)" was doing already but I didn't notice.

your readtoend code looks quite confusing, i haven't walked through it line by line but I believe you can rewrite it in just a few lines using the MemoryStream class and CopyToAsync method
https://msdn.microsoft.com/en-us/library/hh159084(v=vs.110).aspx
>>
>>52980890
C has great educational value
>>
>>52980901
>>52980928

le mayo ur trold
>>
>>52980712

I can't actually think of how to best phrase this, do you know about algebraic datatypes and dependent types?
>>
How do you find people to code and collaborate with? The only people that ever actually respond to me on GitHub are kids or people with terrible English.

I started a voxel editor project in Java. It's extremely basic (in terms of use) to where any Becky or Chad can create their own 3d models out of cuboids. It has fill mode (create cuboids) and sculpt mode, where it starts with a cuboid and then you can chisel it out to what you want. Then it can be exported for 3D printing. But it's gotten extremely tedious to do by myself.
>>
>>52980942

Not particularly because I have little interest in type theory
>>
Umaru-chan edition dpt please
>>
so i fixed the issue of bleeding not getting applies whatsoever, but now it's like the boss is applying it to himself on his own turns. this is the combat log of turn 1
 
:::::::::::::::::::::::::::::::::::::::::::::::::
eojir(1):: HP: 100/100
::::::::::::::::::: ENERGY: 100/100
:::::::::::::::::::::::::::::::::::::::::::::::::
GEORGE SOROS(100):: HP: 9999/9999
:::::::::::::::::::::::::::::::::::::::::::::::::

/////////////// TAKE ACTION /////////////////////
1 - Attack: Basic Attack (10 Damage, 0 Cost)
2 - Sever Artery: Bleed an enemy for 3 turns (8 Damage, 5 cost)
3 - Bloodlust: Gain Bloodthirsty (+Crit %) and Furious (+DMG) (8 Cost)
4 - Bandage Wound: Heal self for 25 (15 cost)
/////////////////////////////////////////////////
2
eojir hit GEORGE SOROS for 8!
eojir bleeds GEORGE SOROS

GEORGE SOROS is bleeding! (3 turns remaining)
Bleeding damaged GEORGE SOROS for 5!
(((((((((Press ENTER to continue...)))))))))

GEORGE SOROS hit eojir for 10!
GEORGE SOROS attacks eojir

GEORGE SOROS is bleeding! (5 turns remaining)
Bleeding damaged GEORGE SOROS for 5!
(((((((((Press ENTER to continue...)))))))))


his bleeding should go from 3 to 2, not from 3 to 5.

here's my combat class:
http://pastebin.com/8pQfxFcN

and here's the relevant part of my GameStart class's main
http://pastebin.com/pwTCdFs2

any insight would be greatly appreciated
>>
>>52980981
Set a breakpoint in Entity.setBleeding and see where it gets called from.
>>
>>52981104
what's the code for that? i'm very new at coding
>>
>>52980927
Eh byte arrays were starting to confuse me, I ended up just copy & pasting the most convincing looking bit of code I could find.
>>
File: file.png (2 KB, 506x36) Image search: [iqdb] [SauceNao] [Google]
file.png
2 KB, 506x36
real readable language, guys!
>>
File: error.png (49 KB, 718x547) Image search: [iqdb] [SauceNao] [Google]
error.png
49 KB, 718x547
WHY THIS NIGGER FUNCTION DOESNT WORK

I CLEARLY MADE A NEW SPRITEBACH

RREEEEEEEEEEEEEEEEEEEEEEEE
>>
>>52981145
Click in the gutter on the left side of your code window, next to the line numbers. A stop sign or a red dot should appear. Then, run your program using the "Debug" menu item instead of "Run". The program will stop at the indicated line and the screen will change to show you the call stack and local variables. Press the "Continue" button repeatedly to see each subsequent stop at that line of code.

If none of that makes sense it's because you are not using an IDE like Eclipse or NetBeans. I don't even want to think about using a command-line Java debugger.
>>
>>52981158
Spanish orthography is pretty consistent, imo.
>>
Is it possible to encrypt something in such a way that Bob can decrypt it and Alice can decrypt it, without needing both of their keys at once?
>>
requesting someone who knows their shit to make one of those iceberg pics seen on /v/ but with programming languages
>>
>>52981233
Encrypt it twice, once with each person's private key. Transmit both cyphertexts.
>>
>>52981257
So you will always need an extra copy per key?
>>
IGNORE TRANNY THREADS

REPORT TRANNY POSTERS
>>
>>52981189
i figured it out. it's because i had my setBleeding function to set bleeding to getBleeding + parameter, but i on my turn counter that supposedly ticks it down every turn i had it set bleeding to getBleeding - 1, which ended up setting it twice getbleeding -1

ty
>>
>>52981281
To do otherwise risks exposing the other person's key to a known-plaintext attack.
>>
>>52981181
>has great debuggers
>has perfect stack traces
>java fags can't even figure why a value is null
>>
>>52981366
you really need to learn how to use break points and debug your code though.
>>
>>52980965
Ok, ignore everything else I said, here's my quickest explanation:

"In programming language theory, subtyping (also subtype polymorphism or inclusion polymorphism) is a form of type polymorphism in which a subtype is a datatype that is related to another datatype (the supertype) by some notion of substitutability, meaning that program elements, typically subroutines or functions, written to operate on elements of the supertype can also operate on elements of the subtype."

Anything that operates on an int can operate on an (int in the range 2..5) and can operate on an (int that is 2), therefore they are subtypes of int
Any distinct value of a type is inherently a subtype of that type
This information isn't always fully used, therefore the exact type isn't used, therefore type information is lost - type erasure


I could explain algebraic data types though to get you to switch to F#
>>
>>52981496

Alright, I followed you there, but I when I was talking about type erasure I meant in the context of generics. Reified generics are clearly better.

>I could explain algebraic data types though to get you to switch to F#

The first part of your post was pretty good, but here's where you lost me. I will NEVER switch to F#.

NEVER!

NEVER!!!!
>>
do {
printf("Please enter your number: ");
scanf(" %d", &number);
} while (number == 0);

It works fine if user inputs number, but ignores scanf and just prints "Please enter your number: " repeatedly if not. Supposedly the space before %d should flush it but that isn't working.
>>
>>52981632
well, it is not flushing. did you try to flush it yourself?
>>
>>52981632
isnt that busy waiting?
>>
>>52981632
...OBVIOUSLY scanf will fail if the entered data doesn't match the pattern. You're telling it to save an entered value that matches "%d" to number. A non-number value won't match %d so it doesn't work. This isn't rocket science.
>>
>>52981335
femmebois are not trannies
they're better
>>
>>52981539
why do you hate f#

algebraic data types
type inference
quotations and implicit quotations
expression based
>>
hey lads got a week or so of spare time im a novice programmer and I want a project to work on that isnt arbitrary shit like reading text files and organising contents, any suggestions?
>>
>>52982036
write a compiler
>>
>>52982036
Create a federated audio and text chat program.
>>
>>52982036
Naive Bayes classifier in C.
>>
>>52982036
use RMI to monte-carlo integrals
>>
>>52981989
>why do you hate f#

because I'm not a functional-fag... yet.
>>
Anyone familiar with Flash/AS3? I've got a classic tween with three keyframes that makes a graphic bob up and down, and some event listeners attached to the graphic that trigger animations. Problem is, when it passes the middle keyframe (the object bobs upwards), nothing responds. Event listeners work fine when the object is on its path down. I'm completely mystified.
>>
>>52982178
b-but it's imperative too
>>
File: 6Uw6pHc.jpg (20 KB, 360x240) Image search: [iqdb] [SauceNao] [Google]
6Uw6pHc.jpg
20 KB, 360x240
>coding in matlab
>mfw have literally never used matlab before for anything
>prof expects us to build program to analyze words and shit
>>
>>52982252
if only there were tutorials for matlab on the internet
>>
so right now my java program just prints output on the command line. System.out.println();. how do i make it instead have a separate "environment" so to say? I want something that i can display images on and have the text scroll over the images
>>
>>52982313
you use swing, worst GUI library in existence
>>
>>52981181
You're getting a precondition wrong. I don't know what and I don't know the library, but you've got the source and can see the line that has the error. Man up and take a guess.

You might even try seeing if there are docs you can check...
>>
>>52982054
>>52982071
these sound the most appealing although a compiler sounds like itd take an obscenely long time so I'd like to do the audio and text chat thanks for the help family~
>>
>>52982389
>a compiler sounds like itd take an obscenely long time
not really, you can do quite much in 1 week.
>>
File: gamuexcelent.webm (697 KB, 320x480) Image search: [iqdb] [SauceNao] [Google]
gamuexcelent.webm
697 KB, 320x480
>>52982387
I got it solved, forgot to initialize player texture.
>>
File: 1451977149814.jpg (490 KB, 1000x750) Image search: [iqdb] [SauceNao] [Google]
1451977149814.jpg
490 KB, 1000x750
>>52982272
yes that's what I'm using, just complaining
>>
Do you think men will ever be better programmers than women, /g/?
>>
>>52982464
Only if they wear their clothes
>>
File: 1426616328934.jpg (7 KB, 184x184) Image search: [iqdb] [SauceNao] [Google]
1426616328934.jpg
7 KB, 184x184
>>52982464
only once men are no longer allowed to be programmers

for anyone here still in college like me
how many girls are in your class?
how many are attractive

>7 in the biggest class
>2
>>
>>52982473
We're not in an anime, that would be an extremely weird thing to do IRL.
>>
File: 1453766943607.jpg (37 KB, 600x450) Image search: [iqdb] [SauceNao] [Google]
1453766943607.jpg
37 KB, 600x450
>>52982272
>tfw you need a registered account to access documentation for any matlab version other than the one currently out
>>
File: output.webm (772 KB, 800x473) Image search: [iqdb] [SauceNao] [Google]
output.webm
772 KB, 800x473
My Calculator is almost done, any final thoughts /g/?

Source code soon!
>>
>>52982524
We're in /dpt/
>>
File: stop.png (25 KB, 640x394) Image search: [iqdb] [SauceNao] [Google]
stop.png
25 KB, 640x394
>>
>>52982464
oh it's simple
when 100% of the best programs are written by men
>>
File: best ide.png (4 KB, 138x39) Image search: [iqdb] [SauceNao] [Google]
best ide.png
4 KB, 138x39
>>52982579
Can you not do this every time?
>>
>js
items.join(separator)


>python
separator.join(items)


wtf
>>
>>52982579
>>
>>52982555
Is it only scientific?
I would like it if it had a programmer calculator too. I like the way windows phone does it, you rotate the phone one way to get scientific, and rotate the other way to get programmer.
>>
File: k.png (867 KB, 3360x2100) Image search: [iqdb] [SauceNao] [Google]
k.png
867 KB, 3360x2100
>>52982579
no
>>
As someone interested in perusing Applied Statistics in grad school, would it be worth it to self teach "R", considering my university has no courses that feature it?
>>
>>52982675
does the weird mix of languages not bother you
>>
First for Erlang.
>>
>>52982757
ok psychobitch
>>
>>52982675
those fucking variable names
>var indexOfTheArrayIUsedInAFunctionOnLineThreeHundredAndTwentyFive = 1;
>>
>>52982716
Python seems to get quite some use in sciences via NumPy/SciPy (and I recall there was a package similar to R), but is more universal overall, compared to just R
>>
File: wewLad.webm (256 KB, 800x630) Image search: [iqdb] [SauceNao] [Google]
wewLad.webm
256 KB, 800x630
>>52982666
> 666
nice one satan!

Also webm related

>>52982737
nope it's fine
>>
>>52982806
ugh that ungodly flip anim
>>
>>52982802
That's almost verbatum what my CS flatmate told me lol. Wanted a second opinion to be sure, thanks anon.
>>
>>52982797
it's great for readability, also you only write it one time, autocompletion does the job later.
>>
>>52982802
It's also much much slower
>>
>>52982823
Vox populi!
You're always welcome.
>>
>>52982555
>infix notation

Gross. Post it again when you make an RPN version.
>>
File: 1455480316446.png (39 KB, 1016x256) Image search: [iqdb] [SauceNao] [Google]
1455480316446.png
39 KB, 1016x256
>>52980153
>coders will defend this
>>
>>52982859

These are the same people who got master/slave replaced by leader/follower.

Just retardation.
>>
>>52982859
>parent/child
Isn't this derogatory to childless women?
>>
>>52982806
Yeah, that looks fine, but is it only simple and scientific?
>>
>>52982914
...and that's why SJW pyramid will implode at some point
they'd just eat each other
>>
>>52982929
for the moment yeah
>>
>>52982859
Isn't parent and child used, like how init culls all the orphan processes because they have no parent?
>>
>>52982937
It's looking good.
>>
File: output.webm (852 KB, 800x613) Image search: [iqdb] [SauceNao] [Google]
output.webm
852 KB, 800x613
>>52982822
Looks better on the iPad tho
>>
>>52982972
>>>/wdg/
>>
>>52983010
goddammit, I should've thought about that.
>>
>>52982975
Thanks anon!
>>
>>52982524
>implying anyone in dpt ever codes outside of their bedroom
Seriously tho, don't try to crossdress in secret if you have roommates, they will find out sooner rather than later.
>>
>>52983062
An-anon
di-
did you actually fall for the crossdressing meme
>>
>>52983082
> implying it's just a meme
It's scientifically tested anon, cute boys dressing like girls does better code.
>>
>they think crossdressing makes them better at programming
>they'll never know that public nudity makes you even better at programming
>>
>>52982914
"parents" are a social construct and greatly offensive to people who grew up without them. No one should have parents if everyone can't have them!
>>
>>52983191
do drugs make me better at programming?
>>
>>52983203

I identify as a socialist and proud Bernie supporter and the concept of "having" things is greatly offensive to me. Please do not talk about ownership.
>>
>>52983243
I identify as a std::unique_ptr and proud owning template and the concept of "sharing" things is greatly offensive to me. Please do not talk about sharing.
>>
>>52983326

That is offensive because I am a std::weak_ptr.
>>
So I think I'm fucking something up. I'm working on a basic double linked list that I assemble directly in the class for some small project for a class. Here is how I assemble the linked list:

void CommunicationNetwork::buildNetwork()
{
head = new City("Los Angeles",NULL,NULL,"");
City *tmp = head;
int i = 1;
while(i < 10){
City *current = new City;
current -> previous = tmp;
current -> next = NULL;
current -> cityName = cList[i];
tmp -> next = current;
tmp = current;
i++;
}
City *tail = tmp;
tmp = head;
cout << "===CURRENT PATH===" << endl;
cout << "NULL <-> ";
while(tmp != 0) {
cout<<tmp -> cityName << " <-> ";
tmp = tmp -> next;
}
cout << "NULL" << endl;
cout << "==================" << endl;
}


But for whatever reason, the address of tail is changing between calling this, and just a function that prints out the address of tail (the print function)

I'm not calling anything else in between this and the other function with just a cout << tail; . So I'm becoming a little dumbfounded on this.

Any ideas? Something weird in my header file?

Is there anything
>>
>>52983374

I identify as Jeb Bush and a proud cuckservative and the concept of appearing weak is greatly offensive to me. Please do not talk about weakness.
>>
>>52983402

L O W
E N E R G Y
>>
>>52982555
> no feminine colors
Your calculator is offensive and privileged, I will rate it 1/5 on the app store.
>>
your shitposting is offensive to me, please kill yourself, or, at least, shut the fuck up
>>
>>52982555
>can't even accurately do (hyperbolic) tangents and their inverses

0/10
>>
>>52983393
tail is a local variable there, how do you access it on another function
>>
>>52983525
but it does that right anon
>>
I can't seem to be able to find any information on creating a stream.
I'm creating a logging library. How do I do something like this
loggy file;
file.open(example.txt);
file << "input\n";
>>
>>52983615
you couldn't find any source on writing things into files with c++?
>>
hey, /dpt/, can you point out any issues with this?
I have 20 or so computers I need to do this on, and I figured I'd automate it to make my life easier
background: I don't have administrator access on the machines in question, so I need to create %APPDATA%\Notepad++\allowAppDataPlugins.xml to allow plugins to be loaded from %APPDATA%, then I need to download the plugin, and then I need to extract it to %APPDATA%\Notepad++\plugins
>inb4 I get told to kill myself for writing it in python instead of C
import os   
appdata_dir = os.getenv('APPDATA')
notepad_plus_plus_dir = os.path.join(APPDATA, 'Notepad++')
filename = os.path.join(notepad_plus_plus_dir, 'allowAppDataPlugins.xml')
open(filename, 'w').close()

import urllib
from urllib import URLopener
URLopener.version = 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36'
plugin_url = 'https://github.com/ashkulz/NppFTP/releases/download/v0.26.5/NppFTP-0.26.5.zip'
filename = os.path.join(notepad_plus_plus_dir, 'NppFTP-0.26.5.zip')
urllib.urlretrieve(plugin_url, filename)

plugin_dir = os.path.join(notepad_plus_plus_dir, 'plugins')
import zipfile
with zipfile.ZipFile(filename, 'r'): as z:
z.extractall(plugin_dir)

trying to do it entirely with the standard library
>>
>>52983648
No. I meant I didn't find any source on making a class into a ostream, if it's possible.
loggy is my class. And any information feeded into it is going to be handled by class functions to write to files.
>>
>>52983698
extend to std::ofstream and override methods you want?

or better encapsulate std::ofstream
>>
>>52983554
>>52983554
Is it? It's weird to me then, because if I access head this way, the address of head is exactly the same.

void CommunicationNetwork::printShit()
{
cout << head << endl;
cout << tail << endl;
}


Head pops out the same address if I cout it here or in the function above where I created the doubly linked list in the class. Here is an extremely gimped version for testing purposes in a pastebin.

http://hastebin.com/enozihimuj.coffee

(Sorry if it's a tad messy, I just ripped a lot of things out of it and formatted it automatically)
>>
>>52983670
>: as z:
>>
>>52983556
disregard that I'm blind
>>
>>52983698
Why are you trying to make everything into a class?
>>
Okay, I've procrastinated way too much on this assignment. Time to do some cache optimization.
>>
>>52983764
well, in
CommunicationNetwork::buildNetwork
you are defining another tail, tail in global space remains untouched. you should
tail = tmp;
in there
>>
>>52983791
OOP?

Is there a better way?
>>
>>52983670
this is some of the ugliest code i've ever seen.

please read pep 8.
>>
>>52983831
ahahahahha

Wait, you were serious?

HAAAHAHAHAHAHAHAHAHA
>>
>>52983402
Please clap. :(
>>
>>52983801
SHIT you're totally right.

That does the trick. I understand now. I guess I hadn't realized the syntax I typed. The reason head gets away with it is because I didn't define a new head. Pointers are still kind of abstract to me, so I sometimes misuse them.

Thanks anon. I'll be able to crack out the remainder of this probably in another half hour.
>>
>>52983799
>I've procrastinated way too much on this assignment.

That's what I've been doing on everything. Playing with my gay memelang instead.
>>
>>52983831
>>52983852
don't let this devil beguile you and distract you away from the gospel of OOP. Remember, a virtual call is a good call.
>>
>>52983849
only thing pep8 complains about is that I had some trailing whitespace, lines 9 and 10 are too long (can't do anything about that), and that I don't have all of my imports at the top of the file

Is there anything wrong with the program itself?
>>
>>52983897

Make a heterosexual memelang instead.
>>
>>52983945

Not possible. I also wasted some time making a a program that converts an image to HTML with inline CSS. Pretty damned good, but you know.. not even chrome likes 22mb of HTML.
>>
>>52983852
It'll be easier to have one write function. My log class is going to write {date}-{time} before each line. It'll be better to have one class to do it than to have functions taking file pointers and shit.
>>
Guys I have no idea how to code. I wanna start learning. Where should I start
>>
retard here, whats the best method to learn to program?
>>
>>52984035
Read a book
>>
>>52983890
Have you considered joining our community, "The Gospel of OOP"? Putting those head and tail in global space is a very bad idea. Write a linked list class and encapsulate them so you won't have problems like this anymore.
>>
>>52984035
>>52984043
Read a book.

If you know very little about logic, algorithms, and other things, you will definitely wanna start with python. It's basically a great intro programming language. You'll learn all about some of the fundementals you find in other languages. (loops, if statements, etc)

Afterwards, if you really wanna dive into the meat of things, look towards java. Or if you are super frisky, C++ is basically trial by fire.
>>
>>52983995
fstream log("file.log", ios::app | ios::out);

log<<getDateAndTime()<<shit_Im_writing<<"\n";
>>
File: 1441684460338.jpg (92 KB, 1280x720) Image search: [iqdb] [SauceNao] [Google]
1441684460338.jpg
92 KB, 1280x720
>>52984139
>python
>java
>C++
>>
>>52984035
>>52984043

If you want to be better than most everyone else:
http://4chan-science.wikia.com/wiki/Computer_Science_and_Engineering
>>
>>52984091
So I'd love to do something like that. Only reason I can't do something like that is because the stupid autograder for our course won't accept more than one class. :DDD So it basically became "here's an outline header with a bunch of functions

but my understanding is that it would be something like this, right?
http://www.c-jump.com/CIS62/L08slides/L08_050_node_class.htm

Where the class's purpose is to handle modifying the linked list? I don't really understand how to efficiently use classes still, so forgive my slowness. I guess I don't understand how I would use multiple classes in this case.
>>
>>52984035
Step one: Choose what platform you want to program for:

> Windows/Windows Phone
> OS X/iOS
> GNU/Linux
> Android

Step 2: Learn the equivalent language (Use Google, get a book or even youtube, start with a simple "Hello World" program:

> Windows/Windows Phone: Learn C#

> OS X/iOS: Learn Swift

> GNU/Linux: Learn C

> Android: Learn Java

Step 3: become an epic hacker xDDDDD
>>
>>52980153
I can average an arbitrary amount of numbers
def avg *numbers
numbers = numbers.map{ |e| e.respond_to?(:to_a) ? e.to_a : e }.flatten
numbers.reduce(:+) / numbers.size unless numbers.size == 0
end

 > avg [1,2,[5,6,[7,8]]]
=> 4

 > avg 1..10
=> 5

 > avg 1..10, 6, 7 , 8..99
=> 47
>>
>>52984230
fuck off ruby nigger
>>
File: YzAGWgB.png (45 KB, 810x803) Image search: [iqdb] [SauceNao] [Google]
YzAGWgB.png
45 KB, 810x803
Is this what I think it is?

>supposedly made by 11 year old
>>
>>52984176
*five weeks into the future*
"Hmmmm. I change my mind about the getDateAndTime() function. Time to look for hundreds of lines of code and change them one by one."
>>
>>52984244
You're just jealous your language can't average numbers.
>>
>>52984222
Yes, you use OOP to abstract data. In this case head and tail will be private members of your class. Out side of this class, the access to those won't be possible. Your linked list class should have insert, remove public methods to modify the list. Or getHead, getTail, getElementAt etc to get iterators for accessing elements on your list.

Encapsulation is first step on path to inner peace.
>>
>>52984256
or you could change the date and time function
>>
>>52984333
What if I wanna put the the date/time at the end?
>>
File: snibbidy snab.png (34 KB, 666x666) Image search: [iqdb] [SauceNao] [Google]
snibbidy snab.png
34 KB, 666x666
>>52984180
>anime
Listen nigger. They are the most popular languages right now. (more or less) That means there are plenty of resources available.

Furthermore, they will all be easily useful in the market in case you git gud enuf with them that you can make shit.

>but I don't like them wahhh
>but my special snowflake language is better/more efficient

fucking fantastic. Go join your cuck circle then. Because if you learn 2 of the 3 I posted, you are going to have very little trouble understanding some of the other languages that exist in the world. You get all the fundamentals of programming with them.

But since you are so prone to post your epic meme reaction images, please enlighten us on the best language for a beginner. I am sure all of 4chan would be happy to hear your opinion n_n
>>
>>52984374
Regular expressions "getDateAndTime()<<*" -> "*<<getDateAndTime()"
>>
File: 1173765356.jpg (131 KB, 800x925) Image search: [iqdb] [SauceNao] [Google]
1173765356.jpg
131 KB, 800x925
what is the best anime programming language /g/?
>>
how easy will it be to translate something from java to javascript?
>>
>>52984325
okay, so my current class is
 
struct City {
string cityName;
string message;
City *next;
City *previous;
City() {}; // default constructor
City(std::string initName, City *initNext, City *initPrevious, std::string initMessage)
{
cityName = initName;
next = initNext;
previous = initPrevious;
message = initMessage;
}
};

class CommunicationNetwork
{
public:

CommunicationNetwork();
~CommunicationNetwork();
void addCity(std::string, std::string);
//add city to network
void printShit();
//insert an element into the linked list
void buildNetwork();
//Build the default network
void transmitMsg(std::string);//char *);
//this is like a string, send the message from city to city
void backSendMsg(std::string);
//transmits the message backwards.
void printNetwork();
//print out the current network path
void deleteCity(std::string);
//delete the city from the doubly linked list
void deleteNetwork();
//delete the network (deconstructor)
protected:
private:
static string cList[10];
//static array to hold the default list of cities
City *head;
City *tail;
};


So basically, I was just offloading all of the effort dealing with the linked list to the CommunicationNetwork.cpp class file and header.

Are you saying that I should split this up further? I handle the main interaction with the class from main.cpp, whereas I call a function from the class.
>>
>>52984389
Holy fuck Pajeet, could you be more insecure?
>>
>>52984451
Manly programming: C++
Womanly programming: Lua
Autistic programming: AMD64
Faggorty: Everything else
>>
>>52984504
Anon are you a Ruby shill?

You can tell me.
>>
>>52984512
But C++ can't even average integers anon.
>>
>>52984418
Congrats
Before:
log<<getDateAndTime()<<"error: " << errorcode() << "...\n";
log<<getDateAndTime() << "error: " << errorcode() << "...\n";

after
log <<"error: " << getDateAndTime()<< errorcode() << "...\n";
log<<getDateAndTime() << "error: " << errorcode() << "...\n";
>>
>>52984470
this is b8 right?
>>
>>52984418
Also "getDateAndTime()" could be separate from logging
>>
>>52984569
Repeat after me: "Boss, the problem is NP complete and can't be fixed"
>>
>>52984491
yes, pretty much. In your example there is no way to access your list though. You probably don't want your nodes next or previous public. You should check iterators to learn how to make safe access for your elements.

Also check templates, this way you can create generics and reuse your linked list for any type you want.
>>
>>52984610
"You're fired"
>>
>>52984648
"enjoy brute forcing all my passwords"
>>
>>52984733
"we copied them out of the RAM because you left your workstation running"
>>
/dpt/ I wanted to automate the process of voting for a candidate in a web site.
What's the easier way to do this? Greasemonkey? iMacros?
>>
>>52984546
there's a library for that

the answer to all C++ problems
>>
>>52984837
neither, because they probably only count 1 vote from each IP address
>>
>>52984837
Microsoft pls gtfo
>>
Is there any other async work pattern as good as js promises?
I'm a noob in async, and I only ever did js promises, now I'm trying to do the same in c# and fail miserably at it.

How can I promise something to happen and step ahead on my thread?

Doesn't have to be c#, but no obscure languages too, please.
>>
File: Capture.jpg (16 KB, 307x140) Image search: [iqdb] [SauceNao] [Google]
Capture.jpg
16 KB, 307x140
>>52982579
Make me
>>
>>52984865
It's confirmed that it doesn't work like this.
The voting system doesn't save cookies nor IP address.
>>
>>52984926
you should only use English to post on 4chan, anon.
>>
>>52984939
then just do 9000 get/post requests
>>
>>52984939
well, if you want to do it completely in browser, iMacros is probably the better choice
otherwise:
https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor
https://developers.google.com/web/tools/chrome-devtools/profile/network-performance/resource-loading
https://mitmproxy.org/
>>
>>52984961
But I thought American is backwards compatible with English.
>>
>>52984969
Let's say I don't have access to the API so I don't know what to pass as parameters when POSTing. What should I do?

>>52984989
>https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor
>https://developers.google.com/web/tools/chrome-devtools/profile/network-performance/resource-loading
>https://mitmproxy.org/
Will take a look, thanks.
>>
>>52985019
>Let's say I don't have access to the API so I don't know what to pass as parameters when POSTing. What should I do?
you do this
>>52984989
>>
>>52980232
Write a Makefile.
>>
>>52984612
Okay, I haven't learned about iterators yet but it is something I've written out so I can look into it

I appreciate your kind guidance anon
>>
if i pass an object to a method in another class and it alters it without returning it, will it stay altered when i'm back in the prior method?
>>
>>52985107
in java
>>
>>52985107
depends if you are doing pass-by-value or pass-by-reference
>>
w
>>
>>52985131
>>52985125
Well, java does pass-by-value but it passes object references by value, not the object itself.

So yes, if you change the contents of object, it will also change the object of he caller
>>
File: out.webm (1 MB, 1439x761) Image search: [iqdb] [SauceNao] [Google]
out.webm
1 MB, 1439x761
for example, firefox lets you do this
>>
https://codeshare.io/4chan

Lets code something together
>>
File: out.webm (1 MB, 945x1043) Image search: [iqdb] [SauceNao] [Google]
out.webm
1 MB, 945x1043
chrome has something similar
>>52985229
it's not visible in the video, but I clicked on "edit and resend" in the context menu near the end
>>
What is this C program doing? I know it's probably something stupid, but for the life of me I can't figure out what.
 
#include <stdio.h>

double sqr(x) {return(x*x);}
#define sqr(n) n*n

int main(int argc, char *argv[]) {
double a[] = {1.0, 7.0};
double *p = a;

printf( "sqr(3.0) = %f\n"
"sqr(3) = %d\n"
"sqr(3+3) = %d\n"
"!sqr(3) = %d\n"
"(sqr)(*p++) = %f\n"
"(sqr)(3+3) = %f\n",
sqr(3.0), sqr(3), sqr(3+3), !sqr(3), (sqr)(*p++), (sqr)(3+2));
p--;
printf("(sqr)(*p++) = %f\n", (sqr)(*p++));
return 0;
}


this prints
sqr(3.0) = 9.000000
sqr(3) = 9
sqr(3+3) = 15
!sqr(3) = 0
(sqr)(*p++) = 25.000000
(sqr)(3+3) = 25.000000
(sqr)(*p++) = 0.000000

For some reason, (sqr)(*p++) takes the same argument as whatever is in the second sqr call, in this case 2+3 = 5 and the p pointer is not incremented.

x isn't explicitly assigned a type, but iirc it is assumed to be int changing the declaration of sqr to
 double sqr(int x) {return(x*x);}


prints
sqr(3.0) = 9.000000
sqr(3) = 9
sqr(3+3) = 15
!sqr(3) = 0
(sqr)(*p++) = 1.000000
(sqr)(3+3) = 25.000000
(sqr)(*p++) = 1.000000

as expected.
>>
my video game in java has lots of skill objects, of which each entity has 4. i currently have to create all of them in main when the game starts, and then assign them to entities as they're created. it's a humongous amount of skills being created all at once. is there any tidier way i can do this?
>>
>>52985381
install gentoo
>>
>>52985331
Try
#define sqr(n) ((n)*(n))
>>
>>52985381
load from config
>>
>>52985414
But why would that affect it, or rather, why does it? Since sqr is in parentheses the macro doesn't expand, so it uses the definition of the function, right?
>>
>>52985453
sqr(3+3)
3+3*3+3
3+9+3
15
>>
>>52984989
>>52985033
Hey, just wanted to give you guys a feedback.
First, I would like to thank you. With the links you gave me I could find a bug that is pretty big. Basically, the method used for posting the vote it's returning the voting partial, something that shouldn't be known for the public.
Basically, I can predict who will win the voting.
I am thinking about reporting this bug and ask for a reward. How should I do this? Ask for the reward first and then tell them about the bug?
>>
printf("\\ \t \n");
>>
>>52985551
>I am thinking about reporting this bug and ask for a reward. How should I do this? Ask for the reward first and then tell them about the bug?
don't
it won't go well
they'll probably just silently patch it and you get nothing
or they do nothing and you get nothing
or they patch at and come after your ass
but the case where they fix it and reward you is extremely rare
>>
Why are indians the best programmers
>>
>>52985551
lol, if they have such shitty system I doubt that they care at all. I doubt they care enough to give a prize

You should tell them about the bug by rigging the pool and make hitler the winner
>>
>>52985541
I know that, but that's not what I'm asking, the problem is with the (sqr)(*p++), which prints 25.0, instead of 1.0, then 0
>>
File: 1454299024769.gif (136 KB, 300x168) Image search: [iqdb] [SauceNao] [Google]
1454299024769.gif
136 KB, 300x168
>Mfw I have an interview scheduled for later this week.
>Put all my projects and OS work on hold so I can prepare.
>Go to glassdoor to try and figure out what I have to make sure I know

>Every fucking comment on the question answered is vague as hell.
>>
Once, I used Emacs. All I did with it was play in the land of elisp. I never got any real work done.
Then, a passionate friend converted me to Vim. I only ever used it to do battle with my .vimrc. I never got any real work done.
Now, I use Atom. Click a button, install a feature. No more distractions.
I wish it were faster though; I can never get any real work done.
>>
>>52985644
>Pleb
Not being able to answer all the technical and soft skills questions
>>
>>52985580
>or they patch at and come after your ass
That's exactly what I thought.
I guess I try to talk to them, but will use some sort of security (tails + tor) so they don't find me.
>>
>>52985665
Just move back to Vim.
>>
>JS shitters making 50 MB desktop hello world electron """"""""""apps"""""""""" so they can feel like real programmers
NOT LIKE THIS
>>
What's the alternative? Qt libraries takes up the same size.
>>
public String[] fizzBuzz(int start, int end) {
int x = 0;
String[] fb = new String[end-start];
for(int i = start; i < end; i++,x++){
if(i%3==0 && i%5==0)
fb[x] = "FizzBuzz";
else if(i%5==0)
fb[x] = "Buzz";
else if(i%3==0)
fb[x] = "Fizz";
else
fb[x] = String.valueOf(i);
}
return fb;
}
>>
Got a weird bug, which I'm pretty sure is a logic error on my part. Anyone wanna help?

Language is Swift.

When I run this code in a Cocoa interface, it saves the value as a string and makes it the placeholder text instead of writing the value. The weird part is when I open the window back up, that value is the placeholder text, and when I submit it, it takes the value, just like I want it to do the first time around.

Effectively it causes a user interface bug where the user would have to save the api key, close the window, open it again, and click save again. Kinda weird.

import Foundation
import Cocoa

class SavePreferences: NSViewController {
var defaults = NSUserDefaults.standardUserDefaults()

var apiKeyTitle = NSUserDefaults.standardUserDefaults().objectForKey("userApiKey")

//MARK textfield for api key
@IBOutlet weak var textFieldApiKey: NSTextField!

//MARK save API Key as default preference
@IBAction func btnSaveApiKey(sender: AnyObject) {
defaults.setObject(textFieldApiKey.stringValue, forKey: "userApiKey")
defaults.synchronize()
print("apikey saved as", apiKeyTitle)
}


override func viewDidLoad() {
super.viewDidLoad()
if let _ = defaults.objectForKey("userApiKey") as? String {
textFieldApiKey.placeholderString = apiKeyTitle as? String
}
}

}
>>
File: 1454895603373.jpg (261 KB, 900x900) Image search: [iqdb] [SauceNao] [Google]
1454895603373.jpg
261 KB, 900x900
>>52986205
>class
What garbage language is this?
>>
>>52986205
>Anyone wanna help?
No, not really.
>>
File: 1294440496644.png (21 KB, 494x400) Image search: [iqdb] [SauceNao] [Google]
1294440496644.png
21 KB, 494x400
So say I have a doubly linked list. I know you need an if statement in order to add to the head.

Do you need an if statement to add to the tail? I was having an issue where I couldn't find a way to add freely to the middle and the end without some sort of statement separating a line out from it, otherwise I got a segment fault.

Jw, it isn't like it is crucial or anything.
>>
>>52985665
try sublime text atom is a shit
>>
>>52986238
stupid frogposter
>>
>>52985665
i'm with you. atom would be so awesome if it wasn't so goddamned slow
>>
>>52986307
https://discuss.atom.io/t/2mb-limitation-makes-for-a-horrible-first-impression/3286
https://reza.jelveh.me/2014/02/28/a-critical-look-at-atom.html
maybe using a browser as a text editor is a fucking retard idea
>>
>>52986307
just use sublime, bruh.
>>
>>52986334
this
>atom
>a web browser
>made by SJW's because they can't write native code, only JS
>>
I just solved all CodingBat's "difficult" puzzles (The ones with the -3 in them, like Array-3 and String-3).
What does it say about me?
>>
>>52986530
says that you're a huge faggot.
>>
>>52986539
Thanks!
>>
What does /g/ think of this statement:
>[...Everyone knows it's a mistake to write your whole program by hand in machine language. What's less often understood is that there is a more general principle here: that if you have a choice of several languages, it is, all other things being equal, a mistake to program in anything but the most powerful one.]

What is the most powerful programming language?
>>
>>52986574
C# no doubt.
>>
>>52986574
>powerful
Using Turing machine notation
>>
File: 1451670902854.jpg (136 KB, 945x945) Image search: [iqdb] [SauceNao] [Google]
1451670902854.jpg
136 KB, 945x945
>Programming course learning C#
>One of classmates is C++ fag
>"I think C++ is probably like the best language, at least the only language I've used besides Java"
>Exercise is to convert seconds to to h:m:s format, easy peasy
>Obviously involves modulus as the teacher stated
>Finish in a minute or two
>Look over at C++ fag's screen
>He's declaring all his stuff as double
>No modulus operator to be found
>Wonders why his output is fucked
>Ask him why he's not using integers and not using modulus
>"I think modulus is super messy"
>And what, some pig disgusting hack with floating point numbers is supposed to be cleaner?
>He never finishes the exercise in the 1 and a half hour we had.

C fag here, why are C++ programmers so retarded?
>>
Anyone help me find the VGA PCI address in this piece of shit? I am writing a meme OS for ARM64 and been looking for the PCI address of the VGA device, tried everything in the memory tree it gives me and dick, nothing on the SDL vga output.
"qemu-system-aarch64 -machine virt -cpu cortex-a53 -monitor stdio -device VGA" is the command I am using.
>>
>>52986574
Assembly language.
The quote obviously means that you should avoid machine language (because it has no benefits over assembly, where you could still write raw opcodes in hex if you desired) as well as the limited "languages" made to fit someone else's brain.
>>
>>52986574
Assembly.
>>
>>52986574
Erlang, or well anything functional really.
>>
File: 1455516797087.png (24 KB, 701x354) Image search: [iqdb] [SauceNao] [Google]
1455516797087.png
24 KB, 701x354
>captcha is going to stop bots
sure
(nsfw link)
>http://fgts.jp/b/thread/669021970/
>>>/b/669021970
>>
who else commits readme and comment changes just to keep your commit streak up ?
>>
>>52986627
You're just jealous we're good at using the most powerful language LOL
>>
A PowerShell Script that downloads any Joe Rogan podcast that is <24 hours old.

I'm trying to have the download path be my phone, but I'm researching around and do not think this is possible.
>>
>>52986661
not me becaues i'm not a tranny SJW
>>
>>52986648
how the hell
that's like 300 posts in 2 minutes
>39 posters
>>
>>52982675
Your variables make me want to die.
>>
>>52986627
Fanboys in particular are retarded.
Any intelligent person just uses the most effective tool for the job.

In C++14 you have std::chrono::chrono_literals, and in this namespace are conversion operators that you can use to automatically convert a specified std::chrono::duration from hours to minutes, to seconds, etc.

It would be easier than using modulus and result in more readable code as well.
>>
>>52982675
walls being built as we speak
>>
>>52986714
Yeah, but this guy was not using std::chrono::chrono_literals (he probably doesn't know about them), and the point of the exercise was to do it yourself.
He was trying to go the modulus route without using modulus and using floating numbers in place of integers which is pants on head retarded.
>>
>>52986743
So he was a shitty programmer (read: not very intelligent), with lots of opinions?
So, 90% of /dpt/?
>>
File: situation-omg.gif (1 MB, 240x252) Image search: [iqdb] [SauceNao] [Google]
situation-omg.gif
1 MB, 240x252
>>52982675

>blowing past the 80 character limit like this
>>
>>52986756
>80 char limit

It's not 1972 anymore. 120 chars is fine.
>>
>>52986754
Pretty much.
>>
>>52986763
> operacaoCompleta = operacaoCompleta.stringByReplacingOccurencesOfString(operacaoASerSubstituida, withString: "function(" + String(operacaoASerSubstituida.characters.dropFirst()) + ",
>190 characters
>>
>>52986783

I didn't say what he did was okay. I said that 80 chars is too few.
>>
Trying to create a hardfork of Bitcoin to 1KB blocksizes. Yes, 1 kilobyte. We will be able to create Bitcoin nodes on the Nintendo DS.
>>
>>52986631
blz resbond ;-;
alternatively anyone with experience in PCI programming in general?
>>
>>52986839
>experience in PCI programming
>/dpt/
Got some bad news for ya m8.
>>
>>52986867
*shoots self*
i guess i should come back when im looking for qt traps with shaved legs or someone to verbally attack
>>
>>52986876
bingo
>>
>>52986867
>>52986876
I wish i could help you but unfortunately i have no experience in PCI either.
Frankly I think it's a pile of bullshit.

Simple memory mapped devices are god tier.
>>
>>52986704
codecomplete is everyone's friend
>>
new thread here

>>52987029
>>52987029
>>52987029
>>
learning c, about 50 pages in to the ritchie book. any other advice as I try and improve my knowledge getting ready to start college?
>>
>>52982036
experiment with creating simple server and a client using tcp and udp

experiment with storing data in server and retrieving data from client
server
{
manage socket
open port

loop
listener
receiveData
sendData
etc
}

client
{
mange socket
open port
connect

sendData
receiveData
etc
}


etc something useful 4u bigguy
Thread replies: 311
Thread images: 34
Thread DB ID: 516279



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

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

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 shown content originated from that site. This means that 4Archive shows their content, archived. If you need information for a Poster - contact them.
If a post contains personal/copyrighted/illegal content, then use the post's [Report] link! If a post is not removed within 24h contact me at [email protected] with the post's information.