Raspberry Pi 2 Unboxing

New toy!!!!








By penoi on Friday, February 13, 2015 | , | A comment?

OnePlus One

Matagal na akong IOS device user. Nagsimula sa Apple Iphone 4 then Iphone5. Although, my first smartphone device was a Sony Ericsson Xperia X10 android phone.

Siguro masyado lang ako na-bored sa user interface ng IOS kaya bumalik ulit ako sa Android. Matagal ko din pinagisipan kung Google Nexus 6 or OnePlus One... Nexus6 have superb up-to-date specs... but price-wise, I got OnePlus One. Since in my opinion(yung may mga budget), max lifespan lang ng isang phone ay 2 years.... magpapalit ka na agad(again, if you have the budget)

OnePlus One
My unit still has the Cyanogen logo at the back


OnePlus One with tempered glass and Diztronic casing




By penoi on Saturday, January 31, 2015 | , , | A comment?

How to get the last IP address on the Subnet using Ruby



>> require 'ipaddr'
>> ip=IPAddr.new("192.168.1.0/24")
=> #<IPAddr: IPv4:192.168.1.0/255.255.255.0>
>> gateway=IPAddr.new(ip.to_range.last.to_i-1,ip.family).to_s
=> "192.168.1.254"
>> ip=IPAddr.new("192.168.1.0/20")
=> #<IPAddr: IPv4:192.168.0.0/255.255.240.0>
>> gateway=IPAddr.new(ip.to_range.last.to_i-1,ip.family).to_s
=> "192.168.15.254"


to get the first ip of the subnet
 >> gateway=IPAddr.new(ip.to_range.first.to_i+1,ip.family).to_s

By penoi on Friday, January 23, 2015 | | A comment?

Posting from mobile

Post test from mobile

By penoi on Friday, January 9, 2015 | | A comment?

penoycentral.net dead

after years of maintaining penoycentral.net, i've decided to end it.

By penoi on Wednesday, January 7, 2015 | A comment?