Archive - technology RSS Feed

Give it a second, it’s GOING TO SPACE

This is really making the rounds. That’s because it’s awesome.

Some of my favorite Linux commands

linux-penguin

Find one of many strings in a set of files
grep -E "str1|str2|str" file*.*

Search through files with multiple file extensions
grep -r --include=\*.{html,php,htm} str /path/to/directory/to/grep

Search through files with multiple extensions with one find command
find -name "*.jsp" -o -name "*.java" | xargs grep -i "whee"

Search through files with multiple extensions with one find command, regex method
find -regex ".*\(\.jsp\|\.php\|\.html\|\.htm\).*" | xargs grep -i "whee"

Replace newlines with HTML breaks in a file
sed ':a;N;$!ba;s/\n/\/g' file.txt

Rename multiple files
for f in *.txt; do mv "$f" "${f%.txt}.bak"; done

Directory sizes here and below
du -sm $(find $1 -type d -maxdepth 1 -xdev) | sort -g

Find files containing between 600 to 700 characters, inclusive.
find . -size +599c -and -size -701c

Update a file’s timestamp, but do not create files
touch -c file*.txt

Spriglet #15: Encoding video that will play in Microsoft PowerPoint

PowerPoint (PPT) often gets a bad rap when it comes to video.

Here’s a little tutorial on how to convert a video so it will play embedded in a PPT presentation.

mplay32

1. First and foremost, PPT will only play video that mplay32.exe (Windows Media Player 5) will play.  If you want to test a video to see if it will work in PPT, click Start -> Run -> mplay32.exe.  Open your video and click the play button.  If you get an error, then it won’t work in PPT.  Here’s a good site with more information about video in PPT.

mediacoder

2. So you have a video that won’t play in mplay32.exe.  You need to convert it.  Enter the Open Source MediaCoder. You can download it here.

mediacoder1

3. Install and fire up MediaCoder.  Click the Add button.  Click Add File, browse to the video file and click Open.

mediacoder2

4. Click Video tab on the left side of the bottom pane.

mediacoder3

5. In the Mode drop-down box, choose “Bitrate-based”.  Change the bitrate to 1500.

mediacoder4
6.
Set the Format and Container both to MPEG1

mediacoder5
7.
Click the Start button.  Wait until it finishes.

mplay32c
8.
Open it in mplay32.exe and click the Play button.  If it plays, it’ll work in PPT.

ppt1
9.
Start PPT and insert the video by clicking Insert -> Movies and Sounds -> Movie from File.

ppt2
10.
Click the Automatically button so it plays when you visit the slide.  Resize the video box as needed.  If the video is in 16×9 format, you may need to set the background to black.  Start your presentation.  Voilà.

Irfanview 4.23 released

irfanview.jpg

My man Irfan is still kicking image butt.

You can download the new version of Irfanview here.

———————–
Version 4.23            (Release date: 2008-12-29)

- Added History list for Random slideshow (“No file repeat” removed)
- New multipage images menu: Create Multipage PDF
- Option to save changes on exit (Properties->Misc 1, default: OFF)
- TIF loading bugs fixed (Thanks to j00ru//vx)
- New command line option: /filelist=txtfile; Examples:
i_view32.exe /filelist=c:\mypics.txt
i_view32.exe /filelist=c:\mypics.txt /thumbs
i_view32.exe /filelist=c:\mypics.txt /convert=d:\*.jpg
=> use files from mypics.txt as input for different operations
- New Contact Sheet options: Set custom paper size and units
- Options to set start parameters for external editors (see Help file/button)
- External editor names are showed in the menu text
- New Panorama dialog option: Add space between images
- Browsing: if CTRL + number (0-9) pressed, the file index increases by number
- New wallpaper menu: Stretched – proportional
- New Slideshow dialog option: Remember last file index on exit
- New option to show DDS alpha color (Properties->Misc. 1)
- Support for WSQ format (Wavelet Scaler Quantization, PlugIn by Steven Venable)
- New Thumbnail option: Use full file path for sorting (if subfolders loaded)
- New thumbnails tree menu: Load subfolders
- New hotkeys: SHIFT + arrows = Move selection rectangle
- New hotkeys: SHIFT + N = Create new image; SHIFT + V = Add canvas;
CTRL + SHIFT + Y = Auto crop borders; CTRL + SHIFT + J = Lossless JPG crop;
SHIFT + O = Fit window to image; F11 = show/hide mouse in Fullscreen/Slideshow
- Several PlugIns are changed/updated, please install the newest versions:
Download from: http://www.irfanview.com/plugins.htm (plugins version is 4.22)
- Some bugs fixed (SGI loading, crop selection)
- Two small 4.22 bugs fixed: Next toolbar button, PDF saving

Switching back to Google Desktop Search

exit

Yeah, well that was fun while it lasted.  I’m back to using Google Desktop.

What I liked about the indexing flexibility of Locate32 is now out the window.  The path to get to what I need to get to is just not easy enough.  I’m used to using Launchy.  I can’t start Locate32 with Launchy and search for a Word Document that contains the phrase “whee” without clicking.

I also thought Xobni might be nice for searching Outlook e-mail.  It’s fine, but it’s, I don’t know….too much.  The contact analytics is cool, but I don’t need it.  I know who I e-mail the most, etc.

I’m ditching Google Desktop (for now)

locate32

I’m tired of not being able to control how and when Google Desktop indexes files.

I’m switching over to Locate32.

First, it seems faster — both in searching and indexing.

Second, the results aren’t in the browser.  I don’t like results in the browser.

OK, that’s all good.  However, one thing I will miss about GDS is the indexing of Outlook e-mail.  I’m willing to try a third-party add-on for that.

xobni

Enter Xobni.

I’ll let you know what that’s like after I’ve used it for a while.  It’s currently indexing the 500 MB of Outlook e-mail that’s been archived for 12 years.

Page 5 of 24« First...«34567»1020...Last »
Switch to mobile version