Jump to content


Check out our Community Blogs

debtboy

Member Since 30 Aug 2009
Offline Last Active Sep 04 2013 05:52 PM
-----

Posts I've Made

In Topic: Simple LWP'ing and parsing

24 July 2011 - 04:35 PM

Hi Mentalbox,

All your answers can be found in "The Camel Book" (Programming Perl)!!

It may take some time indexing and reading through it, but the rewards are worth it.
IMHO, there is no better language for extracting and manipulating data. ;)

Perl makes easy things easy and difficult things possible



Hint: check out the man pages for perl (it's a book in itself)

In Topic: Quick sort help in perl

24 July 2011 - 06:11 AM

Hi hsincredible,
(I just saw this post)

I assume you have a reason for the way you collect data from STDIN...
number of inputs then inputs :confused:

Perl is an awesome language for extracting and manipulating data.
A sort function already exists and produces a sorted output.


#!/usr/bin/perl

my $t=<STDIN>;
int($t);
my @n;
my @n_sorted;
while($t)
{
        push(@n,int(<STDIN>));
        $t--;
}
@n_sorted = sort @n;
foreach(@n_sorted)
{
        print $_."\n";
}

In Topic: linux scheduling algorithm

09 July 2011 - 07:03 PM

Does anyone know what sceduling algorithm use the Linux 2.2.6?
Or where i can find informations?

not sure I understand...
crond handles scheduling in most unix-like systems,
crontab is the command to use to create a cronjob ;)

In Topic: Do you need to be good at math to be a good programmer?

09 July 2011 - 06:59 PM

I'm sure you can... (I am a Sys Admin now, but used to be a ".net" programmer)...
honestly, I've never needed more than Algebra in my applications.
In my experience, corporations need database information in many different formats.

IMHO...
If you can embed SQL in a web based language..., you are 1/2 way there ;)

In Topic: Whats Playing in your Earphones?

09 July 2011 - 06:50 PM

It's a Southern Rock Night :)
Molley Hatchet-- Flirtin with Disaster
YouTube - ‪Molly Hatchet: Flirtin With Disaster‬‏

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download