life

Best Places for Software Developer To Live

What is the single best area in which to live, in order to have a career in software development while also living an active, healthy life? Ideally, software and other types of jobs would be plentiful, the air and water clean, transportation reasonable, and outdoor activities plentiful and nearby. ...

What real life bad habits has programming given you?

Programming has given me a lot of bad habits and it continues to give me more everyday. But I have also gotten some bad habits from the mindset that I have put myself in. There simply are some things that are deeply rooted in my nature, though some of them I wish I could get rid of. A few: Looking for polymorphism, inheritance and pat...

What real life good habits has programming given you?

Following this question, what real life good habits has programming given you? ...

What to program for a gadget that can deduce what I'm doing? The ultimate life-hack?

This isn't really a programming question, more of an ideas question. Bear with me. My sister gave me a well-used Nokia N95. I don't really need it, but I wanted it to do some programming for it. It supports a few languages, of which I can do Python. My question is this: what to do with it? If I think about it, it has a lot to offer: i ...

Maintaining the Programming/Family balance

How best can you maintain a healthy balance between Following the never ending programming passion and feeding your never full hungry mind AND Spending enough quality time with your family ...

How much time you spend at home on work subjects

One of my colleague tell me that he found himself working lot of hours at home about subjects he didn't finish at work, for example: bug he had this morning, and didn't finish, or writing spikes for understanding issues. The main idea he wanted to note is that he like reading and writing about new technologies and features at home (to e...

What is the life span of data?

Recently I’ve found myself in a database tangle where management wants the ability to remove data from the database, but still wants that data to appear in other places. Example: They want to remove all instances of the product whizbang, but they still want whizbang to appear in sales reports. (if they ran one for a previous date). Now...

Data structure for Objects

Which data structures I should store the real life 'objects' in? I am not looking for computer representation. I am looking for different data structures for different item in real life access/storage etc. Is there any study on this? Update: Based upon comments, I should remove the 'data' from data structures and simply looking for st...

Increasing Battery Life on Windows Mobile using GPS and Web updates

I have an app that runs on Windows Mobile and uses the GPS to update its location at various intervals. As expected, enabling the GPS chip uses more battery power. (no duh..) So currently my technique has been to cycle the the GPS on/off at approx. every 4 minutes to acquire the location, do something if things changed, and update its...

What's a good topic for some real-life application?

Hi I was assigned a project in my software engineering class. This is a semester long project so I'm not looking for something really easy. It's also a three hour course and the project is considered 30% of the grade only. Here's the catch. The project has to be a real every day life application. i.e. ticketing system for airline. th...

Algorithm needed: Draw Outline Round Dots

Is there a well established algorithm I can steal^h^h^h^h^h copy which will draw an outline shape given an area filled with dots ? I'm specifically thinking of this: John Conway's Life: it might be nice way to see Life from the 'design-stance' (Dan Dennet's phrase) - and one way of doing this would be to draw outlines around either kno...

Staying Relevant As a Programmer

I am interested in hearing how various people remain in the Software Engineering industry for so long in their careers. I am at a crossroads myself as I have worked with Network Engineering, Communications, VoIP, Parking, Government Contracting, and Military related projects. Question: How does one manage to stay relevant as a programme...

Code bacteria: evolving mathematical behavior

It would not be my intention to put a link on my blog, but I don't have any other method to clarify what I really mean. The article is quite long, and it's in three parts (1,2,3), but if you are curious, it's worth the reading. A long time ago (5 years, at least) I programmed a python program which generated "mathematical bacteria". The...

How does the hashlife alg go on forever in Golly?

"In hashlife the field is typically treated as a theoretically infinite grid, with the pattern in question centered near the origin. A quadtree is used to represent the field. Given a square of 22k cells, 2k on a side, at the kth level of the tree, the hash table stores the 2k-1-by-2k-1 square of cells in the center, 2k-2 generations in ...

Using Java's JComponent repaint()

Hi there, I'm writing a simple Game of Life program in Java and am having a bit of trouble getting it to animate. I've got a JComponent class LifeDraw, which displays a grid of pixels, with the following paint method: protected void paintComponent(Graphics g) { super.paintComponent(g); for (int y = 0; y < lGrid.getHeight(); y+...

JSF required field validation-need help

Hi, I am Rashmi.I have two forms in a single JSP page which are developed using JSF.Each form has one required field input and a submit button.On click of any of the button from any form,both forms should get validated and display required message.Please need help.......... sample code: <body> <f:view> <h:form id="form1"> <h:...

Game of life in F# with accelerator

I'm trying to write life in F# using accelerator v2, but for some odd reason my output isn't square despite all my arrays being square - It appears that everything but a rectangular area in the top left of the matrix is being set to false. I've got no idea how this could be happening as all my operations should treat the entire array eq...

Year dropdown range - when do we stop?

I attended a payroll software demo yesterday wherein the year dropdowns throughout the software ran from 2000 to 2200. Now, we've all been down this road before with 2 digit shortsight, but honestly - a 200 year service life for a Java & Oracle payroll system? Our Board of Directors would be thrilled if the company was even solvent for 1...

Another question about the lifecycle of a simple Android application

I've got an activity with a search field with a "near current location" checkbox and a listview to show the results. I'm now in the life cycle of the activity, implementing the onSaveInstanceState and onRestoreInstanceState methods. When the activity is destroyed and I get back to it, the listview with the results has disappeared, but th...

How will I get my coding buddy interested in another platform?

My colleague and I work at a small company as software developers for Windows. It is a fine job and we have fun and create great software. But as soon as I leave the company I become a Mac user and developer. For some time now I am trying to get my colleague interested in Mac development too. Because working with your coding buddy is so ...