Help me to pick best linux based OS



Hi all
My laptop specs:
Processor : intel celeron 560 2.13ghz
Ram : 1 giga DDR2 RAM (667 MHz)
GPU : Intel® GMA X3100
Rom : Hard disk 160 GB

I want to know what is the best linux based os for it , shall it be 32 bit or 64 bit os and how to install all its drivers as well.
thx in advance :)

Related to : Help me to pick best linux based OS
Why did you pick Linux?
Ubuntu
Im kinda wondering on why the mass majority of people enjoy and like linux so much.
Discuss
What's the most idiomatic way to pick a value from a slice based on a condition in Go?
Ubuntu

I've been doing a lot of loops or sometimes converting slices to maps with convenient indexes to achieve this, but I feel it might not be the best way to do it in Go, so:

Considering the following boilerplate code, what's the most idiomatic way to find the first person named "Bob" on people slice? found should be a bool variables to determine if a person named "Bob" was found or not.

package main

import "fmt"

type Person struct {
    Age int
    Name string
}

var people = []Person{{Age:18, Name:"Deb"},{Age:22,
Name:"Bob"},{Age:35, Name:"Bob"}}

func main() {
    FirstBob, found := // how to pick first "Bob"?
    fmt.Println(FirstBob)
}

Being more general: What's the most idiomatic way to pick the first value from a slice that matches a certain condition?


PHP Pick random array values based on total
Ubuntu

I have array in php like

$randomarray =
array('1106'=>'5','1110'=>'2','11867'=>'3','1206'=>'2','1210'=>'1','1223'=>'6','1235'=>'3','12565'=>'4','1258'=>'5','12690'=>'2','12693'=>'3','1283'=>'1','12944'=>'5');

I want to randomly pick elements from the array with the count of exactly 20. Each element have to only one time

I tried some array random example. I can't able to get the exact total which i expect.

this is the example of what i did that. But loop went to infinitive,

function randomTo($numIn) {
    global $randomarray;
    $numOut = 0;
    $numbers = array();

    do {
        $key = array_rand($randomarray );
        $add =  $mainarray[$key];
        if($numOut + $add > $numIn)
            continue;
        $numOut += $add;
        $numbers[] = $add;
        unset($mainarray[$key]);
    } while( $numOut != $numIn );

    return $numbers;
}
$testdata = randomTo(20);

pick a subclass based on a parameter
Ubuntu

I have a module (db.py) which loads data from different database types (sqlite,mysql etc..) the module contains a class db_loader and subclasses (sqlite_loader,mysql_loader) which inherit from it.

The type of database being used is in a separate params file,

How does the user get the right object back?

i.e how do I do:

loader = db.loader()

Do I use a method called loader in the db.py module or is there a more elegant way whereby a class can pick its own subclass based on a parameter? Is there a standard way to do this kind of thing?


Is it ethical to cherry-pick reviewers based on their previous reviews of your manuscript? – academia.stackexchange.com
Ubuntu
The academic review process is usually supposed to be blind, in that authors are not told the identity of the reviewers. But frequently it is possible to guess who has reviewed your work, or the ...
Help me to pick best linux based OS
Ubuntu
Hi all
My laptop specs:
Processor : intel celeron 560 2.13ghz
Ram : 1 giga DDR2 RAM (667 MHz)
GPU : Intel® GMA X3100
Rom : Hard disk 160 GB

I want to know what is the best linux based os for it , shall it be 32 bit or 64 bit os and how to install all its drivers as well.
thx in advance :)


Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .