Hey, what's going on?

Archive for January, 2016

[SOLVED] Lenovo Laptop Stops Charging at 60%

Posted by Syeilendra Pramuditya on January 26, 2016

Symptom: Your Lenovo laptop somehow stops charging at 60%, it says “Plugged in, not charging”.

Step 1 – Enable .NET 3.5

Open Control Panel >> Programs >> Turn Windows features on and off

Then turn on/enable .NET Framework 3.5 (you need internet access to download it)

Step 2 – Install Energy Management Software

Download it from this official link, and just install it.

Restart the laptop.

Open the software from the icon tray (yellow car icon), then click “Battery Settings”.

~Problem Solved

Posted in software & simulation | Tagged: , , , | Leave a Comment »

Repost: 15 Most Important Differences Between C And C++

Posted by Syeilendra Pramuditya on January 25, 2016

Just for my personal archive.

Source: http://studytipsandtricks.blogspot.co.id/2012/05/15-most-important-differences-between-c.html

C C++
1. C is Procedural Language. 1. C++ is non Procedural i.e Object oriented Language.
2. No virtual Functions are present in C 2. The concept of virtual Functions are used in C++.
3. In C, Polymorphism is not possible. 3. The concept of polymorphism is used in C++.
Polymorphism is the most Important Feature of OOPS.
4. Operator overloading is not possible in C. 4. Operator overloading is one of the greatest Feature of C++.
5. Top down approach is used in Program Design. 5. Bottom up approach adopted in Program Design.
6. No namespace Feature is present in C Language. 6. Namespace Feature is present in C++ for avoiding Name collision.
7. Multiple Declaration of global variables are allowed. 7. Multiple Declaration of global varioables are not allowed.
8. In C

  • scanf() Function used for Input.
  • printf() Function used for output.
8. In C++

  • Cin>> Function used for Input.
  • Cout<< Function used for output.
9. Mapping between Data and Function is difficult and complicated. 9. Mapping between Data and Function can be used using “Objects”
10. In C, we can call main() Function through other Functions 10. In C++, we cannot call main() Function through other functions.
11. C requires all the variables to be defined at the starting of a scope. 11. C++ allows the declaration of variable anywhere in the scope i.e at time of its First use.
12. No inheritance is possible in C. 12. Inheritance is possible in C++
13. In C, malloc() and calloc() Functions are used for Memory Allocation and free() function for memory Deallocating. 13.In C++,  new and delete operators are used for Memory Allocating and Deallocating.
14. It supports built-in and primitive data types. 14. It support both built-in and user define data types.
15. In C, Exception Handling is not present. 15. In C++, Exception Handling is done with Try and Catch block.

Posted in programming | Leave a Comment »

Installing SRAC Code on Mandrivalinux 2010.0 x86_64

Posted by Syeilendra Pramuditya on January 18, 2016

SRAC: Standard Reactor Analysis Code, developed by Japan Atomic Energy Agency

SRAC code was developed long time ago, so there are problems when you try to install it on modern linux distros. The biggest problem of all is I think the original SRAC works only with F77/G77, whereas modern linux distros usually only provide gfortran.

Some installation tips:

Tip 1

Using the control panel, make sure that the following packages have been installed: gcc-cpp, gcc-c++, gcc-gfortran, tcsh, make, automake, ncompress, mscompress

Tip 2

Edit these 2 files:



Open the files, you will see “set F77 = G77”, add a new line after that line: “set F77 = gfortran”

Now you just test run the code by executing SRAC/smpl/shr/Test.sh

Sample of input and output files are available here.

This has been tested and works for me.

*Of course you can just simply install SRAC 2006 which supports gfortran compiler.

Posted in nuclear engineering, software & simulation | Leave a Comment »