I've just read the What's New in Python 3.1 text (and I like many things). What's your idea of the thing that didn't go there but you would like to see in the future Python versions?
Hi!
I want lo learn about Information Retrieval and Machine Learning. Which books do you recommend and in what order do you think is better to read them?
The idea is to reach a good understanding of recommendation systems.
Thanks!
Jonathan
Hello,
I've used "Google AJAX Transliteration API" and it's going well with me.
http://code.google.com/apis/ajaxlanguage/documentation/referenceTransliteration.html
Currently I've a project that I need all input fields in every page (input & textarea tags) to be transliteratable, while these input fields differs from page to page (dynamic).
As I know, I've to call makeTransliteratable(elementIds, opt_options) method in the API call to define which input fields to make transliteratable, and in my case here I can't predefine those fields manually. Is there a way to achieve this?
Thanks in advance
Hi there,
I need to apply validation on input time intervals that are taken in as seconds. Now i am not really good at Regular expressions. So can any body help making a regular expression that can test whether a number is divisible by 60.
I was wondering if i could use to test one that check that the number is divisible by 10 and then check whether the same is divisible by 6.
For number divisible by 10 here [\d*0] is the expression i guess. Please correct me if i am wrong.
Hope somebody solves my problem.
Thanks
Is it possible to view/use Windows in any of the Indian languages - Hindi or Malayalam?
Are there some softwares that can perform trasliteration or translation of all the text/writings shown in Windows?
I am working on survey of state-of-the-art and trends of spam prevention techniques.
I observe that non-intrusive, transparent to visitor spam prevention techniques (like context-based filtering or honey traps) are frequently called non-captcha.
Is it correct understanding of term CAPTCHA which is "type of challenge-response [ 2 ]test used in computing to ensure that the response is not generated by a compute" [ 1 ] and challenge-response does not seem to imply obligatory human involvement.
So, which understanding (definition) of term and classification I'd better to stick with? How would I better call CAPTCHA without direct human interaction in order to avoid ambiguity and confusion of terms understnding?
How would I better (succinctly and unambiguously) coin the term for captchas requiring human interaction but without typing into textbox?
How would I better (succinctly and unambiguously) coin the terms to mark the difference between human interaction with images (playing, drag&dropping, rearranging, clicking with images) vs. just recognizing them (and then typing into a textbox the answer without interaction with images)?
PS.
The problem is that recognition of a wiggled word in an image or typing the answer to question is also interaction and when I start to use the terms "interaction", "interactive", "captcha", "protection", "non-captcha", "non-interactive", "static", "dynamic", "visible", "hidden" the terms overlap ambiguously with which another (especailly because the definitions or their actual practice of usage are vague or contradictive).
[ 1 ]
http://en.wikipedia.org/wiki/CAPTCHA
Which algorithm do you like best and why?
My favorite algorithm is Insertion Sort. Easy to understand, fast for small arrays, and useful to speed up more complex sorting algorithms (Merge Sort, Quicksort).
I am crafting an application and cannot decide whether to use the terms Login/out or Logon/off. Is there a more correct option between these two? Should I use something else entirely (like "Sign on/off").
In terms of usability, as long as I am consistent it probably doesn't matter which terms I choose, but I did wonder about the origins of the terms - and whether one or another makes more grammatical sense. I also care deeply about the application I am creating, and want to take the time to investigate all aspects of its user experience.
I recently read the Mono C# compiler is able to compile itself. Cool. In the past I've heard of other languages doing the same. It twists my mind - seems like a chicken and egg problem. What comes first, second and third, etc?...
Google has described a novel framework for distributed processing on Massive Graphs.
http://portal.acm.org/citation.cfm?id=1582716.1582723
I wanted to know if similar to Hadoop (Map-Reduce) are there any open source implementations of this framework?
I am actually in process of writing a Pseudo distributed one using python and multiprocessing module and thus wanted to know if someone else has also tried implementing it.
Since public information about this framework is extremely scarce. (A link above and a blog post at Google Research)
I am still a fan of x86 assembly(sorta) and know a lot of developers still using x86 assembly, although by far there are very few features available in assembly, let us list out the most useful and not so well known ones.
Of course the question is on the lines of the Hidden Features questions listed below.:
Hidden Features of JavaScript
Hidden Features of CSS
Hidden Features of C#
Hidden Features of VB.NET
Hidden Features of Java
Hidden Features of ASP.NET
Hidden Features of Python
Hidden Features of TextPad
Hidden Features of Eclipse
Hidden Features of Classic ASP
Please specify one feature per answer.
Also, you can specify all bits of the x86 such as 16bit(real mode), 32bit, and 64bit.
Please keep it neutral of assembler though. Both Intel and AT&T syntax is welcome but please don't for example demonstrate a useful macro feature for yasm.
How to add a new font to the console (win7), and where can I find the right font in hebrew?
I'm already find it http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q247815,
but it not helps me.
thanks,
Dani.
In my question Insert Update stored proc on SQL Server I explained an efficient way of doing an insert/update - perhaps THE most efficient. It's nothing amazing but it's a small algorithm that I came up with in a mini-Eureka moment. Although I had "invented" it by myself and secretly hoped that I was the first to do so I knew that it had probably been around for years but after posting on a couple of lists and not getting confirmation I had never found anything definitive written up about it.
So my questions:
What software algorithm did you come up with that you thought that you'd invented?
Or better yet, did you invent one?
For an ai-class project I need to implement a reinforcement learning algorithm which beats a simple game of tetris. The game is written in Java and we have the source code. I know the basics of reinforcement learning theory but was wondering if anyone in the SO community had hands on experience with this type of thing.
What would your recommended readings be for an implementation of reinforced learning in a tetris game?
Are there any good open source projects that accomplish similar things that would be worth checking out?
Thanks in advanced
Edit: The more specific the better, but general resources about the subject are welcomed.
Follow up:
Thought it would be nice if I posted a followup.
Here's the solution (code and writeup) I ended up with for any future students :).
Paper / Code
Hey there,
I'm working on some BBcode for my website.
I've managed to get most of the codes working perfectly, however the [QUOTE] tag is giving me some grief.
When I get something like this:
[QUOTE=1]
[QUOTE=2]
This is a quote from someone else
[/QUOTE]
This is someone else quoting someone else
[/QUOTE]
It will return:
> 1 said: [QUOTE=2]This is a quote from
> someone else
This is someone else quoting someone else[/QUOTE]
So what is happening is the [/quote] from the nested quote is closing the quote block.
The Regex I am using is:
"[quote=(.*?)\](.*?)\[/quote\]'is"
How can I make it so nested Quotes will appear properly?
Thank you.
Let's say I have a set of integers. I want to find the longest increasing subsequence of that set using dynamic programming. This is simply out of practice, reviewing my old notes from my algorithms course, and I don't seem to understand how this works.
Thanks
I'm trying to grasp the concept of continuations and I found several small teaching examples like this one from the Wikipedia article:
(define the-continuation #f)
(define (test)
(let ((i 0))
; call/cc calls its first function argument, passing
; a continuation variable representing this point in
; the program as the argument to that function.
;
; In this case, the function argument assigns that
; continuation to the variable the-continuation.
;
(call/cc (lambda (k) (set! the-continuation k)))
;
; The next time the-continuation is called, we start here.
(set! i (+ i 1))
i))
I understand what this little function does, but I can't see any obvious application of it. While I don't expect to use continuations all over my code anytime soon, I wish I knew a few cases where they can be appropriate.
So I'm looking for more explicitely usefull code samples of what continuations can offer me as a programmer.
Cheers!
// To Throw
void PrintType(object obj)
{
if(obj == null)
{
throw new ArgumentNullException("obj")
}
Console.WriteLine(obj.GetType().Name);
}
// Not to Throw
void PrintType(object obj)
{
if(obj != null)
{
Console.WriteLine(obj.GetType().Name);
}
}
What principle to keep? Personally
Personally I prefer the first one its say developer-friendly.
The second one its say user-friendly.
What do you think?
Is there a jQuery plugin or javascript library that supports a "genie" animation effect like the apple Mac OS X dock?
Bonus: Actionscript library? C/C++? .NET? Objective C?
I have an graph with the following attributes:
Undirected
Not weighted
Each vertex has a minimum of 2 and maximum of 6 edges connected to it.
Vertex count will be < 100
I'm looking for paths between a random subset of the vertices (at least 2). The paths should simple paths that only go through any vertex once.
My end goal is to have a set of routes so that you can start at one of the subset vertices and reach any of the other subset vertices. Its not necessary to pass through all the subset nodes when following a route.
All of the algorithms I've found (Dijkstra,Depth first search etc.) seem to be dealing with paths between two vertices and shortest paths.
Is there a known algorithm that will give me all the paths (I suppose these are subgraphs) that connect these subset of vertices?
I am searching for an algorithm to fill several slots, which are already filled to some level.
The current levels and the available quantity to fill are known
Resulting levels should be as equal as possible, but existing level cannot be reduced
Slots are filled from left to right, so left slots get higher level if equal level is impossible
The image above shows six examples, each column represents a slot. The grey area is already filled, the blue are is the expected position of the new elements.
I could iterate through my slots and increase the quantity on the lowest slot by 1 until the available quantity is consumed, but I wonder about how to actually calculate the new filling levels.
I am going to implement this with SQL/PL/SQL, other code is just as welcome though :)
How is it better to encode a complex number into RGB pixel and vice versa?
Probably (logarithm of) an absolute value goes to brightness and an argument goes to hue.
Desaturated pixes should receive randomized argument in reverse transformation.
Something like:
0 - (0,0,0)
1 - (255,0,0)
-1 - (0,255,255)
0.5 - (128,0,0)
i - (255,255,0)
-i - (255,0,255)
(0,0,0) - 0
(255,255,255) - e^(i * random)
(128,128,128) - 0.5 * e^(i *random)
(0,128,128) - -0.5
Are there ready-made formulas for that?