Archive

Author Archive

DD-WRT firewall

March 10th, 2010 karlosp No comments

iptables -I FORWARD -i br0 -o vlan4 -j DROP
iptables -I FORWARD -i vlan4 -o br0 -j DROP
iptables -I FORWARD -i br0 -o vlan3 -j DROP
iptables -I FORWARD -i vlan3 -o br0 -j DROP
iptables -I FORWARD -i br0 -o vlan2 -j DROP
iptables -I FORWARD -i vlan2 -o br0 -j DROP

Categories: Malo mešano Tags:

DD-WRT Tutorial 2: Extend Range with WDS – www.wi-fiplanet.com

February 22nd, 2010 karlosp No comments

DD-WRT Tutorial 2: Extend Range with WDS

via DD-WRT Tutorial 2: Extend Range with WDS – www.wi-fiplanet.com.

Categories: Malo mešano Tags:

webdeveloper.jar

February 22nd, 2010 karlosp No comments
Categories: Malo mešano Tags:

Multiple WLANs – DD-WRT Wiki

February 14th, 2010 karlosp No comments
Categories: Linux, Wireless Tags:

PHP & JavaScript -> XML communication

January 26th, 2010 karlosp No comments


PHP:
  1. function unicode_urldecode($url) {
  2.     preg_match_all('/%u([[:alnum:]]{4})/', $url, $a);
  3.  
  4.     foreach ($a[1] as $uniord) {
  5.        $utf = '&#x' . $uniord . ';';
  6.        $url = str_replace('%u'.$uniord, $utf, $url);
  7.     }   
  8.     return urldecode($url);
  9. }

Usage:

PHP:
  1. $content = unicode_urldecode($_GET['content']);

Categories: php_mysql Tags:

USB AVERMEDIA AverTV Hybrid Volar HD

January 20th, 2010 karlosp No comments

USB digitalni sprejemnik

AVERMEDIA AverTV Hybrid Volar HD

Categories: Malo mešano Tags:

Nero 6 : Nero BurnRights allows non-administrator users to burn CDs

January 16th, 2010 karlosp No comments
Categories: Malo mešano Tags:

Download MP3’s from wrzuta.pl

January 10th, 2010 karlosp No comments
Categories: Greasemonkey scripts Tags:

UTF-8 and apache – mysql – php

December 16th, 2009 karlosp No comments

Settings a LAMP server to work in full unicode UTF-8 :

httpd.conf:

CODE:
  1. AddCharset UTF-8 .utf8
  2. AddDefaultCharset UTF-8

php.ini

CODE:
  1. default_charset = "utf-8"

my.cnf

CODE:
  1. character-set-server=utf8 default-collation=utf8_unicode_ci

In all your PHP scripts :

CODE:
  1. mysql_query("SET NAMES 'utf8';",$con);

Importing database :

CODE:
  1. mysql -h host -u username -p password --default_character_set utf8 database <file.sql

Dont forget to add UTF-8 in the head of all your HTML files :

CODE:
  1. <meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot;/>

Categories: php_mysql Tags:

Word 2007: How to insert page numbers in word starting from page 3?

December 16th, 2009 karlosp 1 comment

In Word 2007:

1. Click at the top of the first page you want numbered.

2. Click the Page Layout tab on the Ribbon.

3. Click the Breaks icon in the Page Setup group.

4. Insert a Next Page type section break.

5. Click on the Insert tab on the Ribbon.

6. Click the Header icon and select Edit Header.

7. Deselect Link To Previous in the Design tab that appeared on the Ribbon.

8. Go back to the Insert tab and repeat Steps 5 to 7 for the Footer.

9. If there&apos;s a page number in the header or footer for the first section, delete it.

10. Go into the second section.

11. On the Design tab again, click the Page Number icon

12. Click Format Page Numbers.

13. If you want the first section’s page numbers to count but not show, click Continuous.

14. Or, if you want the page numbering to start at one, click Start At. A 1 should show up in the list box adjacent to it.

15. Click OK.

16. Click OK to actually insert the page number.

via How to insert page numbers in word starting from page 3? - Yahoo! Answers.

Categories: word 2007 Tags:

How can I automatically update cross-references in word 2007

December 14th, 2009 karlosp No comments

Select the whole document (Ctrl-A) and update the Fields (F9).

Categories: Malo mešano Tags:

IEEE sklicevanje v Wordu

December 14th, 2009 karlosp No comments

IEEE.XLS  copy/paste to C:\Program Files\Microsoft Office\Office12\Bibliography\Style

Categories: Malo mešano Tags:

Remove all leading line numbers from http://validator.w3.org/

November 28th, 2009 karlosp No comments

Remove all leading line numbers from http://validator.w3.org/

 

CODE:
  1. ^ *\d+\. *

Categories: Regex Tags:
71450 pages viewed, 301 today
38422 visits, 136 today
FireStats icon Powered by FireStats