Developers should have two minds, technical mind and business mind.

December 3, 2017 § Leave a comment

The problem i want to talk about in this post that we consider our minds should have one direction or thought, and this direction must be technical, we don’t have to think of how to ‘sell’ our technical minds? or their products?  – this is the Goal.

One time, i followed @curiositydotcom account on instagram, i liked them but i didn’t have time to see all the ‘old’ pics, so i created a tool in python to download all pics from pic0 to the latest to see them in my free time without internet access, even though i was know little about python the code worked and i did it. In a few months later i found a job ‘scraping pics from public instagram account’ for 30$, i never for a moment imagined that this little and tiny tool costs 30$ or 540L.E, because i have just one mind only the technical mind.

The life on Facebook or LinkedIn looks like the flood, the water (posts) leads you, make you see only one direction you can’t look at right, left or even back, none can stand and rethinking about the way. The companies’ owners need developers and each developer need to know all the requirements much more the others to be the idealist, he can be the idealist for years but in the fact he just a robot or a tool not a responsible, in my opinion developers should be leaders in technical industry, the technical mind is great with business mind in a same head not under another business mind in another head. i didn’t point to start your career as a business man, or build your startup in your beginnings, i mean you should grow your mind in business trend as you growing it in technical field. this will help in the future i’m sure.

I know plenty of students can write good projects in more than 3 programming languages like C++, C#, Python, JS, Java, Matlab, php, but they can’t get money from their knowledge. i’ll talk about myself as an example, i wrote code – not all projects included – in C#, python, JS, C++, Assembly X86, Matlab and (HTML & CSS) i can write code whatever the language, whatever the topic, but my business mind doesn’t give me a good job and if he gave it to me he wouldn’t help me anymore. i have experience in this, in the last summer i got intern in one of startups as front-end developer, in my first two weeks i didn’t know what should i do? what are the tasks? but my head told me the tasks should passed to me ‘from the heaven maybe’, on my office the co-founder or the technical co-founder you can call him the CTO saw me working on a personal small project, he asked me what is going on in your intern? i replied i have no tasks for now. this is the first mistake from me and i guess from my mentor how can i spent two weeks with no clearly tasks to do? it’s not a joke. when i got the tasks, i faced two options Should i deliver them in a good code and design? or just do it fast as i can? my technical mind drew The flash (superhero) on my screen, and i fall in my second big mistake.

Everyone will lead you to achieve his work (except your mom) the same for minds your technical mind can guide you to learning smalltalk 😀 the second most loved programming language, but your business mind can guide you to learning python the first wanted programming language and the sixest in the most loved list, your technical mind can help you doing great projects in a folder on your personal hard drive but your business mind can help you doing same good projects in folders on +1000 PCs, technical minds ‘establish’ connections with the devices, business minds ‘make’ connections with people, and you need the two connections.

We’re not beta-geeks, developers are small companies we’re not ‘supervised learners’ we’re not robots we have souls, heart, blood, emotions (not emojis) and minds (two, okay?) i reminded myself with you.

Competition is a very silly lie, you can get glasses to see, and you can compete to be blind, competition is a magic you’ll love, admire and feel success but on others not on your goals.

you can share your thoughts with me, feel free to ask.

Advertisements

JavaScript presentation

October 30, 2017 § Leave a comment

Top 12 Repositories on github ‘to me’ (september 2017)

October 1, 2017 § Leave a comment

  1. ncase / trust
    An interactive guide to the game theory of cooperation

  2. jeromeetienne / AR.js
    Efficient Augmented Reality for the Web – 60fps on mobile!

  3. iliakan / javascript-tutorial-en
    Modern JavaScript Tutorial

  4. toddmotto / public-apis
    A collective list of public JSON APIs for use in web development.

  5. EbookFoundation / free-programming-books
    📚 Freely available programming books

  6. sdmg15 / Best-websites-a-programmer-should-visit
    🔗 Some useful websites for programmers.

  7. christopherjenness / NBA-player-movement
    Visualization and analysis of NBA player tracking data

  8. papers-we-love / papers-we-love
    Papers from the computer science community to read and discuss.

  9. kamranahmedse / developer-roadmap
    Roadmap to becoming a web developer in 2017

  10. Hack-with-Github / Awesome-Hacking
    A collection of various awesome lists for hackers, pentesters and security researchers

  11. jiahaog / nativefier
    Make any web page a desktop application

  12. kdn251 / interviews
    Everything you need to know to get the job.

 

Intermediate Front End Development Projects on freecodecamp in two days

September 13, 2017 § Leave a comment

Assalamu Alaikum everyone 😀
I just finished my fourth and last project on Intermediate Front End Development Projects on freecodecamp and in this post i’ll describe these hours, tools, maybe mention some lines of code and BUGS.

For the first Project Build a Random Quote Machine:

movies

