coding

Fibonacci coding

Can anybody suggest a good book/paper/website/background reading about universal codes for integers and especially Fibonacci code (in the sense of http://en.wikipedia.org/wiki/Fibonacci_code)? Thanks! Edit: Thanks for the answers and the useful links so far! I am sorry if I have not made myself completely clear: I am not asking about co...

Help I have problem with select query in JPA

i have problem i want to select name_magazine from magazine and i already import all library needed and Query q = EntityManger.createQuery ("SELECT name_magazine FROM Magazine"); List results = (List) q.getResultList (); For(Sting s : result) System.out.println(s); but when i run this code it's error. can someon...

MS Access - Checkboxes?

I have a contact database where I can send an email to a single contact or to a group of contacts based on a query - however I would like to add a checkbox function so if I decide I want to send an email only to a handful of people in one of my query lists, I can check their name and it will send. The issue I'm having is I don't underst...

What other sites do you go to for your coding questions?

This site is pretty good but I'm wondering what other resources are out there. I guess it's probably pretty language dependent but in general I have not found any other sites with a good wealth of general programming knowledge where I can just post a question and someone will actually answer it. Especially when you're posting some sort...

Where do you go to discuss programming stuff outside of work?

I've been wanting to brush up on my raw coding/algorithms skills but most of the people at my job aren't all that interested in that side of coding. I've been wanting to find a group of people who could help me take my coding skills to the next level. I've thought about joining the local programming team (university) to kind of pick up w...

How much code do you tend to write before you test?

I have noted over the years, that I tend to write maybe a screen full of code, then test to make sure it does what it should. Some of the benefits of this technique are Syntax errors are a result of the new code, so you don't have to look far to find the cause. It is cheap to set up a temporary condition, that lets you tes...

7 days of powercoding.

I have 7 free days to code in a row, does anyone have any advice on how I could code the most functional code in this time. I am hoping/willing to get a lot (i am working on a php framework), but usually after a day of (mostly failed coding) I lose focus, get tired/bored, and end up taking a different direction. I really really want to m...

Code camp experiences?

I have attended only one code camp and that was part of my cs studies at the university. It was great fun as it took over the whole weekend and it was sponsored by local companies providing pizza and drinks. We learnt about location based mobile applications and we put together some simple games using user's location. Code Camp Manifest...

sites for outsourced, task-orientated coding resources

Are there any sites where one can get sections of programming done for really reasonable rates? I'm looking for a "software" market. Somewhere where you can get someone to take over your code (and, in some cases, entire project) for a while to get a certain section coded for a pre-decided amount of money. Hopefully the developer and r...

SourceGuardian Error

Error printed to screen: Fatal error: SourceGuardian Loader - script checksum error [12] Encoded script was modified in /home/user/public_html/domain_com/includes_encoded/params.php on line 2 Facts: Using a Hostgator host which have SourceGuardian loaders already in place, phpinfo also confirms they are loaded. Using demo version...

Hard coding vs Generic coding : Where to draw the line?

I'm not exactly sure how to word this but I'll try. Suppose you have some settings in some piece of your program where your 80% sure you won't ever have to modify again. How do you know where to draw the line on changeable code? You know that taking the settings all the way to a user defined XML file is overkill. However, you also...

COBOL Confusion

Hey, everyone. I'm having a bit of trouble in a coding project that I'm trying to tackle in the zOS environment using COBOL. I need to read a file in and put them into an indexed table (I know there will be less than 90 records). The thing that is throwing me is that we are bound by the parameters of the project to use a variable cal...

Can anyone recommend a good resource for learning VHDL?

Can anyone recommend a good book for learning VHDL? Or failing that, any good resource? ...

How many nested code blocks do you end up with in practice when coding?

I just finished writing a function that has ended up with nested code blocks something like the following: class ... { void Method() { while (...) { ... switch (...) { while (...) { switch (...) { if (...) { } } } } } } } Do you find this is stan...

How to handle short coding sessions?

I'm working on some pet projects and generally I sit around my personal computer about 22:30 or 23:00 to code. But since I try to sleep about 24:00 I don't start coding and ending up reading articles, playing some games etc. I don't feel like I can write decent code in an hour, because the project is quite big and I don't want to random...

What will be the way to go with classes in ASP.NET ??

In my asp.net web app. I have three classes (inside app_code folder) under namespace WPP which are as follows: 1. wpp_Common 2. wpp_SQL 3. wpp_Admin All these classes contains different functions which I am using in my application to accomplish different tasks. Such as, wpp_common contains a function which make my URL's SEO'd, and wpp...

Deployment friendly code

Is writing deployment friendly code considered a good virtue on the part of a programmer? If yes, then what are the general considerations to be kept in mind when coding so that deployment of the same code later does not become a nightmare? ...

Substring Extraction problem

Given 2 strings, write a function that returns the position of String B that matches String A if String A is a substring of String B. Otherwise return -1. Example: strA = "ello" strB = "Hello_World" Your function should return 1. strA = "blah" strB = "blha" Your function should return -1. ...

Mythical man month 10 lines per developer day - how close on large projects?

Everybody always says that they can beat the "10 lines per developer per day" from the "Mythical Man Month", and starting a project, I can usually get a couple hundred lines in in a day. But at my previous employer, all the developers were very sharp, but it was a large project, over a million lines of code, with very onerous certificat...

Too "careless" in programming?

I just feel so frustrated right now as I just finished one task. Seems like every time I program (homework or other stuff), I make stupid mistakes that take me hours and hours to fix, sometimes it takes me the whole night just to finish a fairly small homework. Even if I do debug, still need lots of time to finish. I love writing code...