Saturday, December 2, 2017

Python Help

Problem/Question:

After installing PyMySQL successfully, still getting an error while importing PyMySQL

C:\Users\usrname\AppData\Local\Programs\Python\Python36-32\Scripts>pip install
Collecting PyMySQL
  Downloading PyMySQL-0.7.11-py2.py3-none-any.whl (78kB)
    100% |¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 81kB 327kB/s
Installing collected packages: PyMySQL
Successfully installed PyMySQL-0.7.11

C:\Users\usrname\AppData\Local\Programs\Python\Python36-32\Scripts>pip list
DEPRECATION: The default format will switch to columns in the future. You can us
pip (9.0.1)
PyMySQL (0.7.11)
pyqtgraph (0.10.0)
setuptools (28.8.0)

>>> import PyMySQL
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import PyMySQL
ModuleNotFoundError: No module named 'PyMySQL'

Fix/Answer:

Name of the import doesn't need to be the same as the project,

Use,

import pymysql

Wednesday, March 4, 2015

Configure BeyondCompare in SVN

Hi Friends,

Here by I am giving the steps to configure the Beyond compare tool in SVN, this will helps us to see the difference of files in BeyondCompare tool which is very user friendly.



Friday, October 4, 2013

NP++ get the search result back

If you close the search result in notepad ++ by automatically,
no need worry or search again, just press F7 to get the result back :)

-girishlc

Wednesday, August 15, 2012

Thursday, December 22, 2011

Finding sizeof structure without using sizeof operator


//FIND OUT THE SIZE OF STRUCTURE WITHOUT USING sizeof OPERATOR
#include<stdio.h>

struct str
{
  int a;
  char d;
  int c;
};


int main()
{
  struct str a, b;
  struct str *pt, *qt;
  int size;

  pt = &a;
  qt = &b;

  size = (void*)pt-(void*)qt;

  printf("Size of struct = %d\n", size);

  return 0;
}