AnonAccount: What is it, and what does it do? - Q&A Thread
Leave these fields empty (spam trap):
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
[*]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


learning scheme for SICP by Matilda Brobblelire - Fri, 11 Apr 2014 02:28:57 EST ID:8XZ8rawt No.31489 Ignore Report Reply Quick Reply
1397197737938.jpg -(102349 B, 500x375) Thumbnail displayed, click image for full size. 102349
i'm just about to start reading through SICP, however it appears that it doesn't actually give any information on how to get set up with Scheme. Any suggestions on a good IDE for Scheme development (running Windows)? I've tried downloading the MIT/GNU Scheme for Windows but I feel like I'm using VIM, I really dislike the whole command-based set-up.
Just want to get started with SICP as quickly as possible :)
1 posts omitted. Click Reply to view.
Nigel Surryson - Fri, 11 Apr 2014 03:39:12 EST ID:xtelIQ1k No.31491 Ignore Report Quick Reply
I think there's a dedicated SICP mode that works around any minor incompatibilities.
Edward Trotway - Fri, 11 Apr 2014 07:07:03 EST ID:SVZjhRzL No.31492 Ignore Report Quick Reply
Use MIT scheme
Read the bottom of this, tells you how to get setup properly for SICP so you don't end up fucked in later chapters
Matilda Brobblelire - Fri, 11 Apr 2014 10:51:44 EST ID:8XZ8rawt No.31499 Ignore Report Quick Reply
thanks, I actually checked that out before I tried looking for an IDE (was currently trying to set racket up to download MIT Scheme but it won't connect for some reason.
I'll try it once more, I suppose I should be prepared to have to spend some time learning how to use it hehe, at first glance I was pretty turned off of it hehe
Matilda Brobblelire - Fri, 11 Apr 2014 12:38:15 EST ID:8XZ8rawt No.31500 Ignore Report Quick Reply
I've tried checking out the GNU/MIT Scheme again, I really can't find any tutorial on how to use it. I try a few of the commands like C+h t for the tutorial, nothing seems to be working.
This is the closest I could find:
but it seems to be an older version which doesn't require the use of keyboard commands. Anyone know where I can find a detailed up to date, "getting started" for gnu/mit scheme?
Matilda Brobblelire - Fri, 11 Apr 2014 13:27:50 EST ID:8XZ8rawt No.31501 Ignore Report Quick Reply
nb, but I suppose the only reason I was having an issue is cause at the start of SICP it says evaluating 486 will return 486, however in Edwin it appears you can only evaluate actual expressions, so I was racking my brain trying to find a way to get 486 to echo since using M+z kept returning 'Internal Error: Not inside a definition'. Can anyone confirm that I can only evaluate expressions and that there is no way to just echo a line in Edwin?

Anything else besides K&R? by Betsy Sarryridge - Fri, 21 Mar 2014 14:36:01 EST ID:IeTWxhF/ No.31295 Ignore Report Reply Quick Reply
1395426961942.jpg -(194698 B, 1103x1453) Thumbnail displayed, click image for full size. 194698
I really wanna learn C but upon reading K&R I just feel like the book is sometimes a bit over my head. Are there any good books on C out there? Oh and sorry for being picky but I don't really like internet tutorials. They're just really dry and generally lack some of that inspiration that a good book has. I intend to read K&R but I just want something that is a little more introductory.
14 posts and 3 images omitted. Click Reply to view.
Cyril Fanhood - Sat, 05 Apr 2014 16:24:04 EST ID:SVZjhRzL No.31445 Ignore Report Quick Reply
This is a good, basic learning resource

It teaches you C, then you build your own language using Lisp that is similar to C, for the sole reason of learning.
Caroline Gannercocke - Sun, 06 Apr 2014 13:08:11 EST ID:LM7QsRBb No.31451 Ignore Report Quick Reply
I would also suggest SICP, it will teach you the "gist" of our art, better than any other book.

After you finish that, is there any particular reason why you want to learn C? Nowadays there are easier (and more productive) languages to start from, for example Go. Go is quite similar to C in syntax and in some concepts like pointers and structs, not to mention that like C it's compiled to machine code. But it's immensely easier to program in. After you become real good in Go, which should enable you to build all sorts of modern programs, it will be much easier to learn C and its tricky parts, if you really want to.
Henry Crandernotch - Sun, 06 Apr 2014 21:20:48 EST ID:ELRh5r3/ No.31454 Ignore Report Quick Reply
>Nowadays there are easier (and more productive) languages to start from, for example Go
c is a pretty simple language to start with. at least that's my way to interpret "low level". i heard it called an advanced macro assembler. learning asm is also very interesting if you are into that kinda stuff, e.g. in embedded and systems programming, where c is common place.

it gets gritty if you want to invest into standard compliance and use and abuse your compiler to the max or just understand what you are doing really. in that sense:
gcc's documentation (or msdn help sites? llvm?) - the iso standard

and above all

if on the other hand OP wants to learn high level programming algorithms or just solve problems, yeah, something with a decent standard library and predefined abstractions will sooner yield success.
Shit Snodforth - Fri, 11 Apr 2014 01:16:38 EST ID:IeTWxhF/ No.31486 Ignore Report Quick Reply
1397193398554.jpg -(261284 B, 786x1016) Thumbnail displayed, click image for full size. 261284
>any particular reason why you want to learn C?

Mainly because that's what I'm learning in my computer architecture class at Uni. But throughout this semester I've really began to take a liking towards assembly, embedded systems and the overall architecture that goes into computers.
Matilda Brobblelire - Fri, 11 Apr 2014 01:52:53 EST ID:8XZ8rawt No.31488 Ignore Report Quick Reply
when i emailed my highschool programming teacher asking him what I could read to get a head start on college his recommendation was C Programming A Modern Approach. From what I remember that was a pretty decent call, I was a noob and was following it just fine (I've looked inside K&R, definitely more abstruse), perhaps give that a looksie?

SICP Trek by Martin Fecklefield - Wed, 09 Apr 2014 18:53:45 EST ID:SVZjhRzL No.31469 Ignore Report Reply Quick Reply
1397084025229.jpg -(33745 B, 300x295) Thumbnail displayed, click image for full size. 33745
Goddamnit, why did nobody tell me this exists

Hacker pair-programming/school in Berlin, only costs 500EUR per month, and you hack Lisp/Scheme all day long.

The only sort of codeschools where I live are node.js and rails/ruby factories where they teach you the most blandest corporatist web app crud, and they cost $13,000 for 4 weeks. The whole school is geared so a local corp (hootsuite) can snatch up "training wage" developers and pay them pittance whereas this SICP Trek is like a masters degree in computer theory you can apply to any language.

This page also good if you're interested in doing SICP yourself if you read the bottom where they recommend Emacs preconfigs and why you shouldn't use Racket instead of MITScheme. MIT version is a bitch to setup on some Linux boxes but well worth it when you get to chapter 4.

Additionally, if you are a gigantic fagg0rt with a iThing you can sign up to Understudy and do SICP one on one, but they charge money for more than 2hrs per week which is straight up gay considering #scheme IRC channel is free
1 posts omitted. Click Reply to view.
Nigger Fashtot - Wed, 09 Apr 2014 22:38:59 EST ID:SVZjhRzL No.31473 Ignore Report Quick Reply

True, these codeschools are a good way to get into a slot at some local corp and start working immediately but not good if you want to keep learning. They will slam you with overtime everyday. Typical they make new Ruby/Rails guys work 14-16hr days, while on salary and don't pay them overtime. At least here anyways. A much cheaper Scheme school like this Berlin program I think would be better at finding employment. If you wanted to work for hootsuite or whatever corp afterwards you could do so by going on coursera and doing a ruby course in a few weeks, then directly apply and be paid more than the Jr. devs hired out of codeschool who are famously paid almost nothing.

As for myself I've already done SICP years ago and work creating custom DSL's in Common Lisp
Phineas Backlecocke - Thu, 10 Apr 2014 00:01:15 EST ID:5DncEJD6 No.31474 Ignore Report Quick Reply
I'm guessing you're in the US. Hacker Retreat seems to have basically copied Hacker School, which is in New York. It's also actual-free.
Jarvis Gunnerford - Thu, 10 Apr 2014 16:42:47 EST ID:T3FPGpDn No.31481 Ignore Report Quick Reply
SICP taught by Abelson and Sussman [video]
Matilda Brobblelire - Fri, 11 Apr 2014 01:15:28 EST ID:8XZ8rawt No.31485 Ignore Report Quick Reply
I was just about to start reading the textbook online tonight, would you recommend the video lectures over the text for any particular reason?
Edward Trotway - Fri, 11 Apr 2014 07:18:09 EST ID:SVZjhRzL No.31493 Ignore Report Quick Reply

SICP: The movie is a compliment to the book, not a replacement. You need to do the assignments and actually code in order to learn. Also check out the MIT lecture notes from 2004 when they used to teach SICP.

Ruby on Rails by Walter Sattingturk - Wed, 02 Apr 2014 03:31:21 EST ID:damOgPMp No.31400 Ignore Report Reply Quick Reply
1396423881277.png -(84889 B, 316x376) Thumbnail displayed, click image for full size. 84889
I have a couple questions about RoR, and web frameworks in general. I've never made a site with RoR, or any web framework before, so please forgive me if the questions are noobish.

1) How can I run a RoR server on my desktop so I can create a website that I don't a server for yet? (I mean, I just want to develop the site for now, not making it available for the public, but when I get a server ready soon, just quickly move everything over to the server, and then make it public.)
2) When a company/group is rolling out a new design/theme of their site, how do they test the new design/theme without making it live? Do they have something like a test web server that serves the new layout pages? How does the test server access the same database that the main server uses? How do they make the test web server private so outsiders can't see/access it?
4 posts omitted. Click Reply to view.
Walter Sattingturk - Wed, 02 Apr 2014 15:34:56 EST ID:damOgPMp No.31405 Ignore Report Quick Reply
>To view your pages, you need something to serve them, a server. RoR runs a server for the page you've made. Most likely the default settings are such that the page can only be fetched from localhost, so the same machine. So in fact you do have a server, it's just not publicly visible - just what you want. Whenever you want to make it public, you just change a setting in RoR to listen to connections from other addresses. Optionally you can move the page to a completely different machine.
So, how do I start/run the server? Can I do this with/in netbeans or eclipse?
Whitey Bebblegold - Wed, 02 Apr 2014 18:05:06 EST ID:dUqCye/w No.31407 Ignore Report Quick Reply
The easiest way is just to run WEBrick, which is the default, built-in ruby webserver. All you need to do is run the command "rails server" to start WEBrick hosting the default/current project.
Edward Pittlock - Fri, 04 Apr 2014 23:54:19 EST ID:damOgPMp No.31437 Ignore Report Quick Reply
That was easy, I got it running and responding. This tutorial helped me out a bunch, despite being a little bit old. Things are moving smoothly, and I'm happy.
Edward Pittlock - Sat, 05 Apr 2014 15:03:05 EST ID:damOgPMp No.31444 Ignore Report Quick Reply
1396724585281.jpg -(94617 B, 1000x629) Thumbnail displayed, click image for full size. 94617
I've hit a snag. I made the database, and managed to put things into it, and edit them even. Then I decided that I wanted to change the model, because the types/columns that the db held were just test ones. I rewrote the files to reflect the right types, and at some point managed to delete the database, but I can't get the database to be recreated for the new model. I get the error "Could not find table 'polls'" in the browser when I try to go to post/new, and "no such table: posts: ..." in the console when I do Post.all. I've tried rake db:reset, rake db:migrate, and rake db:migrate:reset, and none of them create the database.

Any idea what's wrong?
Rebecca Banderbanks - Thu, 10 Apr 2014 17:42:21 EST ID:damOgPMp No.31483 Ignore Report Quick Reply
Op here: I found the problem, and properly migrated the database now. I have another question though.

Background Info: For a test program, I'm making a blog. A blog has many posts, and each post can be up-voted and down-voted. I have a table for posts, and another table for vote-sets that has a foreign key for the post it belongs to. I'm using Rails's "belongs_to"/"has_many" things to link the things together, and they work fine.

The Actual Question:
I have a page that you type stuff into, and then hit submit to create a new post, but I don't know how to also create (and then store) a vote-set on that same page. (The vote-set will be created with the default values of 0 up-votes and 0 down-votes, obviously.) With my current knowledge, I have a separate 'new'-page for both the post and the vote-set. I want a single page that can create both of these things by itself. How do I do this?

Transparent Game (Python) by Sophie Shakewill - Sun, 06 Apr 2014 21:04:22 EST ID:fEbBcQxF No.31453 Ignore Report Reply Quick Reply
1396832662039.jpg -(207356 B, 1680x1050) Thumbnail displayed, click image for full size. 207356
Hi all. I'm working on an app that will display graphics (bitmaps and what not) onto the screen. These graphics (which will only take up a fraction of the screen) will always be on top. But anything behind (such as iTunes or an internet browser) will still be perfectly clickable.

