w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Git Extensions: Win32 error 487: Couldn't reserve space for cygwin's heap, Win32 error 0
Cygwin uses persistent shared memory sections, which can on occasion become corrupted. The symptom of this is that some Cygwin programs begin to fail, but other applications are unaffected. Since these shared memory sections are persistent, often a system reboot is needed to clear them out before the problem can be resolved.

Categories : GIT

Trying to install a Scitools Python pkg via 'pip install' but getting error
I had the same error but resolved it by manually installing all the Anaconda packages. NumPy SciPy Pandas PyTables h5py Matplotlib IPython Spyder Qt/PySide VTK Numexpr Astropy Cython LLVM LLVMpy Numba Scikit-learn Scikit-image NLTK NetworkX MayaVi

Categories : Python

"scripts recordmcount: Syntax error" when I try to build a linux kernel module on a 64-bit 3.9 kernel
This was an issue of cross-compiling. I used a 32-bit Ubuntu system to build a 64-bit kernel and it's been nothing but headaches. Apparently the scripts etc still get built as 32-bit. (They'd have to since my 32-bit system needed to use them to build the kernel.) But then if bring that /usr/src/linux-headers-x.x.x dir over to my 64-bit system I can't use it to build any kernel modules because its /scripts dir is 32-bit. I rebuilt recordmcount on the 64-bit machine and that worked. But then there was another script that was incompatible with 64-bits, that wasn't as easy to build without rebuilding the entire kernel. Anyway, if you cross compile you don't get a /usr/src/linux-header-x.x.x/scripts dir that's usable on your target system.

Categories : Misc

Error while compiling C++ kernel module with Android kernel for Nexus 7
To find out the compilation parameters used in gcc (or g++), you should use "make V=1" against the makefile. but the error: error: 'void*' is not a pointer-to-object type looked more like a C++ error, which is inherent in your code (Android kernel does not use C++). This seemed to be solvable by recasting: Error: ‘void*’ is not a pointer-to-object type C++. Error: void is not a pointer-to-object type. etc.

Categories : Android

C# install kernel driver to protect files
No, there isn't. You can't run managed .NET code at the kernel level as drivers. You'll have to write the driver in unmanaged code in C or C++ (beware that C++ support is limited to a subset of C++ that is very close to plain C). What you need is probably a file system filter.

Categories : C#

what is the algorithm for an RBF kernel matrix in Matlab?
This should be what you are looking for. It is taken from here % With Fast Computation of the RBF kernel matrix % To speed up the computation, we exploit a decomposition of the Euclidean distance (norm) % % Inputs: % ker: 'lin','poly','rbf','sam' % X: data matrix with training samples in rows and features in columns % X2: data matrix with test samples in rows and features in columns % sigma: width of the RBF kernel % b: bias in the linear and polinomial kernel % d: degree in the polynomial kernel % % Output: % K: kernel matrix % % Gustavo Camps-Valls % 2006(c) % Jordi (jordi@uv.es), 2007 % 2007-11: if/then -> switch, and fixed RBF kernel function K = kernelmatrix(ker,X,X2,sigma) switch ker case 'lin' if exist(

Categories : Algorithm

error when install hg in mac os x 10.9 with python 2.7
This might be because you do not have python development headers installed. If you're on Linux, try installing the dev packages: apt-get install python-dev apt-get install libevent-dev Otherwise, you can install Mercurial in a virtualenv: sudo easy_install virtualenv mkdir myenv && cd myenv && virtualenv . && . bin/activate pip install Mercurial hg-git (only include hg-git in pip install if you need it) If the virtualenv command in the second line of the Mac instructions is not found in your PATH, then supplying a full path, like this, might work: $ /usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/bin/virtualenv .

Categories : Python

Python error: I am unable to install amara using pip
You can try to install it with a specific version or use the below method. I've tried this solution with other packages. You can use this command to install it. pip install --egg amara It should work for amara also. I'm using it in python 2.7 ThinkPad-T430:~$ pip --version pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)

Categories : Python

Define export path for swt-win32.dll and swt-win32-XXXX.dll
Versions up to and including 3.2 suffer from this issue. This is resolved by adding a 64-bit swt.jar in the libswtwin32 to replace the 32-bit. A better way to implement this is to create a win64 directory in libswt, copy the swt.jar file into here and modify the .bat scripts. For example, in spoon.bat find the line: set CLASSPATH=%CLASSPATH%;libswtwin32swt.jar and change it to set CLASSPATH=%CLASSPATH%;libswtwin64swt.jar

Categories : Java

How to Install Matplotlib Basemap Module on Windows 7 with WinPython (or any Python stack install)?
I use windows. And my installation failed with official guidance, too. Finally I installed Basemap using the following method. Although I am not sure if it will go right for you, I just offer mine. First of all, you must have pip in your computer. (It is much easier to install, compared with Basemap and other things. And it can be used to install many useful packages.) Then go this great link: http://www.lfd.uci.edu/~gohlke/pythonlibs/ And download the file named "basemap‑1.0.8‑cp27‑none‑win_amd64.whl". Remove the .whl file to directory "C:Python27". (Maybe you installed your python in different disk, then change it accordingly.) Open terminal. (Use cmd or Git Bash or something else.) Use command: pip install basemap‑1.0.8‑cp27‑none‑win_amd64.whl

Categories : Python

Pip install python package into a specific directory other than the default install location
System: Ubuntu 12.04, Enthought Python Distribution (this is where I wanted to install a new python module) So the prefix_path environment variable didn't work for me and pip still kept installing it in the default location. But I used change default directory for pip install question as a guide. And one of the answers helped me achieve what I needed. pip install -d <path_to_my_directory> For the path I used: path_to_epd_directory/lib/python2.7/site-packages This puts the tar.gz file into the site-packages Then extract it using: tar -zxvf pymodule.tar.gz a directory named pymodule is created, cd into that module and type: python setup.py install and that should do the job.

Categories : Python

"The gem ... has been deleted. It was installed at" Error. Bundle install doesn't install gems. How to re-install gems?
This solved it for me: "gem install" and "bundle install" do not install gem dependencies after manual gem deletion. How to inform Rubygems that gems were deleted manually? (Delete the .gemspec files for the gems you have removed).

Categories : Misc

excel access denied with win32 python pywin32
I ended up fixing it for some reason this works, if someone could comment why I would appreciate that. Main thing I changed to open the workbook was the slashes from / to in the pathways. Then I couldn't select the sheet name until I made excel visible. excel.Visible = True wb = excel.Workbooks.Open((excelreport+"Poop.xlsx")) Oddly enough that got rid of the pywins error Also changed how sheets are filled its now cur.execute("Select * from FIRALL") freshdata=list(cur.fetchall()) #writes to the first sheet freshws.Range(freshws.Cells(2,1),freshws.Cells((len(freshdata)+1),len(freshdata[0]))).Value = freshdata Hopefully this helps anyone else who runs into the same issues I did.

Categories : Python

PySide for Python 2.7.2 ImportError DLL load failed on Win32
Solved. I uninstalled everything python & qt (including NINJA-IDE, which uses qt, just in case). I reinstalled python 2.7.5 (was using 2.7.3). I reinstalled PySide-1.2.0.win32-py2.7.exe I can now import PySide.QtCore Somewhere in the past I must have done something that made my interpreter think it knew where to look for a qt file ('QtCore.pyd' perhaps?) and unistalling everything / reinstalling fixed this. That's my guess.

Categories : Python

Win32 Project Generating MFC error
The problem is that one of the headers you're including is including 'afx.h'. The first thing that header does is check to see if _DLL as been defined and if that's present it looks for _AFXDLL and shows this error message if it's not been defined. Here's the relevant bit from afx.h #ifdef _DLL #ifndef _AFXDLL #error Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d] #endif #endif If you don't want to include MFC go to your project properties and under C/C++ -> Advanced switch Show Includes ON to see where afx.h is being included.

Categories : C++

Error "invalid switch in RUBYOPT: -F (RuntimeError)" is shown while install gems by gem install mechanize
I found the reason. Just because there is a space in the installation path of Ruby RUBY EXECUTABLE: "C:/Program Files/Ruby200-x64/bin/ruby.exe" Re-install the Ruby to the path which doesn't contain space, this error will be fixed. And, of course, AutoRun should be removed from HKCUSoftwareMicrosoftCommand Processor and HKLMSoftwareMicrosoftCommand Processor. That's important!

Categories : Ruby

Component install error: JInstaller: :Install: File does not exist
check if you have added this code to your XML: <languages> <language tag="en-GB" client="site">language/en-GB/en-GB.com_helloworld.ini</language> <language tag="en-GB" client="site">language/en-GB/en-GB.com_helloworldt.sys.ini</language> </languages> and: <administration> ... <languages> <language tag="en-GB" client="site">language/en-GB/en-GB.com_helloworld.ini</language> <language tag="en-GB" client="site">language/en-GB/en-GB.com_helloworld.sys.ini</language> </languages> ... </administration> and check if the files are included in your installation ZIP - in right folder, e.g.: language/en-GB/ ... Be aware, the path to the file can be different for

Categories : PHP

Getting error on running build-win32 in Cocos 2dx
I figure out myself, Answer is before I was using Cocos 2dx 2.1.4 and Microsoft Visual Studio Express 2010, I downloaded Cocos 2dx rc0x-2.1.3 and Microsoft Visual studio Ultimate 2012 It worked for me.

Categories : Android

Lua for windows https error: "%1 is not a valid Win32 application"
I had this same problem on Windows 7 64 bit as well, using Alien to load a Windows DLL. The library I was loading (i.e. the DLL) is a 64 bit DLL, but Lua for Windows is a 32 bit application. I have a 32-bit version of the DLL that I loaded instead, and that works. See if you too can find a 32 bit version of your library. As for your problem on 32 bit Windows, that could of course be due to other factors, though if you are using the same 64 bit DLL, I guess that won't work either.

Categories : Windows

Win32 class property data type mismatch error
Your question has the answer, if you go through the documentation it says InstallDate Data type: datetime Access type: Read-only Date and time the object was installed. This property does not need a value to indicate that the object is installed. This property is inherited from CIM_ManagedSystemElement. This property has not been implemented yet. It returns a NULL value by default.

Categories : C#

Kernel crash - unable to handle kernel NULL pointer dereference at 000002c0
This is not exact answer. But I hope guide you some extent. __udp4_lib_rcv+0x16f/0x680 is the trouble maker. offending instruction is 0x16f bytes from the start of the function __udp4_lib_rcv with 0x680 bytes long in total. I suggest to reproduce the issue and investigate in this area.

Categories : C++

Linux Kernel - stoping a running kernel timer from user space
Have you considered trying netlink? It's a powerful method for user-to-kernel (or process-to-process) communication which both simple and lightweight.

Categories : Linux

How to port a linux driver , which is compiled in 2.6 kernel ,without compiling in other new version of kernel
now it's not possible: usually, a "driver" is a binary kernel-module porting will involve code-changes to the kernel module. if you change the code, you need to compile it, in order to get a binary. since kernel modules run in kernel space, it is crucial that they are robust. since parts of the kernel-API change every now and then, trying to use a module compiled for kernel-X with another kernel-Y, might either not load because of missing symbols (if you are lucky) or lead to a kernel panic because semantics have changed. btw, all this is not really related to 2.6.x vs 3.y, but holds true for any kernel version but then: of course in theory it is possible to "write" a kernel-module as binary code in your favourite hex-editor, without resorting to compilers and such. this would allow yo

Categories : Linux

How to load a modified kernel module which is already exist in precompiled kernel
This error shows up because already the bitmap_close_sync symbol is exported by the kernel, again you are trying to re-export the same symbol in md_mod module. Try not to export the symbol, compile and try inserting the module (module should be compiled against the kernel version on which it is inserted). Go through stackoverflow link What will happen if two kernel module export same symbol. Hope it answers your question :-).

Categories : Linux

Are the services offered by the linux kernel implemented as kernel threads?
Some are, some aren't. The terms "process management" and "memory management" are kind of broad and cover a fair bit of kernel code. For memory management, a call to mmap() will just require changing some data structures and can be done by the current thread, but if pages are swapped out it will be done by kswapd, which is a kernel thread. You might consider the scheduler a special case: since the scheduler is responsible for scheduling all threads, it itself is not a thread and does not execute on any thread (otherwise it would need to schedule itself... but how would it schedule itself, if it had to schedule itself first in order to do that?). You might think of the scheduler as running directly on each processor core when necessary.

Categories : Multithreading

Kernel# gets stuck and Kernel#system does not when issuing gzip without any options
The backticks operator implicitly redirects the standard output of the resulting subshell (which it does to capture the subshell's output) while system doesn't. You can observe the same hang using system as follows: system('gzip > /tmp/foo') This explicitly captures standard output and will hang in the same way. When gzip has its output redirected it will wait for input until an EOF or other signal is received. Without output redirection it will issue the error message you mention. You can get the same effect from a regular bash shell: $ gzip gzip: compressed data not written to a terminal. Use -f to force compression. For help, type: gzip -h And: $ gzip > /tmp/foo ... Where ... indicates that gzip will hang until it receives an appropriate signal.

Categories : Ruby

Can we only recompile a kernel module in kernel source tree?
Probably linux kernel 2.6.32.el6 has been compiled with modversions but your module was compiled without it. Check if you have CONFIG_MODVERSIONS selected or deselected in your kernel config file. Compare it with /proc/.config file which is the kernel confguration file - of course if you have it. In other words - probably your linux kernel requires that modules supports versioning, but your module doesn't provide it.

Categories : C

I there a microsoft resource for translated Windows Winapi/Win32/system error messages?
There is none that I know of. However, you can build your own using the FormatMessage API. You need to supply the error code as the dwMessageId and provide the desired LANGID.

Categories : Windows

Display kernel error
In C++, do something like: int ErrorCode = 0; cl_program P; cl_device_id D; size_t LogSize; cl_build_status BuildStatus; //Configure OpenCL //Load Program Here //Compile Program here //Check the status of compilation ErrorCode = clGetProgramBuildInfo(P, D, CL_PROGRAM_BUILD_STATUS, NULL, NULL, &BuildStatus); if(BuildStatus == CL_BUILD_ERROR){ //Fetch Error ErrorCode = clGetProgramBuildInfo(P, D, CL_PROGRAM_BUILD_LOG, NULL, NULL, &LogSize); char Log = new Log[LogSize]; //Or use Malloc if in C ErrorCode = clGetProgramBuildInfo(P, D, CL_PROGRAM_BUILD_LOG, LogSize, Log, NULL); //Display Error Code here, close out OpenCL, try again, etc }

Categories : Gcc

Gaussian kernel density estimation with fixed covariance (with python)
From my comments: Generally, for density estimation, the gaussian involved serves as a "window" function, and the "covariance" of that window (effectively the bandwidth parameter in a 1-D case) is just meant to control how the window's response falls off as a function of distance for the point-under-test. I am not familiar with any KDE procedure that seeks to use a specific multivariate covariance structure for this window-fall-off effect. I would also guess that the most complicated such 'covariance' that would be advisable in practice would be a diagonal matrix where you just used a different bandwidth parameter for each dimension of the data. Maybe (and it's a very tenuous maybe) you could do some kind of PCA breakdown of the principle directions of your data and put the different ban

Categories : Machine Learning

Getting error in android Kernel compilation
actually the kernel 3.4 requires toolchain version 4.7 for correct compilation. Download the ndk from here developer.android.com/tools/sdk/ndk/index.html and then point to newly downloaded toolchain with command: CROSS_COMPILE=(your_download_location)/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/arm-linux-androideabi- And its done.

Categories : Android

Kernel failed error while using CUDA 5.5 on Mac OS X
So the problem was that I was having a divide by zero error caused due to very less values (near to zero) in temp for particular values of distance, u and V and this was causing the divide by zero error in glm::normalize. I solved this by checking for the values of temp before normalizing it and only normalized temp if it was above a given threshold. That solved the problem.

Categories : C++

unwind_frame cause a kernel paging error
This bug was fixed by Konstantin Khlebnikov, details can be found in git commit log.

Categories : C

static lib call error: Exception: "A null reference pointer was passed to the stub." (using winsock2 Win32)
I was getting this exception "0x000006F4: A null reference pointer was passed to the stub." Turns out disabling my 3rd party firewall stopped the exception being thrown. Perhaps the firewall is intercepting the request and messing something up. Might be worth a try for you :)

Categories : C++

preventing addition of system Python path to virtualenv easy-install.pth by python setup.py develop
When you do python setup.py develop That ^ python that you are using to run setup.py is not necessarily associated with the virtual environment. You need to ensure that you are running the virtualenv's version of python by navigating directly to python.exe in your virtual environment and using that to run setup.py. Alternatively you can just call activate.bat in your scripts folder and it will do it all for you, ensuring that nothing outside of the virtual environment is used. edit if you are certain that you are using the virtualenv's python.exe please ensure that when you created the virtual env you used the --no-site-packages flag virtualenv --no-site-packages myEnv edit2 the --no-site-packages seems to have been OP's problem

Categories : Python

Install python module to non default version of python using .sh
You should run your scripts in a virtualenv created for your app's environment. This creates an isolated environment that uses the Python interpreter you created the virtualenv with, but with its own set of libraries. # create the virtualenv folder: M2Crypto-venv python2.7 virtualenv.py --distribute M2Crypto-venv # activate the virtualenv, changing environment variables to use its Python interpreter . M2Crypto-venv/bin/activate # see how the current python has changed which python # should be M2Crypto-venv/bin/python python --version # should be 2.7 # after activating, run your install scripts If you're using mod_wsgi or something similar to serve content, you'll want to modify your WSGI file to activate the virtualenv before doing anything else (adapted from mod_wsgi instr

Categories : Python

Programatically install Python msi application from a Python script
Normally every well designed MSI can be installed silently. The given standard command line should be tried out, other optional parameters maybe TARGETDIR for the directory etc. The msiexec parameters "/quiet" and "/qn" do the same, don't use them both. The main problem in your case is about admin rights. A script normally does not run with admin rights, if you have not done special things (like adding/changing manual manifests). If you just use the parameter "/qb" instead of "/qn" normally MSI should come up with UAC. Try it out first, it's the easiest (maybe not the absolutely best) solution. Not silent, but unattended installation, may be sufficient for you. Or even "/qb+" then you get a final box too. To start an installation (or everything else requiring admin rights) from a script

Categories : Python

Install OpenCV for Python (multiple python versions)
Use virtualenv virtualenv -p python2.7 env source env/bin/activate python --version # prints «Python 2.7.3» pip install pyopencv If you need support of 2.4 (or other version), just create new environment.

Categories : Python

android kernel source code compilation error
Do you have the path of ARCH=ARM and TOOLCHAIN pointing to the toolchain in prebuilts folder? make ARCH=ARM TOOLCHAIN=<homeofAOSP>prebuilt.. herring_defconfig make clean before you do the make

Categories : Android

Got error: No rule to make target while compiling linux Kernel
To build the Linux kernel for Ubuntu, one can obtain the proper patched sources by running the command, sudo apt-get install linux-source (on older versions of Ubuntu, the package name was linux-tree) The sources are installed in /usr/src/linux-source-<version-num>/.

Categories : Linux



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.