Do you enjoy using these boards? If so, please contribute today.
Your support keeps 420chan alive. Really.
June Server Costs
420chan JSON API Now Available - Documentation - Discussion Thread
Build apps and browsing enhancements!
Leave these fields empty (spam trap):
Name
You can leave this blank to post anonymously, or you can create a Tripcode by using the format 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


Love Computers but can't program by Sophie Blannerhotch - Mon, 03 Jun 2013 17:02:31 EST ID:/9iMHqIF No.28695 Ignore Report Reply Quick Reply
1370293351243.jpg -(276181 B, 1280x960) Thumbnail displayed, click image for full size. 276181
I love computers, everything about computers i enjoy, the sounds of the fans everything , I know basic Linux commands from experience having to use them, but I feel like my love of computers has hit a dead end with my lack of ability to learn a programming language, I tried different languages, BASIC, Python, C, C++, Ruby, and I make it up to designing a string or something then I blank out when I see integers and variables, they say to learn a Programming language yo u should have somewhat good mathematical skills but math has never been my area due to faking it all the way up to the 12th grade. How do I learn a programming language because I want to design programs while i study to become a computer network administrator...
22 posts and 1 images omitted. Click Reply to view.
>>
Caroline Sammledock - Fri, 14 Jun 2013 03:24:43 EST ID:nEtNPX+Q No.28802 Ignore Report Quick Reply
>>28801
lolkwut
>>
Molly Nenderdadging - Fri, 14 Jun 2013 11:29:47 EST ID:xtelIQ1k No.28805 Ignore Report Quick Reply
>>28802
He used to have a girlfriend who was a C# developer and she taught him everything. He's now employed doing PHP, Node.js, and JS development, but the girlfriend has left to work in Finland. It's okay though, because he uses the fat ducats from his Node.js work to pay for the pussy he crushes every week.

Well done, Mr. Backlelure.
>>
Simon Crucklespear - Fri, 14 Jun 2013 16:20:01 EST ID:H/EYToqC No.28808 Ignore Report Quick Reply
>>28801
> go KKK every weeks and have sex with premium girls.
I would never have considered the Ku Klux Klan to be the place to go to pick up chicks.
>>
Isabella Brommerstock - Thu, 20 Jun 2013 00:51:16 EST ID:20dKspUk No.28857 Ignore Report Quick Reply
>>28808
I think this is an american/european culture misunderstanding. KKK must have a different meaning where Beatrice is from.
>>
Hamilton Sondlestatch - Thu, 20 Jun 2013 01:16:27 EST ID:xtelIQ1k No.28858 Ignore Report Quick Reply
>>28857
orly?


firstSecondThird() by LunaZ !!7BBNw68J - Wed, 19 Jun 2013 18:36:51 EST ID:adbJfCPd No.28850 Ignore Report Reply Quick Reply
1371681411601.png -(49840 B, 178x200) Thumbnail displayed, click image for full size. 49840
Any of you /prog/ heads know what the deal is with the common practice of not capitalising the first word of a variable/function/etc??

I see it all the time when reading other peoples code, and the few people I've asked just tell me "that's just how it's done" or "that's how I was always taught to do it"... but why is that, is there actually a specific reason why it should be done that way?!
>>
Cedric Guddlekidging - Wed, 19 Jun 2013 18:46:06 EST ID:mLGlc5dg No.28852 Ignore Report Quick Reply
The reasons depend greatly on the language in use, but in general the reason is this: The coding style denotes that capitalized variables are constants.