I used API to generate movies quotes from https://www.mashape.com/ and using Postman the easiest way to deal with APIs in general. for .js file i think it was easy and have no bugs, but i get struggled before in using twitter share button, the tweet text wasn’t changing in every time i changing it in code, but now i have to solution for this problem one if you wanna use twitter’s share button style and the other one if you wanna use you style:

//SOL-1: you have to reload twitter share button
twttr.widgets.load();
//SOL-2: you have to write all text, hashtags, everything in href
"`https://twitter.com/intent/tweet?text=${text}&hashtags=${hashtag}&via=${twittername}`" 

Note: in previous code i used ES6 feature ${ } to write variables, it’s similar to “str “+var+” str”.

you maybe don’t know how to get random number in range, the easy way:

var index = Math.floor(min + (Math.random() * ((max - min) + 1)));

The project on github

For the second Project Show the Local Weather:

weather

I used this API https://fcc-weather-api.glitch.me/ using postman, The only bug i faced, it was horrible but i have simple solution to deal with it not fixing it, Here is the Problem The value of the ‘Access-Control-Allow-Origin’ header in the response must not be the wildcard ‘*’ when the request’s credentials mode is ‘include’. if you working on Windows just open CMD and write this line to open chrome in no-security
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="c:/chromedev"
or Linux
sudo google-chrome --no-sandbox --disable-web-security --user-data-dir="/opt/google/chrome"

here’s you can enable location on devices

if ("geolocation" in navigator) {
    navigator.geolocation.getCurrentPosition(function(position) {
        func(position.coords.latitude, position.coords.longitude);
    });
} else {
    // geolocation isn't available
}

The project on github

For the third Project Build a Wikipedia Viewer:

wikipedia

Wikipedia have the most wonderful APIs system i have ever seen, maybe because i didn’t try all apis’ systems, but it’s not easy to use any of them i guess. but give it try from this link and you can open random article using this link nothing to say for this project, you can see my progress here

For the fourth Project Use the Twitch.tv JSON API Complete :

twitch

I don’t like this project at all, and i think it was completely useless. Ok you can see what i did

Install Python3 on linux

June 28, 2017 § Leave a comment

Remove Duplicate Files in python

June 21, 2017 § Leave a comment

How it works?

the program takes the file path from user, then calculates its sha-256 hash, then takes the folder path from user to search in and start search for files with the same sha-256.

Installation:

  1. install python 3.x from here
  2. create a new .py file and copy the source code into it.
  3. run script.

*NOTE: ‘the folder path not included sub-folders’.

if you want to contribute, fork it.

Follow me on github

How Dropbox Knows When You’re Sharing Copyrighted Stuff?

May 31, 2017 § Leave a comment

Hashing.
Before i dive in:

‘A’ is a criminal, he wants to rob a bank so he asked his friends ‘B’ and ‘C’ for help. They robbed the bank successfully but unfortunately ‘B’ had forgotten his gloves at home before the crime. The police officer got his fingerprint and after a few days from fingerprint matching, the police catch’em all.
Same thing for files, every tiny file has its unique fingerprint from characters and numbers like “ah4213jn234bmn53b” and even if you change the location or name or things like that the fingerprint not change at all – if you wanna see install this https://support.microsoft.com/en-us/help/841290/availability-and-description-of-the-file-checksum-integrity-verifier-utility and have little fun – The dropbox has a big table with the fingerprints of the origin files and when you upload a file, a hash is generated and if its fingerprint exist the site blocked the uploaded one.

It’s the same idea to store your password and username.
Follow me on quora

ABCD * D = DCBA (Puzzle+Solution)

April 7, 2017 § Leave a comment

The Puzzle

“ABCD * D = DCBA”, Replace every character with a number to make the equation mathematically right.

The Solution using brute-force algorithm

#include<bits/stdc++.h>
using namespace std;
int main(){
    for(int a=0;a<=9;a++){
        for(int b=0;b<=9;b++)if(a!=b){
            for(int c=0;c<=9;c++)if(a!=c && b!=c){
                for(int d=0;d<=9;d++)if(a!=d && b!=d && c!=d){
                        if((a*1000+b*100+c*10+d)*d == (d*1000+c*100+b*10+a))
                            return cout<<"abcd\n"<<a<<b<<c<<d,0;
                }
            }
        }
    }

    return 0;
}

The final answer is 1089.

The 6th number is both square and triangular [Puzzle]

March 28, 2017 § Leave a comment

 

My Review > Grokking Algorithms An illustrated guide for programmers and other curious people

March 23, 2017 § Leave a comment

Grokking Algorithms An illustrated guide for programmers and other curious peopleGrokking Algorithms An illustrated guide for programmers and other curious people by Aditya Y. Bhargava

My rating: 4 of 5 stars

To me, This book have two sections first from chapter 1 to chapter 10,and the second and i mostly liked is the chapter 11 “Where to go next” but the book in general very useful for beginners.

minn

View all my reviews

Where Am I?

You are currently browsing the Programming category at Orange Notes.

%d bloggers like this: