w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
What is changelog.Debian.gz file during debian packaging?
When packing in debian, inside your project directory there's a directory named debian, which is where we keep files regarding instructions of how to pack your software, as well as relations with other packages, etc. We can call it you package control files. Among them, there's one called changelog, which looks like this: mypackage (version-revision) unstable; urgency=low * Changelog messages -- Your Name <your@email.com> Mon, 13 Aug 2012 14:09:01 -0300 (...) This file is used by the packaging software (dpkg-buildpackage) to know the name and version of your package. It also has info like the mantainer, changelogs, etc. After you build the package and install it, this file will be located at /usr/share/doc/mypackage/changelog.Debian.gz compressed in gzip format. You can che

Categories : C++

.NET application memory usage - high unused .NET and unmanaged memory and fragmentation
As Alex already pointed out a very nice explanation of the problem class large object heap fragmentation is found here: https://www.simple-talk.com/dotnet/.net-framework/the-dangers-of-the-large-object-heap/ The problem is well known in the .NET FX Dev Team and continuously been worked at. There is a good chance that the symptoms fade off using more recent FX releases. Starting with .NET 4.5.1 there will be a GC method call to even compact the LOH: http://blogs.msdn.com/b/mariohewardt/archive/2013/06/26/no-more-memory-fragmentation-on-the-large-object-heap.aspx However, finding the root cause of the LOHF would be way more efficient than just wiping it of the heap wasting tons of ms's Let me know, if you need further details how to isolate such effects. Seb

Categories : Dotnet

High non-mapped virtual memory for mongodb
I investigated and had some strong indications that the issue was related to using rockmongo. I launched a private support ticket with 10gen and they found that the issue was indeed rockmongo related. Apparently it uses a lot of eval() calls which spawn a server side V8 javascript engine requiring a lot of memory. I filed a bug-report with rockmongo.

Categories : Mongodb

.NET - high memory usage by clr.dll and native heaps
Use !dumpheap -stat at each stage. You may be able to find which type is getting increased drastically at each stage. On those objects use !gcroot <"addr"> to find which object is holding it from getting garbage collected.

Categories : Dotnet

Linux free shows high memory usage but top does not
Don't look at the "Mem" line, look at the one below it. The Linux kernel consumes as much memory as it can to provide the I/O cache (and other non-critical buffers, but the cache is going to be most of this usage). This memory is relinquished to processes when they request it. The "-/+ buffers/cache" line is showing you the adjusted values after the I/O cache is accounted for, that is, the amount of memory used by processes and the amount available to processes (in this case, 578MB used and 7411MB free). The difference of used memory between the "Mem" and "-/+ buffers/cache" line shows you how much is in use by the kernel for the purposes of caching: 7734MB - 578MB = 7156MB in the I/O cache. If processes need this memory, the kernel will simply shrink the size of the I/O cache.

Categories : Linux

Why doesn't this item get removed from the cache when memory usage is high?
I would expect the CacheItemRemoveCallback to be fired Why do you expect that? I'd expect you to get an OutOfMemoryException fairly quickly on a 32-bit machine (*) - after a minute or so, by which time you'll have approx 1.2GB in your list. (*) unless the OS is started with the /3GB switch, in which case it will behave similarly to a 32-bit process on a 64-bit machine. On a 64-bit machine, your request will time when the a default of 90 seconds, by which time it will have added 90*200 = 1800 items = approx 1.8GB to your static list. A 64-bit process will handle this, and probably a 32-bit process would be able to do so on a 64-bit machine if it is LARGEADDRESSAWARE, which is definitely the case for IIS; not sure about Cassini. Also, ISS would probably recycle your application do

Categories : Asp Net

Excessively high memory usage in .NET MVC/Entity Framework application
We are automatically assuming that the problem is the EF. Can be, can be not. There are a lots of points that we should take care, not only data access infrastructure. With data access issued, as you are using only EF, you can gain fast improvement using simple .AsNoTracking() method. Adopt a ServiceLocator to help you manage your contexts pool. You can also user Dapper, instead of EF, in ReadOnly situations. And for last, but not least, use pure ADO.NET, for the more complex queries and a fastest execution. Refactor your ActionFilters to avoid using some "BaseController" that all controllers inherits is a good practice either. Check if your IDisposable classes are truly being supressed by CG, adopting the .Dispose(bool) pattern. Be sure that you are not persisting cache variables fo

