do I have tried the best for them?

lihatlah wajah orang tuamu ketika ia tidur,
ingatlah ketika mereka mengasuh kalian sejak kecil.
banting tulang, cari uang demi anaknya,
masalah demi masalah mereka hadapi.
belum lagi menghadapi kita yang terkadang bandel.
bisakah kita membalas kebaikan mereka?
TIDAK AKAN BISA!!
memenuhi kebutuhan materi mereka?
BUKAN ITU!!!
yang mereka inginkan bukanlah materi atau balasan
mereka ingin melihat kita sukses, lebih baik dari mereka
mereka ingin di perhatikan, di sayang oleh kita,
luangkan waktu untuk jalan2 bersama mereka.
silahkan bermanjalah selagi mereka ada,
bayangkan jika kita tidak bisa melihat mereka lagi.
mungkin akan menyesal seumur hidup jika kita menyia-nyiakan.

aku ingin semua orang di dunia tau, aku sayang orang tuaku melebihi
apapun di dunia ini, papa ku adalah engineer terbaik di dunia
ia mengusai ilmu mekanik dan elektrik secara otodidak, ialah
yang menurunkan darah teknik kepadaku, yang membuatku
menjadi orang seperti sekarang, ialah yang selalu bilang
“yang bisa di lihat, bisa di pelajarin” hehe.. terlalu lebay memang
tapi dia memang hebat dan selalu memberi semangat kepadaku.
ibuku adalah seorang ibu terbaik di dunia ini, wanita emas berhati
emas, wanita karir yang pintar, jago masak dan jago ngaji.
selalu mendukungku dan memberi semangat, teringat beliau
selalu menulis di buku tulis SD ku, halaman pertama.
“tuntutlah ilmu setinggi langit, tapi rendahkanlah hatimu
serendah mutiara di bawah laut”.

pak, mah I love you more than everything.

Advertisements

You don’t have to listen. I just like to talk.

Sometimes we just need a place to talk, even if no one is really listening. Although, to be honest, I really hope someone is listening!

NMEA Parser – GPS Messages

okay..enough boss.., gw jadi orang multitalenan d kantor. smua2 knp harus gw, tp okelah gw juga lagi nuntut ilmu..hehehe…

NMEA : whats NMEA ?

NMEA is a combined electrical and data specification for communication between marine electronic devices such as echo sounder, sonars, anemometer, gyrocompass, autopilot, GPS receivers and many other types of instruments. It has been defined by, and is controlled by, the U.S.-based National Marine Electronics Association

okeh, dont be pusing ya, NMEA is one of many Message Protocol from GPS Satellite.

These are how you get your location from NMEA message :

from your GPS receiver u just listen to Serial Ports that have configurations:

 CONFIGS:

1. ini pake alias this using fix baudrate 4800

2. databits 8

3. Parity – NONE

4. STOP bits 1

5. Handshake – None, if u wanna force of this handshake, just handshake with ur own hand..hahahahaha
ANSI C / Parser Program :

for example this is what u got from your receiver
$GPRMC,095146.000,A,0615.5814,S,10647.3518,E,0.16,238.45,090211,,,A*79

$GPVTG,238.45,T,,M,0.16,N,0.3,K,N*0E

$GPGGA,095147.000,0615.5811,S,10647.3526,E,1,03,3.2,57.6,M,2.9,M,,0000*4B

$GPGSA,A,2,12,18,25,,,,,,,,,,3.4,3.2,1.0*39

$GPRMC,095147.000,A,0615.5811,S,10647.3526,E,0.33,248.75,090211,,,A*73

$GPVTG,248.75,T,,M,0.33,N,0.6,K,N*08

$GPGGA,095148.000,0615.5808,S,10647.3532,E,1,03,3.2,57.6,M,2.9,M,,0000*49

$GPGGA,095149.000,0615.5803,S,10647.3542,E,1,03,3.2,57.7,M,2.9,M,,0000*45

$GPGSA,A,2,12,18,25,,,,,,,,,,3.4,3.2,1.0*39

$GPRMC,095149.000,A,0615.5803,S,10647.3542,E,1.11,73.30,090211,,,A*46

$GPVTG,73.30,T,,M,1.11,N,2.1,K,N*37

$GPGGA,095150.000,0615.5803,S,10647.3537,E,1,03,3.2,57.6,M,2.9,M,,0000*4E

$GPGSA,A,2,12,18,25,,,,,,,,,,3.4,3.2,1.0*39

$GPGGA,095151.000,0615.5802,S,10647.3536,E,1,03,3.2,57.7,M,2.9,M,,0000*4E

NOW can u read what they mean? hihihihihi…

in this program I just parse the GPGGA part that is enough to get your LATITUDE & LONGITUDE

#include <stdio.h>
#include <string.h>

int main()
{
FILE *file = fopen(“gps.txt”, “r”);
char Buffer[1024] = {0};
char temp [512] = {0};
while(fgets(Buffer,1024,file) != NULL)
{
if(Buffer[0] == ‘$’)
{
if (memcmp(Buffer+1,”GPGGA”,5) == 0)
{
printf(“—————————–\n”);
printf(“%s\n”, Buffer);
char *token = strtok(Buffer+6,”,”);
int i = 0;
while(token != NULL)
{
switch(i)
{
case 0:
// cout <<“Universal Time Coordinated (UTC): ” <<token << endl;
break;
case 1:
strcpy(temp,token);
token = strtok(NULL,”, “);
strcat(temp,”, “);
strcat(temp,token);
printf(“Latitude : %s\n”, temp);
i++;
break;
case 2:
// cout << “North or South :” <<token << endl;
break;
case 3:
strcpy(temp,token);
token = strtok(NULL,”, “);
strcat(temp,”, “);
strcat(temp,token);
i++;
printf(“Longitude : %s\n”, temp);
break;
case 4:
// cout <<“East or West :” <<token << endl;
break;
case 5:
// cout << “GPS Quality Indicator :”<<token << endl;
break;
case 6:
// cout << “Number of satellites in view, 00 – 12 :”<<token << endl;
break;
case 7:
// cout << “Horizontal Dilution of precision :”<<token << endl;
break;
case 8:
strcpy(temp,token);
token = strtok(NULL,”, “);
strcat(temp,”, “);
strcat(temp,token);
i++;
printf(“Altitude : %s\n”, temp);
break;
case 9:
// cout << “Units of antenna altitude, meters :”<<token << endl;
break;
case 10:
// cout << “Geoidal separation :”<<token << endl;
break;
case 11:
// cout << “Units of geoidal separation :”<<token << endl;
break;
case 12:
// cout << “Age of differential GPS data :”<<token << endl;
break;
case 13:
// cout << “Differential reference station ID :”<<token << endl;
break;
case 14:
// cout << “Checksum :”<<token << endl;
break;
default:
break;
}
i++;
token = strtok(NULL,”,”);
}
getchar();
}
}
}
}

error while loading shared libraries: /usr/local/lib/libgcc_s.so.1: ELF file OS ABI invalid

heelooo… this is happen after I’ finished installing one application from apt-get.

when u open a application from terminal, it would appear something like this :

error while loading shared libraries: /usr/local/lib/libgcc_s.so.1: ELF file OS ABI invalid

problem:
the libgcc_s.so.1 wasn’t succesfully linked.

just check at :
ls -l /lib/libgcc_s.so.1

thats the correct lib and now you can remove the /usr/local/lib.libgcc_s.so.1 and replace with the correct lib.

# cp /lib/libgcc_s.so.1 /usr/local/lib/libgcc_s.so.1

now, all work fine.. hehe…

Changing IP Address from DHCP to Static IP in Ubuntu

Hello… this will remind me.. hihhihi…

ok, lets now open the interfaces file

$ sudo vim /etc/network/interfaces

for the default, you’ll see in the file

auto eth0
iface eth0 inet dhcp

ok, now we’re going to change the way from DHCP to Static, just enter these text, and suit to your needs

auto eth0
iface eth0 inet static
address        192.168.1.100
netmask     255.255.255.0
network      192.168.1.0
broadcast  192.168.1.255
gateway     192.168.1.1

now, set the DNS setting by open and edit the file

$ sudo vim /etc/resolv.conf

on the line “name server xxx.xxx.xxx.xxx”  replace the x with your nameserver,

you can do ifconfig /all to find out what they are.

ok, thats all…  the last u have to do is, removing the DHCP client and Restart the Net-Interface

$ sudo apt-get remove dhcp-client

& restart the network

$ sudo /etc/init.d/networking restart

 

See you….. 🙂

 

 

Terminator – Multi ViewTerminal

Ctrl-Shift-E: will split the view vertically.

Ctrl-Shift-O: will split the view horizontally.

Ctrl-Shift-P: will focus be active on the previous view.

Ctrl-Shift-N: will focus be active on the next view.

Ctrl-Shift-W: will close the view where the focus is on.

Ctrl-Shift-Q: will exit terminator.

F11: will make terminator go fullscreen.


October 2017
M T W T F S S
« Dec    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

linux addict

campus

univ

college