Category Archives: Software

Sotfware is program that made by human to help them work easier.

Raspberry pi 2 installation without keyboard & monitor

I assume you already download raspbian and write image file to Micro SD.
the next step is then turning on the power and see if we can access raspberry pi via laptop.

what you need

1. 2 lan cable that is connected to router. (any lan cable that on the network that offer dhcp). 1 cable for your laptop, 1 cable is for raspberry pi.
2. nmap installed on windows.
3. windows powershell

Step by step

1. power on your raspberry pi, dont plug lan cable first.
2. on your laptop which is connected to lan cable, open powershell
windows logo –> type powershell.
3. type ipconfig command to determine your ip address & netwrok
for example

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix  . :
Link-local IPv6 Address . . . . . : x.x.x.x
IPv4 Address. . . . . . . . . . . : 192.168.1.12
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1

4. do nmap scan (ping scan) to record all up connection, and put it on file
nmap -v -sn “your network” | findstr “your network part only ip” | findstr /v down > first.txt
for example
nmap -v -sn 10.2.133.86/24 | findstr “10.2.133.” | findstr /v down > first.txt

this will output any up ip address in your network before you connect you raspberry pi to your network

5. plug in lan cable to your raspberry pi, wait for a while to make sure raspberry pi got dhcp ip address. then enter this command on power shell
nmap -v -sn 192.168.1.0/24 | findstr “192.168.1” | findstr /v down > second.txt
this will output any up ip address in your network including your raspberry pi connection.

6. compare two files to see which one is you raspberry pi address
compare those two files using this command on powershell
compare (Get-Content .\first.txt) (Get-Content .\second.txt)

example result :

InputObject                                                 SideIndicator
———–                                                 ————-
Nmap scan report for 192.168.1.14                          =>
Nmap scan report for 192.168.1.15                           =>
Nmap scan report for 192.168.1.9                           <=

7. open putty, and try to ssh each IP address listed in result. one of those ip address list is your raspberry pi ip address. input username: pi and password: raspberry to login via putty to you raspberry pi

login raspberry pi via putty
login raspberry pi via putty

8. delete unnecessary files. on powershell enter this command:
del first.txt second.txt

Raspberry pi Recover micro SD space

After installing raspberry pi on my microSD card, i found that my micro SD is not fast enough. if you want to do the test you can go here.

I had to replace my micro SD with another micro SD with bigger capaticy and faster write/read speed. however when i try to re format my micro SD (use it in my android phone). it is displayed that my micro SD size is only 56 Mb, while its capacity is actually 16GB. Where the rest of capacity?

in windows there is disk management tools to manage our partition
(windows logo -> type disk management
or Control Panel\System and Security\Administrative Tools select computer management menu storage click disk management.)

there, my Micro SD (displayed as disk 1) is separated into 2 partition :

56 Mb of FAT partition
14 Gb of unallocated partition

I found out that there is no option to recover unallocated partition via this disk management tool (or is it?).

so i google and got this one http://geekswithblogs.net/ilich/archive/2013/04/26/recovering-unallocated-space-of-a-usb-flash-drive.aspx

We can use diskpart command via windows cmd.

1.run cmd –> type diskpart –> enter, new diskpart window will appear.
2. on diskpart run this command, be carefull, replace “disk 1” with disk name that match your micro SD card.

DISKPART> select disk 1

Disk 1 is now the selected disk.

DISKPART> clean

DiskPart succeeded in cleaning the disk.

DISKPART> create partition primary

DiskPart succeeded in creating the specified partition.

DISKPART> exit

3. after exit, if you open file explorer now micro SD size will display its actual size, right click and format with file format you want to use. mine is FAT32.

 

 

 

SQL exception The last packet successfully received from the server was

i’ve been seeing this SQL exception lately

SQL exception The last packet successfully received from the server was 37,662,089 milliseconds ago. The last packet sent successfully to the server was 37,662,143 milliseconds ago. is longer than the server configured value of ‘wait_timeout’.

on some applications, everytime this exception occured the process is stopped and the transaction is failed.
asking some of my friend who have faced this kind of error before, they recommended to update connector library, they told me that their problem were gone after they did it. but unfortunately it didn’t work for me. so i had to do some googling, and found this one

http://stackoverflow.com/questions/6865538/solving-a-communications-link-failure-with-jdbc-and-mysql
Solving a “communications link failure” with JDBC and MySQL

in the post itself the writer wrote that there are some solutions that may work, while other may not work for the same SQL Exception message.

for me so far the solution is to use these property

  • validationQuery property
  • AutoReconnect

add this line to our dcbj configuration in context.xml
validationQuery=”SELECT 1″ testOnBorrow=”true”

and modify url by adding “autoReconnect=true”
url=”jdbc:mysql://127.0.0.1:3306/dbname?autoReconnect=true”

 

 

Samsung Galaxy Tab S 8.4 Firmware Update Now LTE Enabled

Samsung has updated firmware for Samsung Galaxy Tab S 8.4 LTE on January 2015. This update which is automatically updated by the system has around 150 Mb in size. At fisrt i thought it was lollypop update, but after installation completed and reboot i didnt see any changes in UI. so i was expecting other kind of update, and violaa, after i checked my data connection, new menu appear. this menu now enable us to choose LTE data connection :).

Samsung LTE menu
Samsung LTE menu

With this update now we can use LTE data connection (if it is available) on our Samsung Galaxy Tab S 8.4. To update this firmware just do check system/software update from setting > general > about device > software update, choose update now or check automatic update if you want this system to do the updat automatically whenever the update is available. Thats it, enjoy your Samsung Galaxy Tab S 8.4 with faster (LTE) data connection :D.

How to open .jar file in linux

how to open .jar file in linux.
Jar file is basically zip file, to see the content of .jar file we can use this command :
1. unzip jarfile.jar
2. jar xf jar-file
you can choose one between two options above to open .jar file in linux

source :
http://superuser.com/questions/417589/linux-what-is-a-most-convenient-way-to-see-the-content-of-jar-file
http://docs.oracle.com/javase/tutorial/deployment/jar/unpack.html

How To Create Partychat in Google Talk Gtalk

I have some problem when i want to create partychat in google talk recently. It is easier before, just go to partychapp.appspot.com create room and invite people, then your room will appear in gtalk as people account and you can cat and do this partychat command like /invite /alias /help, dll. but now it doesn’t work like before. the invitation doesn’t show any effect when it is accepted.

After some observation my friend find issue with domain, but we still couldn’t solve it. then he came up with other solution. seeing other party chat he has that had been created in the past. all of the partychat account always ended with someting@im.partych.at, so he tried to rename grup address following the format

something@im.partych.at
for example i want make newgroup called TuesdayRunners.
to create partychat with that name i just need to write TuesdayRunners@im.partych.at and add that address to gtalk, invite to chat

1. Add TuesdayRunners@im.partych.at, choose invite to chat

Party chat in google talk
Party chat in google talk : create new grup, invite that grup

2. Search in chat list for your new grup you just create, choose chat

Party chat in google talk
Party chat in google talk : searching for newly created group

3. Start chatting and invite people,

Create Partychat in Gtalk
Create Partychat in Gtalk : entering command

to invite other people you can try to enter command /invite, if it didnt work, just send email to people you want to join to partychat group to manually add TuesdayRunners@im.partych.at as if we add new chat contact (as usual) :). Good Luck

How to change default fn button function

change fn button function
change fn button function hp

i have this HP laptop that gave me different fn utility. before this hp laptop i have asus laptop. this hp laptop had default fn function that is assigned to media player function, display function, volume control, wifi control and lcd screen option. so for example, the default button will give me volume up if i press f11, increase brightness if i press f3 and stop/play media player function if i press f6, f7, f8. i prefer to use this spacial function if i press it together with fn button, not when i press this f1-f12 button alone.

