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 :)
Im kinda wondering on why the mass majority of people enjoy and like
linux so much.
Discuss
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?

Web Development

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);
Web Development

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?

Web Development
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 ...
Development
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 :)
Ubuntu

- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow