Tumgik
syahrulfathi · 9 years
Text
Don’t catch up with a new thing
If you a javascript developer, you’ll hear a new framework every single day. confusing right? yes of course. Before that came up, everything are so simple. We do some logic on server, and show with HTML, CSS and Javascript. If your application have rich feature on client side, just include jQuery library and done. But now? you’ll confuse what library to use before writing application. Even before your application still in your mind.
Yes we need something as standard to writing javascript application. With jQuery, we can write a rich application. But if the application grow up, your application became a messy and hard to maintain. Then come a new way to write javascript application to maintain that problem. Mention Angular, Ember, Backbone, and React. To master each framework will have cost a lot of time. So if you want to choosing one of them, I suggest you research first then use on your weekend project first then if you have a confident with that library, used it on your daily project. 
I just want simplicity like jQuery way, include it on HTML script, then i can strat writing javascript application. Done. That’s why i choose React. it’s so simple. like i usually do with jQuery. Just include on your HTML script, then you’re ready to go write using React. The documentation are good and this is the library that make sense with my thought.
From now on I’ll not confuse again wich library I choose for writing javascript application. Because catch up with a lot of new thing in javascript world just waste your time and you’ll not productive. Stick with just your favourite library and build your application.
0 notes
syahrulfathi · 9 years
Text
Thought about ReactJS
Recently, Javascript world talk about ReactJS, a library from facebook, the V on MVC. I have used it on my project and amazed about the simplicity. ReactJS make us as developer writing program efficiently and understandable. As you know, if you create rich ajax app, you will end up confuse about client side code. Yes we have already a great framework such Angular, Backbone, or EmberJS, but a learning curve for that framework are very hard. 
When using ReactJS, it force us to think that apps are built from combination of component. Each component have specific task, state, and properties. Component can have a parent component or child component depends on structure of the app. Take a look picture below.
Tumblr media
Everything that have specific task are component. I repeat, everything that have specific task are component. This is list of component for advance search page above:
Organization field
Publish Date - From field
Publish Date - To field
Sentiment field
Stakeholder field
Media Type field
Keywords field
Reset Filter button
Show All Filters button
Tools button
Search above table
Tabel with data
Pagination button
See? that’s all the component of the apps. Each component have specific task. Like playing Lego, we just combine each component to looks like page above. How about the data? ReactJS define data as state and properties.
State is mutable and properties is immutable. Properties defined when creating component. States are live inside component. Each component can share data using propertis that have function to change the data. 
ReactJS also have ReactNative, a library that make us can reuse our existing code, and ship it to iOs and android without rewrite from scracth. We can use our code base from iOs to create Android app or vice versa. 
With ReactJS, we can have code style that same on every platform. Web, iOs, Android. It’s make easy to colaborate for developer. Developers are not seperate based on their programming language. No matter what programming language for creating backend, backend just provide an API. With Javascript as programming language, Developers now can create Web, iOs, and Android. 
Well done Facebook!
0 notes
syahrulfathi · 9 years
Text
What is solr?
Have you ever hear solr? Solr is search engine server based on Apache Lucene that have a rich feature. While i’m in college, I used sphinxsearch for my thesis. Now, I have to work with solr on my real project. Let’s dig more about solr.
You can get all the thing about Solr on its website http://lucene.apache.org/solr/. After download solr, extract zip/tgz file and solr already to used. very easy right?
Running solr is very easy. You can start solr server using this command and your server ready to used.
./bin/solr start
After running server, the next task is adding document that will be search to solr server. Indexing is a term for adding document to solr server. Indexing have a lot of step like tokenization, stopwords etc. Don’t worry, solr will do all that thing for us. Before adding document, we must create core to solr server. Think core like database on RDBMS. We must create core that accomodate our document. To create solr core, just type this:
./bin/solr create -c yournamecore
Solr are very smart! It can index a lot of format. This is the format that can indexed by solr: xml, json, csv, pdf, doc, docx, ppt, pptx, xls, xlsx, odt, odp, ods, ott, otp, ots, rtf, htm, html, txt, log. Too much isn’t? Solr also can index folder with different file format. just type:
./bin/post -c yourcore yourFolderThatContainDocument/
Easy right? or if you want index just one file, using this command:
./bin/post -c yourcore document.json
After index your document, you can searching through solr. For testing, solr provide us web application for manage solr administration, adding core, search etc. just access:
http://localhost:8983/solr
Tumblr media
Port 8983 are default by solr if you don’t provide specific port when starting solr server. To searching through solr, used http request to this url:
http://localhost:8983/solr/yourcore/
For example, we just want document that contain word “search”, just access this url:
http://localhost:8983/solr/yourcore/select?q=mandiri&wt=json&indent=true
q= your keywords that you want to search wt= type document indent= true for pretty display
This is return from solr when we define json as type document:
{  "responseHeader":{    "status":0,    "QTime":0,    "params":{      "q":"mandiri",      "indent":"true",      "wt":"json"}},  "response":{"numFound":2,"start":0,"docs":[      {        "summary_id":[10],        "stkholder_id":[8],        "media_id":[60],        "date":["2015-08-27T11:42:01Z"],        "title":["asdasdasdasdasd"],        "content":["asd"],        "is_draft":[1],        "client_id":[30],        "tone_id":[1],        "type_id":[1],        "article_type":[2],        "media_name":["Antaranews.com"],        "name":["Digital"],        "institution_name":["fasf"],        "institution_category_id":[2],        "institution_url":["sdfaf"],        "profile":["fsdfsa"],        "last_summary_date":["0000-00-00 00:00:00"],        "stkholder_name":["aqid"],        "id":"3",        "media_type_name":["Digital"],        "organization":["Mandiri"],        "_version_":1512372248406654976},      {        "summary_id":[43],        "stkholder_id":[5],        "media_id":[108],        "date":["2015-07-27T11:41:48Z"],        "url":["test.com"],        "title":["tester"],        "content":["tester"],        "is_draft":[1],        "client_id":[31],        "tone_id":[1],        "journalist":["tester"],        "section":[1],        "type_id":[1],        "value":[115],        "image_path":["mi-images/tester_73077062.png"],        "page_no":[1],        "article_type":[2],        "media_name":["aa"],        "weight":[12],        "name":["All"],        "institution_name":["asasd"],        "institution_category_id":[4],        "institution_url":["afaasgjkj"],        "profile":["asadfjlsjdfk"],        "last_summary_date":["0000-00-00 00:00:00"],        "level_of_influence":[1],        "level_of_interest":[1],        "social_media_id":[0],        "stkholder_name":["maman syahrul"],        "id":"1",        "media_type_name":["All"],        "organization":["Mandiri"],        "_version_":1512372248587010048}]  }}
As you see, that’s a json object. Very easy to integrate with any language that you choose for your app. Easy right? That’s a little tutorial using solr search engine. Why we must using use search engine despite using raw SQL query? if you only have small data, it’s very hard to see the different. But if you have a lot of data, let say 50GB data, it will take a lot of time to use SQL query. That’s the advantage using search platform.
0 notes
syahrulfathi · 9 years
Text
My new journey
Indonesia, the 4th population in the world is my home country. I must said, Indonesia are left behind on any aspect, (but we are growing up for sure). We are very proud with our culture. Almost all area have a different culture and even different language. But we have a unique culture here, if we don’t work on a large company (Government or National state company), we for sure being underestimated.
Even I have a master degree in one of the best university in Indonesia, that’s not make I want to work for large or state company. I don’t like much bureaucracy. I want to work with a company that I can talk to CEO directly. That’s why I love startup. I work in different company after graduate from university. I must commute 4 hours a day to go to work everyday. That’s sure a huge loss time for me. I must find how to solve this problem. 
I have many friend that work remotely to different city, or even to different country. At first, I not interested because I think I need go to office to meet my collegue for the best work condition. But they are fine! So now I want to try how feel work remotely. After googling many hours, I came up to Toptal. I don’t know this platform before. But after try register to the site, I think it’s worth to try. Toptal also have a great resources for technical programming blog. That makes me want a give it a try.
I don’t know how it will be, but sure i’m feeling excited now. Hope i can enjoy my new journey.
0 notes
syahrulfathi · 9 years
Quote
Biarlah yang besar itu karyamu, bukan dirimu. Biarlah yang tinggi itu capaianmu, bukan hatimu.
Salim A. Fillah (via indahhardani)
137 notes · View notes
syahrulfathi · 9 years
Text
Wakil rakyat atau wakil golongan?
Ini pandangan saya sebagai rakyat Indonesia yang awam dengan politik mengenai perebutan kursi DPR yang kemarin sempat ricuh. Kok bisa seperti itu? Saya yakin mereka sudah dewasa dan berpendidikan, tapi kelakuannya kok seperti anak kecil? Pimpinan rapat tidak mau diinterupsi. Fraksi tiba-tiba naik ke atas panggung karena emosi. Sangat egois sekali. Mungkin dihatinya sudah tidak ada lagi yang namanya kepentingan rakyat. Mereka seakan-akan buta dan haus kekuasaan.
Kita harus dobrak sistem yang sudah kepalang rusak ini. tapi bagaimana caranya.
Masalahnya sebenernya hanya satu. Niat mereka itu sebagai wakil rakyat harus dipertanyakan kembali. Untuk rakyat atau untuk kepentingan golongan mereka? Saya yakin, sangat yakin, kalau memang mereka bertujuan baik untuk rakya Indonesia, kejadiannya tidak akan seperti gambar diatas. Dari awalnya saja sudah terlihat mereka ingin mementingkan kepentingan golongan mereka, bagaimana ingin menjadi wakil rakyat.
Dear Bapak & Ibu wakil rakyat,
Tolong dipergunakan jabatan tersebut sebaik-baiknya. Tanggung jawab anda sangat besar. Anda boleh menggunakan fasilitas yang disediakan oleh negara karena memang pekerjaan anda berat. Tapi tetap ingat tugas anda sebagai wakil rakyat Indonesia, bukan wakil golongan.
Selamat bekerja.
0 notes
syahrulfathi · 9 years
Text
I hate bloatware on my phone
Take a look my phone screen below.
Tumblr media Tumblr media
On the first picture, that’s a default apps on iOs 8. On the second picture, that’s default apps to and 4 apps that i always using. Is everyone have used all default apps? The answer is no. Not all people need Videos, Stocks, Newsstand, Health (yeah, what the hell is this), Game Center, Passbook, Ibooks, Podcast etc. I don’t play a game on my phone. I don’t watch video. I don’t and any kind of bla bla on my phone. My friends curious, why you only have a few apps on your phone? Why? It’s because i know my needs. The more you know your needs, the few apps on your phone. Trust me.
Dear Apple, can i rid this bloatware please?
0 notes
syahrulfathi · 9 years
Text
Am i Smart?
Setelah bimbingan di kampus Depok, saya langsung pulang ke Bogor. Saya pasti jalan lewat belakang perpustakaan pusat, lalu menyusuri pinggir danau dan melewati sebelah Balairung. Namun saat dekat danau di Balairung, ada seorang wanita minta tolong kepada saya untuk mengambil gambar dia bersama temannya menggunakan smartphone punya wanita tersebut. Saya dengan senang hati membantunya.
Saya kaget ketika wanita tersebut berbicara bahasa Inggris dengan temannya. Ketika saya lihat, saya bisa pastikan temannya itu adalah orang Jepang. Saya yakin temannya itu orang Jepang karena dari cara dia bilang terima kasih sambil membungkukan badannya dan logatnya dia berbicara itu seperti orang jepang. Mungkin mereka lagi ada kunjungan ke kampus UI atau memang sekedar ngobrol santai saja untuk meluangkan waktu di minggu siang.
Wanita itu bertanya, “Mas, kuliah disini juga?”. lalu saya menjawab “iya, saya kuliah disini, tadi habis bimbingan” (walaupun kampus saya di Salemba, tapi tetap kampus Depok juga adalah kampus saya sebagai mahasiswa UI). Wanita itu bertanya lagi, “kuliah di fakultas apa?”. Saya menjawab “fakultas ilmu komputer”. Seketika wanita tersebut berbicara kepada temannya yang orang jepang itu, “wow, he is a smart person. attending computer science faculty in this campus is very difficult”. Saya hanya bisa tersenyum.
Setelah mengambil foto 3 kali dengan latar belakang danau, saya pun bergegas menuju stasiun Pondok Cina karena cuaca pada siang itu sudah mendung.
Namun, perkataan wanita itu terus mengusik pikiran saya sepanjang perjalanan pulang ke Bogor. Apakah memang semua orang di fakultas ilmu komputer itu orang pintar? Apakah kuliah di fakultas ilmu komputer membuat orang menjadi pintar? Apakah masuk ke fakultas ilmu komputer itu menandakan orang tersebut pintar? Memang sih mata kuliah yang diajarkan itu benar-benar sulit. Ilmu komputer itu memang pengembangan dari ilmu matematika dan ilmu matematika itu sudah menjadi rahasia umum adalah ilmu yang sulit dan tidak semua orang suka. Poin saya disini adalah, definisi pintar itu tidak sesederhana itu. Pintar itu bisa di berbagai bidang. Pintar itu tidak selalu jago matematika. Pintar itu tidak selalu jago programming. Pintar itu tidak karena kuliah di fakultas ilmu komputer.Pintar itu luas.
Tapi karena memang saya tidak kenal dengan mereka, saya tidak menjelaskan panjang lebar bahwa perkataan mereka yang mengusik saya.
0 notes
syahrulfathi · 9 years
Text
You don’t need to go to coffee shop for working or studying
Sunday morning, a lovely situation for doing any kind of activity. exercise, play Dota 2, or just hanging on the couch watching TV or reading a book. But what if we must working or studying on the weekend? Easy. Just make an environment that boost your mood. A creativy will comes into its own.
Based on study that cited from this article (http://www.inc.com/magazine/201306/reshma-memon-yaqub/can-coffee-shop-noise-make-you-more-creative.html), a moderate ambient noise can boost your ability to come up with creative ideas. First, I didn’t know that this study exist. Everytime I come to coffee shop, I feel I can work for a long time and feel more creative. I don’t know. I just feel like that. And now I know the reason why I feel like that.
“A study by researchers at the University of British Columbia and the University of Virginia suggests that moderate ambient noise—70 decibels, like that found in a coffee shop—can boost your ability to come up with creative ideas. The moderate noise distraction, researchers speculate, may aid in abstract thinking.”
But going to coffee shop very often of course will drain my money. If I want to stay, at least I must buy drink right? My favourite, A grande of Americano @ Starbucks price is $2.55. If I must bought my favourite drink everyday, I can’t save my money to bought another 3DS game that I want to play ☹
Then, why don’t I create my own coffee shop environment?
I found interesting app from a coffee blog,http://en.ilovecoffee.jp/posts/view/107, the app called Coffitivity (http://www.coffitivity.com/). The app is very simple. The app make sound of coffee shop environment based on theme what I choose. I can choose backsound called Morning Murmur (A gentle hum gets the day started),University Undertones (The scholarly sounds of a campus cafe), orLunchtime Lounge (Bustling chatter of the lunchtime rush). It’s very helpful for me because I don’t need go outside, I just only sit on my desk at my room, play a background sound from Coffitivity, mix with my playlist on iTunes, boom!, I have my own coffee shop environment. Perfect!
Now I can feel more productive without drain my money! Have a nice day (:
0 notes
syahrulfathi · 9 years
Text
Software is cool, but value come first.
I laugh after read http://www.kalzumeus.com/2011/10/28/dont-call-yourself-a-programmer/. That’s so true. As a developer, technical side is a must. I must up-to-date what happened on it. It’s make me crazy. It’s a huge area. I can’t keep up with all of it. I’d felt a shame if i talk with some technical people and I don’t understand what he/she talk about.
From my perspective as a developer, we create value for business. I’m the one to make this business happened. If i wasn’t here, this business doesn’t worked. Before i read that article, that’s true. Now, that’s wrong.
It’s all about value. What i’ve done as a developer it’s just a part of making value. The value is for a business at all. A simple CRUD web app using PHP for million costumer is more valuable than a hypster program using Rails with AngularJS and MongoDB without anyone to using it. It’s just option you choosed to make that business happened. And you know, there’s a lot of option. Silver bullet doesn’t exist.
The question is what your business? not what your programming language you used?.
In the end, it’s all about business.
0 notes
syahrulfathi · 9 years
Text
Appreciate what everyone try for a better living
Tumblr media
I’m Indonesian. All over the world know that the most crowded island in Indonesia is Java. I don’t know what exactly how much people live on Java, but i confident that this is the most crowded island in Indonesia, especially Jakarta as capital town of Indonesia.
Everyday, people who work to Jakarta depend on public transportation, especially who live outside Jakarta like Bogor, Depok, Tanggerang, & Bekasi. PT. Kereta Api Indonesia (KAI), as Badan Usaha Milik Negara (BUMN) or government organization that responsible managing train in Indonesia have a huge and faced complicated problem. Let’s tear down what are their problem.
First, KAI must have strategy to pick up a lot of people at the same time with a limited train that they have. This is happened at morning when all people go to work and at afternoon when all people back from work. Second, the weather around Bogor often occurs storm and lighting. It often that lighting strike the cable of the train and make signal lost. The train can’t go and stuck. Everyone can only waiting until this signal fixed. Third, the people habit of Indonesia are so unruly. This is make PT KAI very dizzy how to manage their habit. Take a look this picture below. Even PT KAI have warn to not climb up the train, they still climb.
Tumblr media
PT KAI also sterilize area around each station of JABODETABEK. Now i rarely seen pedagang kaki lima (PKL) or cadger around station. They also sterilize a parking area for passenger that bring their vehicle to station. Take a look this picture of Bogor station below, my home town station that i usually take train off. Now it’s look clean and very organize. I can bring my vehicle to station, park on there, and go to Jakarta peacefully.
PT KAI also add their train to adjust with the demand of passenger, especially the busy time (in the morning and afternoon when workers back to their home). The schedule are very dense now.This make me not wait for along time to take the train. Passenger not as crowded as before.
Even the service that PT KAI still lack and far from perfect, i appreciate their effort. At least the improvement are seen by me as the passenger. They want the passenger more comfort to take the train, more easily to use their service, and more peacefully in the train.
Thank you PT KAI to make this public transportation even better. Please continue your development. I believe you can do it.
Thank you very much.
0 notes
syahrulfathi · 10 years
Photo
Tumblr media
So true!
0 notes
syahrulfathi · 10 years
Photo
Tumblr media
Let's play!
0 notes
syahrulfathi · 10 years
Photo
Tumblr media
Which one you prefer the most?
0 notes