Windows 7 exception code: 0xc0000409

I have a C++ windows application that was done by another programmer, that I had to remove one line of code. After rebuilding the application with visual studio 2013 it crashes with this in the event log: The application uses QT 4.7.4, and compiles with no errors. I am an embedded systems programmer and have … Read more

How do I install Python OpenCV through Conda?

I’m trying to install OpenCV for Python through Anaconda, but I can’t seem to figure this out. I tried I also tried searching No cigar. I ran across this which lists opencv as an included package: http://docs.continuum.io/anaconda/pkgs.html After running conda info I noticed my version is 3.4.1, but I couldn’t seem to find any information about this version online. I’m … Read more

How to correctly use the extern keyword in C

extern changes the linkage. With the keyword, the function / variable is assumed to be available somewhere else and the resolving is deferred to the linker. There’s a difference between extern on functions and on variables. For variables it doesn’t instantiate the variable itself, i.e. doesn’t allocate any memory. This needs to be done somewhere else. Thus it’s important if … Read more

Categories C Tags

Initializing a two dimensional std::vector

Use the std::vector::vector(count, value) constructor that accepts an initial size and a default value: If a value other than zero, say 4 for example, was required to be the default then: I should also mention uniform initialization was introduced in C++11, which permits the initialization of vector, and other containers, using {}:

CSS Font Border?

There’s an experimental CSS property called text-stroke, supported on some browsers behind a -webkit prefix.  Run code snippetExpand snippet Another possible trick would be to use four shadows, one pixel each on all directions, using property text-shadow:  Run code snippetExpand snippet But it would get blurred for more than 1 pixel thickness.

How to install grub after installing Windows 10

First live boot to your Linux Mint system, using external Live CD/USB Drive, then follow these commands to re-install GRUB on MBR. mount your Linux installed partition to some mount point. here XY is the number of your Linux distro partition.sudo mount <root-partition[e.g. /dev/sdaXY]> <mount-point[e.g. /mnt/]> Now bind some essential live root partition directories to … Read more

Add text to ggplot

Consider using annotate() to place whatever text where you want at a given location on the plot. Factor variables, as in the clarity factor on the x-axis, have a number for each level, so you can use that number to locate the text. I assume date variables have the same usage.: EDIT after COMMENT For efficiency, you … Read more

Categories R

Python equivalent of a given wget command

urllib.request should work. Just set it up in a while(not done) loop, check if a localfile already exists, if it does send a GET with a RANGE header, specifying how far you got in downloading the localfile. Be sure to use read() to append to the localfile until an error occurs. This is also potentially a … Read more

NPM Start not starting local server

I am trying to make an react app using webpack and when I try to run npm start it should load http://localhost:3333 but it says site cannot be reached, here is my webpack config: And here is my script object from package.json: “start”: “webpack-dev-server”. I have already installed webpack & webpack-dev-server globally. Check below image which I am getting:  … Read more