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


python/php to C? by Faggy Ceblinggold - Mon, 14 May 2012 07:34:13 EST ID:6Esvr9jE No.22556 Ignore Report Reply Quick Reply
1336995253789.jpg -(51873 B, 800x600) Thumbnail displayed, click image for full size. 51873
If someone has a pretty high level understanding of python (design patterns, all sorts of OOP shit etc) and a similar level with PHP, how much more is there to learn in C? like is it mostly just new syntax and variable scope things to pick up? or is the whole low level programming world really a totally new thing?
11 posts and 1 images omitted. Click Reply to view.
>>
Wesley Dinningstine - Wed, 16 May 2012 16:45:56 EST ID:EiEm6UX1 No.22609 Ignore Report Quick Reply
>>22605
if you have a solid grasp on C++ then you pretty much already know C. Looking at a quick beginners tutorial and farting around in the terminal will teach you all the differences youll need to know.
>>
Nigel Fupperchon - Wed, 16 May 2012 18:06:36 EST ID:RMfDsiBM No.22610 Ignore Report Quick Reply
>>22609
Awesome, thanks.
>>
Oliver Brobbermedging - Wed, 16 May 2012 21:54:18 EST ID:FbcW5Ynx No.22615 Ignore Report Quick Reply
>>22605

If you're a half-way decent C++ programmer, you will find C's lack of certain features very frustrating. The things I miss most when I dabble in C (as a C++ programmer) are templates, RAII, and as a consequence of both, the C++ standard library. If you can live without those, you should be good.

>>22609

Not quite true. You will know C's SYNTAX, but there's more to languages than syntax. There's also that language's standard libraries and common idioms. Granted that C has fewer essential idioms than C++ does (try going around telling people that you "know" C++ without having a clue as to what RAII is or what a std::vector is), all the same, knowing C++ doesn't automatically mean that you know C, and vice versa.
>>
John Ginnershaw - Wed, 16 May 2012 22:28:04 EST ID:EiEm6UX1 No.22616 Ignore Report Quick Reply
>>22615
youre right, i was kind of thinking in the context of someone trying to learn the language. Thats why i said to read a tutorial and fart around in the terminal.
>>
Cyril Decklefield - Thu, 17 May 2012 21:52:55 EST ID:FbcW5Ynx No.22633 Ignore Report Quick Reply
>>22616

Except that a "quick beginners tutorial" WON'T teach you everything you need to know about C++.


WINE: Y U NO WORK? by Priscilla Pimmernud - Thu, 17 May 2012 01:04:41 EST ID:0LRaJLwp No.22619 Ignore Report Reply Quick Reply
1337231081107.jpg -(239968 B, 477x477) Thumbnail displayed, click image for full size. 239968
What's the deal with Wine's imperfect windows emulation? Why can't I play my Windows games on it? Is is undefined libraries or something?
Also, what's the deal with Virtual Machines not emulating a windows install perfectly? I'm determined to play my windows games on a linux machine and I have a hefty Adderall supply to aid me, but where do I start? What will I need to know (language-wise) to help in Wine's development? Or is perfect emulation impossible?
>>
Shitting Biblingnack - Thu, 17 May 2012 01:48:57 EST ID:JjjyQglN No.22623 Ignore Report Quick Reply
I loathe wine. never had a problem with virtual box
>>
Priscilla Pimmernud - Thu, 17 May 2012 02:00:51 EST ID:0LRaJLwp No.22624 Ignore Report Quick Reply
>>22623
Even with playing newer windows games like Mass Effect 3? I always seem to get directX-related errors
>>
Isabella Gumbleket - Thu, 17 May 2012 02:26:45 EST ID:VMhljcOm No.22625 Ignore Report Quick Reply
A popular choice is to have Windows as your default OS and emulate Linux, but it really depends on how much you use Linux.
>>
Shit Goodbanks - Thu, 17 May 2012 07:40:06 EST ID:+FZxa8Zw No.22626 Ignore Report Quick Reply
It is no emulation, its just an implemantation of the winapi , and since reverse engineering isnt that easy, it doesn`t work so well
>>
Cyril Decklefield - Thu, 17 May 2012 21:51:45 EST ID:FbcW5Ynx No.22632 Ignore Report Quick Reply
Because Microsoft tends not to fix quirks of their APIs because other software vendors would throw up a shitstorm if they do that (otherwise they get people screaming "software X is incompatible with the new windows"), resulting in the API having a lot of quirks that not everybody knows and therefore can't emulate.


Quick paid work by Lillian Sedgefere - Thu, 03 May 2012 17:58:52 EST ID:OjdO95ZP No.22395 Ignore Report Reply Quick Reply
1336082332941.jpg -(17137 B, 400x300) Thumbnail displayed, click image for full size. 17137
Hi /prog/,
Is there a programming equivalent to those websites that pay you a bit of money to write and re-write articles? I think that I am good enough at programming that it could be worth money to someone, but I'm still in school and I was hoping for something a little more dependable than freelancing. Any ideas?
5 posts and 1 images omitted. Click Reply to view.
>>
beans - Fri, 04 May 2012 19:18:06 EST ID:lw/bvJZk No.22420 Ignore Report Quick Reply
>>22401
you think facebook would be around if mark was like oh well they already got a social media site...fuck no any website can overtake any other website at any point in time.
>>
Nathaniel Pittson - Fri, 04 May 2012 19:32:34 EST ID:OjdO95ZP No.22421 Ignore Report Quick Reply
>>22420
But that's just not what I want to do at all. If I was looking for a recommendation for a good search engine, would you tell me to make my own?
>>
beans - Fri, 04 May 2012 19:38:02 EST ID:lw/bvJZk No.22422 Ignore Report Quick Reply
>>22421
i certainly would not tell you to use google
use something like duckduckgo
also it may be starter to work on something that will possibly help you bank instead of doing something you like.
just my 0.02
>>
Charlotte Drimmlestone - Fri, 04 May 2012 21:05:13 EST ID:OjdO95ZP No.22428 Ignore Report Quick Reply
>>22422
>also it may be starter to work on something that will possibly help you bank instead of doing something you like.
If I'm reading that correctly, that is what I'm trying to do, and trying to get ideas for.
>>
Graham Dabbleson - Thu, 17 May 2012 18:33:13 EST ID:OjdO95ZP No.22631 Ignore Report Quick Reply
bump


Integer dates by Shit Donningbanks - Tue, 15 May 2012 09:33:59 EST ID:DRS1nc8s No.22584 Ignore Report Reply Quick Reply
1337088839178.jpg -(200070 B, 800x458) Thumbnail displayed, click image for full size. 200070
I'm working on a database which stores dates in an integer format, from 74993 to 77179, which I believe represents dates in 2006-2007. Any suggestions on how to convert these?

Pic is "77179 0.45kg Spool of 1.0mm mild steel mig wire", not related.
4 posts and 1 images omitted. Click Reply to view.
>>
Ian Shittingstone - Tue, 15 May 2012 19:13:38 EST ID:9fwjQ3u2 No.22596 Ignore Report Quick Reply
What the fuck
>>
Sophie Duffinghall - Thu, 17 May 2012 08:06:49 EST ID:fWxWTSCf No.22627 Ignore Report Quick Reply
I found a table containing birthdays encoded both as an integer and text digits in a national identity number. Based on this, the integer dates are the number of days since December 28, 1800.

/thread
>>
Graham Tillingfoot - Thu, 17 May 2012 10:28:47 EST ID:bqxbhpKW No.22628 Ignore Report Quick Reply
>>22627
What the fuck kind of epoch is 12/28/1800? Why.
>>
Nathaniel Chockleford - Thu, 17 May 2012 11:28:42 EST ID:VuYCXl/p No.22629 Ignore Report Quick Reply
Is there really no one you could ask?
If not, you might as well just make up the dates cause these numbers could mean anything.
>>
Sophie Clondlehood - Thu, 17 May 2012 13:38:53 EST ID:IEnXYEwj No.22630 Ignore Report Quick Reply
>>22629
No, there isn't, unless you think my competitor would respond to me asking nicely. They might want to know how I got access to their data which was password-protected, and probably won't like that I used a hex editor on one of their exe's to get their connection string. They might decide to pay attention to my new client (their ex-client once their subscription expires) and I don't want that. Anyway, they do the same to me and our other competitors, it's the nature of the market I'm in.

However, there's no need to make anything up, see >>22627.

>>22628
It seemed arbitrary to me too, so I googled it. Seems it's a Clarion legacy, though I don't know why they chose that date. The data I'm converting isn't Clarion either, but perhaps Clarion was used somewhere in the product's history and they stuck with the convention.


C prog by James Pemmleham - Wed, 16 May 2012 23:22:48 EST ID:eJmA1xop No.22618 Ignore Report Reply Quick Reply
1337224968841.gif -(1121529 B, 474x365) Thumbnail displayed, click image for full size. 1121529
Hey /prog/ what are some good C books that teach me C programming, and another one that teaches an interesting library.
>>
Whitey Papperbanks - Thu, 17 May 2012 01:25:54 EST ID:YwOpzi7y No.22620 Ignore Report Quick Reply
Kernighan & Ritchie
>>
John Ginnershaw - Thu, 17 May 2012 01:28:36 EST ID:EiEm6UX1 No.22621 Ignore Report Quick Reply
>>22618
The C programming language by keringhan and ritchie

its a C bible
>>
Shitting Biblingnack - Thu, 17 May 2012 01:36:37 EST ID:JjjyQglN No.22622 Ignore Report Quick Reply
1337232997718.jpg -(10919 B, 300x300) Thumbnail displayed, click image for full size. 10919
I just scored "C Primer Plus" and "C: Step by Step" by Stephen Prata and Mitchell Waite. Started off with "C Primer Plus" a couple of nights ago and am progressing nicely. It's well written, a little bit of humor, and was designed to be used as a complete course in C. It's pretty old, but all the new stuff I looked at is filled w/ ridiculous cartoons and non-sense. I'd recommend both of these books to you.

One final thing is that is written assuming you have a brain, you don't have to have tons of programming experience.

http://www.amazon.com/C-Primer-Plus-5th-Edition/dp/0672326965


HELP by that one nerd - Wed, 16 May 2012 23:07:31 EST ID:75V6cvxr No.22617 Ignore Report Reply Quick Reply
1337224051060.jpg -(13993 B, 266x400) Thumbnail displayed, click image for full size. 13993
does anyone know any good sites that can teach me how to program in C++?


Good JavaScript Learning Sources by Phoebe Chucklefoot - Wed, 16 May 2012 15:37:14 EST ID:X52sJ30q No.22606 Ignore Report Reply Quick Reply
1337197034493.gif -(1826587 B, 290x217) Thumbnail displayed, click image for full size. 1826587
I'm interested in getting started on learning JavaScript, and I was wondering if you guys knew of some good sources to learn from?

I'd prefer if I could get it in .pdf format, but I'm fine with good online tutorials. Also, being poor, free sources would be nice.

Should I just go with w3schools? Or do you know of easier to learn and follow books?
1 posts omitted. Click Reply to view.
>>
Graham Nabbersut - Wed, 16 May 2012 16:44:51 EST ID:vhgZIlcV No.22608 Ignore Report Quick Reply
1337201091390.jpg -(53631 B, 600x450) Thumbnail displayed, click image for full size. 53631
>>22607
CodeAcademy does not teach javascript.
It does teach the basics of the basics of programming using javascript, and does this extremely slowly. The site looks nice though and the UI is great.
If op is interested in books I'd assume "Javascript - the good parts" is a good source of knowledge
>>
Eliza Brubblefuck - Wed, 16 May 2012 18:49:57 EST ID:OX3XDmEr No.22611 Ignore Report Quick Reply
>>22608

Javascript The Good Parts is my recommendation as well.
>>
William Sinkingold - Wed, 16 May 2012 20:29:32 EST ID:60FsIdO7 No.22612 Ignore Report Quick Reply
OP there are plenty of great free online tutorials for JavaScript, just google "best JavaScript tutorials" or something like that. Here are a few to get you started (and a few of these I've used recently since I'm learning it myself):

http://www.webmonkey.com/2010/02/javascript_tutorial_-_lesson_1/
http://code.google.com/edu/submissions/html-css-javascript/#javascript (watch these)
http://eloquentjavascript.net/

Once you get the fundamentals down, I'd look into JQuery. It's very well documented and easy to pick up on once you know the basics. For both JS and JQuery, just grab some tutorials like these and follow along, you'll learn them in no time.
>>
William Sinkingold - Wed, 16 May 2012 20:32:42 EST ID:60FsIdO7 No.22613 Ignore Report Quick Reply
>>22612
Forgot to mention that w3schools should be avoided whenever possible. It's an okay reference for quickly looking up tags, functions, etc. but that's about it.

More on this here: http://w3fools.com/

nb
>>
Shit Claffingbanks - Wed, 16 May 2012 21:42:39 EST ID:jcSX+Anx No.22614 Ignore Report Quick Reply
1337218959269.gif -(511426 B, 500x252) Thumbnail displayed, click image for full size. 511426
>>22612
>>22613
>>22611

Thank you!

>>22607
>>22608
I already have some experience programming with Java, and I've fiddled with C++ and Python. I just wanted to play around a bit with some JavaScript.

Thanks for the pointers!
Pic unrelated


C# MVC3 EntityFramework Project into a server by Hugh Sibblemodge - Thu, 10 May 2012 15:12:32 EST ID:klvSTAmk No.22520 Ignore Report Reply Quick Reply
1336677152508.jpg -(0 B, 750x424) Thumbnail displayed, click image for full size.
Ok, I've built this project, installed Windows XP and MS SQL Express Server, I have static IP... what to do next to actually have the website running? :D
4 posts and 1 images omitted. Click Reply to view.
>>
Fanny Blackforth - Mon, 14 May 2012 10:17:13 EST ID:jalAgAbM No.22560 Ignore Report Quick Reply
1337005033588.jpg -(41534 B, 516x292) Thumbnail displayed, click image for full size. 41534
>>22520
Ok, Good job in even getting this far. it looks like you know what you're doing. You have all the necessary stuff to make this run. The next thing you need to do is install IIS. I think it's in the "programs" section in the control panel. From there you can go to "turn windows features on or off" then turn on IIS. next, youj'll want to configure IIS and install the asp.net mvc3 runtime. then deploy the application to the inetpub directory. Then all you have to do is get your connection string right in the config files and everything should work.
>>
Albert Shittingfuck - Mon, 14 May 2012 15:01:31 EST ID:klvSTAmk No.22562 Ignore Report Quick Reply
>>22560
>>22553
So well, asax files are forbidden via ISS on XP; I will try 7, just didn't want to reinstall all my server based on XP already (you know, it managed the LAN so it was better to stay on XP as long as it did the work). It's actually project for my little company so licences are important... it's all about time now but I will probably switch to Java ASAP (I'm Linux user generally so it was pain in the ass to have Windows installed just for Visual Studio anyway (student's license)). It's questionnaire system to do a little resarch among my clients... and automatically do some math with them, organise answers also. nothing big but the biggest thing I've ever done. :)
>>
Molly Denningmack - Mon, 14 May 2012 17:18:21 EST ID:fVvzWHpb No.22564 Ignore Report Quick Reply
>>22562
Win 7 ? no try windows server2008.
I want to know what you are making.
>>
Lydia Fobblenick - Tue, 15 May 2012 09:37:35 EST ID:klvSTAmk No.22585 Ignore Report Quick Reply
>>22564
I have no license for Windows Server 2008 and Windows 7 Ultimate is already bought so... I'm not seeking for perfect solution which would be using Java w/ Linux & Apache anyway. ;-) AFAIK Windows Server 2008 R2 is just like Windows 7 but with software for networking (which I would not use anyway) and free of desktop shit... am I wrong?

Also, I've already told what I made: questionnaire system. It auto-generate and send links to my clients from database and generates them then the set of questions depending of the clients' nature (e.g. the kind of pucharse they've made) and saves the answers into the database; now I'm working on generating some statistics from the answers. :)
>>
Isabella Clibblechag - Wed, 16 May 2012 08:29:00 EST ID:fVvzWHpb No.22602 Ignore Report Quick Reply
>>22585
>am I wrong?
Yup but it doesn't matter if you aren't going to use it.


c++ bitwise by joe - Mon, 14 May 2012 01:21:34 EST ID:4kob/a5Q No.22550 Ignore Report Reply Quick Reply
1336972894182.jpg -(6705 B, 216x233) Thumbnail displayed, click image for full size. 6705
Write a single c++ statement that does this:

right rotate unsigned char X, by N bits. Assume unsigned char is 8 bits.
3 posts omitted. Click Reply to view.
>>
Henry Hurryford - Tue, 15 May 2012 10:48:31 EST ID:tL911O7+ No.22588 Ignore Report Quick Reply
>>22587

OP here, close.

X = X>>N|(8*sizeof(X)-N))
>>
Henry Hurryford - Tue, 15 May 2012 10:50:25 EST ID:tL911O7+ No.22589 Ignore Report Quick Reply
>>22588

Oops.

X>>N|(X << (8*sizeof(x) -N))
>>
Eliza Nunningnurk - Tue, 15 May 2012 11:08:59 EST ID:vhgZIlcV No.22590 Ignore Report Quick Reply
>>22589
If we still assume 8 bit values then the sizeof is not required, of course it is a nice thing to use to make the code more portable. The extra parentheses aren't required either, bit shifting has higher precedence than bitwise or.
>>
Phyllis Blebbleledge - Tue, 15 May 2012 21:00:37 EST ID:rcp2h4Pi No.22597 Ignore Report Quick Reply
char is always 1 byte
>>
Ebenezer Pickham - Tue, 15 May 2012 21:33:22 EST ID:FbcW5Ynx No.22598 Ignore Report Quick Reply
>>22597

This. BUT... a byte is not always 8 bits.


javascript array by haquo - Fri, 11 May 2012 20:28:18 EST ID:2vPZwF9w No.22528 Ignore Report Reply Quick Reply
1336782498479.jpg -(42194 B, 400x300) Thumbnail displayed, click image for full size. 42194
Hi guys small problem with jscript arrays. If I have a array like the one bellow how would one go with rearranging it by value? from 50 to 200.
dict=[];
dict["alan"]=100
dict["bill"]=200
dict["james"]=150
dict["tom"]=50

also,if presumable I have more elements in the array but i have to keep only 5 with the biggest value ,should I rearrange my value from biggest to smallest, and pop everything else ? and if so could I get a sample code for that ?
>>
Oliver Blandletedge - Fri, 11 May 2012 21:07:38 EST ID:gLfws0AG No.22532 Ignore Report Quick Reply
I don't know shit about javascript but it look like a sorted map to me.
It's not a big deal if you know how to sort something, seriously.
Sort the key by values, use the 5 first key.

Also unrelated : I don't get the picture
>>
Charlotte Wandlewater - Tue, 15 May 2012 00:17:52 EST ID:EiEm6UX1 No.22575 Ignore Report Quick Reply
>>22528
no a pop wouldnt work because after one change the smallest number may not be the one at the position of the smallest number. I would keep them sorted and then use insertion sort as an element needs to be exchanged
>>
Molly Hallerhall - Tue, 15 May 2012 05:30:21 EST ID:E1sbA/sD No.22581 Ignore Report Quick Reply
>>22528
Google javascript array sorting.

Also, this looks like homework.


JAVA for beginners by LLOYD_XMAS - Thu, 10 May 2012 16:13:43 EST ID:tf6k9U6M No.22521 Ignore Report Reply Quick Reply
1336680823147.jpg -(10996 B, 300x300) Thumbnail displayed, click image for full size. 10996
Hey all, I compiled a bunch of lecture slides and sample code from my programming course last semester for beginners learning JAVA.
Enjoy
http://www.mediafire.com/?70lffsg7y7a8ytj
9 posts and 1 images omitted. Click Reply to view.
>>
LLOYD_XMAS - Tue, 15 May 2012 01:21:01 EST ID:FA8HVJE9 No.22576 Ignore Report Quick Reply
1337059261747.jpg -(125580 B, 400x396) Thumbnail displayed, click image for full size. 125580
OP here,

At my uni there are 2 streams that you can take for first and second year programming classes. First off everyone does a course in python, then you choose to do either the java based course or the linux/c++ course. same goes for second year data structures/programming. Currently I am in the second year java course. The java stream as I see it is there to set you up for the second year course "software engineering" where you and a 8 others work on an app for the whole semester. In the other stream of software engineering they do something more database related, last semester had to make online voting systems for bc provincial elections.
SFU has a majorly decent cs department and y'all should check it out for grad school or otherwise! Vancouver is a great city and cron is $25-30/8th!
For the record computing is my minor as I am a math major(3rd year).
>>
LLOYD_XMAS - Tue, 15 May 2012 01:23:41 EST ID:FA8HVJE9 No.22577 Ignore Report Quick Reply
1337059421083.jpg -(90798 B, 404x290) Thumbnail displayed, click image for full size. 90798
>>22576
sorry if that was garbled, I am high as shit
>>
Nigel Drinderkot - Tue, 15 May 2012 01:33:08 EST ID:FbcW5Ynx No.22578 Ignore Report Quick Reply
Where I go to school, you now learn Racket (a Lisp dialect), then Java and C, then more C and Java, plus C++, and then depending on what you do, more C, C++, Java, or a functional language. Haskell, I think. When I was in first-year, the intro. to programming language was Java, but they switched it to Racket for some reason. I think they wanted to make the course harder so it would weed out people...
>>
Nigel Drinderkot - Tue, 15 May 2012 01:34:51 EST ID:FbcW5Ynx No.22579 Ignore Report Quick Reply
>>22578

This is at UBC, BTW. Vancouver IS nice. A bit expensive, though. $1200 per month single-bedroom apartments are pretty common. Almost low-end, actually.
>>
LLOYD_XMAS - Tue, 15 May 2012 02:13:47 EST ID:FA8HVJE9 No.22580 Ignore Report Quick Reply
>>22579
also forgot to mention there are a lot of asians. you are looking at about 10-20% non asians in math/cs/eng classes


Everything-Leaks Needs Help by Nell Pittcocke - Mon, 14 May 2012 08:08:18 EST ID:fhTB/+a6 No.22558 Ignore Report Reply Quick Reply
1336997298159.jpg -(25507 B, 503x340) Thumbnail displayed, click image for full size. 25507
Hey guys, first time posting in this part of 420chan. Recently a website called Everything-Leaks.com was shutdown. Its about the third time this year that it was shutdown and because of this the owner (MasterLeak) is trying to set up his own private site instead of using a premade blogging site. The problem is that hes not very good with html coding and needs help from anyone who can contribute. If anyone can spare some time to help a good website get in touch with him at Everythingleaks@hotmail.com
>>
Walter Grimway - Mon, 14 May 2012 17:43:40 EST ID:9fwjQ3u2 No.22566 Ignore Report Quick Reply
  1. Buy webhosting
  2. Install Wordpress
  3. Get shut down anyway
>>
Nell Pittcocke - Mon, 14 May 2012 18:17:36 EST ID:fhTB/+a6 No.22569 Ignore Report Quick Reply
I think wordpress and blogspot are what he used already. Hes trying for something login based now maybe something like a forum if that helps?
>>
Jenny Brozzleford - Mon, 14 May 2012 18:18:40 EST ID:uHtcczXf No.22570 Ignore Report Quick Reply
>>22569
>Hes trying for something login based now maybe something like a forum if that helps?
Just use invisionfree with a password.
>>
Cedric Peddlefurk - Mon, 14 May 2012 21:52:56 EST ID:fhTB/+a6 No.22574 Ignore Report Quick Reply
>>22570 Thanks for the input, I'll let him know about it.



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