LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Fun with prime numbers

Posted 12-28-2010 at 04:26 PM by rocket357 (Musings on technology, philosophy, and life in the corporate world)
Updated 12-28-2010 at 05:34 PM by rocket357

When I was in college I wrote a silly benchmark to test different programming languages. The task was to brute-force calculate the first 150,000 prime numbers. I wrote the program in C, C++, Java, Perl, and Python. I fudged an optimization on them all (the optimization: only run division calculations up to sqrt(n) for a given prime candidate n...since sqrt is costly to calculate, I used n/3 (a horrid estimate, I know...but it still cuts out quite a few tests)). Recently I got a chance to discuss...
Member
Posted in Uncategorized
Views 460 Comments 0 rocket357 is offline
Old

My eye hurts. And I have a cold. Dang.

Posted 12-28-2010 at 04:41 AM by lupusarcanus (Lone Wolf)

It literally feels like I'm crying. But I'm not. Doesn't hurt too awful much, but it does make it harder to see stuff.
(Side note: What an awful picture. I'm tired, don't feel good -- and it's late at night. On a positive note, I totally look like a deer caught in headlights.)
Other than this weird "thing" (pink eye maybe?), I got the usual cold. I sure don't hope my job application gets accepted and I have to go in there feeling like this.
Attached Images
File Type: jpg Photo on 2011-12-28 at 03.31.jpg (75.9 KB, 16 views)
Senior Member
Posted in Uncategorized
Views 1937 Comments 14 lupusarcanus is offline
Old

Who needs a radio when I have a computer?

Posted 12-27-2010 at 09:31 PM by William (Dthdealer) (Whaling the FOSS)

I've been trying to record sound on my laptop for the past few days without decent results.

When first recording with the internal mike there was a decent amount of white noise in the background. I put this down to the mounting of the internal mike inside a device with many moving and vibrating components ( eg my fan and harddrive ). Audacity's noise removal filter did a good job but left me with some ugly artifacts that did not suit my needs.

Now I've tried an...
Member
Posted in Uncategorized
Views 433 Comments 0 William (Dthdealer) is offline
Old

Automatically set file date from EXIF data

Posted 12-27-2010 at 03:54 PM by jere21
Updated 12-27-2010 at 03:59 PM by jere21

You can set the creation date of a picture or video as its access and modification time: If the creation date was saved in the exif data of some media, you can extract it with "exiftool -ee -CreateDate" and then "touch" the file with that time.

To do this automatically save the following script e.g. as /usr/local/bin/exiftool_set_create_date
Code:
#!/bin/sh
# exiftool_set_create_date: set the file date from exif "Creation Date".
echo -n "$@:
...
LQ Newbie
Posted in Uncategorized
Views 2379 Comments 0 jere21 is offline
Old

program for making cd with data

Posted 12-26-2010 at 09:08 PM by eagleye

Hi all,

Looking for a good flexible program to make (burn) cd's with data or DVD's. Also anything else I need. Not sure what is the best one to use. Thanks.

eagleye
LQ Newbie
Posted in Uncategorized
Views 479 Comments 1 eagleye is offline

  



All times are GMT -5. The time now is 11:49 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration