Skip to main content

Popular posts from this blog

Netbeans 6.0 - Code generation

The Java editor is capable of generating often used constructs for you automatically. Press Alt+Insert to invoke the code generation menu and pick what you want to generate To add import statements: Use error hints : Click on the error mark with the light bulb or press Alt+Enter . It will offer you a list of possible classes to import. Pick the proper hint and you are done Use the import class dialog : Put the caret into the name of an unimported class and press Alt+Shift+I . A list of possible classes to import will appear. Use the smart fix import : Press Ctrl+Shift+I . You will get a dialog that lists all unresolved identifiers in the source. If there is more than one option for resolving the identifier you may choose using the combo box. Classes shown in gray do not fit for some reason. Method exit points : Putting the caret on the return type of a method definition will highlight all places where the method can exit Exception throwing points : Putting the caret on an...

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 ...

Want your name to be in History books!! with little spare money, you can!!

It took great action like an innovation, blood shed etc., to have ones name recorded in Human history often backed by great purpose. Now you have such opportunity... naming a species after you, while conserving the nature. Rainforest Trust , a US-based nonprofit environmental organization, inviting bidders to name 8 animals and 4 Orchids, with all proceeds going towards environmental conversation. This Blue eyed  ECUADORIAN FROG  is going to be called ________________ This  COLOMBIAN ORCHID  is going to be called ________________ This  ECUADORIAN FOREST MOUSE  is going to be called ________________ This  COLOMBIAN FROG  with unusual leopard-like coloration  is going to be called ________________ This  ORCHID  from  Colombian cloud forest  is going to be called ________________ This  PANAMANIAN SALAMANDER with tiny legs and big eyes  is going to be called ____________...