I've been wondering what command-line aliases (such as in bash, or just even .bat files under Windows) you can't live without?
I'll start off with my favourite:
alias q=exit
I have a 40 minute, 6 gigabyte .MOV file that I transferred from my iPhone to my PC. I need to upload the video to Youtube but the file is too large. When I try to compress the video, my computer will shut off when the process reaches 3 or 4 percent. This has happened in Windows Live Movie Maker, Riva FLV encoder, and VLC.
Any ideas on how I can get this file down to a reasonable size so I can upload it online?
For a number of reasons I need to change the health check URL of a live site behind an ELB. The ELB is configured for health checks every 30 seconds, with a healthy threshold of 2 and unhealthy threshold of 2. I need to ensure I make this change with no outage. If I make the change to the health check URL, and assuming the URL checks successfully, will the instances stay healthy on the load balancer, or will they go out of service until they succeed 2 health checks (in 1 minute)?
I have recently assembled a dual monitor setup.
I often watch live.twit.tv in my browser and I would like to run it maximized while I do other stuff on second screen, but when I click on a desktop the full screen mode rolls back to normal view. The same case is for different Flash players and I believe Silverlight players suffer from the same problem.
Is there any way to bypass this behavior?
All of a sudden, my Microsoft Office files have the generic file icon, and it happens with Powerpoint and Word, but not Excel. I can open the files just fine, and I tried restarting my computer, creating new files, clicking F5 on the desktop, turning off my Windows XP theme patcher, and none of them worked, any ideas?
EDIT: I've also noticed that it happened to the following programs: Windows Live Messenger, iTunes, and Skype, so not just MS Office. Yet, some are still fine like IE, Paint, GIMP, Paint.NET, a few web browsers, etc.
I've got a set of .tar.gz files, which are duplicity backup files (either full backups or incremental ones). I'd like to compute which directories take the most space on backups. This will most probably be a different figure to calculating which directories take the most space on a live filesystem because I need to account for how often are files changing (and therefore taking space on incremental backups) and how compressible are files.
I know that while many other archive formats store compressed files as different entities inside the archive file, .tar.gz files do not, and therefore it is impossible to get an exact amount of storage taken in the archive by a single file after compression. Are there any tools to calculate at least some estimates?
http://lifehacker.com/#!237227/geek-to-live--encrypt-your-web-browsing-session-with-an-ssh-socks-proxy
http://ca.lifehacker.com/5763170/how-to-secure-and-encrypt-your-web-browsing-on-public-networks-with-hamachi-and-privoxy
If I set up my own VPN or similar server on my always on computer at home, they say I could access gmail from my work computer. My question is, will the IT guys at work be able to notice something strange is going on if I'm on gchat at work through one of these things? (by IT guys I mean the two guys in charge of our network at work - its a small company)
I'm working on a tutorial using Backtrack 4 Live USB, and I would like to take a screencast of what I'm doing (not just screenshots)
So far I have tried these application with limited success:
-recordmydesktop
-xvidcap
-wink
-istanbul
-vlc
-vnc2flv
Each time I try the resulting files are generally choppy (at best 1 frame per second) and most don't even end up with a clear view of the screen each time. If anyone has suggestions for the screencast I would greatly appreciate it.
Thanks,
Bryan
Is there any Security software recommendation for Windows Server 2003 as a Web Application/Website server?
Or any particular settings I should adjust before making a website to be Live.
I'm trying to figure out how to operate a rather large Java program, 'prog'. If I go to its /bin/ dir and configure its setenv.sh and prog.sh to use local directories and my current user account. Then I try to run it via "./prog.sh start". Here are all the relevant bits of prog.sh:
USER=(my current account)
_CMD="/opt/jdk/bin/java -server -Xmx768m -classpath "${CLASSPATH}" -jar "${DIR}/prog.jar""
case "${ACTION}" in
start)
nohup su ${USER} -c "exec ${_CMD} >>${_LOGFILE} 2>&1" >/dev/null &
echo $! >${_PID}
echo "Prog running. PID="`cat ${_PID}`
;;
stop)
PID=`cat ${_PID} 2>/dev/null`
echo "Shutting down prog: ${PID}
kill -QUIT ${PID} 2>/dev/null
kill ${PID} 2>/dev/null
kill -KILL ${PID} 2>/dev/null
rm -f ${_PID}
echo "STOPPED `date`" >>${_LOGFILE}
;;
When I actually do ./prog.sh start, it starts. But I can't find it at all on the process list. Nor can I kill it manually, using the same command the shell script uses. But I can tell it's running, because if I do ./prog.sh stop, it stops (and some temporary files elsewhere clean themselves out).
./prog.sh start
Prog running. PID=1234
ps eaux | grep 1234
ps eaux | grep -i prog.jar
ps eaux >> pslist.txt
(It's not there either by PID or any clear name I can find: prog, java or jar.)
cd /proc/1234/
-bash: cd: /proc/1234/: No such file or directory
kill -QUIT 1234
kill 1234
kill -KILL 1234
-bash: kill: (1234) - No such process
./prog.sh stop
Shutting down prog: 1234
As far as I can tell, the process is running yet not in any way listed by the system. I can't find it in ps or /proc/, nor can I kill it. But the shell script can still stop it properly. So my question is, how can something like this happen? Is the process supremely hidden, actually unlisted, or am I just missing it in some fashion? I'm trying to figure out what makes this program tick, and I can barely prove that it's ticking!
Edit:
ps eu | grep prog.sh (after having restarted; so random PID)
50038 19381 0.0 0.0 4412 632 pts/3 S+ 16:09 0:00 grep prog.sh HOSTNAME=machine.server.com TERM=vt100 SHELL=/bin/bash HISTSIZE=1000 SSH_CLIENT=::[STUFF] 1754 22 CVSROOT=:[DIR] SSH_TTY=/dev/pts/3 ANT_HOME=/opt/apache-ant-1.7.1 USER=[USER] LS_COLORS=[COLORS] SSH_AUTH_SOCK=[DIR] KDEDIR=/usr MAIL=[DIR] PATH=[DIRS] INPUTRC=/etc/inputrc PWD=[PWD] JAVA_HOME=/opt/jdk1.6.0_21 LANG=en_US.UTF-8 SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass M2_HOME=/opt/apache-maven-2.2.1 SHLVL=1 HOME=[~] LOGNAME=[USER] SSH_CONNECTION=::[STUFF] LESSOPEN=|/usr/bin/lesspipe.sh %s G_BROKEN_FILENAMES=1 _=/bin/grep OLDPWD=[DIR]
I just realized that the stop) part of prog.sh isn't actually a guarantee that the process it claims to be stopping is running -- it just tries to kill the PID and suppresses all output then deletes the temporary file and manually inserts STOPPED into the log file. So I'm no longer so certain that the process is always running when I ps for it, although the code sample above indicates that it at least runs erratically. I'll continue looking into this undocumented behemoth when I return to work tomorrow.
I've got a Flip Mino HD and am looking for a free utility that will convert the default mp4 video format into something that is Windows Movie Maker (Live or Standard) friendly.
What do you guys recommend?
Hi, I live in Israel and I bought Windows 7 Professional in Hebrew. I'd like to switch the language to English.
In Control Panel - Region and Language I don't have any options to switch the display language to English because only Hebrew is installed. In Windows Update, there are no language updates. I have waited three days, and still no language update.
Any Ideas?
Thank you.
I'm trying to do Remote Administration of IIS in C#.NET using System.Web.Administration tools. Everything works fine on a test server (windows 2008), however when I try using our live server (windows 2003) it fails giving the message:
System.Runtime.InteropServices.COMException : Not enough storage is available to process this command. (Exception from HRESULT: 0x80070008)
The server itself has plenty of memory free, so I believe this is some kind of memory limit with the RPC itself.
http://support.microsoft.com/kb/890425
Is there any way around this?
I was using Firefox 3.5 when this happened.
I tried the obvious workarounds: Upgrade to 3.6. Downgrade to 3.0. None worked.
I'm using Windows Vista 64-bit.
The only extensions installed are Lori, Roboform, Google Toolbar, Live HTTP Headers, Skype, and Yahoo Toolbar -- all of which I have used for a very long time with no problems.
I have Leopard (Mac OS X 10.5) on a G4 Powerbook and a camcorder with a firewire device. It doesn't have iMovie, which is now part of the separate iLife Suite and requires an Intel Mac.
Anyway, Image Capture does not recognize the firewire video feed as an image capture device. What software would give me the simplest "capture this frame from live firewire video feed to image" functionality.
As the title reads, I'm about to download and install URL Rewrite Go Live extension on my Windows Server 2008 R2 dedicated server, and I need to find out which version of URL Rewrite I should be downloading, x64 or x86.
The information that came with the server when I started to rent it said it was 64-bit but when I look at my C: directory I have two Program Files directories, one titled "Program Files" and the other "Program Files (86)" - so this has confused me somewhat.
Can anybody suggest how to find this out?
I created a gmail account ages ago whilst living in the UK where google has trademark problem with gmail (similar to budweiser v budvar dispute)
Now I no longer live in the uk, how can I change the address from being
[email protected]
to simply
[email protected]
I've changed the 'reply address' to be gmail, and it works fine, but it's still annoying.
I installed latest Ubuntu on a flash drive. Was ready to install clonezilla with apt-get install clonezilla but that's not the way to do it?
I prefer a physical install to a live one because I then have a chance to load specialized ntfs drivers for instance, should there be a need.
How can I do this? Thank you!
I'm trying to install vim to $HOME/bin by compiling the sources.
./configure --prefix=$home/bin
seems to work, but when running make I get:
> make
Starting make in the src directory.
If there are problems, cd to the src directory and run make there
cd src && make first
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -I/usr/openwin/include -o objects/buffer.o buffer.c
In file included from buffer.c:28:
vim.h:41: error: syntax error before ':' token
In file included from os_unix.h:29,
from vim.h:245,
from buffer.c:28:
/usr/include/sys/stat.h:251: error: syntax error before "blksize_t"
/usr/include/sys/stat.h:255: error: syntax error before '}' token
/usr/include/sys/stat.h:309: error: syntax error before "blksize_t"
/usr/include/sys/stat.h:310: error: conflicting types for 'st_blocks'
/usr/include/sys/stat.h:252: error: previous declaration of 'st_blocks' was here
/usr/include/sys/stat.h:313: error: syntax error before '}' token
In file included from /opt/local/bin/../lib/gcc/sparc-sun-solaris2.6/3.4.6/include/sys/signal.h:132,
from /usr/include/signal.h:26,
from os_unix.h:163,
from vim.h:245,
from buffer.c:28:
/usr/include/sys/siginfo.h:259: error: syntax error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: syntax error before '}' token
/usr/include/sys/siginfo.h:294: error: syntax error before '}' token
/usr/include/sys/siginfo.h:390: error: syntax error before "ctid_t"
/usr/include/sys/siginfo.h:398: error: conflicting types for '__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of '__fault' was here
/usr/include/sys/siginfo.h:404: error: conflicting types for '__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of '__file' was here
/usr/include/sys/siginfo.h:420: error: conflicting types for '__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of '__prof' was here
/usr/include/sys/siginfo.h:424: error: conflicting types for '__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of '__rctl' was here
/usr/include/sys/siginfo.h:426: error: syntax error before '}' token
/usr/include/sys/siginfo.h:428: error: syntax error before '}' token
/usr/include/sys/siginfo.h:432: error: syntax error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: syntax error before '}' token
In file included from /usr/include/signal.h:26,
from os_unix.h:163,
from vim.h:245,
from buffer.c:28:
/opt/local/bin/../lib/gcc/sparc-sun-solaris2.6/3.4.6/include/sys/signal.h:173: error: syntax error before "siginfo_t"
In file included from os_unix.h:163,
from vim.h:245,
from buffer.c:28:
/usr/include/signal.h:111: error: syntax error before "siginfo_t"
/usr/include/signal.h:113: error: syntax error before "siginfo_t"
buffer.c: In function `buflist_new':
buffer.c:1502: error: storage size of 'st' isn't known
buffer.c: In function `buflist_findname':
buffer.c:1989: error: storage size of 'st' isn't known
buffer.c: In function `setfname':
buffer.c:2578: error: storage size of 'st' isn't known
buffer.c: In function `otherfile_buf':
buffer.c:2836: error: storage size of 'st' isn't known
buffer.c: In function `buf_setino':
buffer.c:2874: error: storage size of 'st' isn't known
buffer.c: In function `buf_same_ino':
buffer.c:2894: error: dereferencing pointer to incomplete type
buffer.c:2895: error: dereferencing pointer to incomplete type
*** Error code 1
make: Fatal error: Command failed for target `objects/buffer.o'
Current working directory /home/xluntor/vim72/src
*** Error code 1
make: Fatal error: Command failed for target `first'
How do I fix the make errors? Or is there another way to install vim as non-root?
Thanks in advance
I have an icon on my desktop for a website called QUAKE LIVE and I use Google Chrome as my default browser. The website isn't compatible with Google Chrome, but it with Mozilla Firefox. Is there any way to edit the properties of the icon to open with Firefox instead of Chrome?
We live in a place where we have a slow internet connection and get charged per MB. We have unlimited access to email though. Is there an easy way for somebody to send us the contents of a web page (news article) they are on other than copying and pasting the text.
Thanks,
Paul
I am trying to boot BAMT a Debian flavor via USB on a brand new Gigabyte GA-970A-UD3 motherboard. I tried various flash drive and various OS. I never had this problem with ASUS and MSI. The problem is from Gigabyte hardware.
I found that my BIOS is very strict about MBR compatibility. Now I can boot in DOS mode. The flash drive need to be formated as a Win98 Startup disk using HP USB disk storage format tool. Unetbootin menu is booting from USB but won't install BAMT.
If I use Windows or Linux diskimager the working MBR is deleted. I tried converting BAMT .img to .iso and it is not booting with Unetbootin.
Is it possible to boot BAMT(Debian Linux) from a Win98 DOS command prompt? Maybe there is a way to burn the image and keep the working MBR?
If the working MBR is deleted, the flash drive is not recognized at all by the BIOS.
This is the info I found that got me booting for the first time in DOS:
GB's BIOS will only boot USBs formatted to FAT-32, conforming to normal MBR
bootloader. I've seen this before, and surmised that the 'stick-maker' was
formatting in ReiserFile, or one of the EXT 'flavors', but no one ever followed
up to confirm or deny... Also, if it's putting the bootloader into its own
partition - won't work!
In the BIOS, on the "Integrated Peripherals" page, the "USB Storage Function"
item must be enabled (which should be the default) to allow USB booting...
I've put a little work into a 'GB USB booting tutorial', and frankly, I'd just
go ahead and finish it up for you, but I really don't want to reboot the several
times it will take me to 'firm up' procedural details, and take the BIOS/boot
pictures for the post - just noticed VAIL finally went 'public beta', so will be
downloading for likely twenty-six hours or so There's likely enough there to
test a 'raw DOS boot', just to see if your hardware (especially the USB stick
itself) will do it...
Some post later:
Fixed. Here is a brief summary. Since my ubuntu live usb sticks (2gb kingston
and 8gb sandisk sd/usb reader - fat32, created in ubuntu 10.04) would not boot
this board even though they would boot my ga-ep45-ud3p, I decided to try
bilbat's suggestion with the HP usb boot program. I created the win98 boot disk
on the kingston 2gb stick without reformatting. It booted right up. Next, I used
windows version of unetbootin to write the ubuntu livecd to the kingston disk.
This fired right up and completed the install. Everything seems to be in good
order now.
Unfortunately I can boot in DOS mode but can't boot BAMT.
I am settings up a lab and wanted to be sure the following makes sense\is possible:
One server running vsphere with two fiber HBAs
2 Windows 2012 Hyper-V VMs each bound to an HBA
I'm using vsphere because it supports nested visualization, but I'm really setting up this lab to test out hyper-v and live migrations.
Will I easily be able to bind each VM to a physical HBA on the host or are there any caveats I should know about?
I'm trying to learn about permissions on linux webserver with apache.
Some clues to the system:
The server I have to play around with is Fedora based. Apache runs as apache:apache. To allow for e.g. php to write to a file the file needs to be chmod 777. 755 is not sufficiant.
What I'm wondering is basically how set up permissions like they should be on e.g. a "shared web host".
My main problem is that if I set a permission so that one user cannot access anothers home folder, then apache can't read from the public_html folder either.
To keep the users out I need to set chmod 700. But to let apache to read I need to have at least execute on world, so a 701 basically works, but won't let some users in.
So I'm really stuck on what to do. Have been concidering adding the apache user to the frous grours below to avoid having to add the world execute flag, but is that a bad thing? Should it be the other way around, the users in the groups below should also be in the apache group?
I was aiming at having 4 groups:
1. webapp
same as dev_int, but is the only one that can go inside the webapp/live folder to e.g. do an update from the repo.
2. dev_int
can read,write and execute everything in the "web root", including the two below, but nothing outside of the web root
3. dev_ext
can read write and execute in all client folders, but cannot access anything outside of the webapp root
4. clientsBasic ftp accounts. Has a home folder with a public_html, but cannot access any other home folders
An example of folder structure:
webroot no users in the aforementioned groups can go outside of here
some_project :dev_int only
webapp
live :webapp only
staging :dev_int and :dev_ext
clients :dev_int and :dev_ext
client_1 :dev_int, :dev_ext and client1:clients
public_html
dev
developer_1 developer_1:dev_int OR :dev_ext
public_html
Hey, I have a bluetooth "headset" (it's more like a speaker with a microphone on it, but it registers as a headset) and I want to play music through it. I also want to play the same music through the "normal" speakers on the laptop. Is this possible?
If so, is it possible to play two different streams on each speaker? Say if I wanted to DJ a party or something, I'd want to hear the upcoming song and mix it before sending it live.