Wednesday, February 18, 2015

When you don't access to Windows (Reset Password)

Option 1:

copy c:/windows/system32/sethc.exe to c:/ (backup)
copy c:/windows/system32/cmd.exe c:/windows/system32/sethc.exe
--when you restart, push shift key for 5 second, and put.

c:>net user

Option 2:
#mount /dev/sdax  /mnt/windowsc    (mount windows partition using linux)
#cd /mnt/windowsc/Windows/System32/config
#chntpw -l SAM  (for list users)
#chntpw -u SAM (for options)





References:

[1] https://4sysops.com/archives/forgot-the-administrator-password-the-sticky-keys-trick/

[2] http://www.howtogeek.com/howto/windows-vista/change-your-forgotten-windows-password-with-the-linux-system-rescue-cd/


OpenCL Ubuntu 14.04




References:

[1] http://askubuntu.com/questions/412009/open-cl-in-intel/440195#440195

Tuesday, February 17, 2015

OpenCV Basic Headers


#include "opencv2/core/core.hpp"
#include "opencv2/flann/miniflann.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/photo/photo.hpp"
#include "opencv2/video/video.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/ml/ml.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/contrib/contrib.hpp"
#include "opencv2/core/core_c.h"
#include "opencv2/highgui/highgui_c.h"
#include "opencv2/imgproc/imgproc_c.h"

References
[1] http://opencv-srf.blogspot.com/2010/09/opencv-basics.html

Energy Minimization



References:
========

[1] A Comparative Study of Energy Minimization Methods for Markov Random Fields
    paper: http://vision.middlebury.edu/MRF/eccv06/SZSVKATR-ECCV06.pdf
    webpage: http://vision.middlebury.edu/MRF
[2]

Termografia y sus Aplicaciones


Referencias

[1] http://www.nivelatermografia.net/termografia

Redes Complejas



Referencias:

[1] http://www.fis.unam.mx/~max/English/notasredes.pdf

Tuesday, January 20, 2015

Unable to play YouTube videos in VLC Player


Download file updated youtube.lua [1] and put that in /usr/lib/vlc/lua/playlist/youtube.lua


References:

[1] http://jslover.secsrv.net/VLC/playlist/youtube.lua

Sunday, October 12, 2014

CentOS 6.5 OpenCV compilation & execution problems