actually we can solve it with 2 solution:
first one. we can enter the bios menu and get adjust the setting in bios menu 🙂
second one. we can use software or application to assign and re arrange how our keyboard works.

one of the software that can do this is sharpkeys 😀
its simple and it meets the requirement (function) i need

okay that is How to change default fn button function

please download here
or here http://sharpkeys.codeplex.com/

Warning 1 There was a mismatch between the processor architecture of the project being built “MSIL” and the processor architecture of the reference

Warning 1 There was a mismatch between the processor architecture of the project being built “MSIL” and the processor architecture of the reference

this is my warning message when i try to run my program

Warning 1 There was a mismatch between the processor architecture of the project being built “MSIL” and the processor architecture of the reference “Oracle.DataAccess, Version=2.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=AMD64”, “AMD64”. This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. ConsoleApplication2

as this warning said. we need to avoid this miss match configuration. so simply adjusting the build configuration may solve this warning problem

visual studio properties

visual studio properties2

User Profile Service service failed the logon. User profile cannot be loaded

the user profile service service failed the logon
User Profile Service service failed the logon. User profile cannot be loaded

how to solve problem the user profile service service failed the logon

i just met this problem tomorrow, when i try to login into my windows 7 ultimate edition.
i find this solution in internet

1. Use other profil with administrator privilege to login (if you dont have one then you should
look at this post http://caleudum.com/how-to-get-admin-privilege-in-windows/)
2. Open regedit

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
check:

a) That the key name doesn’t end in “.bak” (remove .bak if there)
b) That the RefCount value is 0 (change it if different)
c) That the State value is 0 (change if different)

User Profile Service service failed the logon. User profile cannot be loaded
User Profile Service service failed the logon. User profile cannot be loaded

for my problem the solution is the a)
i found out that my profile is ended with .bak, like in the picture above
after i rename this by removing the “.bak” i can login with my account that is failed the logon before

3. log off and try to log in with your own user account

hope it can help you.

credits : http://answers.microsoft.com/en-us/windows/forum/windows_vista-security/user-profile-service-service-failed-the-logon-user/4ed66b21-c23e-42f1-98b2-706dcf931fae

How to get admin privilege in Windows

How to get admin privilege in windows? how to create admin account in windows? how to clear and reset windows user and password?

i have been trouble with this issue since i dont have any account with admin privileged in my newly given laptop. the result of not having this administrator privilege is that i couldn’t install any software i want. i couldn’t event change the desktop background. demm…

up until that time i don’t know that there is a way to get admin privilege, create admin account, or clear and reset windows user and password. (or i know but wont bother think about it because i didnt have any issue with my own laptop).
so the solution was to install my own windows os as second boot/first boot. this method will leave the laptop with 2 windows operating system and separate folders, because i choose to install my own windows 7 in different partition (you should to this too if you want to install second, or third operating system. Partitioning harddisk is easy task to easily managed different OS)

but after browsing/searching for a while i get even brighter solution!. Hiren Boot :)…. this Hiren is crazy software. these are steps you need to get admin privilege in Windows

1. Just download and copy hiren boot to CD or create flash usb bootable and make your laptop to first boot CD or flash usb disk.
2. you will then will boot to hiren CD. press enter to continue boot.
3. Hiren software will display list of programs that can be use to tweak your laptop. Choose offline password changer for windows. or something that sound/look like that. (containing words ‘OFFline’ or ‘Password Changer’). press the number of that list (example : 4. Offline password changer for windows). Press 4
4. Follow the instruction. the simple step would be edit user privilege.
5. Choose edit user account/user privilege.
6. Choose user to edit and do the editing, make that user as an administrator.
7. Save.
8. reboot.

The next time you boot your account that has been granted admin privilege will be displayed as administrator account in control panel.

download the hiren boot here
FREE DOWNLOAD HIREN BOOT CD

Now, you get the answer of these questions :).
How to get admin privilege in windows? how to create admin account in windows? how to clear and reset windows user and password?