Advanced search

43 search results

Page 1 out of 3 Pages

  • filesystemy: konverze jmen souborů na malá písmena - vč. podadresářů
    Answer: perl -MFile::Find -e 'finddepth(sub{rename $_,lc $_},".")' ...
  • filesystemy: chmod wildcard
    Answer: chmod 600 `find /home/public/backup/ -name '*.tgz' -print` ...
  • php: php: get IP address even if client is behind proxy
    Answer: if (getenv("HTTP_CLIENT_IP")) { $ip = getenv("HTTP_CLIENT_IP"); } elseif (getenv("HTTP_X_FORWARDED_FOR")) { $ip = getenv("HTTP_X_FORWARDED_FOR"); } elseif (getenv("REMOTE_ADDR")) { $ip ...
  • filesystemy: kopie partition s vadnými sektory pomocí dd
    Answer: http://www.dolezel.info/navody/zachrana-dat-z-poskozeneho-diskuhttp://www.unixwiz.net/techtips/recovering-ext2.html Copying a drive is usually done with the dd command, but a few non-obvious options are required in order for this: # dd if=/dev/hdb of=/dev/hdd bs=512 ...
  • windows: tisk z Vista na tiskarnu sdilenou na Windows XP
    Answer: Podle: http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1216076&SiteID=17 I had the same problem. I found a solution. Logically it makes no sense to me, but it worked so... Go to Control Panel. Choose printer. ...
  • filesystemy: find
    Answer: # najít soubory na aktuálním filesystému, > 20 ...
  • qmail / sendmail / MTA: clamav a qmail-scanner
    Answer: Bezny postup - spustit clamav pod uzivatelem qscand = neprakticke, pri aktualizacich se uzivatel prepise zpet... Podle textu: http://qmail.jms1.net/clamav-qms.shtml Uprava qmail-scanner-queue.pl tak, aby fungoval s uzivatelem clamav/spamd: 1) pridat ...
  • qmail / sendmail / MTA: courier-imap and authvchkpw module (debian)
    Answer: Current debian courier-authlib packages doesn't support authvchkpw. Namely courier-authlib-0.60.4 and newer. According to: http://forum.qmailrocks.org/showthread.php?t=5200 first compile /downloads/qmailrocks/courier-authlib-0.55 (./configure, make) or ...
  • oscommerce: oscommerce - nefcni login do administrace v 3.0A3 + php > 5.05
    Answer: http://svn.oscommerce.com/fisheye/changelog/osCommerce/?cs=1107merge from hpdl r1106; Since PHP 5.0.5 the session handler cannot use objects as the objects are destroyed beforehand; using register_shutdown_function() fixes thisza: array(&$this, '_gc'));dopsat:register_shutdown_function('session_write_close'); ...
  • bash: zaměnit text ve více souborech
    Answer: #!/bin/bash for file in ´ls ./includes/*.inc´ ; do sed -e 's/iso-8859-2/utf-8/g' "$file" > tmp_file mv tmp_file "$file" done jednoduchy skript, ktery zmeni kodovani vsech ...
  • filesystemy: přejmenovat příponu souborů (.mod -> .mpg)
    Answer: find . -name '*.mod' | sed 's/\(.*\)\.mod/mv & \1.mpg/' | sh ...
  • oscommerce: oscommerce - set mysql database codepage to utf8
    Answer: oscommerce 2.2 file includes/functions/database.php - after line if ($$link) mysql_select_db($database); add line: mysql_query("SET NAMES utf8;",$$link); oscommerce 3.x file includes/classes/database/mysqli.php - after lines if ( version_compare(mysqli_get_server_info($this->link), '5.0.2') >= 0 ) { ...
  • oscommerce: oscommerce - prechod z php4/mysql4 na php5/mysql5
    Answer: Warning: htmlspecialchars() expects parameter 1 to be string, array given in .../includes/functions/general.php on line 42 In catalog\includes\functions\general.php find in tep_address_format: } elseif (isset($address['country']) && tep_not_null($address['country'])) { $country = ...
  • php: pripojeni php na MS SQL Server 2005
    Answer: apt-get install php-pear pear list pear install MDB2 pred pokracovanim je treba mit nainstalovano php mssql extension v debianu staci: apt-get install php5-sybase v ubuntu (Feisty) je potreba php-mssql zkompilovat: clanek ...
  • cli: vypsat seznam vsech nainstalovanych balicku
    Answer: oddelene carkou: dpkg-query -W -f='${Package}, ' | sed 's/\, $//' oddelene mezerou: dpkg-query -W -f='${Package} ' | sed 's/\ $//' ...
  • ostatní: convert videos using ffmpeg (avi to flv, mpg to 3gp)
    Answer: error: Unknown encoder 'mp3' or Unknown encoder 'libmp3lame' fix: sudo apt-get install libavcodec-unstripped-52 #!/bin/bash # avi to flv fname=test.avi # ...
  • qmail / sendmail / MTA: CNAME lookup failed temporarily. (#4.4.3)
    Answer: according to: http://www.faqts.com/knowledge_base/view.phtml/aid/28942/fid/284 solution should be to install and configure local dnscache The cause of this problem is as follows: "qmail-remote" wants to perform "CNAME" lookups of the ...
  • ubuntu / debian: UDF 2.5 driver for Ubuntu 8.04 Hardy Heron
    Answer: Windows vista writes DVD's using UDF 2.5 iso-13346, but Hardy UDF driver (kernel module) doesn't support UDF 2.5. Let's compile better one :-) According to http://ubuntuforums.org/showthread.php?t=915797: sudo ...
  • apache: Administration v3.0A5: upload of images with uppercase (capital) extension doesn't work.
    Answer: /shop/admin/includes/classes/image.php change line 62 from: switch (substr($image, (strrpos($image, '.')+1))) { to switch (strtolower(substr($image, (strrpos($image, '.')+1)))) { ...
  • virtualizace: VMware ESXi SSH CLI commands
    Answer: According to: VMware ESXi SSH CLI commands VMware ESX and ESXi Scripts & Resources vim-cmd vmsvc/getallvms Lists all vm's running on hypervisor and provides vmid vim-cmd vmsvc/power.off vmid Powers off ...

The most popular searches are: