๐Ÿš€ HickleSecLab

All Posts

Thumbnail for Posts

How do I get the last character of a string

๐Ÿ“‚ Categories: Java
๐Ÿท๏ธ Tags: String Substring

How do I get the last character of a string public class Main public static void mainString args String s test string char

Thumbnail for Posts

How do I install the ext-curl extension with PHP 7

๐Ÿ“‚ Categories: Php
๐Ÿท๏ธ Tags: Curl Php-7

Ive installed PHP 7 using this repo but when I try to run composer install its giving this error package requires extcurl gt the requested PHP extension curl

Thumbnail for Posts

How do I use boolean variables in Perl

๐Ÿ“‚ Categories: Perl
๐Ÿท๏ธ Tags: Boolean

I have tried var false var FALSE var False None of these work I get the error message Bareword false not allowed while strict subs is in

Thumbnail for Posts

How do you run a command eg chmod for each line of a file

๐Ÿ“‚ Categories: Bash
๐Ÿท๏ธ Tags: Loops Line

For example right now Im using the following to change a couple of files whose Unix paths I wrote to a file cat filetxt while read in do chmod 755 in done Is

Thumbnail for Posts

How do you specify the Java compiler version in a pomxml file

๐Ÿ“‚ Categories: Java
๐Ÿท๏ธ Tags: Maven Pom.Xml

I wrote some Maven code in Netbeans that has approximately more than 2000 lines When I compile it on Netbeans everything is fine but if I want to run it on

Thumbnail for Posts

How to automate createsuperuser on django

๐Ÿ“‚ Categories: Programming
๐Ÿท๏ธ Tags: Django

I want to automatically run managepy createsuperuser on django but it seems that there is no way of setting a default password How can I get this It has to be

Thumbnail for Posts

How to avoid reinstalling packages when building Docker image for Python projects

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

My Dockerfile is something like FROM mybase ADD srv RUN pip install r requirementstxt RUN python setuppy install ENTRYPOINT runserver Every time I build a new

Thumbnail for Posts

How to change the datetime format in Pandas

๐Ÿ“‚ Categories: Python

My dataframe has a DOB column example format 112016 which by default gets converted to Pandas dtype object Converting this to date format with dfDOB

Thumbnail for Posts

How to change the name of a Django app

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

I have changed the name of an app in Django by renaming its folder imports and all its references templatesindexes But now I get this error when I try to run