Categories : Asp Net Mvc

Phonegap app uses high RAM because filereader() and change loaded pics to white instead because of memory usage
1000 images of those dimensions is a significant amount of data so will take a significant amount of RAM. Do you really need all 1000 to be in memory at the same time? Without knowing the user interface layout and use case requirements for your app I'm just speculating, but could you not, for example, load each image on demand asynchronously as it needs to be displayed? Or if the delay in reading the image from the file system creates an unacceptable delay in displaying it, you could pre-load just some of the images, for example if they are in a sequence, then just have a couple in memory either side of the currently displayed image.

Categories : Cordova

Can't cd via ssh script - Debian
If WinSCP is in text or auto transfer mode the End-of-line characters setting in the Environment dialog might have kicked in, possibly altering your linebreaks.

Categories : Shell

Debian - GIT upgrade from 1.5 to 1.7
You are running a very old version of Debian (version 5). It is not even supported, so maybe consider upgrading it. Otherwise, you may get away with just building a later git version yourself.

Categories : Linux

Laravel 4 on Debian 6
5.3.3 maybe was de last estable, not de last version supported. You can install manually following this guide: http://davejamesmiller.com/blog/installing-php-5-4-on-debian-6-squeeze

Categories : PHP

.jar doesnt run on debian
if you are using eclipse then first clean all files using following steps project->clean->select clean all -> and then click on after that right click on your project Export->click on Runnable jar->click next next and then finish Problem will be solve.

Categories : Java

How can I install qt5 to Debian using commandline?
You should be able to run the qt-installer in a decent debian version. Get Version by: cat /etc/issue On older versions or "unsupported" versions you can still download the sources and build the libraries yourself, which is probably your way to go, since the vortex86-builds are pretty limited in compiler flags. Compiling is rather easy, depending on your needs. The configure script itself gives you a lot of hints regarding possible flags. Another alternative is to find a user-managed repository that has QT5 for your debian version and add this repository to your sources.lst, so you could perform a apt-get install libqt5.

Categories : Qt

RewriteRule on Debian to shorten an URL
Include the full domain name in the substitution: RewriteRule ^/mon/all/?$ http://10.0.11.11:8089/monitorix-cgi/monitorix.cgi?mode=multihost.all&graph=all&when=1day&color=black [NC,L] (I've tested this). For the benefit of others reading this, the /?$ in the pattern means you match either /mon/all or /mon/all/ but nothing afterwards; the question mark makes the preceding token - the closing forward-slash - optional, the $ indicates the end of the string. Tip: Use RewriteLogLevel to see exactly what's happening when you're testing rewrite rules (remember to turn it off afterwards) - in particular look for 'matched' and 'not-matched' at the end of the line.

Categories : Apache

Installing nodejs on Debian 6
I don't know the steps you took to compile from source. This is what I used and It worked well on multiple servers: sudo apt-get install git build-essential sudo apt-get install wget wget (link to node.js source -> found on nodejs.org/download/) tar xvf node(press tab to auto load the version you're on) pushd node(again, use tab) ./configure make sudo make install TO TEST: node 0.1 + 0.2 You should receive a response. All set.

Categories : Node Js

PHP network monitoring debian
The info you need is in /proc/net/dev # cat /proc/net/dev Inter-| Receive | Transmit face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed lo: 177937 1304 0 0 0 0 0 0 177937 1304 0 0 0 0 0 0 eth0:16268834 14619 0 0 0 10091 0 0 1201136 10555 20 0 0 0 0 0 For the transfer rate you will have to calculate the delta from the previous capture but the value will be approximate.

Categories : PHP

Mongodb failing on Debian
I had the exact same error message, what helped for me was commenting out every loopback (127.0.0.1, ::1) entries from my /etc/hosts file. Typically something like this: 127.0.0.1 localhost ::1 localhost Then try starting the server. If that doesn't help, please paste your MongoDB log. cat /var/log/mongodb/mongodb.log

Categories : Mongodb

Opscenter 3.2.x not working on Debian 7
This is a known issue, but the workaround is documented here: http://www.datastax.com/documentation/opscenter/3.2/webhelp/#opsc/troubleshooting/opscTroubleshooting_g.html#topic_opsc_troubleshooting See the section relating to that import error.

Categories : Cassandra

