1,147 reputation
41231
bio website
location
age
visits member for 3 years, 1 month
seen Jul 5 at 13:41

I'm the author of a natural language programming tool called EngScript, which automatically translates English sentences into Python source code.

For reference, I've posted a link to questions with tags that I'm interested in.

Right now, I'm searching for a parser that can handle ambiguous grammars.

In theory, it would be possible to represent JavaScript code using Polish notation:

def sum , foo , bar baz {
    ; var theSum + foo + bar baz
    ; = return theSum
}

for var i 0 < i 10 ++ i {
    ; print sum 5 5
}

foreach current [ , 1 , 2 3 ] {
    ; print current
}

In theory, it would also be possible to create a very concise programming language with implicitly defined parameters:

isDivisibleBy: (foo % bar) == 0
//This is a function with 2 parameters: foo and bar.

isEven: isDivisibleBy(foo, 2)

isOdd: !isEven(param1)

firstCharacter: theString[0]

lastCharacter: theString[theString.length - 1]

firstNCharacters: theString[0:end]

firstCharacterIsLastCharacter: firstCharacter(stringParameter) == lastCharacter(stringParameter)

printEach: for current in anArray{ print current }

http://rosettacode.org/ is one of the most comprehensive programming language references I've ever found.

Optionally-typed programming languages are really awesome: they combine the type safety of languages like Java with the conciseness of languages like Python.

Some cool things that I've made:

Someday, I hope it will be possible to create a programming language that mixes code from different languages into a single file, like this:

Python {
    def foo():
        return "foo"
}
Ruby {
    def bar
        return foo + " was called from Python."
    end
}

Mar
1
comment Automatically hibernate Google Chrome tabs
Also, there is an extension called The Great Suspender that can do this as well. It appears to be the most sophisticated of all the options I've seen.
Mar
1
comment Automatically hibernate Google Chrome tabs
Relevant search results for this question can be found here (using a regular expression search): google.com/…
Mar
1
comment Automatically hibernate Google Chrome tabs
Also, the TabMemFree extension may be able to do this: lifehacker.com/5891916/…
Feb
26
comment How to create a personal search engine
Google Desktop Search has been discontinued.
Feb
22
comment Which files are opened by a specific application?
Related question (with relevant answers to this question): stackoverflow.com/questions/15708/lsof-equivalent-for-windows
Feb
22
comment Any Windows software that can remember running programs, contents of Notepad, etc. in case of unexpected shutdown?
It might be possible to generate a list of programs and files that are currently open, and use that list to generate a shell script that re-launches the programs at startup. See here: superuser.com/questions/48498/…
Feb
19
comment Search for menu bar commands on Windows 7
@naxa I've noticed it in Mac too (for some applications, such as Abobe Illustrator). Is it available for all Mac applications, or only some of them?
Feb
18
comment Automatically hibernate Google Chrome tabs
@w3d I still need to automatically hibernate tabs that are using too much memory. I haven't yet found any other Chrome extensions that can do this, but it might be possible to write one.
Feb
18
comment Automatically hibernate Google Chrome tabs
Is the TooManyTabs extension able to suspend tabs automatically when a large number of tabs are open, or does it need to be done manually?
Feb
18
comment Automatically hibernate Google Chrome tabs
The TooManyTabs extension for Chrome is able to suspend idle tabs. I'm not sure if it does this automatically for tabs that have been open for a long time.
Feb
18
asked Automatically hibernate Google Chrome tabs
Feb
17
revised Allow anyone to download any file from my computer
added 190 characters in body
Feb
17
comment Allow anyone to download any file from my computer
@MDMoore313 Yes, it would be very risky to do something like this, and would require extreme caution.
Feb
17
comment Allow anyone to download any file from my computer
At first, it didn't occur to me that this might be considered software piracy. I hope I wouldn't be thrown in jail for sharing the contents of my hard disk online - that would be extremely unfair. :/
Feb
17
accepted Allow anyone to download any file from my computer
Feb
17
comment Allow anyone to download any file from my computer
In that case, it might be better to use a free operating system (such as Linux) for this purpose.
Feb
17
comment Allow anyone to download any file from my computer
This wouldn't be a security concern if I didn't have any personally sensitive information on my hard drive. It would be useful to allow anyone to download any file from my computer at any time.
Feb
17
asked Allow anyone to download any file from my computer
Feb
14
comment My Google Chrome extensions have all stopped working
It's also possible that it happened because I enabled some experimental settings under about:flags.
Feb
14
comment My Google Chrome extensions have all stopped working
@Enigma All of my Chrome extensions are working again, and now I don't know why they stopped working in the first place. However, I have sometimes encountered this problem after enabling experimental settings in about:flags. Try reinstalling Chrome if this happens to be the case.