$echo `pkg-config --cflags --libs opencv`               
Package opencv was not found in the pkg-config search path.                    
Perhaps you should add the directory containing `opencv.pc'                    
to the PKG_CONFIG_PATH environment variable                                    
No package 'opencv' found  

$ ls /usr/local/lib/pkgconfig
libnl-1.pc  libnl-3.0.pc  libnl-cli-3.0.pc  libnl-genl-3.0.pc  libnl-nf-3.0.pc  libnl-route-3.0.pc  opencv.pc

$export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

$ echo `pkg-config --cflags --libs opencv`

-I/usr/local/include/opencv -I/usr/local/include /usr/local/lib/libopencv_calib3d.so /usr/local/lib/libopencv_contrib.so /usr/local/lib/libopencv_core.so /usr/local/lib/libopencv_features2d.so /usr/local/lib/libopencv_flann.so /usr/local/lib/libopencv_gpu.so /usr/local/lib/libopencv_highgui.so /usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_legacy.so /usr/local/lib/libopencv_ml.so /usr/local/lib/libopencv_nonfree.so /usr/local/lib/libopencv_objdetect.so /usr/local/lib/libopencv_ocl.so /usr/local/lib/libopencv_photo.so /usr/local/lib/libopencv_stitching.so /usr/local/lib/libopencv_superres.so /usr/local/lib/libopencv_ts.a /usr/local/lib/libopencv_video.so /usr/local/lib/libopencv_videostab.so -lrt -lpthread -lm -ldl   


$g++ letter_recog.cpp -o letter_recog `pkg-config --cflags --libs opencv`



$./letter_recog                                                                                              
./letter_recog: error while loading shared libraries: libopencv_calib3d.so.2.4: cannot open shared object file: No such file or directory
                                                                                                                 
$export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib  


Tuesday, June 17, 2014

How to remove Bill Gates botnet (Fedora)



1) identify and kill process running
 #top
 #killall cupsdd
 . . .

2) verify crontab

#ss -t (show current socket connections)
#crontab -l (list entries)
#crontab -e (edit current)
#crontab -r (remove all entries)

3) remove calls from start scripts
#vi /etc/rc.local   (here anotate entries )
#vi /etc/init.d
#rm /etc/*.lock  (bill.lock and gates.lock)
4) remove physical files
  atddd, cupsdd, cupsddh,ksapdd, kysadd,sksapdd, skysapdd

References

[1] http://lpages.info/billgates-linux-botnet/
[2] https://isc.sans.edu/forums/diary//17282
[3] crontab https://help.1and1.com/hosting-c37630/scripts-and-programming-languages-c85099/cron-jobs-c37727/delete-a-cron-job-a757264.html

Monday, June 02, 2014

Audacity Ubuntu 12.04


$ sudo add-apt-repository ppa:audacity-team/daily
$ sudo apt-get update
$ sudo apt-get install audacity

Thursday, May 15, 2014

Grasa Corporal, omron, plicometro

La verdad es que esto de medir la grasa es todo un Expediente X..

Con cada uno es un mundo, y si te la mides hoy, no te da lo mismo que mañana...

Yo opte por utilizar un metodo que me dijo alguien en el gimnasio..

"...Tu mirate al espejo y si te ves de puta madre, tienes mejor estado fisico.. corres 4 kilometros o los que sean, estas bien contigo... que mierda importa la grasa?¿.."

Daniel.

referencias
[1]  http://www.hispagimnasios.com/foro-de-musculacion-y-nutricion-f3/topic55248.html

Friday, May 02, 2014

Plantillas CSS

News Letter
http://www.templatesbox.com/free-newsletter-templates/index.htm

Plantilla Web

[1] (buena calidad) http://www.mejoresplantillasgratis.es
[2] http://www.interspire.com/templates/

http://www.opendesigns.org/view-designs/44/
http://www.ex-designz.net/template/tempdetail.asp?temp_id=301
http://www.freecsstemplates.org/css-templates/23
http://www.free-css-templates.com/css-templates/13

Sunday, April 13, 2014

Package opencv was not found (CentOs 6.5)

$g++ `pkg-config --cflags --libs opencv` anycode.cpp -o anycode

Package opencv was not found in the pkg-config search path.                                             
Perhaps you should add the directory containing `opencv.pc'                                              
to the PKG_CONFIG_PATH environment variable                                                              
No package 'opencv' found

Solution
1) find opencv.pc
$ locate opencv.pc

/mnt/vol3/installers/opencv/opencv-2.4.8/build/unix-install/opencv.pc      
...    
/usr/local/lib/pkgconfig/opencv.pc  

2) then add to enviroment variable the path
$ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/



Friday, April 11, 2014

Virtual Machine over Ubuntu 12.04

1) KVM

$sudo egrep '(vmx|svm)' --color=always /proc/cpuinfo
$sudo apt-get install ubuntu-virt-server python-vm-builder kvm-ipxe virtinst libcap2-bin
$sudo adduser `id -un` libvirtd
$sudo adduser `id -un` kvm
$sudo virsh -c qemu:///system list
$sudo apt-get install bridge-utils
$sudo /etc/init.d/networking restart
$sudo vi /etc/network/interfaces
#add this lines
auto kvmbr0
iface kvmbr0 inet dhcp
bridge_ports eth0

$ sudo /etc/init.d/networking restart


References:
[1] http://www.mrxuri.com/2013/11/22/install-kvm-on-ubuntu-server-12-04-lts-and-create-a-virtual-machine.html
[2] http://www.howtoforge.com/virtualization-with-kvm-on-ubuntu-12.04-lts

PostgreSQL json fields

select name->'es_PE',* from product_template where name->>'es_PE' like '%MEGACI%'   References: [1] https:/...