Skip to main content

Utility posts

Extracing jar file
Assuming JDK installed on your machine, use below command

jar xf {jar file to extract}

If it doesnt work, make sure {C:\Program Files\Java\jdk1.6.0_31\bin or JAVA_HOME } configured in your PATH environmental variable.
To edit environmental variable, in Windows7, Right Click on windows computer -- Properties -- Advanced System Settings -- Advanced Tab -- Environment Variables.


Comments

Popular posts from this blog

My algorithmic Trading journey

Like many i used to manually watch and trade stocks, ETFs. Its non-productive and involves our emotions in trading decisions. So I wanted to automate trading. Initially used Trailing Stop and Limit orders. But they can automate only in a prescribed way. I started thinking about a way to trade programatically, where we have more control. My quest pointed to Zipline, a python algorithmic trading library. It support backtesting (testing algorithm with historic data) and most importantly supports live trading In this blog, I will walk you through my algorithmic trading journey. Zipline Installation From  https://www.zipline.io/index.html , I see it only supports python 2.7 or Python 3.5 Since python 2 was sun set on Jan 1 2020, there is no point in trying it. I went ahead with Python 3. For programming, installed latest Ubuntu 19.10 in a virtual machine . Ubuntu 19.10 comes bundled with Python 3.7.5. You can check your python version by typing python3  -V ...

Artist got automated

Here is my first Tensorflow run to convert images to different styles of famous painters I am using the code that is available at  https://github.com/lengstrom/fast-style-transfer It uses specific versions of below libraries !apt install ffmpeg !pip install tensorflow==0.12.1 !pip install numpy==1.11.2 !pip install scipy==0.18.1 !pip install pillow==3.4.2 I started with latest version and that triggered failure after failure. If you are like me, add below changes to their respective files #This is to make tensorflow behave as if it is in v1 File : evaluate.py and ./src/transform.py import tensorflow.compat.v1 as tf tf.disable_v2_behavior() #Image functions are removed from scipy.misc module. so use imageio instead import imageio scipy.misc.imsave(out_path, img) --> imageio.imwrite(out_path, img) img = scipy.misc.imread(src, mode='RGB') --> img = imageio.imread(src, pilmode='RGB') Refer this post on more details on imageio changes Here is the ...

BIG ONE COMING ?

On July 4 morning, a mild earthquake measuring 4.0 rocked CA at about 10 AM. Personally I didnt experienced it and came to know about it only when another earthquake measuring 6.6 hit. Since moving to CA, it isnt my first earthquake. I experienced few before.  Just like before, googled to see whats going, enjoyed fun in Twitter and continued with my day as usual. Next day evening,  I experienced something bigger.  This one is different from previous ones. It keeps shacking for a while. By 9 PM PT, it's subdued but a ton of questions racing through my mind..  Its night time and we will be in middle of sleep. Will it be safe going in ?  This one is differently bigger than yesterday. Will the next one going to be bigger ? If yes, how soon ? I started searching for answers, but all i can see is " WELCOME TO CA " messages. I am not new to CA and living here for a while. This isn't felt normal. So I started se...