Uncategorized

Bring Misplaced Off-Screen Windows Back to Your Desktop (if all else fails)

Move Off screen Windows Easily

Move Off screen Windows Easily

I use a dual monitor setup with my laptop, but the annoyance is when I switch to using only the laptop screen and certain windows are stuck out of the screen. I read various posts about this and most deal with right clicking the taskbar and trying out “move” or “cascade”.

I noticed the “Move” method is not available on windows 7 when you are using the classic theme, and various other methods failed so I’m posting my “IF all else fails” alternative.

Download the WinLister application from here

Run WinLister as Administrator and select the window you wish to More

Opening multiple VLC windows for different RTSP Streams from AXIS camera

Today I wanted to open asap 4 RTSP streams using VLC.
I ended up copying and pasting the following in the command prompt caused 4 background instances of VLC to appear and read from 4 different AXIS cameras.


"C:Program Files (x86)VideoLANVLCvlc.exe" -vvv "rtsp://username:password@IP_ADDRESS:PORT/axis-media/media.amp?videocodec=h264&resolution=768x576&compression=30&fps=10&textstring=cam1&text=1&textpos=1"&

"C:Program Files (x86)VideoLANVLCvlc.exe" -vvv "rtsp://username:password@IP_ADDRESS:PORT/axis-media/media.amp?videocodec=h264&resolution=768x576&compression=30&fps=10&textstring=cam2&text=2&textpos=1"&

"C:Program Files (x86)VideoLANVLCvlc.exe" -vvv "rtsp://username:password@IP_ADDRESS:PORT/axis-media/media.amp?videocodec=h264&resolution=768x576&compression=30&fps=10&textstring=cam3&text=3&textpos=1"&

"C:Program Files (x86)VideoLANVLCvlc.exe" -vvv "rtsp://username:password@IP_ADDRESS:PORT/axis-media/media.amp?videocodec=h264&resolution=768x576&compression=30&fps=10&textstring=cam4&text=4&textpos=1"&

echo done

Enjoy!

Calculating required upload bandwidth for Axis IP Camera

SVGA_10FPS_StationWhat must someone consider for calculating required bandwidth for IP cameras?

It is not only resolution, but also FPS, the amount of activity (motion), and the compression level which determine the bandwidth required.

Obviously, when the frame doesn’t have so much traffic there is less data to transfer (due to the compression in H.264).
There is a very nice Axis Design tool which estimates bandwidth based on various scenario videos located at:
Within the tool you can select from various videos (“Scenario Combobox”) and view how the bandwidth requirements change based on the activity.
The train station is the extreme example with movement everywhere.The amount of activity within the video makes a tremendous difference as well as the compression, so you need to test reading at multiple compression to see what is acceptable 
in order to not undermine results especially if you are using video analytics software

Also, instead of viewing using RTSP over HTTP it is optimal to view through VLC and RTSP using the axis rtsp api.
The API is available at:  ( http://www.axis.com/files/manuals/RTSP_API_2_01.pdf – page  PDF 14 – parameter specification ) and specifies options to build URLs such as:
rtsp://IP:PORT/axis-media/media.amp?videocodec=h264&resolution=768×576&compression=10

 

XDebug in XAMPP and Netbeans

Having written a lot of PHP code for a project using Notepad++, I got tired with the limitations of not having an IDE containing a debugger, and refactoring tools.

Quick post mostly for myself to have a reference on how to setup XDEBUG (which was quite easy using XAMPP).
If you don’t want to go the long road download the full version of XAMPP here 🙂

1) First off as the DLL is already located it does not need to be downloaded.
2) Open php.ini and make the following edits:

A) Uncomment the line zend_extension = “Somethingphp_xdebug.dll”
B) Uncomment the variables and set them as specified by netbeans …
More

2012 in review

The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.

Here’s an excerpt:

600 people reached the top of Mt. Everest in 2012. This blog got about 3,800 views in 2012. If every person who reached the top of Mt. Everest viewed this blog, it would have taken 6 years to get that many views.

Click here to see the complete report.

Quick and dirty PDF translation using Dropbox, and Google Translate

Hey all, quick non-programming post here about how to quickly translate a PDF doc with formatting from google translate (and keep most of the formatting).

Specifically, I wanted to translate a manual for a professional oven to Greek. My example though will use a preliminary version of my MSc thesis:

http://www.aitdspace.gr/xmlui/bitstream/handle/123456789/273/MBAKOPOULOS_thesis_final_.pdf?sequence=1

Google translate supports uploading documents via the translate a document link, but the result is not always very good with formatting.

More

Lightcouch Pet Peeves, Features, and Insights

Introduction

We’ve been using lightcouch over at AIT, and over time have come up with some specific requirements and general insights about lightcouch. I’ve decided to make a list (and add to it over time), as well as implement a type of utility class which builds upon the original lightcouch functionality for the features we would like.

On to the list…

1) What if a user wishes to insert a JSON string directly instead of creating a JSON object and adding overhead?

I’ve asked the original author on the lightcouch google group (hope the links works) about this, and the answer was for architectural and error checking reasons, specifically:

More

More good posts coming…after 1,397 Unique Visits

Just checked the commutative statistics on statscounter.
I suggest for everyone to use some kind of analytics/tracking (google, statscounter).

Call me a happy camper…it’s nice to know the blog has an increasing amount of visitors.
I’d say a direct relationship with the number of posts, though Week29 is quite an outlier.
Also, having the post about PHPSecLib on the featured page for #php of wordpress is quite coo, even if it may have been automated (not too sure about that).

Helpful video for VLC streaming on youtube

Hey,

Thought to link to the specific video as it was a bit helpful. For sure, many written tutorials as well out there :=)  , http://www.youtube.com/watch?v=R08q2wzGpzk .

I got opencv to read from an RTSP stream yesterday produced by VLC, in my eigenfaces recognition project which I am working on. I will post the code soon related only to the RTSP part.

This is part of the work I am doing for Athens Information Technology in the Safecity Project.
Kudos, or κῦδος ;),  to Nikos Katsarakis, as we were testing out the streaming capabilities of VLC.
They ran into the issue of consuming RTSP streams from VLC about two years ago at the AIT AGC/Smart group so it was an interesting find.

Now to solve issue with which encapsulation and encoding are the most optimal!

 

Office 2007…manual uninstall

This post is for anyone who has had difficulties with office. My office got corrupted and wouldn’t uninstall.Luckily I found the following link:
(How do I uninstall Office 2003, Office 2007 or Office 2010 suites if I cannot uninstall it from Control Panel?) http://support.microsoft.com/kb/290301 that did the job for me 🙂

Takes a long time though…