Is there any good CHM reader out there which can support the following:
Highlighting of text
easy navigation
works on windows, linux and mac
The default one in windows does not support highlighting text.
when I ssh to a certain linux host, although my default shell is tcsh, the .cshrc file under my home directory is not sourced at all. I can't understand why this happen, cus from my understanding, if I'm using the tcsh, the .cshrc should be anyway souced!
must some magic there, please tell me if you know it. thanks in advance.
I have a PHP script which seems to have frozen MySQL. When I restarted my machine (Debian Linux) the MySQL database reported as full and now, when I want to run MySQL, there is the following error:
ERROR 2002 (HY000):
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
How do I fix this?
I have a few images that have been anti-aliased onto a white background that I want to put on a transparent background. Just selecting it with the -wand tool/fuzzy select tool/select your terminology of choice- and deleting the background tends to leave a ring of off-white pixels around the image, or eat into the image depending on the tolerance setting. Is there some better way to do this, preferably an automatic tool? (I'm on Linux)
Is there a way to run a VM in Fusion that starts when the machine does, but I can then access via Remote Desktop (Windows) or ssh (Linux) rather than by opening the Fusion app, starting the VM, and then connecting however I'd prefer (rdp/ssh)?
Hi All
What is the efficient way to match the two different hard disk partition tables?
I have save the partition tables using dd command in linux.
The partition tables are from Windows system.
Regards,
I have about 1000 text files and I need to view each, and move it to a folder if it's the correct one. I can only do basic sorting by length/size, and I can't grep because the text is random. How can I do this besides manually openiing + saving each in gedit. I'm on Ubuntu Linux. Thanks
I would like to create a small script that installs a few truetype fonts on the user's system. On my Ubuntu machine the truetype fonts are located at /usr/share/fonts/truetype. However, I'm not sure if this location is the same on all machines. Is there a way to find out where truetypes fonts are stored on any Linux system?
Is there any application in linux-land that can encode files into the Creative's own .cmv?
I tried their C.Centrale, but it doesn't seem to work well through Wine.
I need one that will work with Zen MX, which doesn't accept the original xvids / wmvs.
Hello,
I'm looking for some tool on windows/linux which draws the layout of the network I'm in. Btw, don't think I'm just a user in this network. I don't have any admin controls.
Fn + F6 - backlight turns off immediately, image stays (visible if shine something at the display)
xset dpms force {off,suspend,standby} - backlight turns off slowly, image cleared.
How to programmatically just turn off backlight on Acer Extensa 5220 laptop in Linux? It should work fast and should not touch image (unlike xset method).
Ideally if I could rapidly switching backlight off and on emulate lower_than_minimum brightness level (ideally - to be hardly visible (but visible) at night).
hi all
I use the fsarchiver in order to make restore as the following
link: http://www.icewalkers.com/Linux/Software/535640/fsarchiver.html
command:
fsarchiver restfs /tmp/backup/c0d0p2.fsa id=0,dest=/dev/cciss/c0d0p2
its fail on:
[errno=22, Invalid argument]: oper_restore.c#213,extractar_restore_attr_xattr(): xattr:lsetxattr(/racoon,security.selinux) failed Statistics for filesystem 0
please help what is it: errno=22 ???
Hi, I would now if someone can help me and say if I need a industrial grade or not to insure reliability in a PC embedded device. I use linux and make the most filesystem in RAM to avoid read/write of the cache or the var folder.
I have windows xp on my dell but I lost the drivers disk so I want to install linux Fedora 13 instead and wipe the windows xp.
I burned the iso to a dvd and loaded up the live session user and used "Install to harddrive" but when I get to the partitioning window there is no harddrives to install to so I cant overwrite the windows drive (/C:)..
Help?
I'm having an intermittent issue connecting to a database slave with InnoDB. Intermittently I get connections taking longer than 2 seconds. These servers are hosted on Amazon's EC2.
The app server is PHP 5.2/Apache running on Ubuntu. The DB slave is running Percona's XtraDB 5.1 on Ubuntu 9.10. It's using an EBS Raid array for the data storage.
We already use skip name resolve and bind to address 0.0.0.0.
This is a stub of the PHP code that's failing
$tmp = mysqli_init();
$start_time = microtime(true);
$tmp-options(MYSQLI_OPT_CONNECT_TIMEOUT, 2);
$tmp-real_connect($DB_SERVERS[$server]['server'],
$DB_SERVERS[$server]['username'],
$DB_SERVERS[$server]['password'],
$DB_SERVERS[$server]['schema'],
$DB_SERVERS[$server]['port']);
if(mysqli_connect_errno()){
$timer = microtime(true) - $start_time;
mail($errors_to,'DB connection error',$timer);
}
There's more than 300Mb available on the DB server for new connections and the server is nowhere near the max allowed (60 of 1,200). Loading on both servers is < 2 on 4 core m1.xlarge instances.
Some highlights from the mysql config
max_connections = 1200
thread_stack = 512K
thread_cache_size = 1024
thread_concurrency = 16
innodb-file-per-table
innodb_additional_mem_pool_size = 16M
innodb_buffer_pool_size = 13G
Any help on tracing the source of the slowdown is appreciated.
[EDIT] I have been updating the sysctl values for the network but they don't seem to be fixing the problem. I made the following adjustments on both the database and application servers.
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_sack = 0
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_fin_timeout = 20
net.ipv4.tcp_keepalive_time = 180
net.ipv4.tcp_max_syn_backlog = 1280
net.ipv4.tcp_synack_retries = 1
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 87380 16777216
[EDIT] Per jaimieb's suggestion, I added some tracing and captured the following data using time. This server handles about 51 queries/second at this the time of day. The connection error was raised once (at 13:06:36) during the 3 minute window outlined below. Since there was 1 failure and roughly 9,200 successful connections, I think this isn't going to produce anything meaningful in terms of reporting.
Script:
date /root/database_server.txt
(time mysql -h database_Server -D schema_name -u appuser -p apppassword -e '') /dev/null 2 /root/database_server.txt
Results:
=== Application Server 1 ===
Mon Feb 22 13:05:01 EST 2010
real 0m0.008s
user 0m0.001s
sys 0m0.000s
Mon Feb 22 13:06:01 EST 2010
real 0m0.007s
user 0m0.002s
sys 0m0.000s
Mon Feb 22 13:07:01 EST 2010
real 0m0.008s
user 0m0.000s
sys 0m0.001s
=== Application Server 2 ===
Mon Feb 22 13:05:01 EST 2010
real 0m0.009s
user 0m0.000s
sys 0m0.002s
Mon Feb 22 13:06:01 EST 2010
real 0m0.009s
user 0m0.001s
sys 0m0.003s
Mon Feb 22 13:07:01 EST 2010
real 0m0.008s
user 0m0.000s
sys 0m0.001s
=== Database Server ===
Mon Feb 22 13:05:01 EST 2010
real 0m0.016s
user 0m0.000s
sys 0m0.010s
Mon Feb 22 13:06:01 EST 2010
real 0m0.006s
user 0m0.010s
sys 0m0.000s
Mon Feb 22 13:07:01 EST 2010
real 0m0.016s
user 0m0.000s
sys 0m0.010s
[EDIT] Per a suggestion received on a LinkedIn question, I tried setting the back_log value higher. We had been running the default value (50) and increased it to 150. We also raised the kernel value /proc/sys/net/core/somaxconn (maximum socket connections) to 256 on both the application and database server from the default 128. We did see some elevation in processor utilization as a result but still received connection timeouts.
I've got an Acer Aspire One running Linux. When I connect to my building's wifi, everything seems fine for a short period of time (I can google a few things or start downloading an Apt package), but then other devices on the network lose their IP addresses. Shortly after that, my computer also gets disconected. My computer is set to use DHCP.
What causes this, and do you know how it could be fixed? Am I causing a broadcast storm?
I am doing some benchmarking on EXT4 performance on Compact Flash media.
I have created an ext4 fs with block size of 65536. however I can not
mount it on ubuntu-10.10-netbook-i386. (it is already mounting ext4 fs with 4096 bytes of block sizes)
According to my readings on ext4 it should allow such big block sized
fs. I want to hear your comments.
root@ubuntu:~# mkfs.ext4 -b 65536 /dev/sda3
Warning: blocksize 65536 not usable on most systems.
mke2fs 1.41.12 (17-May-2010)
mkfs.ext4: 65536-byte blocks too big for system (max 4096)
Proceed anyway? (y,n) y
Warning: 65536-byte blocks too big for system (max 4096), forced to continue
Filesystem label=
OS type: Linux
Block size=65536 (log=6)
Fragment size=65536 (log=6)
Stride=0 blocks, Stripe width=0 blocks
19968 inodes, 19830 blocks
991 blocks (5.00%) reserved for the super user
First data block=0
1 block group
65528 blocks per group, 65528 fragments per group
19968 inodes per group
Writing inode tables: done
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
root@ubuntu:~# tune2fs -l /dev/sda3
tune2fs 1.41.12 (17-May-2010)
Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: 4cf3f507-e7b4-463c-be11-5b408097099b
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index
filetype extent flex_bg sparse_super large_file huge_file uninit_bg
dir_nlink extra_isize
Filesystem flags: signed_directory_hash
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 19968
Block count: 19830
Reserved block count: 991
Free blocks: 18720
Free inodes: 19957
First block: 0
Block size: 65536
Fragment size: 65536
Blocks per group: 65528
Fragments per group: 65528
Inodes per group: 19968
Inode blocks per group: 78
Flex block group size: 16
Filesystem created: Sat Feb 5 14:39:55 2011
Last mount time: n/a
Last write time: Sat Feb 5 14:40:02 2011
Mount count: 0
Maximum mount count: 37
Last checked: Sat Feb 5 14:39:55 2011
Check interval: 15552000 (6 months)
Next check after: Thu Aug 4 14:39:55 2011
Lifetime writes: 70 MB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory hash: half_md4
Directory Hash Seed: afb5b570-9d47-4786-bad2-4aacb3b73516
Journal backup: inode blocks
root@ubuntu:~# mount -t ext4 /dev/sda3 /mnt/
mount: wrong fs type, bad option, bad superblock on /dev/sda3,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Ive got a website (run on Ubuntu Server) that needs to modify and delete files, every now and again it comes across a file that it needs to run "chmod" on in order to perform it's operations.
However it seems as tho the 'www' user does not have permission to run 'chmod' on any files.
So I'm looking for the command to allow the 'www' user to do its thing on files inside the /var/www folder and also the /var/logs folder for example.
Thanks.
I'm have trouble transfering files again from my work PC, which is a linux machine to my home windows PC.
My work has changed it so I now need to SSH twice before I can access my PC.
So I need to:
ssh [email protected]
password: xxxxx
I then need to do it again.
ssh computer_name
password: xxxxx
I've tried accessing directly via my computers IP but to of no avail.
Is there a way I can use pscp or file zilla to ssh twice so I can transfer files?
I need to convert a very large latex project (made up of many .tex and style files) into .html (or something similarly non-.pdf).
Can someone recommend a quality converter program?
Preferably, one that is:
available on linux (specifically Ubuntu)
actively maintained
Thanks!
I have installed emacs23 on Linux Mint 8. I would like to hide the toolbar, and I can do it with Options Show/Hide Tool-bar. But the Tool-bar comes back next time I start emacs. How can I hide it persistently?
I want to install these libraries in cygwin, how do I do it? are all of them available on cygwin environment or only on linux?
g++ - the version 4.4
graphviz
gnuplot
plotdrop
libboost version 1.38
libgsl0-dbg
libgsl0-dev
libgsl0ldbl
hey guyz i want rar (not tar) my folder on my server by using php
RAR
RAR 3.93 Copyright (c) 1993-2010
Alexander Roshal 15 Mar 2010
Registered to my real name
OS
Ubuntu Release (Karmic) kernel linux
2.6.32.2-xxxx-grs-ipv4-32 Gnome 2.28.1
latest php an lighthttpd
i have tried these things
http://php.net/manual/en/function.escapeshellarg.php // may be wrong code
http://php.net/manual/en/function.exec.php
http://php.net/manual/en/function.shell-exec.php
my command (working in ssh and nautilus script)
rar a -m0 /where/file/will/saved/file_name.rar /location/ti/data/dir/datafolder
php code
$log=Shell_exec("rar a -m0 /where/file/will/saved/file_name.rar /location/ti/data/dir/datafolder");
echo $log;
one method is left which i don't know how to use and its working on server that is by somefile_to_execute_command.sh i have to execute .sh file from php need to send some variables (command) and
i tried this method can rar file with a script named RapidLeech but its rar from only its own files dir only :( but i want to do in different directories.
Rapid Leech rar class
http://paste2.org/p/791668
i m able run shell command with php (cp(copy),mv(move),ls(directory list),rm(remove aka delete)) but got failed to run rar i gives no output i also tried to given path rar and i used alot commands with php Shell_exec function and working like they work with ssh and i have tried almost 80 % method given on net and failed from last 3days i m over now plz help me i need php script file working plz reply if u have any info n code and experience about rar and this kinda :( problem
i m 99% noob just used code mean search Google collect script make my own working thing (for personal use only) n now i m failed to rar folder and file :((
now plz provide me code plz don't talk in technical language because i m just reading my first php book (for dummies :D) mean noob and 0.1
plz help me as much u can
thankx