Computers
Video and Photos in one Gallery: Wordpress , NextGen, jquery, and shadowbox
by drtech on Feb.12, 2010, under Computers
The Problem:
After searching far and wide for a gallery script that would allow me to show my photos and videos inline, one after another, in a simple to use shadowbox or similar viewer, I finally come up with a solution. The problem is most galleries are only set up to handle photos and not videos. Or if they do, they don’t show in the same sideshow or thumbnail view. WPG2 is the only one out there that does this halfway, but to see the videos, you have to actually leave the page you put the video thumbnail on and view the actually gallery2 page which is painfully slow and clunky.
The NextGen gallery plugin for WordPress seems to do a nice job with photos, but alas is still lacking video support. Along comes this post where I finally got started learning jquery: http://blog.creonfx.com/javascript/wordpress-video-galleries-with-nextgen-and-jquery Now with this code, the video thumbnails show on your posting of a gallery, but, the videos don’t show in sequence when you are thumbing through the photos in shadowbox. You must instead click individually on the thumbnail representing the video. But how do you know which one is the video? Another problem.
Now, for the solution.
Summary:
Details:
I modified the above script from Peter Velichkov to modify the “rel” tag (continue reading…)
Getting network drives usable on Windows7
by drtech on Dec.26, 2009, under Computers
Windows 7 is great. But for some reason Microsoft disabled indexing for network drives. This is a real problem when you store all your documents on a central server or network drive. To work around this and put your network drive in your “libraries” follow the instructions below:
1. Create a folder on your hard drive for shares. i.e. c:\shares
2. Create another folder in the above share. i.e. c:\shares\documents
2. Link the Library to this folder.
3. Delete the folder.
4. Use the mklink in an elevated command prompt (ie, run CMD with administrator privileges) to make a symbolic link between the local directory you linked earlier and the network share you are trying to link. Name the link the same as the folder you created above.
i.e – mklink /d c:\shares\documents \\server\mydocuments
5. Done. Now you have non-indexed UNC path as a library.
Now you have the folder listed, but you can’t search it. For this, you need to install a patch released by Microsoft:
windows7 desktop search – UNCFATPHInstaller (will not work on 64bit according to Microsoft…but I haven’t tried it)
Then you should be able to go to Control Panel > Indexing Options > Advanced Button > UNC Tab and add the path for indexing.
Passwordless SSH Login for Backup on Linux computers
by drtech on Dec.02, 2009, under Computers
Because OpenSSH allows you to run commands on remote systems, showing you the results directly, as well as just logging in to systems it’s ideal for automating common tasks with shellscripts and cronjobs. One thing that you probably won’t want is to do though is store the remote system’s password in the script. Instead you’ll want to setup SSH so that you can login securely without having to give a password.
Thankfully this is very straightforward, with the use of public keys.
To enable the remote login (continue reading…)
Automatic SSH Login for Auto Backups
by drtech on Jul.04, 2009, under Computers
This if simple and a great asset if you are trying to do automatic backups with rsync or anything else where you need unattended backups or login. This is for Ubuntu Distributions of Linux:
1) Generate RSA Key
ssh-keygen -t rsa
2) Copy the key to the computer you wish to login to automatically without a password:
sudo scp ~/.ssh/id_rsa.pub USERNAME@IP:~/.ssh/authorized_keys
(replace your username and IP address with your correct info)
That’s it! Now you should be able to use SSH and not have to enter a password to login.


Thank you for visiting our site! All personal content on this site is locked while not logged in. If you are a family member or friend of the family, please request membership to this site to be able to view all it's content. To do so, just click on the link above and register. You will be notified if your account is approved. If you are already a member and wish to see private content, please login with the link at the top of the page. Thanks you for visiting. May the grace of the Lord, Jesus Christ, be with you!