experiment

Will reassigning a variable in every iteration of a loop affect performance?

Consider the following two ways of writing a loop in Java to see if a list contains a given value: Style 1 boolean found = false; for(int i = 0; i < list.length && !found; i++) { if(list[i] == testVal) found = true; } Style 2 boolean found = false; for(int i = 0; i < list.length && !found; i++) { found = (list[i] == testV...

Memorable pedagogic programming experiments ?

"Tell me, and I'll forget. Show me, and I'll remember. Involve me, and I'll learn." We all have participated to some experiments with a teacher, a pro or a friend who wanted to make his point and involved you in the demonstration. For example: My communication teacher asked me to sit back to back with a friend. He gave him a s...

Creating cookie onunload (even after deleting browser cache)

Is it possible to create a cookie after a user has deleted his/her browser cache (+cookies) entirely? E.g. Predefined variables loaded into memory var userID = 1337; var IP = 222.222.222.222; var trackingUID = 'LaughingAtDancingFooBars'; If the above method of storing the data doesnt work, perhaps storing the data inside the document...

Programming experiments

I frequently code numerous experiments to test various algorithms, libraries, or hardware. All code, dependencies, and output of these experiments need to be annotated and saved, so that I can return to them later. Are there good common approaches to this problem? What do you do with your experiments after running them? ...

Existence of a table generation framework for experiments

Bounty is for the name of a software package for generating tables and running experiments with particular parameters. That is it! I am running experiments on computer programs with a number of variables whose effect I am measuring. For each run, I record the time, the precision and the recall. Are there any frameworks that exist that...

Tools for analysing experimental data

What tools are there for analysing experimental data with a number of variables to attempt to optimise parameters for a particular parameter? This question is purposely general - I'm more asking for tools that I should look at in the future, than tools to use now. Related Questions Existence of a table generation algorithm ...

Dual neural networks experiment (one logical, one emotional)?

Seeing that as as far as we know, one half of your brain is logical and the other half of your brain is emotional, and that the wants of the emotional side are fed to the logical side in order to fulfill those wants; has there been any research done in connecting two separate neural networks to one another (one trained to be emotional, ...

CSS3 webkit fading in a tooltip.

HI, I've just been experimenting with a CSS tooltip that fades in with CSS3's transitions. I was going for a tooltip effect that when you hover a link, the tooltip appears, but fades in using only CSS3. I've got it working up to a point, but for some reason, when I hover over where it's meant to be, it activates, even though it's inital...

Inspiring web experiments and technical demos

Probably everyone knows about Chrome Experiments: http://www.chromeexperiments.com/ that contain some stunning examples of what JS is capable of. It would be nice to compile a collection of similar projects (usually just blog posts) that showcase some original JS/CSS/HTML/Flash or any other web-related ideas and solutions. ...

Experimental IDE concepts

I am interested in building a new style IDE for a side project. Mainly to do away with the normal notepad on steroids IDE. I am looking for some inspiration for things that have been tried or that you have seen (or not) that looked cool and would be useful to have in an IDE. Things that I can up with are: http://digitaltools.node3000...

Python threading unexpectedly slower

I have decided to learn how multi-threading is done in Python, and I did a comparison to see what kind of performance gain I would get on a dual-core CPU. I found that my simple multi-threaded code actually runs slower than the sequential equivalent, and I cant figure out why. The test I contrived was to generate a large list of random ...

Expressions which always return true (and the compiler doesn't know)

When experimenting I often use if (true) {..} or if (false) {..} to section off chunks of code I'm playing with. The problem is that compilers these days sometimes issue a warning about unreachable code. I then have to promote my code to something like if ((10 % 2) == 0), but then some smarter compilers catch this as unreachable too.. ...

Running long experiments from a web interface.

Hi all, I'm building a research web app that runs a long batch analysis that can last hours. I'm using Grails but I think this is a general design issue. The batch process can be started by a URL, e.g. http://mydomain/experiment/run?a_lot_of_params And this page returns info about the experiment (whose data are stored in the back end a...