Categories
Uncategorized

WebHouse – Error 503 Service Temporarily Unavailable

Máte svoj hosting v spoločnosti WebHouse?  Na vašom webe čas od času vidíte namiesto obsahu iba chybovú hlášku?

Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

 

Tak vedzte, že to nie je nutne problém vášho webu. Uvedená spoločnosť uplatňuje “rate limit” na zdroje, ktoré na serveri, kde sa u nich nachádza váš web, používate. Presný vzorec nepoznám a ak nájdete o ňom zmienku niekde na web stránke danej spoločnosti, rád ho do článku doplním. Túto skutočnosť obhajujú ako ochranu pred “zahltením”. Je však tak citlivá, že ak máte WordPress (mimochodom uvádzaný na webe spoločnosti ako systém, pre ktorý sa ich hosting hodí), tak pri väčšom počte návštevníkov veľmi rýchlo limit dosiahnete a web sa tak stane nedostupný. Dokonca stačí v obľúbenom plugine NextGEN Gallery nechať vytvoriť cca 5-10 náhľadov (čo je súčať uploadu obrázkov) a uvedený limit dosiahnete znova.

Keď sa spoločnosti opýtate, že v čom je problém, tak vás v prvom rade odkážu na výrobcu vašeho webu, ktorý ho musel napísať neoptimálne a nadštandardne zahlťujúceho ich servre. Spomínal som už, že ich hosting sa hodí na systémy ako WordPress? 🙂 Odporúčam preto čo najrýchlejšie zdupkať niekam, kde nežijú v HW praveku.

PS: Ak si myslíte, že sa vás tento článok netýka, tak si prezrite zoznam webov, kde všade kúpite služby od tej istej spoločnosti (podobnosť s webom jednej vynikajúcej spoločnosti je určite čisto náhodná). Spoločný menovateľ je správa domény na setup.sk:

http://www.superwebhosting.sk

http://www.domains.sk

http://www.webstranky.sk

http://www.sk-domeny.sk

http://www.megahosting.sk

http://www.web1.sk

http://www.domeny-sk.sk

http://www.webdomena.sk

http://www.webdisk.sk

http://www.h1.sk

http://www.gigahosting.sk

http://www.euroweby.sk (nefunkčné)

http://www.sk-webhosting.com

http://www.webpriestor.com

http://www.najweb.sk

http://www.priestor.sk

http://www.a3web.sk

http://www.webportal.sk

http://www.slovakhosting.sk

http://www.webdomain.sk

http://www.lacnyhosting.sk

http://www.mojedomeny.sk

http://www.fastweb.sk

http://www.unihost.sk

http://www.freehost.sk (nefunkčný)

http://www.goldweb.sk

http://www.dobryhosting.sk (nefunkčný)

http://www.webspace.sk (nefunkčný)

http://www.prohosting.sk

http://www.webexpert.sk

http://www.spiderhost.sk

http://www.webyslovakia.sk

http://www.rhosting.sk (nefunkčný)

http://www.websites.sk

http://www.coolhosting.sk

http://www.websolution.sk

http://www.okdomeny.sk

http://www.webservice.sk

http://www.mojastranka.sk

http://www.webcolor.sk

http://www.easyhost.sk

Potrebuje solídna firma toľko rôznych domén?

Categories
Hints

JAXB xjc expected element of type …

If you have trouble loading Xml using classes generated by xjc tool (included in JAXB distribution), be carefull and do not define XSD main element like this:

<!-- MAIN element -->
<xs:element name="main" type="Main">
<xs:complexType name="Main">
...

The problem here is that the main element and main element type names are identical (except the first letter that is uppercased). Xjc creates a class for for both root Xml element and all complex types defined in Xsd. In this case a java class that derives from class for xsd complexType would be empty. If you still insist on having java class for xml root element then declare it as a extension without any additions.

Solutions (2):

  • declare xml root element as complexType extension (complexContent/complextType/extension) of the xsd complexType
  • do not define type for root element and define the structure directly in xs:element
Categories
Hints

Java String.isEmpty interrupts method call or thread

Does your call of String.isEmpty in your code cause strange behaviour such as:

– sudden interruption of method call (as if return was called)

– thread interruption

?

The problem is quite simple – you had build your code using JDK 1.6 with language compatibility set to previous version (1.4, 1.5) hoping the compiler would use the correct classes. This is, however, not true.

When you use the version switch the current JDK classes signatures are used. That means isEmpty is present as method of String class in 1.6. It is not present in previous releases.

Solution: Remove call of isEmpty and use the JDK you need without language compatibility to build against required version.

Categories
Software & Development

Batch convert, resize and rename picture v.2

Batch convert, resize and rename picture now supports selection of every X-th file, find you more HERE.