I’m working with some existing software that I cannot change, and it loads its config data from a bunch of config files, all following the same naming scheme – let’s say, file_param1.conf, file_param2.conf, file_param3.conf etc. The difference between the content of the files is just param1 …
numpy.memmap: bogus memory allocation
I have a python3 script that operates with numpy.memmap arrays. It writes an array to newly generated temporary file that is located in /tmp: The size of the HDD is only 250G. Nevertheless, it can somehow generate 10T large files in /tmp, and the corresponding array still seems to be accessible. The output of…
Websphere jdk upgrade
I have installed ibm jdk(1.8) in my linux system. I have installed WebSphere ND 8.5.5.7 in the same system. Now I want the WebSphere jdk to be upgraded to 1.8. For that I need to run managesdk command. So , I checked this link https://www-01.ibm.com/support/knowledgecenter/SSWSR9_11.5.0/com.ibm.swg.im.mdmhs.r…
Speeding up gcc compile of a single file
Running RedHat7 w/g++ version 4.8.3 w/j5 arg and o3 optimization. We currently have a file that is approx 90,000 lines long (a whole bunch of wrapper functions). The compile of this file currently takes between 30 and 40 mins. What is the best strategy to speed this build time? Would build time increase if it…
Login script using Python and SQLite
I’m trying to create a login script using SQLite to store the user data. Any ideas on how to to that? I have research over hours and found nothing of the kind. I would appreciate any help! 🙂 This is what I got so far: But it always returns Login failed… I want to check the input “user”…
bash hiding default stderr code and replacing it with my own
When I use ping foo.com I either get a response or ping: unknown host foo.com I am using this script to show custom responses the problem with the above is that, if site is found I get site found response, but if not instead of the error message, I get the default ping: unknown host foo.com UPDATED. . Answer …
MinGW DLL project compatability with linux
I’ve recently created a DLL project using the MinGW (4.8.1) compiler through the CodeBlocks IDE, and in the debugging output folder I have: my “.dll” (“AttribRdr.dll” in this case) file with an Export Definition File and finally a “.a” file (“libAttribRdr.a̶…
TCP/IP connection to the host localhost port 1487 has failed – Linux 32 bit
I try to connect to a mySql localhost database. I checked the port 1487 and is open for connection. Many solutions suggest to open SQL Server Configuration Manager, but there is no such thing in Ubuntu 14.04. I tried to install Microsoft ODBC Driver 11 for SQL Server on Linux, but it’s only for 64 bit s…
How to print value of C macro in configure
I have configure.in script. I want to invoke configure ( after autoheader && autoconf ) and see value of PAGE_SHIFT macro from system header page_types.h. Something like this: checking PAGE_SHIFT… 12 I’ve tried those: 1. Result: macro PAGE_SHIFT was detected, but haven’t been printed…
c program works on windows take segmantation fault on linux
I wrote some c code on codeblocks. It works perfectly fine on Windows but gave segmantation fault on Linux. Why ? This is main. I used 3 libraries and opencells method calls a recursive method. Answer Change: (int) to (int*) Because sizeof(int) and sizeof(int*) maybe different, so your program maybe crashed w…