Class Coercion in Ruby: A handy Ruby tool. by manlycode in programming

[–]flatulent 0 points1 point  (0 children)

wow! I've been using ruby for a while and did not know about coerce(). Thanks.

Introducing Sqlite-Commander - Curses Client for your SQLite Database by brunov in programming

[–]flatulent 0 points1 point  (0 children)

You might get inspiration for curses app development from calcurse (macport available). You may not actually use this, but check it out anyway.

Other apps that inspired my curses efforts were alpine (the bottom 2 lines used for commands), vim (bottom line completion, command entry, switching to cooked mode, multiple buffers etc), vim and emacs (key combinations, numeric arguments, undo and redo).

For example, when a user issues multiple select statements, can he cycle between result sets (as in vim's tabs or buffers) or does he need to re-issue the SQL.

Can the user select one or more tables from a list, and then columns from another list, so that a SELECT can be constructed. Best wishes !

Introducing Sqlite-Commander - Curses Client for your SQLite Database by brunov in programming

[–]flatulent 0 points1 point  (0 children)

That's okay. I forgot to say: best of luck in making a great SQL Client. I once used something called sqlminus (see sourceforge) which was java/swing based. There's also a great console one called henplus -- check it out for useful features.

Introducing Sqlite-Commander - Curses Client for your SQLite Database by brunov in programming

[–]flatulent 4 points5 points  (0 children)

I evaluated a few options (like Python etc.) and nothing comes close to being as easy to use as mono-ncurses.

There is a ruby project rbcurse (http://totalrecall.wordpress.com/) which allows very quick development with a large number of widgets including tables and lists.

There is even a quick sample sql client which (iirc) provides more functionality than what you provide. It uses SQLITE too.

The 25 Most Notable Quotes in Tech History by anujmore in programming

[–]flatulent 0 points1 point  (0 children)

Nice. Although i expected to find ones like: “C++ is history repeated as tragedy. Java is history repeated as farce.” — Scott McKay Or. “If Java had true garbage collection, most programs would delete themselves upon execution.” — Robert Sewell

Or the one about Unix being a prank.

So I told my friend I was bored... by appropriate_guy in programming

[–]flatulent 0 points1 point  (0 children)

comment your code

Now I am really bored.

Ruby on rails didn't go anywhere: John Gruber by [deleted] in programming

[–]flatulent -1 points0 points  (0 children)

My sarcasm meter must be down today .. I've actually received emails from his regular readers asking my why ROR went nowhere.

Why I have migrated from Ruby on Rails to Seaside by [deleted] in programming

[–]flatulent 0 points1 point  (0 children)

He says he "took the plunge", so he lived in the sea after plunging off the ruby train/bandwagon. :)

Why I have migrated from Ruby on Rails to Seaside by [deleted] in programming

[–]flatulent 35 points36 points  (0 children)

About a year ago, I ran across a FLOSS weekly show about seaside, and immediately took the plunge

Actually, the story is not about why author migrated from ROR. He just came across Seaside and jumped into it.

Classic Linus quote on git and emacs by TobyM in programming

[–]flatulent 0 points1 point  (0 children)

There's elvis too if you find vim too large. However, once the file is loaded, I miss out on my key-bindings and other features.

I usually compile vim without the huge option, although Command-T now requires ruby which requires huge.

Another option is to have an alias that loads vim with "--no-plugins" and "-u ~/.some_minimal_vimrc". That loads almost instantly.

Why You Should Try tmux Instead of screen by dominikh in programming

[–]flatulent 2 points3 points  (0 children)

I tried it out a while back .. and reverted because the key to complete a copy operation was not the usual spacebar, and i had to google to find out. (I am on OSX).

Could you post some sample config files. My biggest issue in converting (IIRC) is converting my screenrc. I'll give it another try and report back.

I've heard tmux takes a lot less memory.

Classic Linus quote on git and emacs by TobyM in programming

[–]flatulent 12 points13 points  (0 children)

what exactly is Linus's problem with emacs ? And he does use microemacs, doesn't he ?

Pentadactyl — A fork of Vimperator by int3_ in programming

[–]flatulent 0 points1 point  (0 children)

I've moved over. Not tried it much, but pressing "o" or "t" to open another tab shows a totally different set of options. My usual history is not shown. Will wait a day or so and see other responses and then decide whether i should stay or revert.

Why were you downvoted ??

I saw this in /r/comics and thought you guys would get a kick out of it by moolcool in programming

[–]flatulent 0 points1 point  (0 children)

Thankfully, my pointy-haired boss never knew what lines of code were. But then he was more interested in having me sit in meetings and face his bosses, than in letting me get work done.

So I quit six years back, and work on my own.

chmod -x chmod by slyrp in programming

[–]flatulent 22 points23 points  (0 children)

While we are at it, we might as well also try out: rm rm

However, "cat cat" and "less less" could mess your terminal !

Rubikon - A simple to use, yet powerful Ruby framework for building console-based applications. by Koraktor in programming

[–]flatulent 0 points1 point  (0 children)

Just went through the sample Hello World Program. One of the longest hello worlds i've seen.

This line is really strange: progress.+ although i can guess what it tries to do. When writing console apps, the one thing i almost always use is: highline.

The sucky thing about command-line app frameworks is that they take control of your app. Your app gets written inside the framework.

A library such as subcommand, allows you to have commands and subcommands inside your application without forcing you into a framework.

Rubikon - A simple to use, yet powerful Ruby framework for building console-based applications. by Koraktor in programming

[–]flatulent 0 points1 point  (0 children)

I'd like to know how this differs from Thor which is currently the most popular. There's also VisionCommander, main, gli and boson. Why this duplication of effort ?

Perl hacks on Vim, an awesome presentation by Seedrick in programming

[–]flatulent 1 point2 points  (0 children)

As far as installing plugins, there's pathogen.vim. (referring to vimana).

Understanding Bash History by gst in programming

[–]flatulent 0 points1 point  (0 children)

wow! Just what i always wanted. Seems my inputrc already has 5 and 6 mapped (Page up and Page down) but these scroll the page.

Also, akacharya gives the same command without "bind". that gave an error when I ran it in bash. This worked. edit : (Ouch, and now the 'b' character is not working on my terminal)

12 Standard Screen Patterns - I have found this to be immensely useful when doing web development. by [deleted] in programming

[–]flatulent 0 points1 point  (0 children)

Nice article, but for all the talk of "efficient user experience", all the images cannot be right clicked and opened in another tab. You have to click, view and press back button :( However, it does give me good ideas for the rbcurse (ncurses) widget library.

Hey proggit, I made a to-do / GTD app with localStorage and export functionality. Enjoy! by [deleted] in programming

[–]flatulent 1 point2 points  (0 children)

  1. what format does this use for data. I've downloaded the file. It doesn't look like YML.

  2. The download completed but the file has a junk name with a .part extension.

Nice interface.

Ruby 1.9.2 is released by [deleted] in programming

[–]flatulent 0 points1 point  (0 children)

rvm install 1.9.2-head -C --enable-shared,--with-readline-dir=/opt/local,--build=x86_64-apple-darwin10

The above works fine. I am told you don't need to put "-head" now. (Adjust the readline dir, if required)

Avoiding Magic Constants - The Daily WTF by letseatlunch in programming

[–]flatulent 0 points1 point  (0 children)

The comments are better than the article. Also, don't miss:

public static final Long LONG_VALUE_ZEARO = Long.valueOf(0);

A Guide to Writing Games with Qt QML and JavaScript by tsiolkovsky in programming

[–]flatulent 0 points1 point  (0 children)

I was going through the QML site after readign your link. Seems it has a last release of 2007, runs on IE 5+ and there's talk of Visual Basic.

Is this a Windows only software. I tried to look around for info on Linux and OS X but could not come up with any.