miercuri, 26 decembrie 2012

Tomboy and Tomdroid

Most of us know tomboy like note-taking application.

Another android application come to be the best friend of tomboy.

The main goal of this application it's to be compatible and be able to sync notes with tomboy.

Read more about this here.

Tips and tricks: recursive show images

The "Mastering OpenCV with Practical Computer Vision Projects" book is done and published!

Also : including a screenshot of each project ....

This will be the main issue .

... to see the screenshot from each project

...and also to find a way for any file to use

Let's take te book and source code:

$ git clone git://github.com/MasteringOpenCV/code.git

Go to the main folder : $ cd code and use this:

code]$ ls 
Chapter1_AndroidCartoonifier     Chapter7_HeadPoseEstimation
Chapter2_iPhoneAR                Chapter8_FaceRecognition
Chapter3_MarkerlessAR            Chapter9_FluidInteractionUsingKinect
Chapter4_StructureFromMotion     LICENSE.txt
Chapter5_NumberPlateRecognition  README.md
Chapter6_NonRigidFaceTracking

If we use the tree linux command the result will be:

.
|-- Chapter1_AndroidCartoonifier
|   |-- Cartoonifier_Android
|   |   |-- AndroidManifest.xml
|   |   |-- jni
|   |   |   |-- Android.mk
|   |   |   |-- Application.mk
|   |   |   `-- jni_part.cpp
|   |   |-- project.properties
|   |   |-- res
|   |   |   |-- drawable
|   |   |   |   `-- icon.png
|   |   |   `-- values
|   |   |       `-- strings.xml
|   |   `-- src
|   |       `-- com
|   |           `-- Cartoonifier
|   |               |-- CartoonifierApp.java
|   |               |-- CartoonifierView.java
|   |               `-- CartoonifierViewBase.java
|   |-- Cartoonifier_Desktop
|   |   |-- CMakeLists.txt
|   |   |-- ImageUtils.h
|   |   |-- ImageUtils_0.7.cpp
|   |   |-- cartoon.cpp
|   |   |-- cartoon.h
|   |   `-- main_desktop.cpp
|   |-- README.txt
|   `-- screenshot.png
|-- Chapter2_iPhoneAR

We need something to find the absolute path and give that to gthumb to run it.

First find the screenshot:

 code]$ ls -d  $PWD/**/*.png
/home/free-tutorials/code/Chapter1_AndroidCartoonifier/screenshot.png
/home/free-tutorials/code/Chapter2_iPhoneAR/screenshot.png
/home/free-tutorials/code/Chapter3_MarkerlessAR/screenshot.png
/home/free-tutorials/code/Chapter4_StructureFromMotion/screenshot.png
/home/free-tutorials/code/Chapter5_NumberPlateRecognition/screenshot.png
/home/free-tutorials/code/Chapter6_NonRigidFaceTracking/screenshot.png
/home/free-tutorials/code/Chapter7_HeadPoseEstimation/screenshot.png
/home/free-tutorials/code/Chapter8_FaceRecognition/screenshot.png
/home/free-tutorials/code/Chapter9_FluidInteractionUsingKinect/screenshot.png

Now will run gthumb with all this images:

code]$ ls -d  $PWD/**/*.png | xargs gthumb 

marți, 18 decembrie 2012

ImageMagick resize with preserve aspect ratio.

ImageMagick is used to change images.

In this case I will show how to resize images and preserve aspect ratio:

...with height: 600 pixels

convert  -resize x600 *.png

...with width: 600 pixels

convert  -resize 600x *.png

If you know more about ImageMagick send me one email.

Samsung Exynos kernel exploit .

For linux user with devices using Samsung Exynos kernel, be advice.

This Vulnerability could give remotely downloaded apps the ability to read user data, brick phones, or perform other malicious activities.

This exploint offer root without flashing.

Read more here.

duminică, 16 decembrie 2012

outlook.com or hotmail.com cookie issue

It's not a Linux issue , but you can give one advice to your friends.

Users of outlook.com or hotmail.com, Microsoft’s two email services, should take note now. Information are stored in cookies when you use the site including whether you have successfully authorized your account or not. If the information is available, you can open and close both services without having to log in again to one of them.

Another problem it's:

It needs to be noted that Microsoft is not the only company that is affected by this. Google Drive for example faces a similar issue. When the software is running, you can click on links to open the Google Account on the web without re-authentication.

Read more here.

... programming sense of life.

I got this on internet and can be a maner of speaking for:

...sense of life.

marți, 11 decembrie 2012

Linus Torvalds - kernel 3.7 is now out.

From: Linus Torvalds <torvalds <at> linux-foundation.org>

Subject: Linux 3.7

Newsgroups: gmane.linux.kernel

Date: 2012-12-11 03:59:50 GMT (9 hours and 45 minutes ago)

Whee. After an extra rc release, 3.7 is now out. After a few more trials at fixing things, in the end we ended up reverting the kswapd changes that caused problems. And with the extra rc, I had decided to risk doing the buffer.c cleanups that would otherwise have just been marked for stable during the next merge window, and had enough time to fix a few problems that people found there too. There's also a fix for a SCSI driver bug that was exposed by the last-minute workqueue fixes in rc8. Other than that, there's a few networking fixes, and some trivial fixes for sparc and MIPS. Anyway, it's been a somewhat drawn out release despite the 3.7 merge window having otherwise appeared pretty straightforward, and none of the rc's were all that big either. But we're done, and this means that the merge window will close on Christmas eve. Or rather, I'll probably close it a couple of days early. For obvious reasons. It's the main commercial holiday of the year, after all. So aim for winter solstice, and no later. Deal? And even then, I might be deep into the glögg. Linus

Read more here.

luni, 10 decembrie 2012

Simple convert images using ImageMagick - convert features

Can be done by using ImageMagick.This is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats over 100. Using ImageMagick let you to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.

Install the software under Fedora:

# yum install  ImageMagick 

Convert an image from one format to another. In this case jpeg.

$ convert *.png *.jpg
$ mogrify -format png *.jpg  

Read more about this software here.