Workaround ========= The bug possibly seems to be in /bin/check-missing-firmware which is called by /bin/ethdetect I performed the following Installer commands as a workaround $ Advanced options/Expert install $ "Execute a shell" $ nano /bin/check-missing-firmware Inserted “exit 0” directly after “#!/bin/sh” line Save file $ exit I then ran the Installer steps as normal and the whole installation proceeded perfectly fine. Since then Debian Wheezy has running fine and I am able to perform daily tasks and connect to the internet as normal ie. the workaround has so far not hindered the daily usage. Info === It seems like a similar bug exists here since Debian Lenny
Thursday, 15 August 2013
Sunday, 4 August 2013
Read data from txt file in matlab
Three different types of data are listed here:
1. data with nice format
time90.ipt
------------------content-----------------
# output -- if =1 the result will only be out
# [Start time] [End Time] [Comment on the data] [Water level cm]
2012/Dec/03 11:54, 2012/Dec/07 10:00, ET not complete TunnelET5(W), 0, 5,1, 0,1, 60, 0, 0
2012/Dec/07 11:24, 2012/Dec/12 12:02, ET not complete NA(W2), 0, 4, 1, 0, 2, 60, 0, 0
2012/Dec/12 18:00, 2012/Dec/31 17:33, Missing mois data PET6.5(M), 0, 3, 1, 0, 3,60,0, 0
--------------end of content----------------------
Since there is only one table, and each column of the content has been separated by delimiter one can use
>>time=importdata('time90.ipt');
2. multi format data without delimiter:
EN.IPT
-----------------------contnet-------------------------
# MXC-- THE MAXIMUM VALUE FOR CONCENTRATION OUTPUT
# MXS-- THE MAXIMUM VALUE FOR SOLID SALT OUTPUT
# MXD-- IN THE EVAPORATION GRAPH, THE MAXIMIZED
# MXE-- IN THE EVAPORATION GRAPH,
[FNAME] [DI] [FILENAME1] [FILENAME2] [FILENAME3]
7C90MM 2D SUTRA5.7_6_PET8_M2 SUTRA5.7_4_PET10_M
#[SWELE] [SWNOD] [SWBCOP] [SWBCOF] [INTERP]
71 72 0 71 0 20 0 200000 0 0.06
--------------end of content----------------------
only the line without hatch is useful then one can use
fn=fopen('EN.IPT');
line=fgetl(fn);
while line(1)=='#'
line=fgetl(fn);
end
line=fgetl(fn);
f1= textscan(line,'%s');
line=fgetl(fn);
f2=fscanf(fn,['%f' ' '],[1,10]);
in this case, file is read line by line.
3. multi format data with delimiter, especially for CSV file:
1. data with nice format
time90.ipt
------------------content-----------------
# output -- if =1 the result will only be out
# [Start time] [End Time] [Comment on the data] [Water level cm]
2012/Dec/03 11:54, 2012/Dec/07 10:00, ET not complete TunnelET5(W), 0, 5,1, 0,1, 60, 0, 0
2012/Dec/07 11:24, 2012/Dec/12 12:02, ET not complete NA(W2), 0, 4, 1, 0, 2, 60, 0, 0
2012/Dec/12 18:00, 2012/Dec/31 17:33, Missing mois data PET6.5(M), 0, 3, 1, 0, 3,60,0, 0
--------------end of content----------------------
Since there is only one table, and each column of the content has been separated by delimiter one can use
>>time=importdata('time90.ipt');
2. multi format data without delimiter:
EN.IPT
-----------------------contnet-------------------------
# MXC-- THE MAXIMUM VALUE FOR CONCENTRATION OUTPUT
# MXS-- THE MAXIMUM VALUE FOR SOLID SALT OUTPUT
# MXD-- IN THE EVAPORATION GRAPH, THE MAXIMIZED
# MXE-- IN THE EVAPORATION GRAPH,
[FNAME] [DI] [FILENAME1] [FILENAME2] [FILENAME3]
7C90MM 2D SUTRA5.7_6_PET8_M2 SUTRA5.7_4_PET10_M
#[SWELE] [SWNOD] [SWBCOP] [SWBCOF] [INTERP]
71 72 0 71 0 20 0 200000 0 0.06
--------------end of content----------------------
only the line without hatch is useful then one can use
fn=fopen('EN.IPT');
line=fgetl(fn);
while line(1)=='#'
line=fgetl(fn);
end
line=fgetl(fn);
f1= textscan(line,'%s');
line=fgetl(fn);
f2=fscanf(fn,['%f' ' '],[1,10]);
in this case, file is read line by line.
3. multi format data with delimiter, especially for CSV file:
Wednesday, 31 July 2013
what is object based ?
procedure oriented programming
object oriented programming
objects
can we use object oriented method to slove fdm fvm fem method?
object oriented programming
objects
can we use object oriented method to slove fdm fvm fem method?
vim study
1. change the background color
:colorscheme desertone can also finish typing up to :colorscheme then use tab to choose inbuild backgrounds
2. separate the screen horizontally/vertically
:sp:vs
3.tabularize the text:
as shown in stackoverflow below:http://stackoverflow.com/questions/8964953/align-text-on-an-equal-sign-with-vim
using tablar is very easy to align the text on specific symbol
after install one can align the text just by:
:Tab /=
3. change font size on the fly (03-07-2015)
http://stackoverflow.com/questions/18138536/can-vim-zoom-in-and-zoom-out4. how to check spells on the comments?
Friday, 28 June 2013
Can not boot to X11 after remove tcp_wrappers-libs-7.6-57.el6.rfx.x86_64
When I tried to install skype according to
http://www.if-not-true-then-false.com/2012/install-skype-on-fedora-centos-red-hat-rhel-scientific-linux-sl/
there is a conflict on tcp_wrappers-libs which also uninstall about 900mb files. Since there are some files that are in version 6.2 and 6.3, I decided to uninstall all of those.
However, after doing that I found:
1. system can not boot X11
2. dhcp can not work
3. most of the softerware is gone for example gedit vlc kde, etc.
At the very beginning, I thought it is due to improper nvidia problem, as not booting to X11 is usually due to that. However, this time I can not do that. Therefore, I check
#less /etc/log/xorg.0.log
where [EE] means error. but still I couldn't get the problem solved.
later on I use
#dhclient
to make internet work
and after searching, I found all the things were actually uninstalled. To get them back, I did
# yum grounpinstall "X Window System"
# yum grounpinstall "Desktop"
# yum grounpinstall "Desktop Platform"
# yum grounpinstall "KDE Desktop"
then everything goes back to normal. what a disaster!!
some usefull command
# yum grouplist
shows all the group names
# service NetworkManager stop (start)
http://www.if-not-true-then-false.com/2012/install-skype-on-fedora-centos-red-hat-rhel-scientific-linux-sl/
there is a conflict on tcp_wrappers-libs which also uninstall about 900mb files. Since there are some files that are in version 6.2 and 6.3, I decided to uninstall all of those.
However, after doing that I found:
1. system can not boot X11
2. dhcp can not work
3. most of the softerware is gone for example gedit vlc kde, etc.
At the very beginning, I thought it is due to improper nvidia problem, as not booting to X11 is usually due to that. However, this time I can not do that. Therefore, I check
#less /etc/log/xorg.0.log
where [EE] means error. but still I couldn't get the problem solved.
later on I use
#dhclient
to make internet work
and after searching, I found all the things were actually uninstalled. To get them back, I did
# yum grounpinstall "X Window System"
# yum grounpinstall "Desktop"
# yum grounpinstall "Desktop Platform"
# yum grounpinstall "KDE Desktop"
then everything goes back to normal. what a disaster!!
some usefull command
# yum grouplist
shows all the group names
# service NetworkManager stop (start)
Thursday, 30 May 2013
enable numlock after boot in scientific linux
- Install "numlockx" either by compile it or find its repo (now i can not find any repo that has it)
- Edit the /etc/gdm/Init/Default file
sudo yum install numlockx
Edit the /etc/gdm/Init/Default file through Gedit using this command in a terminal
sudo gedit /etc/gdm/Init/Default
In the file which opens, above exit 0, paste the lines below
if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi
Save the file and exit.
Next time you reboot, num lock will be on by default
autostart mount cifs after networkmanager is working
I need to connect to a samba server everytime when eth0 started. To do that, I firstly wrote script into
/etc/fstab
However, it doesn't work. it is actually because the network hasn't been initiallized.
so I decided to put
into
/etc/sysconfig/network-scripts/ifup or ifup-eth
but it seems not working either.
Finally, the method works by putting
mount -t cifs //file.eait.uq.edu.au/username /home/chenming/Hdrive -o username=username,password="pass",domain=UQ,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,gid=1000,uid=1000
in
/etc/NetworkManager/dispatcher.d/hdrive
and change hdrive into executable. now it works like a charm
/etc/fstab
However, it doesn't work. it is actually because the network hasn't been initiallized.
so I decided to put
mount -t cifs //file.eait.uq.edu.au/username /home/chenming/Hdrive -o username=username,password="pass",domain=UQ,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,gid=1000,uid=1000
into
/etc/sysconfig/network-scripts/ifup or ifup-eth
but it seems not working either.
Finally, the method works by putting
mount -t cifs //file.eait.uq.edu.au/username /home/chenming/Hdrive -o username=username,password="pass",domain=UQ,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,gid=1000,uid=1000
in
/etc/NetworkManager/dispatcher.d/hdrive
and change hdrive into executable. now it works like a charm
Subscribe to:
Posts (Atom)