Saturday 5 October 2019

Why I don't want to work as a Data Scientist.

I studied Data Science and I don't want to work in that field.
Surprising... right?
Well... The Data Science reports are all screwed. The data collected has lot of things missing.
The universe is spontaneous. It can not be categorized in classes or clusters.
Companies prefer the most profitable analytics only. So, they ignore the minority.
What remains is a boring class or cluster of similar people.
And, minority is what increases diversity and leads to creativity and innovation.
And history of evolution tells us that whatever is a minority now may become a majority in the future and the current majority will just vanish.
So, the point is that, there are a lot of variables out there. You can remove some to get the results you want. But aren't they biased..?
Data science is all about bias. And biasing ruins everything. Remember the feeling when teachers helped their favourites leaving you and your other fellows isolated.
So, the government ignored a lot of consequences and just did everything back to back without letting the economy to take a breath. And what happens when you have to run and when you are about to stop, you have to suddenly run at a faster speed, YOU EXHAUST. And recovery takes some time.
Analogies look like they are irrelevant sometimes. My comparison of people, governments, softwares and nature seem illogical. But everything in the universe works in the same pattern.

The coherence of this is line to line. So, read as it is. Don't skip or it won't make sense.

However, individual statements are like a quote. So, Good luck.

Monday 16 September 2019

Programming language syntax draft

" Namaste " : Prints Namaste with newline (like puts)
' Aur Sunao ' : Prints Aur Sunao without newline (like print)
( ) : For condition :: ((5>6){"yes"})(rethink)
( ) ? true : false :: (if else)
{ } : Block (write statements in it)
/* */ : multiline comments
=> : (not assigned yet) maybe (return)
<= : (not assigned yet) maybe (assignment)
+ : Add
- : Sub
* : Mul
/ : Div
== (equal?)
!= (not equal)
<, <= : (lessThan, equalTo)
>, >= : (greaterThan, equalTo)
&& : (AND)
|| : (OR)
! : (NOT)
& : (bit AND)
| : (bit OR)
^ : (XOR)
>> : (right shift)<< : (left shift)
() => {} : (switch case) ((var =7) 7=> {"is 7"}
~: (infinity)
 <varName> : (string interpolation)
@ : (import modules)(installed)
# : (include local files)
[Title of Link]`linkUrl` : (add url)(what for?)
varName[9] : (array)

i8, i16, i32, i64 : (int and bytes)
f32, f64 : (floats)
varName Str (the type is string)
varName Char (type is char)
auto : (based on the value returned by function)
fn Name() : (function declaration)

Tuesday 2 July 2019

Instruction Set Architecture

The (main) memory can be modeled as an array of millions of adjacent cells, each
capable of storing a binary digit (bit), having value of 1 or 0. These cells are organized in the form of groups of fixed number, say n, of cells that can be dealt with as an atomic entity. An entity consisting of 8 bits is called a byte. In many systems, the entity consisting of n bits that can be stored and retrieved in and out of the memory using one basic memory operation is called a word (the smallest addressable entity). Typical size of a word ranges from 16 to 64 bits. It is, however, customary to express the size of the memory in terms of bytes. For example, the size of a typical memory of a personal computer is 256 MB,
that is, 256*2^20 =  2^28 bytes.
In order to be able to move a word in and out of the memory, a distinct address has to be assigned to each word. This address will be used to determine the location in the memory in which a given word is to be stored. This is called a memory write operation. Similarly, the address will be used to determine the memory location from which a word is to be retrieved from the memory. This is called a memory read operation.
Three basic steps are needed in order for the CPU to perform a write operation
into a specified memory location:
1. The word to be stored into the memory location is first loaded by the CPU
into a specified register, called the memory data register (MDR).
2. The address of the location into which the word is to be stored is loaded by
the CPU into a specified register, called the memory address register (MAR).
3. A signal, called write, is issued by the CPU indicating that the word stored in
the MDR is to be stored in the memory location whose address in loaded in
the MAR.

ADDRESSING MODES

Information involved in any operation performed by the CPU needs to be addressed. In computer terminology, such information is called the operand. Therefore, any instruction issued by the processor must carry at least two types of information. These are the operation to be performed, encoded in what is called the op-code field, and the address information of the operand on which the operation is to be performed, encoded in what is called the address field. Instructions can be classified based on the number of operands as: three-address, two-address, one-and-half-address, one-address, and zero-address.
The different ways in which operands can be addressed are called the addressing modes. Addressing modes differ in the way the address information of operands is specified. The simplest addressing mode is to include the operand itself in the instruction, that is, no address information is needed. This is called immediate addressing. A more involved addressing mode is to compute the address of the operand by adding a constant value to the content of a register. This is called indexed addressing. Between these two addressing modes there exist a number of other addressing modes including absolute addressing, direct addressing, and indirect addressing.

Tuesday 11 June 2019

Where to learn Ruby lang?

You can learn Ruby from Boris Pashkhaver's Ruby Course on Udemy. The course is suitable from absolute beginners to people who have learnt programming before. The instructor explains things clearly and gives good examples which are easy to understand.

Prerequisites : How to open a browser. Rest will be taught by the teacher. ;)

Psst : You will learn FizzBuzz and will never forget.

Monday 17 December 2018

What won’t Silicon Valley admit about technology and progress?

That 87% of the Startups are unnecessary and don’t solve a real problem.
Silicon Valley produced some great companies and a legacy for ages.
Without Silicon Valley/Bay Area there probably would be no HP, Apple, Google, Uber, Dropbox etc. P.S.: (totally made those 87% up btw, that’s just what it feels like to me.)

Tuesday 18 September 2018

How to study Computer Science

First , get to know about how the hardware works. How instructions are executed, What it takes to make a cursor blink etc.
Do not get scared by the longer names... these are easy topics if you learn by heart and mind. These topics are arranged in order they were developed, just like human evolution.

Digital Logic :
Boolean Algebra | Combinational and Sequential circuits | Minimization | Number representation and Computer arithmetic 

Computer Organization and Architecture: 
Machine Instruction and addressing modes | ALU, data‐path and control unit | Instruction
pipelining | Memory hierarchy: cache, main memory and secondary storage | I/O
interface (interrupt and DMA mode).

Theory of Computation : 
Regular expressions and finite automata | Context-free grammars and push-down
automata | Regular and contex-free languages, pumping lemma | Turing machines and

undecidability.

Compiler Design :
Lexical analysis | Parsing | Syntax-directed translation | Runtime environments | Intermediate code generation.

Operating Systems : 
Processes | Threads | Inter‐process communication | Concurrency and Synchronization |

Deadlock | CPU scheduling | Memory management and Virtual memory | File systems.

Databases : ER‐model | Relational model: relational algebra | Tuple calculus | SQL | Integrity constraints | Normalization | File organization | Indexing (e.g., B and B+ trees) | Transactions and Concurrency control.

Networks :
Concept of Layering | LAN technologies (Ethernet) | Flow and Error control techniques,
switching | IPv4/IPv6 | routers and routing algorithms (distance vector, link state) | TCP/UDP
and sockets | congestion control | Application layer protocols (DNS, SMTP, POP, FTP, HTTP) |
Basics of Wi-Fi | Network security: authentication, basics of public key and private key

cryptography, digital signatures and certificates, firewalls.

Algorithms :
Searching | sorting | hashing | Asymptotic worst case time and space complexity |
Algorithm design techniques: greedy, dynamic programming and divide‐and‐conquer |

Graph search : Minimum spanning trees | Shortest paths.

Programming in C : 
Pointers | Recursion | Structures | Memory Management 

Data Structures : Arrays | Stacks | Queues | Linked lists | Trees | Binary search
trees | Binary heaps | Graphs.

Friday 7 September 2018

Quotes for the realists.

"If you are not busy meeting competition, you are creating it."

"Progress at times is built on the foundation of destruction."

"Obstacles are those frightful things you see when you fail to focus on your goals."

"A bend in the road is not the end of the road unless you fail to make the turn."

"No tree has ever reached the sky."

"The trouble with a rat race is that even if you win, you will still be a rat."

"You cannot discover new oceans unless you have courage to lose sight of shore."

"Worry is an interest paid on trouble before it falls due."

"Innovation thrives on encouragement and dies with criticism."

"Nothing is impossible to a man who doesn't have to do it himself."

"Even a fish wouldn't get into trouble if he'd keep his mouth shut."

"There is an island of opportunity in the middle of every difficulty."

"Always behave like a duck --  stay calm and unruffled on the surface but paddle like the devil underneath."

"अवसर का लाभ वे लोग उठाते हैं जो तैयार रहते हैं।"

"When one door closes one opens. Seize the opportunity while the path remains lit."

"Anyone can hold the helm when the sea is calm."

"Concentrate on your strengths; Recognize your weaknesses;
Evaluate your opportunities;
Research your threats;"

"You rarely succeed at anything unless you have fun doing it."

"The best way to predict the future is to create it."

"First deserve then desire."

"The first step towards solving a problem is to begin.
STOP EXISTING. START LIVING!"

"Shape your dreams by your hopes, not by your hurts."

"Don't ever accept defeat."

"Burden becomes light when they are cheerfully borne."

"Dream and dedication makes a powerful combination."

"The only sure thing about luck is that it will change."

"Statistics are often used as a drunkard uses a lamp post... Not to light his way but to support his instability."

"A small leak can sink a big ship."

"One who is accompanied by a noble thought is never alone."

"Failures are the pathways to attainments."

"Avoid- Anger- Argument- Arrogance."

"Treat a competitor not as a threat but as a motivator."

"Work with caliber, Act with wisdom,
Craft with precision, Respond with speed."

"Identify your weak link and act now."

"The wind and waves are always on the side of ablest navigators."

"The greatest loss is the loss of self confidence."

"The harder you work... The luckier you get."

"Man cannot re-make himself without sufferings, for he is both marble and the sculptor."

"Do not wait for the best idea. Implement the better one, still better and the best will follow."

"Betrayers are hated, even by those whom they benefit."

"Never hire anyone who will work for money alone."

"Refusing in a kind manner is better than making promises not kept."

"You'll learn more about a road by travelling it.... Than by consulting all the maps in the world."

"Strong men have strong purposes.
Strong purposes lead to strong achievements."

"It is better to ask twice than to lose your way once."

"Don't put square pegs in round holes.
They never fit."

"Honesty is still the best policy, with a little bit of common sense."

"The key to everything is patience.
You get the chicken by hatching the egg, not by smashing it."

"Starve the problems,
Feed the opportunities."

"Crowding one's life does not always enrich it."

"Those who fret over small issues only demonstrate their inability to find anything big in their lives."

"If all else fails....., lower your standards."

"Most problems are really the absence of ideas."

"Manage your time as you manage your money."

"Try to forget useless things. To remember everything is to make your mind a dustbin."

"The more I go, the more I get, If I don't go, I don't get."

"Kite rises against, not with the wind."

"Don't cry over spilt soup."

"Don't be afraid to take a big step if one is indicated.
You can't cross a chasm in two small steps."

"Do not postpone unpleasant and difficult tasks.
Do them now, you will feel much better afterwards."

"The winner never quits... And the quitter never wins."

"The person who tries to do many things at the same time ends up doing nothing."

"Never try to teach a pig to sing.
It wastes your time and annoys the pig."

"It is important to tell the ........ once in a while when enough is enough."

"The reason many people fail to recognize opportunity is because it comes disguised as hard work."

"Every job is a self-portrait of the person who did it.
Autograph your work with excellence."

"Do important jobs now,
Before they become urgent."

"Two men looked out from prison bars,
One saw the mud, the other saw stars."

"A man too busy to take care of his health is like a mechanic too busy to take care of his tools."

"A man is not finished when he is defeated, he is finished when he quits."

"Admit your mistakes gracefully."

"Business is dependent upon action. Often greater risk is involved in postponement than in making a wrong decision."

"Work banishes three great evils, Boredom, Vice and Poverty."

"Those who foolishly sought power by riding on the back of tiger, ended up inside."

"Concentrate all your thoughts upon the work at hand.
The sun's rays do not burn until brought to a focus."

"A weak mind is like a microscope which magnifies trifling things, but cannot receive great ones."

"Best way to make your dreams come true is to wake up..."

"Don't spread yourself too thin. Learn to say 'no' politely and promptly."

"Agreements get better results than arguments."

"Anything that can go wrong will go wrong."

"Influence is like a savings account. The less you use it, the more you've got it."

"Keeping a little ahead of conditions is one of the secrets of business; the trailer seldom goes far."

"Never loose hope."

"You cannot be anything if you want to be everything."

"No man can sincerely try to help another without helping himself."

"THINK... There must be a better way...!"

"Never attend an event simply because you've been invited."

"Beaten paths are for beaten men."

"Do not limit the scope of your thinking."

"Act as though it were impossible to fail."

"It is more important to know where you are going than to get there quickly. Never mistake activity for achievement."

"You must set your priorities."

"The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails."

"Jumping at small opportunities may get us there more quickly than waiting for a big one."

"Follow no one but learn from everyone."

"Standing in the middle of road is very dangerous; you get knocked down by the traffic from both sides."

"Many of life's failures are people who did not realize how close they were to success when they gave up."

"The successful man will profit from his mistakes and try again in a different way."

"We cannot direct the wind... But we can adjust our sails."

"Wisdom is knowing what to do next, skill is knowing how to do it, and virtue is doing it."

"When you reach for the stars, you may not quite get one, but you won't come up with a handful of dust either."

"At the start of your career, what you learn is more important than what you earn... ."

"A race horse that can run a mile faster is worth twice as much. That little extra proves to be the greatest value."

"Don't worry over what other people are thinking about you. They are busy worrying over what you think about them."

"If you don't invest very much, then defeat doesn't hurt very much and winning is not very exciting."

"By being over cooperative you might be blocking someone's vision... ."