Saturday, August 18, 2018

Free https

Does your browser saying that your website is insecure make you sad? But you don't have the funds to buy a certified ssl cert makes you even sadder? Well... fret not because now there is a solution for YOU....

Check out https://letsencrypt.org/

It's free, yes, free as in free teh tarik kind of free...

And from there, you can find the link for the client, certbot... https://certbot.eff.org/

Just choose your web server, your server os... and follow the instructions.. it even detects all the domain name you have configured for your server.. awesome easy...

So.. don't be sad... be secure... let's encrypt...

Thursday, May 10, 2018

The new Malaysia

Alhamdullillah.... yesterday (Wednesday - 9/5/2018) was a historic day for Malaysia. Thousands of malaysians went out early in the morning, braving long queues in the hot Malaysian sun, to cast their votes... and in doing so, cast out Barisan Nasional and installed Pakatan Harapan as the ruling party of Malaysia. Barisan Nasional who have been ruling over Malaysia ever since its' independence until yesterday. Today, insyaAllah, Tun Mahathir will be sworn in as the 7th Prime Minister of Malaysia. The man who rules over Malaysia for most of my life as the 4th Prime Minister will once again take over the mantel of power. InsyaAllah to do good and make amends with regards to all the bad things and precedence he has done before. The story arc of him and the champion of the people (Anwar Ibrahim) has been long and worthy of a it's own trilogy. Hopefully now we can finally see its' grand conclusion where the truth is finally revealed, justice is finally served, and the people of Malaysia can finally hold their heads up high and be proud of their leaders.

Me myself... I am hopeful. With the dawn of a new era, where the people of Malaysia is woke and aware, we could be seeing a whole new chapter in the lives of ordinary Malaysians. We have changed something that was before this seems unchangeable, maybe after this we could even change ourselves. To be better citizens of the world and ultimately make it a better place.

As for everything else... there is a time and place for it...

Thank you fellow Malaysians who voted for change... we have done it.
But our journey does not end here. We have to remain vigilant and make sure what happened to Barisan Nasional does not happen to Pakatan Harapan. Do not raise our leaders to the point where we cannot question them and they do as they please. We must hold them accountable for their actions and promises. And more importantly, that they always remain just and fair to all Malaysians, regardless of race, religion, wealth or status. And that once they do not deliver, we change them again. To serve the people.

To the future....

Monday, April 30, 2018

Firefox magnet links

Done a clean install on my laptop and suddenly firefox doesn't open magnet links anymore. Here's how to enable it again:

1. Open Firefox and type in about:config in the Address Bar and hit Enter. 2. Type in enter handler.expose in the search box at the top of the list. 3. right click - New - Boolean 4. Enter the preference name network.protocol-handler.expose.magnet 5. Set its value to false 6. Click on the magnet link and you should see Firefox’s Launch Application Choose Dialog 7. Select your torrent client.

Got it from here.

Thursday, April 19, 2018

1 Wireless Adapter, 2 Wifi Network

Had an interesting problem today where I have to access 2 separate wifi networks at the same time so that I could use 1 to access the internet, and the other to access the local network that has been set up.

Found some guiding light from here. So some network adapters can actually handle themselves like they are more than 1 adapter. The trick is to create a sort of virtual network adapter. Into the terminal, type:
sudo iw dev wlan0 interface add wlan1 type station

Where wlan0 is the current device name of the wireless adapter. wlan1 is the new virtual adapter. You might find that you still can't connect because the mac address of the new adapter would still be the same as the original adapter. Change the mac address by typing:
sudo ip link set dev wlan1 address 

After changing the mac address, I had to switch off and on again the network adapter before it actually worked. And by golly it actually works.

Wednesday, December 6, 2017

It took me 3 days to install ubuntu

My father bought a new laptop for his shop, the Acer Aspire ES 14 (ES1-432-C9B6). He's been using ubuntu on all his computers for a long time now and asked me to install ubuntu on his latest laptop. And oh my God... it was so difficult....

Installing it was easy enough... just boot the usb installer and follow the wizard. But after that, it would say "No bootable device". I tried changing all the settings in the bios. But there wasn't a lot of settings. And no settings for uefi.. only for secure boot. And even the secure boot menu was disabled until you set the supervisor password. But even after toggling the secure boot option, it still won't boot.

Been googling to find the solution but not much luck, until I found this page, with the title "Fix No Bootable Device Found Error After Installing Ubuntu" I thought my luck has changed. But alas, his solution required that we choose the uefi file to boot from, which again, was not available as a menu in the bios.

And then I found this on the ubuntu forums. At the very end it mentions about how to add the UEFI entry with rEFind and linked to this page. The page actually teach you step by step on how to use rEFInd to add the ubuntu grub into uefi without going through the BIOS menu. You just need to:
1. download it from here
2. dd the image into a pen drive
3. boot the pen drive
4. enter the rEFInd UEFI shell
5. Type :- bcfg boot dump" to get a list of all available boot drive
6. Type :- bcfg boot add X fs0:\EFI\ubuntu\shimx64.efi "ubuntu"
    where X is changed with the next available number from step 5
7. Type :- bcfg boot mv 1 0
     to change the boot order
8. Restart

And it should be working great now.... finally..

Thursday, April 13, 2017

Do you remember?

Do you remember how it was?
What fun we had, what games we played.

Do you remember who we were?
Young and carefree, riding into the future.

Do you remember all of this?
Any of this?

Maybe one day we can look back again,
And be happy for who we were, for who we now are.

Do you remember?

Monday, August 22, 2016

Installing ftw.tika in Plone

I love being able to search in all the documents uploaded into plone. I keep on forgetting that this was an add-on and not natively provided. The latest add-on I tried to enable that feature was ftw.tika.

To install it, first download the tika.cfg file from their github page at https://github.com/4teamwork/ftw.tika. Once that has been downloaded, modify your buildout.cfg with:


[buildout]

extends =
       ...
       tika.cfg

eggs =
       ...
       ftw.tika

zcml =
       ...
       ftw.tika
       ftw.tika-meta

parts =
       ...
       tika-server-download
       tika-server

[client1]
...
zcml-additional += ${tika:zcml}
eggs += ftw.tika


[client2]
...
zcml-additional += ${tika:zcml}
eggs += ftw.tika


[client3]
...
zcml-additional += ${tika:zcml}
eggs += ftw.tika

[client4]
...
zcml-additional += ${tika:zcml}
eggs += ftw.tika


Once that is done, run buildout. Then you can start the tika server with "bin/tika-server". Then you can start your plone instance. After that make sure you login and enable the tika add-on in your "site-setup", "add-ons" page.

To allow the tika server to start automatically on Centos 7, create the file /etc/systemd/system/tika.service with the following content:

[Unit]
Description=Tika server
After=network.target

[Service]
Type=forking
ExecStart=/usr/bin/java -jar /opt/plone/zeocluster/parts/tika-server-download/tika-server.jar -h 0.0.0.0

[Install]
WantedBy=multi-user.target


Then enable the service with "systemctl enable tika".

Looks pretty nice. Now all office docs are searchable inside.

Haiya ala Solah