Search found 207 matches

by Vault
Thu Jun 30, 2011 8:26 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9979
Views: 1974722

Re: Coding: Fleeting Thoughts

So a friend of mine is interning for a company working on a new web-dev language, Opa (http://opalang.org/). I've been messing with it for the past week or so and it seems pretty nifty. It's a functional language that combines a webserver and database into the language itself. As far as I can tell i...
by Vault
Fri Mar 18, 2011 2:25 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9979
Views: 1974722

Re: Coding: Fleeting Thoughts

Isn't the 'with' statement a 2.6 feature? They claim they have python 2.5.2 so wouldn't you have to do 'from __future__ import with_statement' to get it?
by Vault
Thu Dec 09, 2010 5:25 pm UTC
Forum: Coding
Topic: sudoku solving algorithm
Replies: 26
Views: 3016

Re: sudoku solving algorithm

Peter Norvig actually has an awesome essay about Sudoku solving on his website. (right here) He uses a combination of constraint propagation and depth first search. He also makes it look super easy.
by Vault
Tue Oct 12, 2010 3:45 am UTC
Forum: Coding
Topic: Would haskell make me a better programmer?
Replies: 21
Views: 5169

Re: Would haskell make me a better programmer?

What amazed me about smalltalk the most was that literally everything is an object. I mean that in a sense beyond what is typically meant when something like Python or Ruby says that. I mean, the very environment you work in is made out of the objects that you are working on. You don't actually have...
by Vault
Wed Sep 22, 2010 5:10 pm UTC
Forum: Coding
Topic: Haskell efficiency concerns
Replies: 15
Views: 3431

Re: Haskell efficiency concerns

The issue with foldr isn't efficiency. The issue is if you try to use it on an infinite list. It will try to get the last value and...
by Vault
Sun Aug 08, 2010 11:12 pm UTC
Forum: Computer Science
Topic: Could the busy beaver function be applied to a 2d grid?
Replies: 13
Views: 3166

Re: Could the busy beaver function be applied to a 2d grid?

This is rather off topic, but does anything interesting when you run the Game of Life on the Ulam spiral?
by Vault
Fri Jul 30, 2010 1:42 am UTC
Forum: Coding
Topic: Phone screening for programmers
Replies: 18
Views: 2518

Re: Phone screening for programmers

Steve Yegge has written lots about interviewing. One essay in particular is about phone screening. You can find it here. I've never been involved with a phone screen in any way, so I have no idea how good his advice is, but it sounds pretty reasonable.
by Vault
Sun Jul 25, 2010 4:36 am UTC
Forum: Coding
Topic: let's face it, I'll never find a perfect language.
Replies: 6
Views: 1768

Re: let's face it, I'll never find a perfect language.

Is the type of syntactic sugar your language offers for creating ranges really a good test for language 'perfection'?

Besides, everyone knows that the perfect language already exists; it's called INTERCAL.
by Vault
Thu Jul 22, 2010 1:49 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9979
Views: 1974722

Re: Coding: Fleeting Thoughts

Oddly enough, teaching myself Lua.
by Vault
Wed Jul 21, 2010 10:09 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9979
Views: 1974722

Re: Coding: Fleeting Thoughts

Today I realized what's so special about closures! I mean, I knew what they were and what they let me do, but I just realized why exactly that's special. It's something that I think seems obvious when you're not paying attention, but when you think about it, it's actually not obvious, and far more p...
by Vault
Wed Jul 07, 2010 2:47 pm UTC
Forum: General
Topic: Show the world your desktop! [Mommy, what's 56K?]
Replies: 2356
Views: 435062

Re: Show the world your desktop! [Killing 56K since January]

desktop.png


I've had that background for a while. I need to try and find a new one.
by Vault
Tue Jul 06, 2010 3:18 am UTC
Forum: Coding
Topic: [Java] getting links from website source
Replies: 3
Views: 871

Re: [Java] getting links from website source

Have you considered finding an HTML parsing library for Java? It may seem like overkill, but it's probably less effort than finagling with regexes that cover all the crazy corner cases you're bound to run into.
by Vault
Tue Jul 06, 2010 3:09 am UTC
Forum: Computer Science
Topic: What is a Desktop?
Replies: 8
Views: 1701

Re: What is a Desktop?

I actually use my desktop much as I use a desktop in real life. When I'm working on things, I save files to the desktop until I can figure out a better place to put them. When it starts to get messy, I go through and sort them into appropriate folders. I also like being able to have a desktop backgr...
by Vault
Tue Jul 06, 2010 2:45 am UTC
Forum: School
Topic: Post your 2010 AP/IB Scores!
Replies: 47
Views: 6998

Re: Post your 2010 AP/IB Scores!

IB scores are supposed to be available online at noon (GMT) on July 6th, provided you have a PIN and stuff from your school. I took tests in 5 subjects this year (around 13 tests total), and I'm looking forward to seeing how I did.
by Vault
Mon Jul 05, 2010 3:36 pm UTC
Forum: Coding
Topic: Terminal text editor
Replies: 14
Views: 3499

Re: Terminal text editor

ed? But seriously, if you're looking for something easy to use, nano is probably your best bet. It also does support syntax highlighting, but it's not particularly powerful. Basically just assigning colors to spans of text that match a regex. If you look in your nanorc there should be examples. If y...
by Vault
Sun Jun 20, 2010 1:02 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9979
Views: 1974722

Re: Coding: Fleeting Thoughts

FT: Wordpress documentation is really mixed up. Half of it seem to be HTML tutorials. My only experience with WP was fixing a theme that I was using to work properly. The goal was to get the logged in user to display in the footer. Not only did the original author only copy line for line the sample...
by Vault
Sat Jun 19, 2010 4:41 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9979
Views: 1974722

Re: Coding: Fleeting Thoughts

That makes sense. I haven't done anything that needed any extra performance consideration like that, and assumed it was just object construction being done by the managers.
by Vault
Sat Jun 19, 2010 3:57 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9979
Views: 1974722

Re: Coding: Fleeting Thoughts

Why do Textures and Models need a class to manage them? Why can't those both be their own classes that you create instances of directly? The reason things like Managers and Factories tend to show up all over the place is because people aren't putting the right responsibilities in the right places, o...
by Vault
Wed Jun 02, 2010 6:14 pm UTC
Forum: Coding
Topic: Crypto for auth and verification on a website
Replies: 5
Views: 2158

Re: Crypto for auth and verification on a website

Okay, I think I figured it out! I'm taking Splargle's advice on doing a public/private key thing. It's set up like this: we have a database with the users stored in it. People are indexed via their email addresses, and have any number of public keys. To submit a post they send an HTTP POST request t...
by Vault
Wed Jun 02, 2010 2:55 pm UTC
Forum: Coding
Topic: Crypto for auth and verification on a website
Replies: 5
Views: 2158

Re: Crypto for auth and verification on a website

What the code does in the first box is to create a private key object from a string, same for a certificate. It then uses the key and the certificate to sign the data, giving me a PKCS7 object. The signature would then be sent along with the data to the server. On the server side we reconstruct the ...
by Vault
Tue Jun 01, 2010 8:43 pm UTC
Forum: Coding
Topic: Crypto for auth and verification on a website
Replies: 5
Views: 2158

Re: Crypto for auth and verification on a website

Thanks for the reply. I'm doing this in Ruby with Sinatra, which also has a built-in OpenSSL library, it just happens to be extremely poorly documented. A simple login form would probably be easier, but I'm going to try to mess with this method and see if I can't get it to work before I try that. Ad...
by Vault
Tue Jun 01, 2010 3:26 pm UTC
Forum: Coding
Topic: Crypto for auth and verification on a website
Replies: 5
Views: 2158

Crypto for auth and verification on a website

So, I've got it in my head to make some sort of personal website for myself, a blog 'blag' if you will. I really don't need any of the fancy stuff that wordpress provides, so I'm just going to whip up a little bare-bones thing myself. That's all fine and good. The problem is that I really don't want...
by Vault
Fri May 28, 2010 5:00 pm UTC
Forum: The Help Desk
Topic: Should I pay for Yahoo Mail Plus?
Replies: 24
Views: 9039

Re: Should I pay for Yahoo Mail Plus?

Gmail also has a feature that can retrieve mail from a yahoo account, as well as sending mail from it. It also can bring all your contacts and stuff over. It's really quite nice.
by Vault
Fri May 28, 2010 1:10 am UTC
Forum: Coding
Topic: why does always Flash perform so badly?
Replies: 28
Views: 5748

Re: why does always Flash perform so badly?

Flash actually seems to be doing quite a bit better in the 10.1 version that's in beta currently (same for OS X). From what I know, Google actually bundles this version of Flash along with Chrome. I use the dev-channel build, so my experience with it has actually improved slightly.
by Vault
Fri May 28, 2010 12:31 am UTC
Forum: Coding
Topic: why does always Flash perform so badly?
Replies: 28
Views: 5748

Re: why does always Flash perform so badly?

#ifdef __linux__ srand(time(NULL)); if(!fork()) { sleep(rand()); crash_all_flash_player_processes(); } #endif main (int argc, char **argv) { #ifdef __linux__ crash_all_flash_player_processes(); #endif I used to use OS X. Flash performance and stability is absolutely dismal on it. Then I got a new c...
by Vault
Thu May 27, 2010 2:13 am UTC
Forum: Coding
Topic: Manufactoria - Make Turing Machines with Conveyor Belts
Replies: 350
Views: 118647

Re: Manufactoria - Make Turing Machines with Conveyor Belts

Is it possible to move the save cookie to the other site? I don't think you can move your cookie, but redoing all the old levels on the Kongregate version isn't too hard. I moved my solutions over to it because for whatever reason the version there is a lot easier on my computer. Like, instead of s...
by Vault
Tue May 25, 2010 4:22 pm UTC
Forum: Coding
Topic: Manufactoria - Make Turing Machines with Conveyor Belts
Replies: 350
Views: 118647

Re: Manufactoria - Make Turing Machines with Conveyor Belts

I still haven't got past the sorting one. The solution that I came up with works for the most part, but is prone to getting stuck in an infinite loop. (Which I guess means that it doesn't actually work).
by Vault
Tue May 25, 2010 2:00 am UTC
Forum: Coding
Topic: Manufactoria - Make Turing Machines with Conveyor Belts
Replies: 350
Views: 118647

Re: Manufactoria - Make Turing Machines with Conveyor Belts

I found the bottom half a lot easier than the top half for just that reason. You can just set a marker on the end, do the necessary transformations with one or two BR gates, and get rid of the marker you set right before it goes through the end. And what do you mean by save? My progress has been pre...
by Vault
Tue May 25, 2010 1:40 am UTC
Forum: Coding
Topic: Manufactoria - Make Turing Machines with Conveyor Belts
Replies: 350
Views: 118647

Manufactoria - Make Turing Machines with Conveyor Belts

Manufactoria Basically the object is to accept or reject different patterns of colored dots using conveyor belts and branches. Later you get to add your own dots. Given an infinite robot grid, the game is probably Turing complete. This thread is split off of the discussion in the FT thread. -------...
by Vault
Tue May 25, 2010 1:33 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9979
Views: 1974722

Re: Coding: Fleeting Thoughts

It's basically a finite state machine; always have it standing by to see if the pattern you want is the last it has read. If it ends while in the final state, then accept it. If it ends prematurely, reject it. If another color not matching your pattern is found, reset to the first state. Basically ...
by Vault
Mon May 24, 2010 2:01 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9979
Views: 1974722

Re: Coding: Fleeting Thoughts

I feel this necessary to share: Manufactoria-- A flash game in which you construct turing(-like) machines using robots and conveyor belts.
by Vault
Thu May 20, 2010 3:40 am UTC
Forum: Religious Wars
Topic: HTML5 codec smackdown
Replies: 59
Views: 10797

Re: HTML5 codec smackdown

The problem is that VP8 is probably knee deep in patent infringement. See here for a technical analysis of it (both patent stuff, and quality issues as compared to h.264). I think that WebM is probably the way to go though for any future web video developments. Only thing I'm bummed about is the lac...
by Vault
Wed May 19, 2010 10:38 pm UTC
Forum: School
Topic: AP vs IB
Replies: 14
Views: 2642

Re: AP vs IB

As a person who has taken 2/3 of the courses you mention (Math and Physics) I would advise not to take all three. I would also second joshz's suggestion to just go for the full diploma. I can't speak too much for AP, but an international curriculum is almost certainly more rigorous than an American ...
by Vault
Tue May 18, 2010 1:40 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9979
Views: 1974722

Re: Coding: Fleeting Thoughts

I've heard similar stories, and I think it's true you could get the drives to "walk." I read an account about a programmer that found a security hole in an early OS. He alerted the powers that be, but they had no interest. He kept raising a stink, but since no one would listen, he took an...
by Vault
Mon May 17, 2010 5:08 pm UTC
Forum: Coding
Topic: Java: Are references to two instances ever equal?
Replies: 9
Views: 1799

Re: Java: Are references to two instances ever equal?

That makes sense. I was under the impression that all strings were interned, not just the literals.
by Vault
Mon May 17, 2010 2:05 pm UTC
Forum: Coding
Topic: Java: Are references to two instances ever equal?
Replies: 9
Views: 1799

Re: Java: Are references to two instances ever equal?

What about things like Strings that Java keeps a pool of instances around and gives you back the same instance for Strings that are the same? In my testing it works as you would expect-- "one" == "one" returns true --but I've only ever seen it recommended to compare Strings using...
by Vault
Sat May 08, 2010 2:54 pm UTC
Forum: Coding
Topic: [C#] Serializing many, subtly different classes
Replies: 2
Views: 2046

Re: [C#] Serializing many, subtly different classes

The only way to do that without having to write a serialization method for each subclass would probably be to use introspection. I don't know anything about ease of using C#'s reflection/introspection libraries though (I don't know anything about C#), and in Java, it would probably be less of a hass...
by Vault
Thu Apr 29, 2010 2:16 am UTC
Forum: Coding
Topic: Scala
Replies: 7
Views: 2367

Re: Scala

I've looked a bit at the language, and overall I like it, it's just got so many redeeming qualities. I haven't played with it as much as I'd like to, but from what I remember the biggest issue I had with it was the sheer number of syntactic features. I felt a lot like the designers took every functi...
by Vault
Mon Apr 05, 2010 6:39 pm UTC
Forum: Coding
Topic: Version control (for OS X) for dummies
Replies: 7
Views: 1872

Re: Version control (for OS X) for dummies

Look up git . I use it with OSX, and their tutorials are pretty good. This. Definitely this. Download git, install it, and then download GitX . It's a lovely mac GUI for it. Be prepared to do some reading though. Git requires some initial effort to learn, but if you take an hour, you should be able...
by Vault
Mon Mar 22, 2010 6:13 pm UTC
Forum: Coding
Topic: Ruby: Why?
Replies: 11
Views: 3552

Re: Ruby: Why?

The biggest difference between Ruby and Python is blocks. They seem kind of minor at first, as just kind of a handy trick, but they are extremely powerful and one of the biggest driving forces behind all of the wonderful DSL's that can be built with Ruby. Look at the Sinatra web framework for an exa...

Go to advanced search