alexkras.com

  • Archive
  • Top Posts
  • GitHub
  • LinkedIn
  • Contact

Have Firefox Read to You and How to Force Reader View

May 4, 2018 by admin

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 […]

Filed Under: Tools

Crunching Honeypot IP Data with Pandas and Python

April 7, 2018 by admin

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 […]

Filed Under: data, Python

How to Restart Python Script after Exception and Run it Forever

February 23, 2018 by admin

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 […]

Filed Under: Python

My Strategy for SQL Injection Attack

February 21, 2018 by admin

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 […]

Filed Under: Security

Angular 1 Documentation Disappeared from Google Search Results

February 16, 2018 by admin

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 […]

Filed Under: Front End, JavaScript, Tools

Facebook Needs to Remove Political Content

February 5, 2018 by admin

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 […]

Filed Under: Random Thoughts

It’s NOT OK to Still Use Angular 1 in 2018

January 19, 2018 by admin

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 […]

Filed Under: Front End, JavaScript

Transcribing Speech to Text with Python and Google Cloud Speech API

January 4, 2018 by admin

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 […]

Filed Under: Python, Tools

Do NOT Share Your Google Photos

January 1, 2018 by admin

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) […]

Filed Under: Tools

How to read CSV file in Python

December 24, 2017 by admin

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 […]

Filed Under: Python, Tools

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 13
  • Next Page »

Copyright © 2025 · eleven40 Pro Theme on Genesis Framework · WordPress · Log in