In some languages this is only a guideline (i.e. it's not enforced by the runtime), but in other languages capitalized variables are how constants are created.

In other cases, it can just be an influence some coders have because of their work with other languages.
>>
Walter Cubberchodge - Wed, 19 Jun 2013 19:07:25 EST ID:JYKgK3sJ No.28854 Ignore Report Quick Reply
http://en.wikipedia.org/wiki/CamelCase
It's popular because it allows you to identify words more easily. I'm not really sure why people don't just use the underscore character instead, just tradition probably.
>>
Clara Serringkadging - Wed, 19 Jun 2013 19:11:04 EST ID:gLfws0AG No.28855 Ignore Report Quick Reply
http://en.wikipedia.org/wiki/CamelCase

>that's just how it's done
There are no secrets answer here. Because, well, that's how it's done.
You can do whatever you want. But remember, someone is going to read your code. It's better if both of you have the same standards.

Java style:
FirstSecond for classes
firstSecond for variables and methods
FIRST_SECOND for constants and enum

I've seen:
first_second
firstsecond
first-second
Comment too long. Click here to view the full text.
>>
Edward Gozzlelet - Thu, 20 Jun 2013 00:44:47 EST ID:ICAfVo/C No.28856 Ignore Report Quick Reply
I just leave them lowercase in my C program. I have functions like
list * newlist();
void appendtoken(list * l, char * t)

etc.


making a generated key number that has a value by Priscilla Lightgold - Mon, 17 Jun 2013 03:02:36 EST ID:EeQk+ywf No.28834 Ignore Report Reply Quick Reply
1371452556847.jpg -(115888 B, 550x306) Thumbnail displayed, click image for full size. 115888
Is there a gem I could use to create a type of session code. For example, on a webpage, ruby is changing variables and displaying it at html, but is there a gem where I could take all the variables that are being changed, and generate that into a coded string. Any time you go to the webpage with that coded string, you resume that session.

So it's basically taking variables and coding that into a string that needs to translated back to the variables when re-entered in as html.
2 posts and 1 images omitted. Click Reply to view.
>>
Clara Blatherhood - Mon, 17 Jun 2013 03:57:10 EST ID:PESsCqhu No.28837 Ignore Report Quick Reply
>>28836
*encoding
>>
Priscilla Lightgold - Mon, 17 Jun 2013 16:24:47 EST ID:EeQk+ywf No.28838 Ignore Report Quick Reply
Pretty stoned when I posted that, but yeah that's basically it.

Server side could be something like:

money = 4052
wins = 3

Then there'd be some thing that'd take those variables, combine them into one generated string like '5Hzuo6pl" and you could enter that on the site to continue a session. The key would be forever re-usable by anyone. So the session isn't being stored, it's being generated by the key.
>>
Angus Bellyworth - Mon, 17 Jun 2013 18:18:31 EST ID:xtelIQ1k No.28839 Ignore Report Quick Reply
>>28838
So long as you don't care about making it unique and the information you want to encode is well defined, this is straight forward. If you have three 16-bit values you want to save, just stick them together, convert to base64, calculate some kind of checksum, and stick that on the end to prevent cheating.

I don't know ruby, but I'm sure all of the heavy lifting has been done for you.
>>
Molly Soshworth - Mon, 17 Jun 2013 22:55:19 EST ID:kv8bxsSs No.28840 Ignore Report Quick Reply
1371524119629.jpg -(37973 B, 403x320) Thumbnail displayed, click image for full size. 37973
https://en.wikipedia.org/wiki/HTTP_cookie
>>
Cedric Guddlekidging - Wed, 19 Jun 2013 18:55:12 EST ID:mLGlc5dg No.28853 Ignore Report Quick Reply
You may not even need a gem. If you want the session to be usable by anyone, just encode it into the url. Instead of trying to store the data the variables are holding, store the data for the session on your server, give it a unique id, and then put the id into the url.


gnu make build password by Cyril Padgebanks - Tue, 18 Jun 2013 22:11:10 EST ID:8hr+DEUy No.28845 Ignore Report Reply Quick Reply
1371607870153.jpg -(39679 B, 500x281) Thumbnail displayed, click image for full size. 39679
when you build android with your own build keys, it asks you to enter passwords for said keys about eleventy billion times pausing the build each time. what would be a good way to automate this faggotry? i guess i would need whatever interrupt make throws when paused waiting for a password, look for this with a python script and then just loop entering the characters until make ends and script kills itself?
>>
Albert Ginningmig - Wed, 19 Jun 2013 02:52:55 EST ID:L+dcZdjc No.28846 Ignore Report Quick Reply
>>28845
When you use Eclipse it'll make a debug keystore for you, wich it automatically authenticates. Only when you export the production apk you'll have to select your own key, passwords.
>>
Cedric Guddlekidging - Wed, 19 Jun 2013 18:42:16 EST ID:mLGlc5dg No.28851 Ignore Report Quick Reply
If you build in debug mode, it uses the debug keystore automatically. If you want to automate release builds, you'll have to use eclipse or ant, as the previous poster said.


Algorithms in Java? Big O notation? by Wesley Niggerforth - Wed, 12 Jun 2013 19:18:16 EST ID:nLT0MnJf No.28783 Ignore Report Reply Quick Reply
1371079096114.jpg -(27433 B, 240x350) Thumbnail displayed, click image for full size. 27433
I'm very inexperienced with discrete mathematics, but we're dealing with algorithms in a Java class I'm taking and this is one of our homework problems...

>>What is the smallest value of n for which 100 n^2 runs faster than an algorithm whose running time is 2^n on the same machine?

How would I go about solving this, and where does big O notation come in? I don't need it answered for me, I just need to know what concepts to research so I can find the answer.
3 posts omitted. Click Reply to view.
>>
Hedda Nummlehall - Fri, 14 Jun 2013 04:36:31 EST ID:gLfws0AG No.28803 Ignore Report Quick Reply
>>28787
>it takes less time
Depends on the time constant associated with each algorithm.
Depends on the overhead associated with each algorithm.
Depends on the data size.

Big O is highly theoretical anyway, OP question is dumb. I said the same thing on a similar exercice in /math/.
>>
Hugh Sondleham - Fri, 14 Jun 2013 10:46:16 EST ID:8VeNZsAD No.28804 Ignore Report Quick Reply
>>28803
Theoretical yes, but also very applicable.
I'm sure you do know, but in case someone does not: If some algorithm has lower big O than another, then no matter what time constant or what overhead there is for either of the algorithms, the one with lower big O will be faster always when the data size is above some limit. This limit is rarely too large to completely disregard big O in the common case, but in special cases data sizes may be small enough for a 'worse' algorithm to perform better.

To op's questions:
>100n^2 vs. 2^n
I would just bracket the value. I'm not sure if there is a more efficient way to do that but I can't come up with one atm.
>where does big O notation come in?
I kinda said it earlier, but to make it more succinct (more or less straight mathematical definition with squiggles translated into English):
Function f(n) belongs to O(g(n)) iff there exists positive values m and k so that f(n) <= k*g(n) whenever n > m.

So for example
if f(n) = 100*n^2 and g(n) = 2^n
we could test k = 1 and m = 100:
100*100^2 <= 1*2^100 <=> 1000000 <= 1267650600228229401496703205376
Comment too long. Click here to view the full text.
>>
Nicholas Mudgemedge - Wed, 19 Jun 2013 09:59:57 EST ID:CDxzXgp6 No.28847 Ignore Report Quick Reply
>2logn - nlog2 < -2
so that's when I said "fuck you"
>>
Clara Sabberhod - Wed, 19 Jun 2013 14:53:03 EST ID:40E5YeaU No.28848 Ignore Report Quick Reply
>>28803
>Big O is highly theoretical anyway

Only in a world where you don't give a shit about how long anything takes or how much memory it takes.
>>
Cedric Guddlekidging - Wed, 19 Jun 2013 18:34:57 EST ID:mLGlc5dg No.28849 Ignore Report Quick Reply
>Big O is highly theoretical anyway

That statement is such horseshit.

While yes, an algorithm with a worse big O can outperform a better big O algorithm on a small data set, if your data set is small who gives a fuck about how fast the algorithm is anyway. Also, almost any non-trivial data set is going to be big enough to shit all over your shitty x^n garbage.


Newfaggotry by John Perringfoot - Sat, 15 Jun 2013 09:05:35 EST ID:Vrrmdvgy No.28810 Ignore Report Reply Quick Reply
1371301535427.png -(18012 B, 322x338) Thumbnail displayed, click image for full size. 18012
Hey guys, I'm new to programming and I heard BATCH was a good place to start, where would I learn how to program in BATCH? cause BATCH doesn't seem to have a lot of documentation, all I know is that it's essentially command prompt in an executable form.
12 posts omitted. Click Reply to view.
>>
Edwin Claylock - Sun, 16 Jun 2013 22:25:39 EST ID:H/EYToqC No.28832 Ignore Report Quick Reply
>>28830
I last used it in the late '90s. I'm pretty sure that it was stand-alone at the time, though I could be wrong.
>>
Edwin Claylock - Sun, 16 Jun 2013 22:40:55 EST ID:H/EYToqC No.28833 Ignore Report Quick Reply
>>28832
That said, my opinion on the subject is probably not worth as much as it once was. nb
>>
William Finnertot - Tue, 18 Jun 2013 03:06:58 EST ID:BZAer8Lp No.28842 Ignore Report Quick Reply
Start with Python or C.

It's best to pick up a book on programming Python or C. Then pickup a Linux machine or install one with VirtualBox or VMWare. Compile all your shits on Linux, and you will have a good time.

I know it's going to be a pain in the ass to setup, but it's well worth it in the long run. If you just want to learn scripting, use this book with Linux:

http://www.amazon.com/Practical-Commands-Editors-Programming-Edition/dp/013308504X/ref=sr_1_2?ie=UTF8&qid=1371537907&sr=8-2

Since you're just starting out, all this syntax is going to be foreign as fuck. Give it time to sink in, and most of this will be straight-forward.
>>
Eliza Chocklesire - Tue, 18 Jun 2013 06:45:25 EST ID:8nGXktSq No.28843 Ignore Report Quick Reply
>>28815
Agreed with this guy. Batch is pretty much useless and can't even be considered real programming. Python has beautiful, neat syntax and it's very easy to pick up. Also, consider starting your journey by watching some tutorial videos instead of reading massive manuals which tend to be more confusing than helpful (at least when you're starting out). It will also help you if have a specific thing you'd like to code, it gives you a chance to code something you're actually interested in, so it's more fun and you'll be more motivated to work on it so you'll improve faster.

In any case, I wish you the best of luck and I hope you'll stick to it. Coding can sometimes be a bitch (I just started learning C and C++, didn't sleep in the last 24 hours, spent the last 10 hours coding something trivial and troubleshooting compiler and external library issues, and I'm still confused as fuck), but it can also be one of the most rewarding things you can do with your time. Most code starts as something simple, just to make a specific task easier. But then you keep improving that code, adding and changing tiny bits, until it evolves so much that it almost has a life of its own. It's no longer just a bunch of code, it becomes a world unto itself.

I'll hope I'll experience some of the worlds you create in the future :)
>>
Nicholas Godgekug - Tue, 18 Jun 2013 16:04:46 EST ID:DEU5+GhE No.28844 Ignore Report Quick Reply
>>28842
dude thank you so much. I googled that book and found a link to a torrent file with that and about 30 other books about linux programming.


Sinatra - Ruby by George Padgeford - Tue, 11 Jun 2013 18:02:54 EST ID:EeQk+ywf No.28772 Ignore Report Reply Quick Reply
1370988174897.png -(26576 B, 497x139) Thumbnail displayed, click image for full size. 26576
Anyone have any experience with Sinatra? It's made in/used for Ruby for creating web applications. I've been learning it and testing it out on Heroku, fun stuff.

Anyway, this is sort of a placeholder for any questions I have when they pop up, but feel free to discuss Sinatra/add some tips.
>>
George Padgeford - Tue, 11 Jun 2013 19:50:48 EST ID:EeQk+ywf No.28773 Ignore Report Quick Reply
Alright, got a question.

I've set some session variables in the main program, but there is seemingly no way to access them from another object.

Example:

[p]
class Tester
def test_method
return sessions[:testvar]
end
end

configure do
enable :sessions
Comment too long. Click here to view the full text.
>>
George Padgeford - Tue, 11 Jun 2013 19:58:29 EST ID:EeQk+ywf No.28774 Ignore Report Quick Reply
hmmm

class Tester
def test_method
return sessions[:testvar]
end
end

configure do
enable :sessions
end

get '/' do
sessions[:testvar] = "hey"
Comment too long. Click here to view the full text.
>>
Barnaby Pegglekod - Sun, 16 Jun 2013 15:19:28 EST ID:EeQk+ywf No.28829 Ignore Report Quick Reply
Might as well not make a new thread for this.

Is there any way to save things on Heroku? I guess it's read-only, so while I can make a number/stat save on it, it later goes away as it's never been written. Do I use a database for this, or is it just not possible with Heroku?
>>
Molly Sallylock - Mon, 17 Jun 2013 23:24:25 EST ID:4TBdazqV No.28841 Ignore Report Quick Reply
>>28829
Push it into a NoSQL datastore. Heroku includes a few options for you to choose from.


chitty chitty bang bang by Nigel Dobblewun - Fri, 14 Jun 2013 00:26:02 EST ID:0MDde17h No.28798 Ignore Report Reply Quick Reply
1371183962052.gif -(1021203 B, 500x475) Thumbnail displayed, click image for full size. 1021203
Hello /prog/,

I come to you today with a problem. It's not my homework, nor am I asking you how to get a job. I'm currently a programmer at a family owned business for the Oil & Gas industry.

The problem is that I feel this job almost hurts my future as much (and not hopefully more) than it's helping it, or rather I'm making bad habits worse and I'd like some insight on how to improve before exploring my future.

As the Systems Programmer, my job pertains to building and maintaining the back-end, exploring issues with complex installations, customer support, documentation and more. When I arrived at this company, the lead programmer was leaving. There was a suite of applications, some newly made and others mature but not aging well (VB6 Realtime Server Applications) and absolutely no documentation outside of the code.

The hierarchy for my company is a bit weird. I report to the director of our division (small, less than 10 people) and partially to my co-programmer (really just a specialist in emissions permits and per customer scripts). For the most part, I manage myself. I decide how long and when I work on what, until something is handed to me otherwise. Things fluctuate between new projects, customer issues and slow periods (where I plan out new projects).


The thing about managing yourself is that it needs a certain level of motivation. And, as someone who battles with depression, perhaps chronic depression, I find this very difficult to always care about how well I'm doing. There are times that I look at the amount of actual time spent working while at work and wonder what I'm doing there, and yet, I know enough to solve the difficult problems that come our way.

I feel that my experience here will be so different than any future job, that I'll under-perform, under-communicate and eventually be underemployed again at Kroger.
Comment too long. Click here to view the full text.
>>
Nigel Dobblewun - Fri, 14 Jun 2013 00:38:04 EST ID:0MDde17h No.28799 Ignore Report Quick Reply
btw, tl;dr is after the break
nb
>>
Polly Blathergold - Fri, 14 Jun 2013 01:05:32 EST ID:FRj6VW2A No.28800 Ignore Report Quick Reply
This won't probably work but think about how easy you actually have it, for at least half the people that graduate from CS it means debts hard studying and maybe other personal problems but once they're out, working and making money feels like heaven. Now think about countries like spain where engineers are delivering the newspaper because it's so hard to get a job.

Or if you're just bored find a personal hobby to distract yourself from work, so that when you come back you feel more relaxed and willing to work.
>>
Martha Negglenure - Fri, 14 Jun 2013 15:33:46 EST ID:RGQZ+Y5H No.28807 Ignore Report Quick Reply
1371238426001.jpg -(83221 B, 542x989) Thumbnail displayed, click image for full size. 83221
>>28800
Is it okay to know that in some way I'm taking advantage of this job's flexibility? I'll probably stay here for another 2 years before moving onward and upward. And by no means will I leave this job for some menial programming position.

Also, I haven't graduated. I've only gotten my basics out of the way. I plan to finish a degree online at WGU with their BS in IT-Software to make sure I can transition when I'm ready.

What do people do to hold interest in their hobbies? I tend to get obsessive and flair out quickly (manic/depressive stages).
>>
Augustus Fillerfere - Sun, 16 Jun 2013 21:15:18 EST ID:FRj6VW2A No.28831 Ignore Report Quick Reply
>>28807
Normal people have problems, problems make people ambitious, ambition makes people work.

No offense but most people I've seen who have these "depressive" stages have their lives handed to them, grow some balls and finish your education. Program a game, hack a console. You have skills most people don't.

Or if you just want to get distracted play a sport or learn to play an instrument.


java problem by Simon Mebberspear - Sat, 15 Jun 2013 23:22:48 EST ID:ROdYsx00 No.28820 Ignore Report Reply Quick Reply
1371352968234.png -(142805 B, 1908x1080) Thumbnail displayed, click image for full size. 142805
so i'm trying to draw a few shapes in an applet and i cant seem to figure out why it's not working
please help
1 posts and 1 images omitted. Click Reply to view.
>>
Emma Sennerlock - Sat, 15 Jun 2013 23:32:09 EST ID:kv8bxsSs No.28822 Ignore Report Quick Reply
1371353529979.jpg -(313929 B, 2947x1958) Thumbnail displayed, click image for full size. 313929
>it's not working
stellar bug report, simon
>>
Simon Mebberspear - Sat, 15 Jun 2013 23:41:25 EST ID:ROdYsx00 No.28823 Ignore Report Quick Reply
1371354085234.jpg -(29562 B, 419x333) Thumbnail displayed, click image for full size. 29562
>>28822
it wont draw the shapes
>>
Phineas Sizzlewater - Sun, 16 Jun 2013 00:43:20 EST ID:KtWUuSYb No.28824 Ignore Report Quick Reply
>>28820

Change 'draw' to 'paint' for your method
>>
Simon Mebberspear - Sun, 16 Jun 2013 00:50:25 EST ID:ROdYsx00 No.28825 Ignore Report Quick Reply
1371358225234.gif -(1915993 B, 200x200) Thumbnail displayed, click image for full size. 1915993
>>28824
thanks bra
>>
Doris Cullerspear - Sun, 16 Jun 2013 06:10:47 EST ID:L+dcZdjc No.28827 Ignore Report Quick Reply
>>28824
>>28825

Dont you need to override onPaint or something.. Or was that .net?


Jobs without C# .NET visual or Java by Ebenezer Channerlock - Wed, 05 Jun 2013 13:31:01 EST ID:20dKspUk No.28723 Ignore Report Reply Quick Reply
1370453461133.gif -(2074089 B, 360x240) Thumbnail displayed, click image for full size. 2074089
I don't know any of those languages and it seems I have screwed myself for doing so. Everyone seems to be looking for web based developers or developers for windows platforms.
I know C, C++, obj-C, Qt, and some Python, HTML, Bash, and haskell.

What sort of entry level jobs should I be looking for or am I just screwed? All I can find are support type jobs. Like tech support for the IT departments of the client using my employers product.

no idea what pic I posted
3 posts and 3 images omitted. Click Reply to view.
>>
Jenny Clecklelune - Thu, 06 Jun 2013 06:58:25 EST ID:L+dcZdjc No.28736 Ignore Report Quick Reply
>>28735 You know, .NET isn't a net working lib per s?.


>>28723
I started a week ago on learning C#. I also knew java, obj c, python and web development languages. And I can tell you, it's a fucking breeze. It's almost the same as java. Never had a problem(with the language) that i couldn't solve by the first google hit. I'm pretty confisent i can write the same software in c# that i can write in java, and that after mot even a fulltime week. I had a little experience in .net in visual basic though. But .NET is only for the ui stuff and interacting with windows(partially the same thing). Plus that lib is sublimely documented aswell, if you ask me.
>>
Jenny Clecklelune - Thu, 06 Jun 2013 07:01:56 EST ID:L+dcZdjc No.28737 Ignore Report Quick Reply
>>28723
Whoops, one thing though, if you make a new project in vis studio. always press the save all button at least once. else the project files arent saved on disk, and are kept in memory. Lost two days of work by forgetting to press that button(my computer crashed). i'm now repeating it and its the worst thing i have ever done involving software development.
>>
Cornelius Blodgeham - Thu, 06 Jun 2013 07:49:14 EST ID:7CEq0tjv No.28740 Ignore Report Quick Reply
1370519354894.jpg -(129276 B, 480x640) Thumbnail displayed, click image for full size. 129276
>>28736

Huh? I did not mention .NET anywhere in my post; Qt is an application framework, Boost is a set of libriaries, both are written in C++. Besides, .NET is much more than UI stuff/Windows interaction.
>>
Molly Boffinghut - Tue, 11 Jun 2013 17:41:51 EST ID:vLCXfMhb No.28771 Ignore Report Quick Reply
>>28723
Why don't you learn .NET or JVM languages?

> C, C++
Could get you a job in embedded sytems. But you'd need to know quite a bit about low-level programming.

> HTML
If you add javascript, you could get a work as web designer.

Considering the languages you've already used, you would probably also get an entry-level job in some language that you haven't used yet. Just apply everywhere or consult a recruiter.
>>
Fuck Wundlestodge - Sat, 15 Jun 2013 01:49:42 EST ID:20dKspUk No.28809 Ignore Report Quick Reply
>>28771
How does one actually contact a recruiter? I have had several contact me but I can never find them.


harmful software by Beatrice Duckson - Fri, 26 Apr 2013 21:35:19 EST ID:F/+3MubZ No.28225 Ignore Report Reply Quick Reply
1367026519962.png -(2298733 B, 1440x1681) Thumbnail displayed, click image for full size. 2298733
>2013
>using harmful software
25 posts and 3 images omitted. Click Reply to view.
>>
Priscilla Funderstone - Thu, 13 Jun 2013 07:12:27 EST ID:ZxjXS2he No.28793 Ignore Report Quick Reply
>>28689
Good libraries implement each library function in separate object (.o) files, this enables the linker (ld) to only extract and link those object files from an archive (.a) that export the symbols that are actually used by a program.
Whatever stdlib you're using is terrible and shouldn't be used.
>>
Shit Trotman - Thu, 13 Jun 2013 12:11:32 EST ID:8VeNZsAD No.28795 Ignore Report Quick Reply
>>28793
I would assume it's just libc.a that gets linked. It's from glibc 2.17-2 in arch repos.
>>
Betsy Povingledging - Thu, 13 Jun 2013 19:37:06 EST ID:Vg1KVC7X No.28796 Ignore Report Quick Reply
>>28700
>Windows also (afaik) does not support multiple processes using the same shared library instance in memory

It does, actually. It's how Chrome manages to not eat up all of your memory when you have a thousand tabs open. It's commonly overlooked in windows though, because the task manager doesn't show shared memory statistics by default.
>>
Phineas Bimmleshaw - Thu, 13 Jun 2013 23:40:40 EST ID:kv8bxsSs No.28797 Ignore Report Quick Reply
>>28796
>>Windows also (afaik) does not support multiple processes using the same shared library instance in memory
>It does, actually.
in the old days, it was possible to overwrite things in memory, like the IAT for whatever dll you had loaded. has this changed? as i remember, the changes only affected one process, so does windows do copy on write now when things like this happen?
>>
Hannah Dablingway - Fri, 14 Jun 2013 12:13:30 EST ID:Vg1KVC7X No.28806 Ignore Report Quick Reply
>>28797
>does windows do copy on write now when things like this happen?
Yes. In fact, that is why the IAT exists in the first place.

For those who don't know, IAT stands for import address table.

All functions that reference external libraries have to have their function pointers filled in at runtime. (If the linker is loading the libraries dynamically, the compiler can't know where in memory an external library is going to be loaded.) Each program is going to have it's own libraries that will have to be linked to various shared libraries, so they'll need different function pointers in those spots. For efficiency reasons, copy on write works page by page, so if any memory on a given page is modified, the entire page has to be copied to all of it's clones before the write can happen. This means that every page that has at least one reference to an external non-shared library will have to be copied to every clone. (Which will in practice be nearly every page.)

All functions that would normally point to an external library instead point to an entry in that executable's IAT, and each entry in the IAT holds the function pointer to the actual external library functions (which are filled in by the linker at runtime.) This way all of the modified memory that would need to be copied is kept inside as few pages as possible, reducing the memory overhead and allowing copy on write to be possible. (At the cost of adding in a extra jump for every external function called.)


Artificial Intelligence / NLP by Charlotte Brollerwidge - Mon, 03 Jun 2013 05:48:30 EST ID:EeQk+ywf No.28686 Ignore Report Reply Quick Reply
1370252910907.gif -(200482 B, 600x572) Thumbnail displayed, click image for full size. 200482
I've been interested in Artificial Intelligence for a while now, and also find language itself interesting, so I figured it's time to finally jump into it a bit with natural language processing. I know Ruby decently well, but I'm starting to learn Python now and I figure I could also combine my Python learning experience by learning to use NLTK through this book: http://nltk.org/book/

Although that paragraph is mostly about NLP, does anyone have any experience/interest with Artificial Intelligence in general? NLP? Any recommendations for A.I. programs, languages, games, theories, ideas?

Some ideas of mine are the classic chatbot, but I'd like it to learn. I'd wanna take it a step further after that by having a bot learn to play competitively in video games. I imagine a game where there's a bot that plays players and learns from them, and every game adds to its memory and bag of tricks, so everytime a person plays it, it's different and hopefully more improved, as each person adds to its knowledge. There's a guy who made an A.I. that learns to play NES games which is pretty interesting, he has source code but it's not something I'd be able to understand yet.

Long, jumbled thread, but basically a.i./nlp thread.
2 posts omitted. Click Reply to view.
>>
Hamilton Fuckingson - Thu, 06 Jun 2013 20:17:04 EST ID:gLfws0AG No.28743 Ignore Report Quick Reply
Learn about heuristics, complex system, graph theory, statistics, alpha-beta pruning and other similar algorithms. Artificial Intelligence is just applied graph theory with some math and psychology.

>I imagine a game where there's a bot that plays players and learns from them
It sounds great in theory but in pratice it'll never be as efficient than a real AI.
You can definitely get emergent behavior and I'd love to work on something like that someday.

>http://aigamedev.com/
Lot of fancy screens. Lot of words to explain either nothing or something trivial.
Premium articles. PREMIUM ARTICLES
No thanks. Well that was my impression after 1/2 hour of reading. There are some decent articles I guess.
>>
Edwin Bendleshaw - Tue, 11 Jun 2013 10:40:49 EST ID:6BApByLZ No.28770 Ignore Report Quick Reply
Why not LISP?
>>
Nigel Ginnerkudge - Wed, 12 Jun 2013 15:42:11 EST ID:xtelIQ1k No.28782 Ignore Report Quick Reply
>>28770
Protip: when you say shit like that, not only will nothing come of it, but people of any experience will tune you out.
>>
Ian Grimdale - Wed, 12 Jun 2013 23:06:13 EST ID:IvnAw5Ya No.28788 Ignore Report Quick Reply
>>28782
jeez dude...
I agree you aren't gonna want to use LISP for an actually decent and useful program, but LISP can be good as an intermediate step in explaining some AI topics.

But either way, Charlotte's gonna use python...
>>
Priscilla Feffingdock - Thu, 13 Jun 2013 03:48:16 EST ID:gLfws0AG No.28790 Ignore Report Quick Reply
>>28788
You know, Lisp isn't only about learning. It may seems weird, but it's an actual, useful, and very expressive language. You can do in 50 lines what may take 1000 lines in another more complex language, like C++ or Java.

http://c2.com/cgi/wiki?LispIsTooPowerful
http://www.paulgraham.com/icad.html


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