Leave these fields empty (spam trap):
Name
You can leave this blank to post anonymously, or you can create a Tripcode by using the float Name#Password
A subject is required when posting a new thread
Subject
Comment
[*]Italic Text[/*]
[**]Bold Text[/**]
[~]Taimapedia Article[/~]
[%]Spoiler Text[/%]
>Highlight/Quote Text
[pre]Preformatted & Monospace text[/pre]
1. Numbered lists become ordered lists
* Bulleted lists become unordered lists
File

Sandwich


learning to programm by Jan - Wed, 20 Aug 2014 09:11:14 EST ID:OuSlvzkn No.32253 Ignore Report Reply Quick Reply
1408540274786.jpg -(504544 B, 1280x960) Thumbnail displayed, click image for full size. 504544
Hi everybody,
Iam started programming a few months ago and i have a basic undstanding how code works when iam looking at it.
But i feel like iam stuck, because i know all the simple and easy stuff but nothing complicated.
The question that i wanna ask you is: Do you know any good Book, Video or anything else that maybe skip all the basic stuff up to classes and goes in depth with the more complicated stuff.
I would prefer Java but ill take anything
3 posts omitted. Click Reply to view.
>>
Hugh Congerhet - Thu, 21 Aug 2014 22:54:40 EST ID:7alaund4 No.32258 Ignore Report Quick Reply
>>32257
>Oh wow. Y'all are high as shit or not helpful...

No. Speaking as a working software engineer, those posts are quite helpful.
>>
Ebenezer Gimmlenat - Sat, 23 Aug 2014 01:02:50 EST ID:XveRTPbz No.32260 Ignore Report Quick Reply
>>32258
True. There are tons and tons and tons of API's an languages that you could learn but you probably won't learn all of them. Learning the concepts behind it is more important.

Seconding
http://projecteuler.net/problems

Also
https://mitpress.mit.edu/sicp/
I bought the book because I hate reading books on a screen. Fucking Love it. You should have at least taken pre-calc first though. teaches you how to program not API sand shit which employers value more...
>>
Hannah Fasslechot - Sat, 23 Aug 2014 11:52:58 EST ID:SFwGSzW3 No.32262 Ignore Report Quick Reply
>>32260

Yeah. Plus learning new languages gets way easier when you understand the context behind them.

OP if you really wanna do an intense course on the structure of programming languages then I recommend "Seven Languages in Seven Weeks" by Bruce Tate.
>>
Edward Chullerwet - Sat, 23 Aug 2014 14:48:46 EST ID:m9GQ6c1k No.32263 Ignore Report Quick Reply
On the topic of Android programming, I am familiar with ordinary java development on a win32 machine. I don't know how to graphics or connect to outside programs and networks. But, I did write the logic for a text based connect four game, run through a command line. You just had to remember where you put the pieces, and I stored them in a 2d array. If I really wanted to stretch my skills, I suppose I have enough expertise to output the board in ascii.

So naturally when I fire up Android Studio and see the files and files galore, it takes a little getting used to. Is it even worth it to program in fragments for a simple application? Can I wing it and dump it all into a single class file? I think it's really overkill to have to invoke separated methods using hierarchy, when really I only have the one method.

All I want to do is design a simple custom timer for personal use. This, I could do in ten minutes for a windows platform. Can I just write it and somehow import as a library?
>>
Simon Tootson - Sun, 24 Aug 2014 15:06:14 EST ID:KmxmS4eT No.32269 Ignore Report Quick Reply
>>32253
Start reading SICP and doing all the exercises in depth, until you get hopelessly lost and stuck for days on every single problem within a section. Put it down and grow for a year or so. Repeat where you left off. When you finish the book after several years, repeat from the beginning and notice all the stuff you didn't the first time through. Do that two or three more times. Congratulations, now you know the complicated stuff.

Also thirding Project Euler.


Css animations by Eliza Sasslebedge - Wed, 20 Aug 2014 00:40:49 EST ID:HCOA3lTH No.32252 Ignore Report Reply Quick Reply
1408509649035.png -(28362 B, 145x142) Thumbnail displayed, click image for full size. 28362
can i get some tiny snippets of simple CSS animations
>>
Clara Barrydale - Wed, 20 Aug 2014 19:26:42 EST ID:C8pMvkrS No.32255 Ignore Report Quick Reply
You'll have better luck and learn more browsing css-tricks.com for an hour or two than waiting for people to post examples here. They cover a lot of backwards- and cross-browser-compatibility stuff too.


Wtf @ how easy to fuck people... by Martha Senningstock - Wed, 06 Aug 2014 10:42:24 EST ID:KIH+h3lL No.32208 Ignore Report Reply Quick Reply
1407336144567.png -(232947 B, 1920x1200) Thumbnail displayed, click image for full size. 232947
Hei...
Today i managed to compile my knowings with google and i was able to make a ky logger with usb spreading + automatic email sending in like 45 min.
The program also dublicates itself to some random folders and sticks into registry.
I was supprised at how easy it is to make such things thanks to google.
Only problem is that the infected pc must have all antiviruses turned off in order for this to work... I am so sorry that i am a dick and even asking this but is there an easyer way to hide it from the most basic windows defender? What to google?

I wanted to share some parts of the code but the site wont let me (Says that a phrase or Word is being used to isnt allowed)
1 posts omitted. Click Reply to view.
>>
Fanny Cabberforth - Wed, 06 Aug 2014 18:31:31 EST ID:JfwAvV4w No.32211 Ignore Report Quick Reply
1407364291930.png -(453748 B, 700x700) Thumbnail displayed, click image for full size. 453748
>>32208
protip:
> copy binary into another C prog as shellcode into a char array[]
> encrypt blocks of char in array with basic reversible operations
> create another prog acting as a wrapper with your encrypted payload
> create key which represents the reverse ops for your encryption
> use key to decrypt string and dump prog directly into mem using win32 api
> exec from entry point of yourt dumped decrypted payload
> ..
> you have now upgraded to "skiddie - lvl 7"
> to reach lvl 15 you must understand windows packed executable format
> start fucking the AV in the arse by misdirecting PE fields, like import addr table, INT, etc etc
> reach lvl 42 by generating probabilistic entry points to avoid AV even being able to exec decrypted malware in there heuristic sandbox
> mfw AV has no fucking clue what is going on in this file and gives up
> .. mfw im so fucking high right now, listening to great giana sisters menu theme from C64, havent visited this board in ages, posts are worst than a year back
>>
Nell Worthingspear - Thu, 07 Aug 2014 04:45:52 EST ID:q3o95NYt No.32217 Ignore Report Quick Reply
>>32209
wtf dude?
My point was at how easy it was to do it. Have i ever said that i am a hacker now? How do you come up with this shit? Calm down and smoke a joint or something.
>>
Nigel Denderwit - Thu, 07 Aug 2014 16:27:10 EST ID:ddMPGXPw No.32222 Ignore Report Quick Reply
>>32217

i dont want to use google - i could use other search engines, i know but tell me, cowboy

where do you find scripts?
>>
Sophie Trotdale - Sat, 16 Aug 2014 17:25:04 EST ID:ZsRpd5ZE No.32249 Ignore Report Quick Reply
>>32211
>Microshat Wangblows PE format
>Not ELF master race

Truly a beautiful format to implement.
>>
Cedric Girrymidge - Tue, 19 Aug 2014 03:52:59 EST ID:AQ4tRaU3 No.32251 Ignore Report Quick Reply
>>32222
The point is not to 'use scripts' it's to write your own code because you know how to do it effectively. Using other people's code is a surefire way to end up getting caught by AV.


simple html search by Nell Droffingkitch - Thu, 14 Aug 2014 08:30:50 EST ID:i7QGqMjW No.32244 Ignore Report Reply Quick Reply
1408019450726.jpg -(1219925 B, 1278x1800) Thumbnail displayed, click image for full size. 1219925
hey guys, i need quick advice maybe any coders here can help. for work i need to make a simple 1 page website for the intranet that just basically has a search bar where you enter a part number "10_008" and then search a folder full of pdf and display everything starting with "10_008" in a list.

dont need any fancy shit, no design nothing just simple search and display results, anyone can point me in the right direction? ive got so far as to have a simple search bar and button but all it does is google, im not sure how to search and display folder files

thanks in advance...
>>
Nell Brullerlat - Thu, 14 Aug 2014 17:25:31 EST ID:gH2THRYC No.32246 Ignore Report Quick Reply
One way to do it is to have a file that contains a list of all the files, have the webpage upload it and search through it and display results. There are other ways to do this, but this is the simplest one I see. If the number of files isn't excessively large, it should work fine. The only is that you must make sure that the file is up to date.

I have created such a webpage. The file that contains the list is "contentsList.js", which creates a javascript array called "contentsList" which contains the names of all the files. The files are in the folder "contents". Subdirectories aren't considered. The webpage is called "index.html".

I have also made a simple bash script and a simple python script that both generate the contentsList.js file from the contents of "contents"

Here is a zip of the whole setup:
http://www.speedyshare.com/4drvm/Searcher.zip
(you need to press the "slow download" button on that site)
>>
Nigel Gublingnidge - Fri, 15 Aug 2014 05:47:03 EST ID:i7QGqMjW No.32248 Ignore Report Quick Reply
cool thanks for sharing man ill check it out!


Your Own Language by Jarvis Dedgewater - Mon, 04 Aug 2014 21:50:24 EST ID:+fy4XssJ No.32190 Ignore Report Reply Quick Reply
1407203424687.png -(576836 B, 1200x900) Thumbnail displayed, click image for full size. 576836
Has /prog/ ever designed and implemented a programming language?
4 posts and 1 images omitted. Click Reply to view.
>>
Reuben Fanwater - Tue, 12 Aug 2014 15:47:49 EST ID:5Mbyzmad No.32241 Ignore Report Quick Reply
>>32190
Never saw the need to do so since there are so many languages for different platforms and cross-platforms. I just think that everything you need is out there. C, C++, C# and Java is all you could ask for. PS I like VB too, and CSS, JS, PHP for web dev I
mean cmon ppl.
>>
Emma Pangerwork - Tue, 12 Aug 2014 19:32:43 EST ID:ZMQnkpih No.32242 Ignore Report Quick Reply
I'm trying to write a parser for Dream Maker/Byond. It's fucking gross.
>>
Esther Doggleford - Wed, 13 Aug 2014 21:28:34 EST ID:aI2TUmfK No.32243 Ignore Report Quick Reply
1407979714049.jpg -(1064088 B, 2048x1536) Thumbnail displayed, click image for full size. 1064088
>>32240

Nice work!

Also

>dat based MIT license.

Death to the GPL
>>
Hamilton Nuttinglark - Thu, 14 Aug 2014 14:21:50 EST ID:fUHLnT4O No.32245 Ignore Report Quick Reply
1408040510417.gif -(378242 B, 500x374) Thumbnail displayed, click image for full size. 378242
>>32243
Don't choke on that syphilis-filled cum, you corporate cocksucker you.
>>
Martin Fobblesut - Thu, 14 Aug 2014 17:44:45 EST ID:SFwGSzW3 No.32247 Ignore Report Quick Reply
1408052685054.jpg -(22133 B, 600x485) Thumbnail displayed, click image for full size. 22133
>8th post in thread
>already circlejerking about oss licenses

whelp, this was a great thread while it lasted


Little CSS help needed by Clara Wockleham - Fri, 18 Jul 2014 22:52:05 EST ID:bfb+ebW/ No.32085 Ignore Report Reply Quick Reply
1405738325647.png -(14064 B, 500x357) Thumbnail displayed, click image for full size. 14064
Hi I am trying to do some simple CSS however I am just a novice.
  1. trying to Round the post edges
  2. move the post closer to the Side nav menu
  3. and make the Post background semi transparent like this site for example, http://www.allaboutlionel.com/brazilian-jiu-jitsu/

This is my site here, http://gargalarg-scholar.tk/ , the domain is temp until the one I want opens up in august
1 posts omitted. Click Reply to view.
>>
Clara Wockleham - Sat, 19 Jul 2014 18:38:16 EST ID:bfb+ebW/ No.32090 Ignore Report Quick Reply
Thanks I actually found out about this for the border round and it seems to work much better

.entry-header {
border-radius: 25px 25px 0 0;
}

.entry-content {
border-radius: 0 0 25px 25px;
}

I The only thing I Want to do now is Make the post display is a grid like fashion

Im trying a loop.php and trying invoke it though the CSS manager ccs addon but I can seem to get it to work.
>>
Hugh Fanfuck - Mon, 21 Jul 2014 10:34:32 EST ID:dUqCye/w No.32097 Ignore Report Quick Reply
>>32090
You don't have vendor prefixes on there so it's not going to work in any old browsers.
>>
Nicholas Bagglechidging - Thu, 24 Jul 2014 15:35:30 EST ID:bfb+ebW/ No.32116 Ignore Report Quick Reply
>>32097
Had a bunch of people view the site, and tested a couple different browsers.

can you define "old"?
>>
Charles Benkinworth - Thu, 24 Jul 2014 16:00:49 EST ID:dUqCye/w No.32117 Ignore Report Quick Reply
>>32116
Firefox 3.6-, Safari 4-, iOS 3.2-

People still on FF 3.6 are the primary audience you'd want to do this for.
>>
Reuben Turveycocke - Mon, 11 Aug 2014 13:44:29 EST ID:5Mbyzmad No.32239 Ignore Report Quick Reply
>>32085
Little trick to learning CSS or JS. Right click view source and navigate to all the .js and .css files listed on websites you visit. I learned alot about Javascript this way. Who knows you might even find directories that they don't want you to see ;-).


assigning text file into 2 day array using c. by Graham Wallyworth - Sun, 03 Aug 2014 00:19:04 EST ID:KH9l0Yka No.32179 Ignore Report Reply Quick Reply
1407039544375.jpg -(251449 B, 1109x795) Thumbnail displayed, click image for full size. 251449
I am trying to assign a text file into a 2day array.
my program is supposed to open up a file and store the words in that file in that 2d array.
the words being put into this array are: http://pastebin.com/WAkM6sWD (with the formatting as present on pastebin). This file is called dictionary.txt.
then im supposed to load up another file into another array, test.txt, but file 2 looks like this: http://pastebin.com/CdBT9b0D, with that formatting.
I have an idea of how to load them up into arrays, but not entirely sure on how I would compare these two arrays.
What I have so far is this: http://pastebin.com/spdYGwu7
I'll be loading the other text file into the other array in a similar fashion
2 posts and 1 images omitted. Click Reply to view.
>>
Nicholas Nurringwell - Mon, 04 Aug 2014 23:34:27 EST ID:KH9l0Yka No.32195 Ignore Report Quick Reply
>>32194
I've already tried this but I still get similar results :/
>>
Phineas Sindleletch - Tue, 05 Aug 2014 02:36:02 EST ID:xUAnupXV No.32196 Ignore Report Quick Reply
>>32195
To get rid of that garbage output like question marks initialize the array first
>>
Nicholas Nurringwell - Tue, 05 Aug 2014 03:10:33 EST ID:KH9l0Yka No.32197 Ignore Report Quick Reply
>>32196
how would I do that?
would it be another for loop
>>
Graham Brummlepudge - Sun, 10 Aug 2014 15:30:59 EST ID:ZMQnkpih No.32235 Ignore Report Quick Reply
Your program is reading 20 characters for every "word" in the file. You need to tell the thing to stop and move on to the next word when you hit the end of a word by checking for a newline in the case of the dictionary file or a space (or possibly newline) in the case of test.txt

You also need to zero-terminate your words, so when you are done reading a word put a '\0' on the end before you move on to the next word.

Another thing you need to do is to keep a count of the number of words that you have read and stop reading words when you hit the end of the file, which you can check for with feof().

Instead of for(i=0; i<FIXED_NUMBER; i++ ) you should probably go for something along the lines of while( 1 ) { do_stuff; if( break_condition )break; }

The break condition in the inner loop would be hitting a space, newline or eof and the break condition on the outer loop would be eof.
>>
Phoebe Nackleworth - Mon, 11 Aug 2014 06:11:53 EST ID:IbCqRvvj No.32238 Ignore Report Quick Reply
What are you trying to do? You haven't it explained it correctly.
So you want to place the contents of 2 files into an array, then `compare` them, and then what? If they are the same output them?


And to get rid of the garbage output in >>32188 just stop copying data at EOF. So your main while should be something like:
[code]while (getc(fp) != EOF)
[/code]

Next you don't need to specify hard values for char lengths of words. Just copy chars into an array, until a 'space' is found, then move onto next array.
[code]
int cntWord, i
[/code]

So it will be something like, within your main EOF search loop (code untested):
[code]
Comment too long. Click here to view the full text.


xinit and startx by noob - Sun, 10 Aug 2014 05:05:45 EST ID:jaqLWMrW No.32231 Ignore Report Reply Quick Reply
1407661545932.png -(38738 B, 1366x768) Thumbnail displayed, click image for full size. 38738
Hello /prog/, I kind of need help with my xinitrc and startx and xorg stuff.
Ok, here is the problem, whenever I type startx on my shell, it never does anything even though in my xinitrc, the last line is "exec awesome".
Now, I have no problem not using startx and using xinit instead, which does bring results, but the thing with xinit is that if for example, I type "xinit awesome", it does launch the window manger, but it also launches xterm, and not in background, like in pic related, and its kind of annoying having some window in your desktop launch and then having to type awesome to launcht the wm

pleas halp
>>
Martin Chossleshit - Sun, 10 Aug 2014 08:00:10 EST ID:2PLGUfus No.32232 Ignore Report Quick Reply
>>32231
Take it to /tech/. But even better, read up on documentation and then to an IRC channel of your distro. Don't forget to check the logs of Xorg for any clues as to why it might be happening. Also, post what errors you get when doing stuff. It may be that you haven't actually got startx installed, since xinit seems to work.

And no, don't just dump them here, use a pastebin, wherever you end up taking this. If anything here doesn't make sense, google it. It's all there, I've done it before so don't come back whining that googling didn't get you anywhere.
>>
Thomas Breddlesturk - Sun, 10 Aug 2014 16:53:35 EST ID:XXer/JVh No.32236 Ignore Report Quick Reply
did you hide it? alas .xinitrc?

also if there is something before that isn't terminated with & to be launched in the background the script stops at anything until it terminates.
>>
Fanny Tootson - Mon, 11 Aug 2014 02:22:50 EST ID:ZMQnkpih No.32237 Ignore Report Quick Reply
If Xsession isn't broken you should be able to put 'awesome' in ".xsession" in your home directory and have it run right from startx (I think).


Adding a project to VCS by Basil Hamilton - Wed, 06 Aug 2014 08:05:17 EST ID:LjWkOwTl No.32207 Ignore Report Reply Quick Reply
1407326717940.png -(13617 B, 318x260) Thumbnail displayed, click image for full size. 13617
So I was given a project which is not added to any version control system yet, and it has several "versions" which are basically folders like Project-v1, Project-v2, Project-v3 etc. So how do I add all this to Mercurial? I was thinking maybe add Project-v1 to Mercurial, then copy and overwrite Project-v2 over Project-v1, commit, then copy and overwrite Project-v3, commit etc. But this is sort of clunky. Is there a better solution?
1 posts omitted. Click Reply to view.
>>
Nicholas Sonderforth - Fri, 08 Aug 2014 13:25:59 EST ID:bpnopKQ7 No.32226 Ignore Report Quick Reply
manual version control, dafuq.....

imo, take whatever is most current and start a fresh repo from it. then find whoever did this in the first place and light them on fire.
>>
Nicholas Sonderforth - Fri, 08 Aug 2014 13:29:52 EST ID:bpnopKQ7 No.32227 Ignore Report Quick Reply
>>32226

maybe create a repo for the oldest version, branch it, replace files with the next version, merge back into main, rinse repeat till you are current. be sure to take each release as you go...

and then find the original dev and set them on fire.
>>
James Drullermetch - Fri, 08 Aug 2014 16:09:08 EST ID:H+CapF6M No.32228 Ignore Report Quick Reply
>>32226
>>32227
There is bunch of software that predates any revision control systems.

>>32207
If there are just few versions I'd say do it manually, but if it there are too many run a script that follows the lines of
mkdir project && cd project && git init
for ver in $(ls <where the versioned dirs - and nothing else - are>)
do
rm -f !(.git)
cp $ver .
git commit -am "$ver"
done

Didn't test it, might have typos, bug or anything, please triple check before use.
>>
Basil Hamilton - Sat, 09 Aug 2014 19:16:22 EST ID:LjWkOwTl No.32230 Ignore Report Quick Reply
>>32210
No shit, but I didn't start the project, and I don't have a time machine.
>>
Nicholas Drosslehudging - Sun, 10 Aug 2014 12:44:38 EST ID:Ybv0zkiv No.32234 Ignore Report Quick Reply
I would be surprised if this wasn't more common.

I ended up implementing SVN at work for all projects including customer configurations/scripts. In doing so, I basically had to perform the operation you described by simply committing each "version" found in a folder.


Terminolgy and ranger by halp - Thu, 07 Aug 2014 20:03:14 EST ID:jaqLWMrW No.32224 Ignore Report Reply Quick Reply
1407456194357.png -(35982 B, 1366x768) Thumbnail displayed, click image for full size. 35982
Hey guys, I have a problem and I know is not /prog/ related but I have nnowhere else to go to.

The problem is that my file manager ranger won't display images on my terminal called Terminology, even though i set it in the rc.conf to preview images.
w3m-img does work in Terminology as show in pic related, I don't know what is the problem even though it works in other w3m-img friendly terminals like xterm, xvt, kterm, etc.

Please halp.
>>
driven !FTPgBqDDy. - Thu, 07 Aug 2014 20:52:41 EST ID:jUTPMgKV No.32225 Ignore Report Quick Reply
>>32224
I think terminology has some special escape characters for showing images. You may already know this.

my nigga.


WTF code by Reuben Bammleway - Thu, 07 Aug 2014 10:04:29 EST ID:CyZPftg7 No.32220 Ignore Report Reply Quick Reply
1407420269044.png -(1281235 B, 900x700) Thumbnail displayed, click image for full size. 1281235
All my internets to anyone who can comprehend the code below. Variables have been renamed to protect the guilty since this code is currently in use in an actual system. Fortunately, the author has left the company.

43 lines of PHP code, empty lines and closing braces included:
http://pastebin.com/R3B5JrZL

It operates on data loaded from a database into $rows. If it'll help it won't, the SQL for the table would be:

CREATE TABLE stuff (
id INT(10) NOT NULL AUTO_INCREMENT,
number INT(10) NOT NULL,
value VARCHAR(10) NOT NULL,
total INT(10) NOT NULL,
level1 INT(10) NULL,
level2 INT(10) NULL,
Comment too long. Click here to view the full text.
>>
Martha Nemmerwire - Thu, 07 Aug 2014 10:17:56 EST ID:z3/qhije No.32221 Ignore Report Quick Reply
I'll take a better look later today, but at the moment it looks like a clear case of SQL abuse: Get all the data from the db and then do some hacking in php where you could just use a well written query.
>>
Charles Cringerlock - Thu, 07 Aug 2014 16:43:19 EST ID:4rqq+WG4 No.32223 Ignore Report Quick Reply
>>32221
sry, had a drink or two too many to make any sense of the code any more.
Just in case you hadn't found out yet:
$diff = array_intersect_assoc($row, $row2);
if (array_key_exists('level1', $diff) && array_key_exists('level2', $diff) && array_key_exists('level3', $diff)) {

is the same as
     if($row->level1 == $row2->level1 && $row->level2 == $row2->level2 && $row->level3 == $row2->level3) {


So the first 20 lines of the code start a loop that is run for every element in the table (row).
For each row it then finds all other rows (row2) that have the same level1, level2 and level3.
Now it finds the row2 that has the smallest row.number.
Comment too long. Click here to view the full text.


Where do I actually find the libraries? by Betsy Clesslenutch - Wed, 06 Aug 2014 20:20:08 EST ID:P9fdViaV No.32213 Ignore Report Reply Quick Reply
1407370808473.jpg -(697640 B, 4928x3280) Thumbnail displayed, click image for full size. 697640
I'm a student in CS and I've taken my Java and C/C++ courses so far, but I'd like to go ahead and look at some of the behind-the-scenes stuff. One thing that's always made me curious is how to actually find the library files that I'm importing my functions from, for example stdio in C.
I'd like to be able to look through those files and see how the printf() function is defined, but when I google around all I'm finding is information about the libraries and descriptions, such as http://www.tutorialspoint.com/c_standard_library/stdio_h.htm

I did manage to find an online listing of libraries in Java ( http://introcs.cs.princeton.edu/java/stdlib/StdIn.java.html ) but should I not be able to find the libraries myself on my computer, or am I looking at this the wrong way?
>>
Nell Crepperdut - Wed, 06 Aug 2014 22:59:39 EST ID:JfwAvV4w No.32214 Ignore Report Quick Reply
1407380379073.png -(64015 B, 708x340) Thumbnail displayed, click image for full size. 64015
>>32213
Just run your helloworld.exe under a debugger and see what WIN32 DLLs are imported and shiz, and then if your 1337 enuf figure out what fucking M$ is doing with deeply nested internal forwarded functions which are still to this date undocumented since they don't want creeps like you and me using dat shit, its kool we will anyway.

Anyway as for your little printf() from a helloworld.exe under gcc 4.8.1
So:
  • Address=004081B4
  • Section=.idata
  • Type=Import (Known)
  • Name=msvcrt.printf

So the name is the most important, the DLL that contains printf function is msvcrt.dll, which is imported into your EXE from import table, I'm not even gonna bother going into the import section and thunk tables etc since it will just confuse the shit out of you and complex window$ stuffz designed by M$ architects.

Moving on, you kinda need understanding of assembly from here in out, but just try and figure it out and as you go *_*. Let's find the:
CALL [DLLADDREntryPoint]
Comment too long. Click here to view the full text.
>>
Nell Crepperdut - Wed, 06 Aug 2014 23:07:38 EST ID:JfwAvV4w No.32215 Ignore Report Quick Reply
1407380858073.jpg -(73746 B, 640x480) Thumbnail displayed, click image for full size. 73746
>>32214
lmfao time is 03:14 here, only an 1 left till 420 .. fuck I need friends, high alone all da time .. emotional music (Ludovico Einaudi - Le Onde), night time.. makes me spill my emotions through the keyboard
>>
Albert Gollyshaw - Thu, 07 Aug 2014 04:50:29 EST ID:aI2TUmfK No.32218 Ignore Report Quick Reply
>>32213

Download a libc like one of the BSD libc implementations or GNU libc.
>>
Martha Nemmerwire - Thu, 07 Aug 2014 09:29:01 EST ID:z3/qhije No.32219 Ignore Report Quick Reply
In C/C++ your code files are compiled into object-files. These object files can afterwards be linked into an executable.
When you write
#include <cstdio>

you include a header file, which contain information that the compiler, when compiling this file, can assume certain things do exist (such as printf), even if your code has no idea how they are implemented.

So, you write a hello world program, compile it and link it. Chances are your program still has absolutely no idea how printf is implemented. Your program ends up just having a name "printf" and some identification where to find that function. The file that contains the program for this function is called a dynamic library (a .dll - dynamic link library in windows, or .so - shared object in linux). It is also possible that this file, or parts of it, will get injected into your own program at link time (called static linking, as opposed to dynamic).

What all of this means is that it is possible you don't actually have the source for printf on your machine.
Gnu implementation is open source and can be found in
https://github.com/lattera/glibc/blob/master/stdio-common/vfprintf.c
(vfprintf, starts at line 201).

I would assume java implementations are pre compiled and closed source.
>>
Martin Chossleshit - Sun, 10 Aug 2014 08:04:37 EST ID:2PLGUfus No.32233 Ignore Report Quick Reply
>>32218
Download the OpenBSD libc.
>GNU libc
That shit ain't for the faint of hearted mane. I'm just saying.


<<Last Pages Next>>
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Report Post
Reason
Note
Please be descriptive with report notes,
this helps staff resolve issues quicker.