I think a good example of what I'm looking for is Microsoft's clippy. He's a sprite that sort of transcends any window and appears as if he exists on his own plane. If he's sitting in the middle of your text document, you can go on typing right underneath him.

Does such a thing exist? I realize I may be defying the very laws of windowing systems, but still, I really need to do this. Thanks for all your help.

( had had my mind set on using windows and python, if that's possible)
Henry Crandernotch - Sun, 06 Apr 2014 21:23:51 EST ID:ELRh5r3/ No.31455 Ignore Report Quick Reply
look into the windows api and python bindings for it, if you don't have a framework that does this.
Lydia Sandleman - Tue, 08 Apr 2014 00:44:13 EST ID:Bls1RztX No.31459 Ignore Report Quick Reply
Maybe a better example of what i'm looking for the Eclipse initial loading screen. It's just a box with no real borders or anything. How exactly would I go about creating something like that?

Thanks for the advice, but I feel there just HAS to be some sort of framework out there for it already
Fanny Dannerville - Tue, 08 Apr 2014 11:48:12 EST ID:dUqCye/w No.31460 Ignore Report Quick Reply
What you want is generally called borderless or widgetless windows. Here's a couple examples for making a simple window of this type using Tk or Qt:

Creating a GUI by David Megglefudging - Sun, 06 Apr 2014 00:20:14 EST ID:aVmpChgk No.31447 Ignore Report Reply Quick Reply
1396758014767.jpg -(92755 B, 960x922) Thumbnail displayed, click image for full size. 92755
I'm learning to create GUI's for python scripts using FLTK, and want to create one for the 'AT' program on linux, one thing that has me a bit stumped is how to pass information to the program once it enters it's own 'shell' I guess it is.
AT itself is very simple to use and very useful, but after giving it an argument like "at 4:00 pm tomorrow" and pressing return, it enters a prompt that will execute those commands with /bin/sh, each return going to a new line, exiting the shell with ctrl+d.
Basically I intend to make the GUI like an alarm clock, allowing a user to set the time and date easily, with the ability to select their own audio for the alarm or switch between audio/visual notification, and a snooze button that stops the audio and starts it again in specified amount of time.
Just totally stumped with the whole AT shell and how I can get python to pass commands to it, anyone know how I can pass information to it?
Beatrice Pittworth - Sun, 06 Apr 2014 04:28:38 EST ID:xtelIQ1k No.31448 Ignore Report Quick Reply
For the GUI, find a GUI framework that has a decent calendar widget. Preferably one without a billion dependencies you don't have. As for at, just figure out what arguments you want to give it and use the subprocess module with 'echo arguments | at time'.
David Megglefudging - Sun, 06 Apr 2014 08:59:44 EST ID:aVmpChgk No.31449 Ignore Report Quick Reply
Just tested out
echo $(play file.mp3) | at now

Worked perfectly, thanks!
David Megglefudging - Sun, 06 Apr 2014 10:03:11 EST ID:aVmpChgk No.31450 Ignore Report Quick Reply
Whoops, realized that I was running 'play' with that before running 'at now'
but changing it to echo "play file.mp3" | at now
works just fine.

Am I allowed by Charles Wembleson - Fri, 04 Apr 2014 01:58:04 EST ID:eFYg2ahv No.31426 Ignore Report Reply Quick Reply
1396591084629.jpg -(201829 B, 601x451) Thumbnail displayed, click image for full size. 201829
... to talk about scripting here? I know a lot of people are really technical about that so I'm not trying to irritate anyone.

But if I may, I'd like to ask a javascript question. Let's say you had a website with 4 subdirectories and a man page in the parent folder. Now let's say each of the 4 sub-sites had different softwares on them, like a forum, a blog, etc. Now let's also say you wanted to make a script without php (just humor me here) that could log a registered user into all 4 at once and also register a new user on all at once.

How would you go about doing that? I'm having a hard time finding examples and I haven't been doing this for as long as most of you probably have.
1 posts omitted. Click Reply to view.
Esther Drammerlid - Fri, 04 Apr 2014 02:12:08 EST ID:vhgZIlcV No.31428 Ignore Report Quick Reply
To have any security in the system you need at least a little log-in system at the server side. If you don't want to use php then don't, quite a few people have left that and chosen python or ruby or possibly some other language to do the web server.
Nell Greenhood - Fri, 04 Apr 2014 07:25:34 EST ID:e4FccTus No.31430 Ignore Report Quick Reply
It depends on the details of each of the 4 sub-sites. If each has a user/login API accessible from the main page's javascript, then it's as easy as calling all 4 via AJAX. If not... well, as I said it depends on what methods the sub-sites support.
Frederick Brinkinpick - Fri, 04 Apr 2014 10:31:15 EST ID:qBizS3gm No.31431 Ignore Report Quick Reply
Repeating what the other guy said: js runs on the user's browser, and can't natively access or command the server. A modern way to accomplish this is with an HTTP API, to which you would asynchronously (once the pages are already loaded) send requests in your javascript, a.k.a. ajax.

The solution depends entirely on what's already there. Fill us in and maybe we can help you?
Ebenezer Fuckingbanks - Fri, 04 Apr 2014 15:03:54 EST ID:dUqCye/w No.31432 Ignore Report Quick Reply
Look for a centralized auth system that works with the web software you have selected for the forum and blog. Drupal (CMS) provides this. So does IPBoard (forum). There's also OpenID/OpenAuth that can be implemented separately and then tied into the software. The main thing is do not try to create your own login system. Authorization and Authentication are two areas where you need to go with an existing proven solution unless you have serious resources and reasons for rolling your own.
Reuben Cranderbine - Fri, 04 Apr 2014 20:52:45 EST ID:p687BUn+ No.31435 Ignore Report Quick Reply
Seeing as the different "websites" are all published on the same host, the usual cross-origin protections in the browser are not activated.

Therefore you should be able to use jQuery to either:
  1. make the calls using AJAX and examine the results; or
  2. load (or post a hidden form to) an IFrame, which you can then examine, in case AJAX does not work for any reason.

In either case, AJAX or IFrame, you should be ok with a generic tutorial on jQuery.

This is linux related, but also /prog/ by Wesley Chusslekin - Thu, 05 Dec 2013 15:39:17 EST ID:6Q6dsSjx No.30454 Ignore Report Reply Quick Reply
1386275957262.gif -(147871 B, 458x311) Thumbnail displayed, click image for full size. 147871
So I'm no stranger to linux, mostly. I've installed a linux from scratch before and know a bit about setting your variables and whatnot but I'm trying to figure something out.

>Seagate NAS, has SSH access, full linux distro. But no compiler/make.

I want to cross compile the c and make binaries and copy them over so I can get something going on my NAS. add new programs and whatnot.

I tried to follow this

mixed with the LFS manual, mixed with some RaspberryPi cross compiling tutorials and overall just couldn't figure it out.

Can I just use distcc on one linux box to do all the compiling and still copy it over? I'm new to distcc, personally.

I have Arch and Debian [on my vps] to work with.

Sorry if these are dumb questions. I'm not familiar with crosscompilint at all. I figured you'd just set the prefix and architecture but I'm not familiar with using an external toolchain.
2 posts and 1 images omitted. Click Reply to view.
Molly Shittingstone - Fri, 06 Dec 2013 00:19:40 EST ID:6Q6dsSjx No.30457 Ignore Report Quick Reply
>Can't you just make a cross-compiler on whatever system you use and use that to compile binaries targeting your armv6l system?
I've never crosscompiled and your link is helpful! I'll use the -march flag to see if I can get anything going. But if hello world won't run...

I found this

Looks like it might be locked down but the source code is hidden somewhere out there. But I've come across a site to help if you bricked and the JTAG process is as hellish as those procedures have ever been..

So far I've been having fun with bash scripting things here and there. SSH tunnels turning it into a local proxy, etc.

Seagate even replied to me about the Twonky server and how it's locked down as well. (No DLNA for the USB drives.) Booo.

Found the source code and definitely going to poke around to see if there is anything interesting in there.
Comment too long. Click here to view the full text.
Molly Shittingstone - Fri, 06 Dec 2013 00:24:53 EST ID:6Q6dsSjx No.30458 Ignore Report Quick Reply
Well the source has some interesting stuff. Obviously there's a compiler somewhere since there are ./configure and aclocal files and stuff. But I found a file called "HACKERS" in the module-init-tools-3.4.tar.bz2 and it says this:

"Notes for Hackers

Here are some quick notes, that may or may not evolve into something more
substantial over time. Development is preferably done via git merges.

  • git trees don't contain pre-built config/Makefiles/etc. You'll need to
    run the following (in order):

automake --add-missing --copy
Comment too long. Click here to view the full text.
Molly Shittingstone - Fri, 06 Dec 2013 00:32:51 EST ID:6Q6dsSjx No.30459 Ignore Report Quick Reply
nevermind, i'm retarded. This is just the source and they probably compiled the binaries how they wanted and removed all the source. Even /usr/src is empty. I bet it's a daemon or something that acts as a watchdog to kill anything that runs. Probably has a whitelist somewhere. I could only dream that it's a config file somewhere buried in /etc/ but I'd bet money it's compiled in the binary somewhere.

Damn. Thanks again. But this may be over my head. :/
Molly Shittingstone - Fri, 06 Dec 2013 01:27:12 EST ID:6Q6dsSjx No.30460 Ignore Report Quick Reply

I'm getting some python and perl programs to run though! Webmin installed, and deluge torrent app installed, but it's missing some dependencies :(

It's looking like standalone python and perl binaries may offer an option to run extra services. The box is capable.

nb for talking to myself.
Solved - Fri, 04 Apr 2014 20:44:33 EST ID:p687BUn+ No.31434 Ignore Report Quick Reply
Someone managed to solve the issue!

See this post about compiling binutils for the Central:

Or this one about making a cross-compiler that targets the Central:

The crux seems to be adding these LDFLAGS="-Wl,-z,max-page-size=0x10000 -Wl,-z,common-page-size=0x10000 -Wl,-O1 -Wl,-Ttext-segment=0x10000"

Education? by Samuel Dosslestone - Mon, 24 Mar 2014 00:41:30 EST ID:oBwzzKeU No.31330 Ignore Report Reply Quick Reply
1395636090029.png -(123742 B, 480x480) Thumbnail displayed, click image for full size. 123742
I have been programming professionally for a few months now, and I don't have a degree. I've been wondering if I should go back to get my degree. What do you guys think I should do? Should I work here for a couple of years and then go back to school? Quite frankly, I work a lot, and taking classes on the side is just not an option (the best I could do is Saturday classes).

6 posts omitted. Click Reply to view.
Nigel Shittingstone - Fri, 28 Mar 2014 08:34:42 EST ID:yF79Nc/L No.31384 Ignore Report Quick Reply
Of course you should get a degree. You'll get a title and a small boost for your ego.
Nell Ponningbet - Fri, 28 Mar 2014 09:25:07 EST ID:41soS3PY No.31386 Ignore Report Quick Reply

Also helps to move into an easier management role later in life that pays more.
Phineas Dillydale - Fri, 28 Mar 2014 19:25:31 EST ID:gpyECHx+ No.31387 Ignore Report Quick Reply
sounds like some programmers i worked with that later went for a management degree
John Clibberdale - Mon, 31 Mar 2014 15:46:37 EST ID:ZWSeBuP9 No.31396 Ignore Report Quick Reply
Listen to me. A degree is valuable. Not because you will learn anything in school (you probably won't) but because it shows that you're willing to invest in yourself (it costs money to go to school), and work on a multiyear project and show up often enough to finish it (your degree). In the tech field everyone knows that degrees don't mean shit in terms of technical talent, but they do show that you are coherent/sober enough to work on something for a long period of time without flaking out. If you can make enough money to be happy by working your talent alone, then obviously you don't need to go get a degree. But if you wish you could make a little bit more money, or feel a little bit more secure that you could get a job after this job ends, then a degree is nice. FWIW don't go into super-debt in school for tech shit. People don't really care all that much whether you went to University of State XYZ vs. College of Butts vs. Community College of Asswipes as long as you have a degree and *most importantly* demonstrate coding ability in an up-to-date environment.
Martha Hollerlick - Fri, 04 Apr 2014 03:31:10 EST ID:oBwzzKeU No.31429 Ignore Report Quick Reply
OP here again. It's really late, but what the hell. Such an excellent response. Thank you so much. This is a contract to hire position. If I don't get permanent, I'll just go back to school and finish up my associate's. I only have two more semesters left and bam, I've got the first piece (and some contract work experience). This seriously is the best advice ever though. Thank you for that.

Changing Variable Type, C++ by Walter Genninghood - Thu, 03 Apr 2014 09:12:43 EST ID:YaL0+ciH No.31415 Ignore Report Reply Quick Reply
1396530763127.jpg -(32565 B, 1280x1024) Thumbnail displayed, click image for full size. 32565
Quick one: basically written a small piece of code in C++ that computes a numbers factorial. Works fine with everything as integers, until you enter a number too large for it to handle as an integer. So, I tried changing the integers and instead declare them as long integers, or even as double, but all I get is 'error: type 'double' unexpected' or 'error: type 'long' unexpected'. Why? It's only changing the variable type, won't it work?


using namespace std;

long factorial1(int k){
int i=0,factk=1;
Comment too long. Click here to view the full text.
Clara Hammlepock - Thu, 03 Apr 2014 12:45:55 EST ID:I31z+CiS No.31417 Ignore Report Quick Reply
factk and factnk are longs
factorial1 and factorial2 are expecting ints
in your functions factk and factnk are ints
in your functions you are expecting to return longs

Just got my first programming job by Betsy Murdspear - Tue, 21 Jan 2014 22:46:43 EST ID:oBwzzKeU No.30770 Ignore Report Reply Quick Reply
1390362403843.jpg -(16223 B, 298x300) Thumbnail displayed, click image for full size. 16223
Tell me your experiences from first day to training until your first real project.

I just need to know what to expect. The company I work for uses VB .NET and SQL Server.
27 posts and 1 images omitted. Click Reply to view.
Edwin Pambleforth - Tue, 25 Mar 2014 01:54:22 EST ID:oBwzzKeU No.31340 Ignore Report Quick Reply

I wish this were possible, man. The entire application suite I work on is critically dependent on SQL. A lot of it is through databinding though (which is basically voodoo to me).
Barnaby Sonnerwot - Tue, 25 Mar 2014 20:47:33 EST ID:dYhKX+UP No.31341 Ignore Report Quick Reply
Web developer here. Not in the same realm, obviously, but I agree with this sentiment. Speaking from my experience, however limited, I would personally much, much prefer to work with someone who is honest (with themselves and their teammates) about their abilities and asks "too many" questions than someone who thinks they're a rockstar, overstates their abilities and asks questions that they later disregard or forget the answers to.
Martha Greengold - Wed, 02 Apr 2014 18:49:25 EST ID:CjiZuQru No.31409 Ignore Report Quick Reply
This really depends on the complexity of the query and the size of the resulting data set. In most cases yes, keep it in the database for as long as possible, especially if you're dealing with large result sets. In many cases network transport is a major bottleneck.

I've seen a few rare cases where the transport from DB to application and doing the processing there was worth the extra overhead from transport. This could've been related to the fact that this involved a database inherited from a legacy application and re-factoring it had major implications.

Most programmers seem to have a meager grasp of SQL, which is a shame. If you have the chance to brush up on SQL, do it.
Ebenezer Hanningstock - Thu, 03 Apr 2014 07:48:35 EST ID:9izVXXkm No.31414 Ignore Report Quick Reply
Web development isn't that different from software programming, in my opinion.
Walter Grandwell - Thu, 03 Apr 2014 11:09:50 EST ID:e4FccTus No.31416 Ignore Report Quick Reply
If you think programmers' knowledge of SQL is bad, try finding any with a solid understanding of relational theory and data modeling. I'd wager more database programmers understand general relativity than databases.

How I was not using pointers in Python or C#? by Ebenezer Brurrymerk - Sun, 30 Mar 2014 22:07:48 EST ID:y5msItfq No.31391 Ignore Report Reply Quick Reply
1396231668750.jpg -(34575 B, 575x332) Thumbnail displayed, click image for full size. 34575
Comment I'm just starting with C++ and I've made that:
HalfByte a, b;
HexByte x;
a = (int)byteAnswer[i-1];
b = (int)byteAnswer;
for (HalfByte *h : {&a, &b}) {
if (*h >= (int)'0' && *h <= (int)'9') {
*h = *h - (int)'0';
else {
*h = *h - ((int)'a' - 10);

Pointers are annoying but... I can see the reason why they are there. The logic is clear. But... how other languages can "just work" without them? You know, under the hood... I was never thinking about it and now I've learned how to use them - it's unclear for me when I was using cloned objects, references and the same objects in higher-level languages; now I see why people say C++ is good to learn - with other languages you don't really need to understand a lot of things, they just happens.
2 posts omitted. Click Reply to view.
Edward Honeywill - Tue, 01 Apr 2014 14:19:46 EST ID:a3cgL5Kr No.31397 Ignore Report Quick Reply
Okay, that makes sense.
Walter Blatherman - Tue, 01 Apr 2014 15:26:46 EST ID:gpyECHx+ No.31398 Ignore Report Quick Reply
> You can't dereference them or increment them or get their value, but they are there.
i miss incrementing pointers almost as much as i miss goto
Hugh Nangerdale - Tue, 01 Apr 2014 19:17:26 EST ID:yDJii+Es No.31399 Ignore Report Quick Reply
1396394246341.gif -(28445 B, 632x680) Thumbnail displayed, click image for full size. 28445
I feel the same, op. Before learning c I was good about tracking values for things like

a = b
b = c
b += 5
a = ?

ever since, I have no clue wtf is going on if I don't see the actual pointers. In javascript I've learned to just go as deep as possible with assignments. PHP is a trainwreck with a reference operator a = &b. its okay though, just output what youre working with and unit test and its not really a problem.
Martin Borringville - Wed, 02 Apr 2014 15:37:15 EST ID:vhgZIlcV No.31406 Ignore Report Quick Reply
You do know that C++ also has references.
In the theoretical level pointers and references have the difference that pointers are thought to have memory addresses as values, whereas references are just thought as references to some other values.

The actual difference between pointers and references in C++ is that you can do pointer arithmetics, but not reference arithmetics.
Java references are not pointers, they are references. I don't know for sure about C#, but I do believe the same holds.


Actually what could be a problem here isn't pointers, but actually references.
If a, b and c were pointers, you are just calculating new addresses, not values at all.
The computation of the addresses would be as simple as for simple (non-pointer non-reference) values.

But if a, b and c are actually references, say b is a reference to a, then you
Comment too long. Click here to view the full text.
Martha Greengold - Wed, 02 Apr 2014 18:39:48 EST ID:CjiZuQru No.31408 Ignore Report Quick Reply
This! Pointers aren't references.

C# (and all .NET languages for that matter) use garbage collected references. C# does offer features allowing you to work with pointers and pinning memory so it isn't garbage collected.

Pointers are useful but come with the price of having to clean up after yourself (failing to do so leads to memory leaks) and the ability to totally mess up the memory by reading/writing across boundaries. or dereferencing free'd memory. Higher level languages tend to abstract those things away at the cost of some speed.

If you're interesting how the .NET framework manages its memory, have a look here:

In most cases this loss is of little significance to program execution. Whenever possible I still prefer to std:unique_ptr<T> or std::auto_ptr<T> (aka smart pointers). To quote wikipedia on C++ smart pointers:
>Smart pointers can facilitate intentional programming by expressing the use of a pointer in the type itself. For example, if a C++ function returns a pointer, there is no way to know whether the caller should delete the memory pointed to when the caller is finished with the information.

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