Category: Technology

  • Log the date & time each time you turn on your Windows computer

    Log the date & time each time you turn on your Windows computer

    In the morning, I sometimes forget the time I log into the time-tracking system in my workplace so I stay a bit longer to make sure I don’t get an “undertime”.

    I thought that my computer at work could help me with this issue somehow. I hoped there was a Windows program that can record the dates and times I turn my computer on. I tried searching for an application like this on Google but couldn’t find any, and wasn’t sure what keywords to search for. (^_^) Someone suggested that I make a Windows Batch File. And so after some web search I came up with this Windows Batch File, which I will later set up to be run each time Window starts.

    This Windows batch file doesn’t tell me exactly what time I came into the office, but it helps, because it logs the date and time I turned my computer on. And turning my computer on is the first thing I do on my office desk. 🙂

    What is a Windows batch file?

    How does this Windows batch file work?

    The Windows batch file is run every time Windows starts, and each time the file is run, it gets the current date and time then saves it into a file. Each time Windows starts, it creates one file with the date and time.

    Like I said, turning my computer on is the first thing I do when I arrive at the office, so the time in the text file written by the program gives me an idea of the approximate time I came in.

    Here’s a preview

    Save files with current date and time with Windows batch file
    Save files with current date and time with Windows batch file
    of the results:

    How to make a batch file that logs current date & time when Windows starts

    Before we begin, please note that I implemented this in a Windows 7 machine.

    Create a folder where you’d like the files to be created. Name it anything you like. I named mine “Time-in” since I’m using the batch file to estimate the time I come into the office.

    Open a text editor such as Notepad.

    Copy the following codes and then paste it into Notepad.

    Save it into the folder you created as “time_in.bat”

    Now, go to that folder and right click on the icon of “time_in.bat” then choose “Create Shortcut”.

    You’ll now see a new file “time_in.bat – shortcut”. Move that shortcut file into your Windows’ startup folder. My Startup folder is in C:\Users\MyUserName\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup so try looking for yours there.

    With what we have done, a file named with current date and time should be created in your folder each time you start Windows.

    Some notes when using this Windows batch file

    You will eventually have a folder with a large number of files because our batch file creates one file per Windows startup. Please find a way to manage those files. You may move older files into an archive folder, or you may delete older files that you no longer need.

    Another note if you’ll use the batch file to track your office time in the morning like I do: the batch file will not create any file if you just hibernate your computer before leaving work instead of shutting down. This is because the “startup” only happens when you start Windows, and this does not happen when you wake your Windows up from hibernation. Possible solution for this may be creating a task in the Task Scheduler of Windows, making the “on wake up” the “trigger” and pointing to the batch file to let it execute. The following settings are what I’ve tried and nothing has worked yet so far… so maybe some of you may come up with a solution that will work. 🙂

    Task scheduler in Windows 7 for the batch file
    Task scheduler in Windows 7 for the batch file
    • Go to Task Scheduler
    • Create Basic Task
    • Fill out name and description
    • Start the task when a specific event is logged
    • Log: System
    • Source: Power-Troubleshooting (or try Kernel-Power with Event ID 42, or try Kernel-General with Event ID 1)
    • Event ID: 1
    • Action: Start a program (then choose program).
    • Finish

    The batch file’s function is good the way it is for me so I didn’t look further into it, but here’s a link to Trigger Task Scheduler in Windows 7 when computer wakes up from sleep/hibernate.

  • How to make a basic “Login via Facebook” with PHP & JavaScript

    How to make a basic “Login via Facebook” with PHP & JavaScript

    You’ve seen how some popular websites let you register or login via Facebook — Pinterest, Vimeo, Lifehacker, and many more.

    In this blog post, I’ll show you the very basic setup of the Facebook login button for your website. It is up to you to enhance the functions of your registration system.

    Note: There are periodic updates to the Facebook API, sometimes resulting to issues with previously working implementations of the API. So please note that this tutorial was written in the third week August 2015. 🙂

    I began writing this tutorial late in August, but because of other projects, was able to publish it when it’s already September.

    (more…)

  • How to install Laravel 5 in Windows with XAMPP

    How to install Laravel 5 in Windows with XAMPP

    This short tutorial is based on my own installation of Laravel 5 on XAMPP that is running on Windows 7.

    In this Laravel 5 tutorial, you will need:

    There have been major changes in the following: New Folder Structure, Contracts, Route Cache, Route Middleware, Controller Method Injection, Authentication Scaffolding, Event Objects, Commands / Queueing, Database Queue, Laravel Scheduler, Tinker / Psysh, DotEnv, Laravel Elixir, Laravel Socialite, Flysystem Integration, Form Requests, Simple Controller Request Validation, New Generators, Configuration Cache, Symfony VarDumper.

    To learn more about the Laravel 5.0 update, read about it here.
    (more…)

  • SSH: Basic usage of Shell Screen

    SSH: Basic usage of Shell Screen

    If you are often running scripts in SSH, especially ones that have a long execution time, you might have experienced termination of your script before it actually finishes its task(s). Maybe you closed the terminal window by accident, or you lost Internet connection for a moment.

    What you can do is run your script persistently with the help of Shell Screen.
    (more…)

  • Kimstore experience: cash on delivery via LBC

    Kimstore experience: cash on delivery via LBC

    PhotoGrid_1436011698555
    I ordered an LG phone on June 29, Monday, from the Kimstore online shop around 2:30 pm. I chose CoD (Cash oj delivery) as payment method. An email was sent to me, asking me to confirm my order.

    Order confirmation was done by copying details from support(at)theshop.ph which I pasted to an email i sent to help(at)theshop.ph.

    The email I sent opened a ticket in the system of Lovable Commerce. After 2-3 hours, someone replied to the ticket and told me that they would check first with Kimstore if my ordered product is in stock and that they would get back to me in 24 hours. The order could be cancelled before 2pm the next day.

    On June 30 (34 minutes after 24 hours – a little late), I got another reply in the ticket which included the LBC tracking number. I was given the following info:

    1. You may expect the item within 1 to 3 business days
    2. Prepare exact amount only
    3. In case you are not available, kindly leave a signed authorization letter with 2 of your valid ID’s to the recipient
    4.COD purchases will be delivered anytime within the day of delivery. There is no exact delivery time.
    5. You may track the package through lbcexpress.com click track and trace
    6. After 2 failed delivery attempts, item will be returned back to shipper and order will be cancelled
    7. Order status will only change once payment has been received and remitted to us

    I was expecting that the package would arrive at the shipping address on Friday, but on July 1 (Wednesday) morning I got a call from LBC, asking me if I would be at the address the entire day because my item will be out for delivery! 🙂 That was so quick – only 3 days of transaction. 😀

    Before handing over the money to the delivery man, I first checked the contents of the phone’s package – the phone, battery, earphones, manual, and the official receipt for 1 year service warranty. I turned the phone on, and it seemed good. And oh, the package included a SMART Bro Prepaid SIM with LTE, with free 200MB every month for 3 months.

    The delivery man told me that so far, he hasn’t delivered any defective item from Kimstore.

    Conclusion on my first Kimstore experience: I will definitely buy from Kimstore again! Most likely from the online store because their usual “meetups” don’t fit my schedule. The transaction was fast, the product was much cheaper than when purchased at a mall, and the product reached me in good condition. 🙂

  • Mobile Prefixes in the Philippines (Sun, Smart, Talk ‘N Text, Globe, TM)

    Mobile Prefixes in the Philippines (Sun, Smart, Talk ‘N Text, Globe, TM)

    When someone texts us and we need to reply, or when we need to call someone, but we’re not sure if they are using the same mobile network provider, we hesitate to do so. Possibly because of charges or higher charges.

    Use the tool below to lookup the mobile network provider of a mobile prefix. You can type “0922” or “Sun” to search for data.

    I made the tool using HTML and JavaScript. Pretty simple.

    mobile prefixes philippines
    Reset

    Mobile Network Provider Mobile Prefixes in the Philippines
    Loading…

    I’ll try to update the “mobile prefixes in the Philippines” list when I can. 🙂

  • GrabTaxi: I could never successfully book a taxi :(

    GrabTaxi: I could never successfully book a taxi 🙁

    grab taxi

    I always wanted to try the GrabTaxi app. Booking from them is expensive, but security is an important thing that they can give passengers so that’s okay. But my attempts have never been successful. I think it’s a combination of bad signalling from GrabTaxi and bad internet connection in my house.

    (more…)