Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /data/e/7/e76990b9-3372-4d88-8089-fce36e16744a/webperfection.net/sub/rady-nosu/wp-content/plugins/seo-ultimate/modules/class.su-module.php on line 1195
Real Solution for Your Problem! - Page 7

Unsupported API – not available

seems that google api is out

google.com/ig/api?weather

if u dont, wrap simplexml_load_string in try/catch in php and use user error handling for xml:

try { $data = simplexml_load_string(...); catch( Exception $e ) { // error // do something with this $data }

real example:

... method ... $data = @file_get_contents($this->getApiUrl("", "Slovakia")); if(!$data) { return false; }; $data = iconv("ISO-8859-2", 'utf-8', $data); // enable user error handling libxml_use_internal_errors(true); // load the document $doc = new DOMDocument; if (!$doc->load($data)) { libxml_clear_errors(); return false; } try { $xmlData = new SimpleXMLElement($data); } catch (Exception $e) { return false; } return true; ... end method ...

or simple:

libxml_use_internal_errors(true); try{ $xmlObject = new SimpleXMLElement($wrongFormedText); } catch (Exception $e){ return false; }

1. always use error reporting 0!
2. do not dispaly ANY error on production!
2. wrap all your services for error handling

Share This:

  • Comments Off on google weather unsupported api – not available

header for http basic authentication

potrebujeme base64encoded user/heslo, na linuxe s php:

php -r "print base64_encode('user:password');"
dXNlcjpwYXNzd29yZA==

v opere ctrl+i tab network, tab make request:
url:
https://example.com/?page=somepage

to co je hrube je nase user/helso

GET /?page=somepage HTTPS/1.1
Host: example.com
Authorization: Basic dXNlcjpwYXNzd29yZA==

response:

HTTP/1.1 200 OK
Date: Sat, 25 Aug 2012 14:58:29 GMT
Server: Apache
X-Powered-By: PHP/5.3.3-7+squeeze13
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

v spojeni s adobe flex

aby sme sa v nasej aplikacke prihlasili na server bez nutnosti okienok tak vyplnime a posleme hlavicku:

import mx.utils.Base64Encoder;
import mx.rpc.http.HTTPService;
private var service:HTTPService

private function authAndSend():void
{
service = new HTTPService();
var encoder:Base64Encoder = new Base64Encoder();
encoder.encode("user:password");
service.headers = {Authorization:"Basic " + encoder.toString()};
service.send();
}

Share This:

  • Comments Off on http basic authorization header

August 2, 2012 | In: Hry

Diablo 3 how to rebind mouse

Bind action mouse key with Razer

THIS HOW-TO IS FOR RAZER USERS ONLY, but you can get the point i hope…

so how to rebind mouse keys to move with click and swap some keys to cast instead;

dunno about other classes but its not usable when playing wizard this “all in one button” :/

im using razer mice so i stick with that and i play wizard

First go to Diablo 3 option and change move action to some single key f.e “W”. Then back to your OS. You need to have installed and working drivers from razer (i use razer imperator & i <3 it). First create new profile (new, name, save…):

razer new profile for diablo 3

Second step u want to create macro:

Hit New, Name=shift+lclick; Check the “ignore delay…” checkbox.
For recording now hit the green “start ball”; after this all actions will be recorded so: CLICK AND HOLD shift than click once left button (down, up) on mouse and LET GO SHIFT; now hit the “square stop” button; and u created your new macro:
razer new macro for diablo 3

Then change mouse settings as following screen:

razer config 1 - diablo rebind keys

– start from MIDDLE BUTTON (3), i changed it to LEFT CLICK, so this is my new “interact button/click” (middle button has to be clickable)
– left-button (1) – here i remap key 1 – to “W” – so i MOVE on click; finally!!!
– 4th button – set macro and select previously created macro “shift+lclick” – play once:

razer config macro - diablo rebind keys

after apply you will have to use as click middle button but thats why we created 2 profiles 🙂 when u play diablo u use diablo profile, for work u use default… and keep in mind this is stored on your mouse, so if u wont change back to default and you reboot to other OS it will remember last settings so u would have to go back and change it to default… thats it

and last question… is it really good to repair working system? Blizz i got that for u… NO!

Share This:

  • Comments Off on Diablo 3 how to rebind mouse

Ako prehodit 2 riadky v mysql pomocou jedneho sql

pekne a jednoduche riesenie:

UPDATE mod_player SET name=@tmp:=name, name=surname, surname=@tmp

ziadne join-ovanie, rychle a elegantne 😉

Share This:

  • Comments Off on mysql switch 2 rows – prehodit 2 riadky

How to drop staff of herding plans

Been farming izual and diablo for few hours than and nothing; then i tried to put all my MF (magic find) equip off and ALSO from my helper and let my helper/friend to kill him and on second run i got finally THE plan…

i got it when i had those MF dots x 3 so its not rly required to skip elites

Share This:

  • Comments Off on Diablo 3 – plans: staff of herding wont drop

Zdravím přátelé,

Je tomu dva dny, co jsem si zakoupil elektronickou verzi hry Diablo III, protože je všude vyprodána.
Po zakoupení verze v účtu na battle.netu vše vypadalo tak, jak má. Napsalo mi to, že mám Standard Edition ale ve hře jsem skončil vždy tím, že jsem zabil Skeleton Kinga a hra mi oznámila, že mi děkuje za zahrání Starter Edition a že jestli chci Upgrade . To mě ale nasměrovalo opět na web battle.netu ale tam se mi hra tvářila jako zakoupena. Co Teď?

 

Hledal jsem všude možně ale rady skoro o ničem ale navedly mne alespoň nějakým směrem.

– Většinou nemá cenu hru reinstalovat, protože zakopaný pes je většinou v Accountu.

– Mělo by tedy pomoci, když si na battle.netu změníte Password k účtu ale mě pomohl až reset Passwordu.

 

– Pokud Vám ani to nepomůže. tak jsem se na Technické podpoře dozvěděl, že ověření platby může trvat až 72 hodin. Účet sice už píše, že máte Diablo III zakoupeno ale ve hře se to tak nechová. Poradily mi počkat a potom aby jsem opět zkusil zabít Skeleton Kinga a mělo by to prý jít. Zkuste tedy výše uvedenou radu a pokud by to nešlo, tak počkat těch 72 hodin.

 

Pokud Jste tento problém vyřešily ještě nějak jinak, tak to sem prosím napište, protože nikde jinde v češtine jsem radu nenašel a ne všichni asi umíme tak dobře Anglicky. 

Share This:

ORACLE verzia 11g – vytvorenie storovanej procedury

parametre zadame bez ziadnych dlzok atd. Urcie nie VARCHAR(20), NUMBER(10) atd zle
parametre mozeme este rozlisit ci ide vstupny IN, vystupny OUT a este na vstupno/vystupny IN OUT


CREATE OR REPLACE PROCEDURE PREVOD (odkial NUMBER, kam NUMBER,
suma NUMBER, mena NUMBER, var_s NUMBER, konst_s NUMBER) AS
// deklaracia lokalnych premennych bez klucoveho slova DECLARE
POCET_DOBRYCH_UCTOV NUMBER;
BEGIN
//telo procedury

SELECT COUNT(*) INTO POCET_DOBRYCH_UCTOV
FROM account WHERE (numbr = odkial
AND balance >= suma)
OR (numbr = kam);

IF POCET_DOBRYCH_UCTOV < 2 THEN ROLLBACK; ELSE UPDATE account SET balance = balance + suma WHERE numbr = kam; UPDATE account SET balance = balance - suma WHERE numbr = odkial; INSERT INTO transactin (typ_pladby,counter_part,amt,currency, variable_symbol,const_symbol,specifics, datum,description,account_id) VALUES (0,kam,suma,mena,var_s,konst_s,0,SYSDATE,'aaa',1); INSERT INTO transactin (typ_pladby,counter_part,amt,currency, variable_symbol,const_symbol,specifics, datum,description,account_id) VALUES (1,odkial,suma,mena,var_s,konst_s,0,SYSDATE,'bbb',2); COMMIT; END IF; NULL; END;

Share This:

  • Comments Off on Vytvorenie stored procedury v oracli

February 23, 2012 | In: Nepotriedené

find pre pokrocilych

Pokročilé možnosti find ako viac typov suborov alebo exclude

keď chcete nájisť viac typov suborov a zapísať zoznam do suborov (php_files, js_files)

find ./ -type f \( -name \*.php -fprint php_files , -name \*.js -fprint js_files \)

nájdi “to” alebo “to” = teda vypíše php aj html fajly

find ./ -iname '*.php' -or -iname '*.html'
find . -type f \( -iname "*.c" -or -iname "*.asm" \)

najdi to alebo to a excludni svn = moc to zmysel nemá ale vidime ako sa robí exclude

find ./ -iname '*.php' -or -iname '*.html' -and ! -iname '.svn'

Share This:

  • Comments Off on find pre pokrocilych

Ako sa dá rýchlo zdieľať obsah na linuxe

od samba 3.0.23 má nie-root užívateľ možnosť pridať share cez net usershare príkaz

net usershare add mp3 /home/kuko/mp3

keď chceme plný prístup pre usera “kuko” a prístup pre guestov:

net usershare add google /home/kuko/Desktop/google/ usershare_acl=kuko:F:guest_ok=y

pre zmazanie užívateľských sharov:

net usershare delete sharename

zoznam:

net usershare list

vysvetlívky:

acl
F – full
R – read only
Prístup pre všetkých – čo je default
acl – Everyone:R

!!! ak nemáte povolené guest v smb.conf nasledujúce nebude fungovať:

usershare allow guests

Share This:

  • Comments Off on Rýchla práca so SAMBA – net usershare

Podpora grafiky intel a sandy bridge v novóm jadre

Ak chcete len nová mesa tak stačí (musíte mať backports v apt, mate to dole napísane ako):

 apt-get install -t squeeze-backports libgl1-mesa-dri libgl1-mesa-glx

alebo ak máte xka a chcete update intel ovládačov:

apt-get install -t squeeze-backports xorg xserver-xorg xserver-xorg-core xserver-xorg-input-synaptics xserver-xorg-video-intel
apt-get install -t squeeze-backports libgl1-mesa-dri libgl1-mesa-glx

súvisiace články:

Debian kernel 2.6.39 – pridanie balíčkov backports pre sandy bridge

Pinning pre source list v debiane

Share This:

  • Comments Off on Debian mesa – sandy bridge grafika