๐Ÿš€ HickleSecLab

All Posts

Thumbnail for Posts

How can I output leading zeros in Ruby

๐Ÿ“‚ Categories: Ruby
๐Ÿท๏ธ Tags: Ruby

Im outputting a set of numbered files from a Ruby script The numbers come from incrementing a counter but to make them sort nicely in the directory Id like to

Thumbnail for Posts

How can I render inline JavaScript with Jade Pug

๐Ÿ“‚ Categories: Node.js
๐Ÿท๏ธ Tags: Express Pug

Im trying to get JavaScript to render on my page using Jade httpjadelangcom My project is in NodeJS with Express eveything is working correctly until I want to

Thumbnail for Posts

How Can I Set the Default Value of a Timestamp Column to the Current Timestamp with Laravel Migrations

๐Ÿ“‚ Categories: Php

I would like to make a timestamp column with a default value of CURRENTTIMESTAMP ON UPDATE CURRENTTIMESTAMP using the Laravel Schema BuilderMigrations I have

Thumbnail for Posts

How do I get a cursor on every line in VS Code

๐Ÿ“‚ Categories: Programming

Im trying to use the multicursor functionality of Visual Studio Code on a largeish file The file is too large to select every line individually with ctrl alt

Thumbnail for Posts

How do I pass a method as a parameter in Python duplicate

๐Ÿ“‚ Categories: Python
๐Ÿท๏ธ Tags: Parameter-Passing

This question already has answers here How does using a function callback as an argument to another function work in Python 11 answers Closed 1 year ago Is it

Thumbnail for Posts

How do I step out of a loop with Ruby Pry

๐Ÿ“‚ Categories: Ruby
๐Ÿท๏ธ Tags: Ruby-On-Rails Loops Exit Pry

Im using Pry with my Rails application I set bindingpry inside a loop in my model to try and debug a problem For example 1100each do i bindingpry puts i end

Thumbnail for Posts

How do you tell if caps lock is on using JavaScript

๐Ÿ“‚ Categories: Javascript
๐Ÿท๏ธ Tags: Keyboard Capslock

How do you tell if caps lock is on using JavaScript One caveat though I did google it and the best solution I could find was to attach an onkeypress event to

Thumbnail for Posts

How set the androidgravity to TextView from Java side in Android

๐Ÿ“‚ Categories: Programming

I can use androidgravitybottomcenterhorizontal in xml on a textview to get my desired results but I need to do this programmatically My textview is inside a

Thumbnail for Posts

How to change default Anaconda python environment

๐Ÿ“‚ Categories: Python
๐Ÿท๏ธ Tags: Anaconda Conda

Ive installed Anaconda and created two extra environments py3k which holds Python 33 and py34 which holds Python 34 Besides those I have a default environment