TLDR; Use blue page icon in the title bar (see image bellow) or about:reader?url= in front of your URL to switch to reading mode in Firefox. New FireFox has a “Reader” mode, that you can activate by clicking on the “document” button, highlighted in blue (in the nav bar) in the screenshot above. Part of […]
Crunching Honeypot IP Data with Pandas and Python
I am taking a cyber security class. This week’s assignment had us work on Honeypots. Honeypot is a server that pretends to have a vulnerability of sorts (open ports, old software etc.) and instead collects data on people who are trying to hack it. At the end of the experiment I ended up with some […]
How to Restart Python Script after Exception and Run it Forever
Here is a simple trick that I used to restart my python script after unhandled exception. Let’s say I have this simple script called test.py that I want to run forever. It will just wait 2 seconds and throw an error. I use the following script called forever in the same directory: It uses python […]
My Strategy for SQL Injection Attack
I am attending a Cyber Security course provided by CodePath and sponsored by Facebook (thank you). During SQL Injection week I found myself very frustrated. I felt like I did not have a process that I followed and instead was copy-pasting various commands in hopes that one will eventually work. I wanted to share the […]
Angular 1 Documentation Disappeared from Google Search Results
Update 02/18/2018: – Expected search result is back on Google. Perhaps it was just a bug after all. I use AngularJS (aka Angular 1) in my daily work. When I need to look up documentation for something specific, I just search for it on Google. At least I used to do that. Few days ago […]
Facebook Needs to Remove Political Content
Few weeks ago I decided to take it easy on my Social Media use. Top 3 social media sites that I visited were Facebook, Twitter, and Reddit. I miss Reddit the least. I still visit Twitter for direct mentions, but I don’t miss my general feed all that much. I really miss Facebook. Facebook is […]
It’s NOT OK to Still Use Angular 1 in 2018
I wrote a post 8 months ago titled It’s OK to Still Use Angular 1 in 2017. There are still a lot of companies using Angular 1 in legacy products and it is OK. That being said, some of the arguments that I made in my last post no longer seem valid. I wanted to […]
Transcribing Speech to Text with Python and Google Cloud Speech API
This tutorial will walk through using Google Cloud Speech API to transcribe a large audio file. All code and sample files can be found in speech-to-text GitHub repo. Transcribe large audio files using Python & our Cloud Speech API. @akras14 shows how https://t.co/dY56lmE0TD — Google Cloud (@googlecloud) January 11, 2018 View Post Sample Results This […]
Do NOT Share Your Google Photos
All shared Google Photos are open to the public, even if they were only shared with specific people. This is different from Google Drive, where only people granted permission via the “Share with others” drop-down are able to view the content. Below is a screenshot of my private album (that I shared with one person) […]
How to read CSV file in Python
TLDR; Using pandas (pip install pandas) Using native csv.DictReader Reading as a List Let’s say we have the following CSV file, named actors.csv. You can download this file here. The first method demonstrated in Python docs would read the file as follows: Open the file Create a CSV reader Skip first line (header) For every line (row) in […]
- « Previous Page
- 1
- 2
- 3
- 4
- 5
- …
- 13
- Next Page »