LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Simulating the "Monty Hall Problem"

Posted 05-18-2011 at 04:43 AM by D1ver
Updated 05-26-2011 at 08:20 PM by D1ver

I was reading about the "Monty Hall Problem" this afternoon and in an attempt to simulate it I wrote some code. The following should run in Matlab / GNU Octave. Results agree with the theory.
Code:
%	Code to simulate the monty hall problem
%	The array 'doors' represent the 3 doors
%	Door States:
%	0 - uninitialized
%	1 - car
%	2 - goat
%	3 - revealed
%
%	Neil Dick
%

% clear everything..
clc 
clear
...
Attached Images
File Type: jpg result.jpg (20.2 KB, 16 views)
Member
Posted in Uncategorized
Views 2416 Comments 0 D1ver is offline
Old

upgrading ext3 to ext4 filesystem

Posted 05-18-2011 at 04:40 AM by neonsignal
Updated 05-18-2011 at 04:44 AM by neonsignal

The following commands upgrade an existing umounted ext3 filesystem to ext4 without having to reformat:
Code:
tune2fs -O extents,uninit_bg,dir_index /dev/partition
e2fsck -fDC0 /dev/partition
To upgrade the root partition, change /etc/fstab so that it will be mounted as ext4 (since ext4 can mount an ext3 file system), then reboot as single user read-only (recovery mode). Then after setting the tune2fs parameters, reboot again before running e2fsck. Then reboot...
Senior Member
Posted in Uncategorized
Views 389 Comments 0 neonsignal is offline
Old

Uppydate.

Posted 05-17-2011 at 09:10 AM by peonuser
Updated 05-17-2011 at 09:11 AM by peonuser

Wonder what Apple will come out with this weekend that linux has been doing for years.

Tested the motors from what I got at Goodwill. They work. I did not test the rc receivers from two of them. Need to start doing research. Pulled a couple of motors from some old old cdrom. Tested them and they work. They are going into a toy for an xmas gift.

Bought an adult bike from Goodwill for 5 dollars. Have a lot of work to do in it, but looks like it will be fine. Have to adapt...
Member
Posted in Uncategorized
Views 318 Comments 0 peonuser is offline
Old

Any open t-shirt designers?

Posted 05-16-2011 at 11:30 AM by williamfromtexas

The joint KDE and GNOME Desktop Summit will be held in Berlin 2011 this year.

That being said, they're running competition for t-shirt designs for the event! It's a good opportunity to stick your graphic idea onto 1200 global desktop nerds.

You'll need to state that the designs are your own and available under the Creative Commons Attribution Share Alike 3.0 Unported license. Send to entries to: ds-team@desktopsummit.org
LQ Newbie
Posted in Uncategorized
Views 732 Comments 0 williamfromtexas is offline
Old

networking program in linux

Posted 05-16-2011 at 09:10 AM by sisirkumar

well,i have SUSE Linux 11.3 and JDK 1.6.0_20 on my notebook PC.
while i am writing a networking program in Java it gives me an error.
so could someone please suggest me how to write networking program in Linux environment?
LQ Newbie
Posted in Uncategorized
Views 328 Comments 0 sisirkumar is offline

  



All times are GMT -5. The time now is 01:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration