Difference Between Malloc and New in C++

new and delete

  • the way it allocate and release memory
    • the memory is allocate from Free Store
    • will return a fully typed pointer
      • if failed will not return NULL
    • the compiler will calculate the size
    • reallocate is not handled intuitively, using copy constructor
    • whether called malloc and delete can be user defined
    • can add a new memory allocator to deal with low memory
    • new and delete can be overwrite legally
    • use constructor/destructor to initial/destory object
Read more
Comments

Vi Regular Expression and Data Processing(1)

data processing is very important before data mining

  • like if you are going to do some data mining in the linkedin public profile
  • 1.find out the number of the people that have
     - education
     - experience
     - skills
     - have all
    
  • 2.find out all the skills and list the number of user who own them in a diagram
  • 3.find out all the company number
  • 4.find out all the people that is in US
  • 5.find out all the education level of all people
     - like undergraduate, graduate, phd
    
  • 6.find out all the experience about job numbers
     - like 1 job, 2 jobs, 3 jobs
    
Read more
Comments

Iupui Mason High Performance Mass

In the iupui mason server

  • there are 20 server, each have 10 gigabit ethernet
  • 4 cpu in each server
    • 8 core processor each cpu
    • total 32 core in each server
  • in the /scratch or /tmp there are total 400 GB disk storage
    • and the file will be delete after 14 days since they are created
Read more

How to Install Python Package on Redhat Without Root Access

dependent of scrapy

  • remember that the scrapt need python2.7 to run
  • and there will be lots of package need to be installed

What to do when need to install python package on the server without root access

  • today I went through a problem that I want to have the python package installed on the high performance server but without the root access
  • and what I need to do is to install the python 2.7.3 first and then install all the package that scrapy need and finaly get scrapy run
Read more
Comments

2014_indianapolis_redefined_hackathron

The hackathron take 24 hours to write an app that can be used for attracting people to indianapolis

  • and I first design a python version of app
  • then I use bootstrap theme to develop a mobile compatible web app with php link to the mysql database.
Read more
Comments

Database_and_backend_injection

database ER diagram

  • some change in the database relationship
  • we have
    • T_ADMIN
    • T_USER
    • T_USER_CLASS
    • T_PROJECT
    • T_PRO_LEVEL
    • T_PROJECT_STATISTICS
    • T_TASK
    • T_SUBTASK
    • T_MATERIAL
    • T_CUSTOMER
Read more
Comments