Tuesday, August 13, 2019

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