installing libssl0.9.8 on debian 7
On Debian 7 you can find only libssl1.0.0, but libssl0.9.8 is part of debian 6 (squeeze). You can get the packet from here and manually install it with a command like dpkg -i libssl0.9.8_0.9.8o-4squeeze14_i386.deb For 64 bits architecture, you need the 32 bits libc and zlib1g binaries before installing it, because utorrent binaries are actually available for 32 bits only. In order to add them you need to add i386 architecture dpkg --add-architecture i386, add [arch=amd64,i386] to repositories in /etc/apt/sources.list. For details, see http://wiki.debian.org/Multiarch/HOWTO. You then need to run apt-get update; apt-get install libc6:i386 zlib1g:i386

Categories : Linux

nginx 403 forbidden under Debian 7
Your issue is that http://localhost/install passes by the second rule of the try_files which is $uri/ so it tries to access install as a folder, but you don't have autoindex on, so it fails with a forbidden error. try_files $uri $uri/ /index.php?$args; I suggest removing the $uri/ part. try_files $uri /index.php?$args;

Categories : Nginx

Boot Debian with Android
You can use Script Manager (https://play.google.com/store/apps/details?id=os.tools.scriptmanager) to run script with the following contents at boot: #!/system/bin/sh deb s Use your own parameters to "deb" to launch whatever service you need. In this case I've started the ssh server.

Categories : Android

Debian apache2 overflow
Please have a look at the apache wiki regarding this dummy connections http://wiki.apache.org/httpd/InternalDummyConnection Please revise your settings for MinSpareServers and MaxSpareServers.

Categories : Linux

Debian - default ip per user?
you could use a crafty firewall that marks packages originating from processes owned by a given user and then rewrites packages accordingly, as described here.

Categories : Sockets

Installing Java EE 7 SDK on Debian 7.1.0
Don't download the package from Oracle. Try the ubuntu package like so. $ echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list $ echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list $ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 $ apt-get update $ apt-get install oracle-java7-installer You may as well use the update-alternatives tool from java-common package which let you update all alternatives belonging to one runtime or development kit at a time. $ sudo update-java-alternatives -l $ sudo update-java-alternatives -s j2sdk1.7-oracle More info here https://wiki.debian.org/JavaPackage

Categories : Java

Cannot receive emails from Debian server
You can't send emails from local server directly You can take a look at this question Send email from localhost localhost term means it's not equipped with mail capability even though you can try this code to know if it has built in mail server or not if (mail('email address','subject','message') === true){ echo 'SENT'; }else{ echo 'NOT SENT'; }

Categories : PHP

Compiling Kernel on Debian Wheezy
The -j4 argument to make-kpkg (which gets passed to the underlying make) only sets the number of parallel compilation processes during the kernel build (and has no influence on the produced kernel packages). And it does not matter that much (so -j4 or -j8 won't make a very big difference in term of build time). I often pass only -j3 to leave a core available to other processes (e.g. my web surfing or my email reading during the kernel compilation). Also, some part of make-kpkg is intrinsically serial and cannot be parallelized (some tar running....) And you could even remove the -j4 (same as -j1): kernel build time will increase, but your machine will be more responsive during it PS: you don't need both sudo and fakeroot if the parent directory (..) is user-writable. It will contain th

Categories : Linux

Debian: Syslog - Create a own log file
Two issues come to my mind regarding your problem: # 1 Have you restarted the sysklogd server after adding your application to the /etc/rsyslog.conf? /etc/init.d/sysklogd restart # 2 How is your php configured to log? -> php.ini error_log = syslog

Categories : PHP

How do I install PHP5.4.16 on Debian Wheezy?
You're targeting too specific a version. Repositories won't routinely keep multiple builds of the same package around, so a specific build like 5.4.16-1~dotdeb.1 will be superseded by newer builds. At the moment, listing the files on the repository shows a build of 5.4.19-1~dotdeb.1, but really all you want is to select the latest version of PHP 5.4, and let APT update it in the normal way. If the dotdeb packages are for newer versions of PHP than any other repositories you have installed, it will be the default anyway, so you can just run: apt-get install php5-fpm

Categories : PHP

debian packaging - cmake project
dh command will automatically detect the buildsystem. I recommend you to check the man pages of dh. man dh You can try this code in your debian/rules file. #!/usr/bin/make -f %: dh $@ --sourcedirectory=src1 dh $@ --sourcedirectory=src2 Indent the dh lines with tabs, not with spaces because of makefile syntax.

Categories : Ubuntu

Python ssl login hanging on Debian
So things look ok on Fedora: [bharrington@leviathan ~]$ python Python 2.7.5 (default, Aug 22 2013, 09:31:58) [GCC 4.8.1 20130603 (Red Hat 4.8.1-1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mechanize >>> br = mechanize.Browser() >>> br.open("https://wwws.mint.com/login.event") <response_seek_wrapper at 0x29b6440 whose wrapped object = <closeable_response at 0x29b6320 whose fp = <socket._fileobject object at 0x298d150>>> >>> br.title() 'Mint > Start Here' >>> Which leads me to wonder about the SSL/OpenSSL libraries in use. Just to test it out can you run from the command line: $ openssl s_client -connect wwws.mint.com:443 You should see the SSL certificate for mint di

Categories : Python

MySQL 5.6 install on debian ERROR:
I might not be able to help with the error you're getting. But apt-get install -f mysql-server-5.5 worked for me on Debian Wheezy. Try replacing 5.5 with 5.6 and see if it works as well, and probably precede it with sudo.

Categories : Mysql

Install experimental package on debian
Add deb http://ftp.debian.org/debian experimental main contrib non-free to your /etc/apt/sources.list or into /etc/apt/sources.list.d/experimental.list then execute apt-get update apt-get -t experimental install deluge See Debian Wiki

Categories : Linux

Importing Debian Bugs to Launchpad
I don't think there is any automation here; Debian bugs aren't automatically imported into Launchpad. However, if you specify the Debain bug number in a Launchpad bug, then the Debian bug status is tracked in Launchpad.

Categories : Ubuntu

amazon debian AMI user data
In fact, the user-data script is executed only one time. If you create a AMI based on the Debian marketplace AMI, when you'll launch your "custom" AMI, the user-data has already been executed when you have started the Debian base AMI. If you want that the user-data will be executed on a custom AMI, you must change the insserv for the init.d ec2-run-user-data: sudo -i insserv -d ec2-run-user-data And now you can create an AMI. Matt

Categories : Amazon

chromedriver doesn't run in debian wheezy
@AnonymousLurker: Someone complained about this problem over on the google code page: https://code.google.com/p/chromedriver/issues/detail?id=454 Reason I'm mentioning it here, is because someone else on the thread actually got a clean build (32bit Release) for Debian Wheezy, which you can still download here (as of Nov. 9). I've got it working on my own personal jenkins server (Debian GNU/Linux 7.2 (wheezy) 64bit).

Categories : Python

Compiling and Installing Yate from SVN on Debian
the easy way to fix this, is to run it as root. this seems ok, as the later steps seem to require root privileges as well. in general it might be possible to run the commands as a normal user in another directory.

Categories : Linux

Installing laravel and composer on Debian 6
$ curl -sS https://getcomposer.org/installer | php $ mv composer.phar /usr/local/bin/composer # if you're installing as root or privileged account, don't leave the permissions on default 777 $ chmod 755 /usr/local/bin/composer $ composer install

Categories : Laravel

Cannot start Jenkins on port 80 on debian 7
I have the same problem, and I found out that you can't listen to ports below 1024 without root privileges. There are couple of things we can do but I think the safest one is: Redirect port 80 to 8080 with iptables # iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080 Besides that, you can run jenkins as root, by chown and chmod but I think that can be dangerous. The other possibilites are covered here: http://serverfault.com/questions/112795/how-can-i-run-a-server-on-linux-on-port-80-as-a-normal-user

Categories : Linux

load xml to mysql under debian linux
The XML file you are trying to import is not formatted using a schema that MySQL knows how to import. You will need to convert it yourself. The formats that MySQL will recognize are defined here: http://dev.mysql.com/doc/refman/5.5/en/load-xml.html

Categories : Mysql

Can't install Capybara-Webkit on Debian
My initial guess was that the gem's build script couldn't properly locate my qmake for whatever reason and I think that might have had something to do with it as doing export QMAKE=/usr/bin/qmake-qt4 seemed to resolve the issue. If you are a debian user and cannot get this gem to install, try giving these steps a shot. I've not tested out which ones are not required on a clean system but after doing all of them I was able to install the gem. sudo apt-get install libqtwebkit-dev qt4-dev-tools libqt4-dev libqt4-core libqt4-gui qmake-qt4 export QMAKE=/usr/bin/qmake-qt4 gem install capybara-webkit That seems to have done the trick for me.

Categories : Ruby On Rails



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