LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Hashing for ID generation (hash32_enum algorithm and ASM)

Posted 12-24-2012 at 10:45 AM by rainbowsally

You're not going to get fool-proof uniqueness from a 32 bit hash, but this one gets pretty close.

[cont'd from previous blog entry where the C/C++ version can be seen (and tested). http://www.linuxquestions.org/questi...-lists-35223/]

If you're curious about what the hash32_enum thing in the previous blog entry would look like in assembler, this is the output using the --save-temps gcc flag.

Code:
;
...
Member
Posted in Uncategorized
Views 794 Comments 0 rainbowsally is offline
Old

STL Template Experiment (Lists)

Posted 12-24-2012 at 10:24 AM by rainbowsally
Updated 08-06-2014 at 09:00 AM by rainbowsally (added link, grammar error, makefile line correction)

We've resurrected some dead code that was pretty ugly but the only worse MESS (officially sanctioned, no less) than STL that we've ever seen is the spaghetti in lex/flex output. -- The Computer Mad Science Dept.

So...

Now what?

Well...

...what would ANY good Computer Mad Scientist do in a situation like this?

Today's features are
  • Creating lists using the std::list STL template.
  • Identifying the critical 'operators'
...
Member
Posted in Uncategorized
Views 2303 Comments 1 rainbowsally is offline
Old

Setting up Gitso on Ubuntu to provide remote support

Posted 12-23-2012 at 10:28 PM by trevorparsons
Updated 12-23-2012 at 10:33 PM by trevorparsons

I have quite a few Ubuntu installations in the wild, set up for friends and clients. I support them all -- well, those of them that require support -- using Gitso, which is a nice little front end to x11vnc and vncviewer, with connections tunnelled over ssh.

The only work that needs doing at the support end is to set one's router to forward port 5500 to the machine on which you'll be doing the remote support. Then it's just a case of running Gitso, switching the radio button to 'Give...
LQ Newbie
Posted in Uncategorized
Views 1867 Comments 0 trevorparsons is offline
Old

What do you install on an Asus eeepc 701 in 2012?

Posted 12-23-2012 at 10:13 PM by trevorparsons

My school keeper friend Tony has discovered a stash of half a dozen Asus Eee PC 701 netbooks, apparently an unused donation to the school where he works. These are the original netbook, which we were all very excited about when it came out five years ago. I still have mine, currently running Ubuntu 10.04 LTS, and although my Android phone has replaced many of its functions, I still use it now and then when I need a rugged, portable machine with a keyboard.

These 701s are as they came...
LQ Newbie
Posted in Uncategorized
Views 10038 Comments 0 trevorparsons is offline
Old

[ $RANDOM -gt 16383 ] && move_up || move_across

Posted 12-22-2012 at 12:15 AM by rocket357 (Musings on technology, philosophy, and life in the corporate world)
Updated 12-22-2012 at 12:21 AM by rocket357

My boss has mentioned a big opportunity coming up. He's mentioned it on more than one ocassion, and he has dropped "subtle" hints ("Jon, <VP of my dept> mentioned that he needed a name for an internal candidate to put in charge of a new team, and you were the first one that came to mind") to clue me in that I should be preparing for a new role. The promotion would require travel, involve a very serious increase in responsibility and stress, and a just-as-serious pay increase....
Member
Posted in Uncategorized
Views 2249 Comments 8 rocket357 is offline

  



All times are GMT -5. The time now is 03:48 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration