๐Ÿš€ HickleSecLab

All Posts

Thumbnail for Posts

Configure Nodejs to log to a file instead of the console

๐Ÿ“‚ Categories: Node.js
๐Ÿท๏ธ Tags: Logging Console.Log

Can I configure consolelog so that the logs are written on a file instead of being printed in the

Thumbnail for Posts

Correctly determine if date string is a valid date in that format

๐Ÿ“‚ Categories: Php
๐Ÿท๏ธ Tags: Date Datetime

Im receiving a date string from an API and it is formatted as yyyymmdd I am currently using a regex to validate the string format which works ok but I can see

Thumbnail for Posts

Create a tarxz in one command

๐Ÿ“‚ Categories: Programming
๐Ÿท๏ธ Tags: Compression Archive Tar Xz

I am trying to create a tarxz compressed archive in one command What is the specific syntax for that I have tried tar cf file xz filetarxz but that does not

Thumbnail for Posts

CSS JS to prevent dragging of ghost image

๐Ÿ“‚ Categories: Javascript
๐Ÿท๏ธ Tags: Html Css

Is there a way to prevent the user from seeing a ghost of the image they are trying to drag not concern about security of the images but the experience Ive

Thumbnail for Posts

CSS selector - element with a given child duplicate

๐Ÿ“‚ Categories: Css
๐Ÿท๏ธ Tags: Css-Selectors

This question already has answers here Is there a CSS parent selector 33 answers Closed 10 years ago Im looking to make a selector which will select all

Thumbnail for Posts

Determine if ActiveRecord Object is New

๐Ÿ“‚ Categories: Programming
๐Ÿท๏ธ Tags: Ruby-On-Rails Activerecord

How can I check if an ActiveRecord object is new or is already

Thumbnail for Posts

Difference between if a - b 0 and if a b

๐Ÿ“‚ Categories: Java
๐Ÿท๏ธ Tags: If-Statement Arraylist

I was reading Javas ArrayList source code and noticed some comparisons in ifstatements In Java 7 the method growint uses if newCapacity minCapacity lt 0

Thumbnail for Posts

Do rails rake tasks provide access to ActiveRecord models

๐Ÿ“‚ Categories: Programming

I am trying to create a custom rake task but it seems I dont have access to my models I thought this was something implicitly included with rails task I have

Thumbnail for Posts

drag drop files into standard html file input

๐Ÿ“‚ Categories: Javascript
๐Ÿท๏ธ Tags: Html File-Upload Drag-And-Drop

These days we can drag amp drop files into a special container and upload them with XHR 2 Many at a time With live progress bars etc Very cool stuff Example