Wednesday, October 24, 2018

Sharing PC/Laptop Internet via WiFI or creating WiFi hotspot

The following steps discusses about sharing LAN Internet connectivity from laptop or desktop with wifi/wlan card. to other laptops / phones



  1. open cmd in administrative mode
  2. To start the network, copy paste the following two lines

netsh wlan set hostednetwork mode=allow ssid=MyWiFi key=MyPasswordHere

netsh wlan start hostednetwork



To stop the network, copy paste the following line

netsh wlan stop hostednetwork



to connect to it, use the following from phone or other laptops
Wifi name (SSID):
MyWiFi

password:
MyPasswordHere

Monday, October 22, 2018

How to choose a research or thesis topic

As-salamu Alaikum,

Often we struggle to choose a thesis topic or research area. The following links might help as a starter:

TOPIC
 
Computers are used to solve problems in many domains: Computational Sciences
 
Computer Science hot research topics
 
 
Computer Science Graduate Theses
 
How to select a thesis topic?

Saturday, October 6, 2018

Mathematics in Computer

What Every Computer Scientist Should Know About Floating-Point Arithmetic
https://docs.oracle.com/cd/E19060-01/stud8.compiler/817-0932/ncg_goldberg.html


SUN Numerical Computation Guide


https://en.wikipedia.org/wiki/IEEE_754

https://steve.hollasch.net/cgindex/coding/ieeefloat.html

Friday, August 31, 2018

Workaround for malfunctioning battery level detection

No action / do nothing when battery reaches ctricital level as a workaround for malfunctioning battery level detection

Windows:
powercfg -setdcvalueindex SCHEME_CURRENT SUB_BATTERY BATACTIONCRIT 0
powercfg -setacvalueindex SCHEME_CURRENT SUB_BATTERY BATACTIONCRIT 0

or,
POWERCFG /SETDCVALUEINDEX SCHEME_CURRENT SUB_BATTERY BATACTIONCRIT 0
POWERCFG /SETACVALUEINDEX SCHEME_CURRENT SUB_BATTERY BATACTIONCRIT 0

source:
https://superuser.com/a/1175864/500845


Linux:
https://askubuntu.com/questions/378440/how-to-avoid-shutdown-on-critical-battery
https://forums.linuxmint.com/viewtopic.php?t=201336
https://askubuntu.com/questions/210623/modify-actions-when-battery-is-critically-low

Monday, February 26, 2018

Using Online javadoc, Java Documentation

Note: Your feedback on how to improve this article is most welcome.

It may not be wise to use old javadoc for example,
http://docs.oracle.com/javase/7/docs/api/java/lang/Math.html

Even though this is what our search engine shows first, usually.
However, methods may change from version to version, 
some times they are added,
removed or behavior may change.
Hence always use java doc (documentation) for the latest JDK

How to ensure that google gives result from javadoc for JDK 8?
Here are some interesting ways, just mention java 8 in your search.
Say, we want to search on math class. then write

java 8 math docs
http://www.google.com/search?q=java+8+math+docs

or like,
java 8 api math
http://www.google.com/search?q=java+8+api+math

It does not mean codes vary in different versions of JDK.
Mostly it does not. Codes are usually backward and forward (future) compatible.
However, things do change, slowly. Some of existing code may get
deprecated. There could be changes in behavior.

We should always try to use the latest version because better ways of
doing things may have been introduced and we want our code to keep
working in future JDKs as well.

Recommended Reading:
http://mindprod.com/jgloss/deprecated.html
http://docs.oracle.com/javase/8/docs/technotes/guides/javadoc/deprecation/deprecation.html

Sunday, February 25, 2018

Checking String for Equality

Note: Your feedback on how to improve this post is most welcome.

For comparing String values, ==, !=, >, < are not appropriate. These are better suited to numbers.

For Strings, use something like
Scanner sc = new Scanner(System.in);
System.out.println("Please type + or - or *");
String operator = sc.next();
if (operator.equals ("+"))
{
     System.out.println("you gave a plus sign");
}
else
{
     System.out.println("you gave something else");
}


Recommended reading:

for regular students:
http://alvinalexander.com/java/edu/qanda/pjqa00001.shtml

for advanced learners:
http://docs.oracle.com/javase/tutorial/java/data/comparestrings.html
https://www.javaworld.com/article/2077355/core-java/don-t-be-strung-along.html
https://www.baeldung.com/java-compare-strings


Want to learn more about characters and strings?
https://www.javaworld.com/article/2074031/core-java/jdk-7--java-switching-on-strings-is-here.html
https://www.javaworld.com/article/2074647/core-java/core-java-java-s-character-and-assorted-string-classes-support-text-processing.html

Thursday, February 8, 2018

The Story of a TINY FROG

Also available on many sites including http://slideplayer.com/slide/3166044/

------- Forwarded message ----------
From: Chowdhury Farsad Aurangzeb

TINY FROGS

Once upon a time there was a bunch of tiny frogs.... who arranged a running competition.

The goal was to reach the top of a very high tower.

A big crowd had gathered around the tower to see the race and cheer on the contestants....

The race began....

Honestly:

No one in the crowd really believed that the tiny frogs would reach the top of the tower.

You heard statements such as:

"Oh, WAY too difficult!!"

"They will NEVER make it to the top."

or:

"Not a chance that they will succeed. The tower is too high!"

The tiny frogs began collapsing. One by one....

Except for those, who in a fresh tempo, were climbing higher and higher....

The crowd continued to yell,  "It is too difficult!!! No one will make it!"

More tiny frogs got tired and gave up....

But ONE continued higher and higher and higher....

This one wouldn't give up!

At the end everyone else had given up climbing the tower. Except for the one
tiny frog who, after a big effort, was the only one who reached the top!

THEN all of the other tiny frogs naturally wanted to know how this one frog
managed to do it?

A contestant asked the tiny frog how he had found the strength to succeed
and reach the goal?

It turned out....

That the winner was DEAF!!!!
 
The wisdom of this story is:

Never listen to other people's tendencies to be
 negative or pessimistic....  

because they take your most wonderful dreams
and wishes away from you -- the ones you have in your heart!

Always think of the power words have.

Because everything you hear and read will affect your actions!

Therefore:

ALWAYS be....

POSITIVE!

And above all:

Be DEAF when people tell YOU that you cannot fulfill your dreams!

Always think:

God and I can do this!



---------- Forwarded message ----------
From: Chowdhury Farsad Aurangzeb 
Throughout the semester students get frustrated with studies (like: Programming, maths and etc..). In this situations we have to be the Tiny Frog and inspire ourselves and avoid hearing what people are saying negative about us. If we can't succeed, we have to keep on trying till we can achieve the actual goal. If you fail and keep on trying people might say things that might hold you back and might dis-inspire you  but give damn to those people and keep on trying because the actual LOSER gives up the moment people starts talking negative about them... 

Saturday, January 13, 2018

Software Engineering

All Circuits are Busy Now: The 1990 AT&T Long Distance Network Collapse
http://users.csc.calpoly.edu/~jdalbey/SWE/Papers/att_collapse.html

Wednesday, January 10, 2018

Improving Java Programming Skills

Disclaimer: Found any inaccuracy? Please let me know how to improve this article further.
==================================

Logic
=======

  • How to Solve it by Computer by R. G. Dromey


Basic Coding
===========


Advanced Coding
==============

  • OCA Java SE Programmer Exam Guide by Kathy Sierra and Bert Bates
  • Effective Java by Joshua Bloch
  • Java Puzzlers: Traps, Pitfalls, and Corner Cases by Joseph Samuel Bloch and Neal Gafter
  • Core Java by Cay Horstmann
  • http://www.javaworld.com


Basic video
======

Programming Language Level 1 (CSE110)
==============
Video 1 to 42 of http://www.youtube.com/playlist?list=PLFE2CE09D83EE3E28


Programming Language Level 2 (CSE111)
==============
Video 27 to last of http://www.youtube.com/playlist?list=PLFE2CE09D83EE3E28

and Video 1 to 3 of http://www.youtube.com/playlist?list=PL27BCE863B6A864E3


Programming Language Level 2 (CSE310)
==============
http://www.youtube.com/playlist?list=PL27BCE863B6A864E3





Next levels:
========
Data Structures and Algorithms Made Easy in Java: Data Structure and Algorithmic Puzzles
by Narasimha Karumanchi

Solve ACM Programming Contests problems from different online judges like http://topcoder.com



Elements of Programming Interviews in Java: The Insiders' Guide
by Adnan Aziz, Tsung-Hsien Lee, Amit Prakash

Cracking the Coding Interview: Programming Questions and Solutions
by Gayle Laakmann McDowell

Code Complete: A Practical Handbook of Software Construction
by Steve McConnell


need more?