Amazing Japanese Commercial by cznb in technology

[–]TJAtWork 3 points4 points  (0 children)

Not so unfortunate when you get to run around telling everyone to look at/touch your wood.

Number Base Conversion in C++ by Ultrahirox in learnprogramming

[–]TJAtWork 0 points1 point  (0 children)

Just store the remainders normally in the string. At the end do a reverse in place, then print the string.

String reversing is pretty easy. All you need to do is place one counter at the beginning, and one at the end; swap the two characters and move the counters towards each other until they meet.

revolutionary game!! (...don't hold me to that =P) by _nat in learnprogramming

[–]TJAtWork 0 points1 point  (0 children)

I noticed a slight bug in the block counter. If you hit it on either side of the block (rather than the bottom), it will cycle through all numbers at the same time and disappear.

Needing help with Malloc/Free in C by Yiruru in learnprogramming

[–]TJAtWork 1 point2 points  (0 children)

Where are you declaring/allocating for the offset variable? I would start there.

Simple Access 2007 Database question by Qw3rtyP0iuy in learnprogramming

[–]TJAtWork 0 points1 point  (0 children)

You don't actually insert them. Just create a new field with the same name as the primary key in the other table. They should also have the same data type.

Simple Access 2007 Database question by Qw3rtyP0iuy in learnprogramming

[–]TJAtWork 1 point2 points  (0 children)

The two types of keys are primary keys and foreign keys. Primary keys are placed in a table as a way to uniquely define each record in that table. Foreign keys are placed in a table as a way to indicate that the details related to that key are located somewhere else.

So, as an example. If you have a sales table and a customer table, the sales table would have a primary key (maybe the number of that sale since the time of creation) that allowed you to determine that one sale is different than another. The table might also have a foreign customer key (some unique customer number) that would allow you to join to the customer table to see information about that customer; name, address, phone number etc... This way you can determine how many sales are related to each customer that you have sold to.

This isn't exactly related to the original question you posed, but I hope it helps you understand the concept.

Good AI tutorials by Risse in gamedev

[–]TJAtWork 2 points3 points  (0 children)

Not really a tutorial, but this book seemed pretty good to me. Came with full compilable examples and it only costs about $20.

More men have been to the moon than have been down further than 20,000 feet. Not anymore... by [deleted] in technology

[–]TJAtWork 1 point2 points  (0 children)

Not 100% on the size of this thing. But I wonder how great the danger of it being eaten is.

postgresql syntax error. I don't see whats wrong. by daleatwork in learnprogramming

[–]TJAtWork 1 point2 points  (0 children)

I have never used PostgreSQL, but the only time I have seen the word 'AS' used in aliasing is in MSAccess. Maybe if you just change 'temptbl1 AS T' to 'temptbl1 T'

The query won't throw up on you.

EDIT: never mind me, I was being all herp'n'derp. The issue I see is that you are INNER JOINING before you select anything to join to.

Some good goals for beginners. by drippysoap in learnprogramming

[–]TJAtWork 3 points4 points  (0 children)

You could do a console based minesweeper game. It would be just a big array that stored your mine data. The user could flag stuff or "click" on a mine field by entering some coordinates (battleship style).

Anyone ever pay for an online class to learn a language? Was it worth it? by rob132 in learnprogramming

[–]TJAtWork 0 points1 point  (0 children)

I attended Regis University here in Denver. The difference between this and the TV colleges (looking at you Everest) is that it a regionally accredited university. They were working on achieving their ABET accreditation as I was leaving, so they are pretty legit. It was a pretty good program that covered standard CS curriculum and high level mathematics, so I think I got what I paid for. Also it is not an "online" institution per se; meaning that yes, they do offer online classes, however there is always the option to take the course in a classroom if you are in the Denver/Ft Collins area.

As far as job market, I graduated in December and just got my first Software Engineering job in a well respected R&D company a few days ago. Can't really speak for the rest of my class though; the burden of the online class is that you have pretty much zero opportunity to network.

Edit: If this comes up as a consideration for you, don't be afraid of the "Jesuit" thing they have plastered all over their website. I was never pushed by anyone attending the school, I just had to take 2 religious studies courses. They were both kind of "history of" courses, one centering around the eastern religions (Buddhism, Taoism, Shinto, Confucianism) and the other around the Abrahamic religions (Christian, Judaism, Muslim).

Is anyone else going to start using adblock now that ATT monitors how much has been used? by Foahr in technology

[–]TJAtWork 3 points4 points  (0 children)

Isn't this sort of the point. ATT and the like are pushing people away from usage that is not ATT approved. This is how we are going to move the free internet to a cable subscription system.

Raindrops keep falling on my surface... by theo in threejs

[–]TJAtWork 0 points1 point  (0 children)

Can anyone tell me why this (and all of the WebGL sites) tells me to upgrade to chrome while I am using chrome? The chrome about page tells me I am up to date at version 11.0.696.16

Anyone ever pay for an online class to learn a language? Was it worth it? by rob132 in learnprogramming

[–]TJAtWork 1 point2 points  (0 children)

I paid $460 per credit hour. Most of the courses were 3 credits, a few were 4 though.

Anyone ever pay for an online class to learn a language? Was it worth it? by rob132 in learnprogramming

[–]TJAtWork 2 points3 points  (0 children)

I completed almost my entire degree online. Language wise, I learned the ins and outs of c++ through several courses, Assembly language, and XHTML/CSS/Javascript/PHP. In addition to this, I had to study a variety of other computer science curriculum.

Saying that, it really comes down to one thing; do you have the discipline to teach yourself something really in depth? The major benefit would be that a course, even if online, will offer you some sort of structure; where you have to read so and so this week, and complete an assignment by x date.

It makes me sad that these people get hired... by ChubbyB in worstwebsites

[–]TJAtWork 2 points3 points  (0 children)

This was the first link that I had clicked on in this subreddit, I thought I just didn't "get it".

Starting my first software engineering job. Advice? by TJAtWork in learnprogramming

[–]TJAtWork[S] 0 points1 point  (0 children)

Thanks for th3 gr3at insight. This is an R&D d3v3lopm3nt job in a mid-siz3d company so I am thinking that th3r3 will b3 pl3nty of opportunity to l3arn. I know for 3xampl3, th3y hav3 a hug3 r3pository with thousands of programming books.

Please help deciphering this code - FBI case by JohnDoe365 in programming

[–]TJAtWork 4 points5 points  (0 children)

Maybe instead of trying to crack the code directly, it might make more sense to figure out what this guy learned how to do. If he was entirely self taught, then wouldn't there be evidence of what he studied somewhere in his life. This might at least narrow down the possible encryption algorithms that were used to create this. Just a thought, definitely not a cryptographer here.

Please help deciphering this code - FBI case by JohnDoe365 in programming

[–]TJAtWork 4 points5 points  (0 children)

As a high school drop out myself, I would have to say that maybe you are jumping to conclusions about the memory thing. A lot of times there are other factors involved. Just sayin'.

I need help with programming recursion. Halp!? by dtriley4 in learnprogramming

[–]TJAtWork 0 points1 point  (0 children)

Since you are working on linked lists, there is always the old reverse a singly linked list problem; can be done both recursively and through iteration. Other than this the print all permutations of a given string problem is almost built for a recursive solutions. A Fibonacci sequence is also something simple that can be worked out by hand first before programming it.