Posts

Install TensorFlow 1.8 on Raspberry Pi 3 Model B+ [Complete Instruction Manual 2018]

Image
sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo apt-get install python-pip python-dev wget https://www.piwheels.org/simple/tensorflow/tensorflow-1.8.0-cp27-none-linux_armv7l.whl sudo pip install tensorflow-1.8.0-cp27-none-linux_armv7l.whl sudo pip uninstall mock sudo pip install mock /* Test program HelloTensor.py */ sudo pip install pillow sudo pip install lxml sudo pip install jupyter sudo pip install matplotlib sudo pip install protobuf git clone https://github.com/tensorflow/models.git cd models cd research protoc object_detection/protos/*.proto --python_out=. export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim /* If Protobuf is throwing errors: sudo apt-get install autoconf automake libtool curl make g++ unzip wget https://github.com/google/protobuf/releases/download/v3.6.0/protobuf-cpp-3.6.0.tar.gz tar -xvf protobuf-cpp-3.2.0.tar.gz cd protobuf-3.2.0 ./autogen.sh ./configure make make check sudo make install sudo ldconfig */...

C++ Array Declaration Stack Overflow Exception

Image
Error: Stack overflow when declaring a huge array in C++. Unhandled exception at 0x00007FF60B7040C8 in Tutorial.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x00000081A80D3000). occurred Problem code: #include <iostream> #include <fstream> int main() {     //do something..     int nar[10000000];     //do something more..     return 0; }

[How To] Download image from Google

Image
Google has recently removed "View Image" button from its search results. But don't get disappointed, you still can download image from Google searches. Step 1: Search what are you are looking for in Google, and switch to Images tab from All tab. Step 2: Scroll google image search page until you find what you want. Step 3: Click on the image you want to download and click on "Visit" button.

Hide password in Command prompt

Image
@echo off set "psCommand=powershell -Command "$pword = read-host 'Enter Password' -AsSecureString ; ^     $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^         [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)"" for /f "usebackq delims=" %%p in (`%psCommand%`) do set password=%%p echo %password% This trick reads a password on Windows without echoing it to the screen by calling PowerShell from a batch file and using a SecureString prompt, so the typed characters do not appear in the console. Masking input is a small but useful courtesy in scripts that ask for credentials. Note that hiding the characters guards against shoulder surfing, not against the value being readable once it is in memory.

Fix error "Invalid data set: 0" in Perl module GD::Graph

Image
Error Message: Invalid data set: 0 at D:\New\TOOL\graph.pl line 24. Problem Code: my @a1 ; my @a2 = [-9,8,0,1,-2,-5,6,-4,3,7]; foreach my $i (1..10) {     push @a1 , $i; } my @data = (     @a1 ,     @a2 ); Solution: my @a1 ; my @a2 = [-9,8,0,1,-2,-5,6,-4,3,7]; foreach my $i (1..10) {     push @a1 , $i; } my @data = (     [@a1],     @a2 );

Fix error "Not a valid source data structure" in Perl module GD::Graph

Image
Error Message: Not a valid source data structure at D:\New\TOOL\graph.pl line 24. Problem Code: my $gd = $graph->plot( @data ) or die $graph->error; Solution: my $gd = $graph->plot( \@data ) or die $graph->error; Complete working code: #!/usr/bin/env perl use strict; use warnings; use GD::Graph; use GD::Graph::bars;

Windows 10 Fall Creators Update and Microsoft Launcher (Preview)

Image
Fall Creators Update is the latest version of the Windows 10 Operating System by Microsoft. It is now available as beta release. To get this update you need to register your Windows 10 account as an Windows Insider. To join the program go to: https://insider.windows.com/en-us/ Windows 10 PC Version History: Version Code Name Marketing Name 1507 Threshold 1 1511 Threshold 2 November Update 1607 Redstone 1 Anniversary Update 1703 Redstone 2 Creators Update 1709 Redstone 3 Fall Creators Update Windows 10 version 1507, codenamed "Threshold 1", is the first release of Windows 10. It carries the build number 10.0.10240; while Microsoft has stated that there was no designated release to manufacturing (RTM) build of Windows 10, 10240 has been described as an RTM build by various media outlets. Windows 10 Fall Creators Update, or Windows 10 version 1709, codenamed "Redstone 3"...