Spamers made party in Latvia and made photo of themself. You can identify them easy now:
Link to Latvian spammer picture.
trešdiena, 2012. gada 21. novembris
pirmdiena, 2012. gada 22. oktobris
Changing Weblogic host name?
If you change Weblogic hostname and use Node manager then do not forget to regenerate certificate:
1 Set the PATH
. $WL_HOME/server/bin/setWLSEnv.sh
2 Backup DemoIdentity.jks - cp $WL_HOME/server/lib/DemoIdentity.jks $WL_HOME/server/lib/DemoIdentity.jks.backup
3 Generate the private key.
java utils.CertGen -cn -keyfilepass DemoIdentityPassPhrase -certfile newcert -keyfile newkey
4 Import the key generated above to the keystore.
java utils.ImportPrivateKey -keystore DemoIdentity.jks -storepass DemoIdentityKeyStorePassPhrase -keyfile newkey.pem -keyfilepass DemoIdentityPassPhrase -certfile newcert.pem -alias demoidentity
5 Copy DemoIdentity.jks to $WL_HOME/server/lib
6 Restart your nodemanager.
1 Set the PATH
. $WL_HOME/server/bin/setWLSEnv.sh
2 Backup DemoIdentity.jks - cp $WL_HOME/server/lib/DemoIdentity.jks $WL_HOME/server/lib/DemoIdentity.jks.backup
3 Generate the private key.
java utils.CertGen -cn -keyfilepass DemoIdentityPassPhrase -certfile newcert -keyfile newkey
4 Import the key generated above to the keystore.
java utils.ImportPrivateKey -keystore DemoIdentity.jks -storepass DemoIdentityKeyStorePassPhrase -keyfile newkey.pem -keyfilepass DemoIdentityPassPhrase -certfile newcert.pem -alias demoidentity
5 Copy DemoIdentity.jks to $WL_HOME/server/lib
6 Restart your nodemanager.
ceturtdiena, 2012. gada 18. oktobris
Active Directory and Weblogic.
If you ever wonder why your weblogic stop working while using Active Directory and you see error in log like:
"[STUCK] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'"
-- Waiting for notification on: com.sun.jndi.ldap.LdapRequest@1e3883a0[fat lock]"
Then Disable the Follow Referrals from weblogic console, Environment > Security Realms > myRealm > Providers > ADProviderName > Configuration > Provider Specific : Follow Referral
By default, this attribute is enabled.
otrdiena, 2012. gada 18. septembris
Delphi, xml and parse/format doc with two space ident
Today I got to solve xml format problem with Delphi. It appears that by default delphi uses tab for xml element indent. I had to find some hacks to work it properly and I think it's worth to share.
So before processing I did:
Doc := TXMLDocument.Create(nil);
So before processing I did:
Doc := TXMLDocument.Create(nil);
Doc.ParseOptions := Doc.ParseOptions + [poPreserveWhiteSpace];
That seems to remove default behaviour of indenting with tabs. But now when I insert new node I get it without indents at all. So I have to "reparse" doc before save:
Doc.XML.Text := xmlDoc.FormatXMLData(Doc.XML.Text);
Doc.Active := true;
I did not experiment with - Doc.NodeIndentStr := ' '; because two spaces is used by default.
Happy hacking!
Edit:
I found that FormatXMLData loose my utf-8 encoding. So I had to do:
Encoding := Doc.Encoding;
Doc.XML.Text := xmlDoc.FormatXMLData(Doc.XML.Text);
Doc.Active := true;
Doc.Encoding := Encoding;
Edit:
I found that FormatXMLData loose my utf-8 encoding. So I had to do:
Encoding := Doc.Encoding;
Doc.XML.Text := xmlDoc.FormatXMLData(Doc.XML.Text);
Doc.Active := true;
Doc.Encoding := Encoding;
sestdiena, 2012. gada 1. septembris
GWT Designer with Eclipse Juno
Eclipse Juno is newest Eclipse version. Today I got it working with GWT and would like to share some discoverings.
- You need latest GWT version to work with Eclipse Juno. Use this link for install - http://dl.google.com/eclipse/plugin/4.2
- I used latest SDK 2.5.0 witch is downloadable not by link but in google download page https://developers.google.com/web-toolkit/download
- When create project do not unchek "Generate project sample code". If you do you get error while creating project - Creation of element failed. Resource ... web.xml already exists
- GWT GUI on first start gives error "GWT Designer tried to parse .../web.xml file, but can not because it is invalid.". I got away from it with switching project SDK from 2.5.0 rc1 to 2.4.0 and then back.
- Sadly I could not create layout with authorized panes like this - http://layout.jquery-dev.net/demos/accordion.html
ceturtdiena, 2012. gada 26. jūlijs
otrdiena, 2012. gada 10. jūlijs
Microsoft Windows Update..... Die!!!!
How much job in middle should be lost for people, so Microsoft recognize that they windows update restarts is worst windows "feature" !!!!
Microsoft ..... I hate you!!!
Microsoft ..... I hate you!!!
pirmdiena, 2012. gada 9. jūlijs
3 dienu ceļojums Lietuvā.
Īsumā ieplānojām ar ģimenīti nelielu ceļojumu apmeklējot vairākas skaistas Lietuvas pilsētas.
Maršruts:
http://map.project-osrm.org/QL
Rīga - Šauļi - Kedaiņi - Kauņa - Trakai - Viļņa - Rīga
(nakšņošana izceltās pilsētās)
Budžets:
300 Ls (100 Ls viesnīcas, 100 Ls benzīns, 100 Ls citi tēriņi)
Izmantotās aplikācijas:
Android - OsmAnd (ceļojuma norādes, galapunktu meklēšana)
Web - OSM routeris (visa maršruta punktu plānojums - skat. maršruta linku augstāk)
Web un Android - Booking.com - Viesnīcu atrašana un izvērtējums
Android - OANDA Currency Converter - Ātrai Lt - Ls pārrēķināšanai (nu .... dalam litus uz pieci ja :) )
Viesnīcas:
Kauņā - Daugirdas Old City Hotel - 59 EUR + 60 EUR par 2 papildus gultām. Hotelis Kauņas pašā centrā. Augsta līmeņa serviss. Nedaudz traucēja tur organizētie pasākumi (Tāda aizdoma kad visi lietuvieši šajā laikā precas)
http://www.booking.com/hotel/lt/daugirdas-old-city.lv.html?aid=331511;label=daugirdas-old-city-KnZKv6EW0YhzQT09NUXQtgS4798447182:pl:ta:p1:p2:ac:ap1t1:neg;ws=
Viļņā - Park Villa - 85 EUR + 15 EUR par 1 papildus gultu. Apkārt mežš un netālu no skaistas upes, tomēr nav tālu no centra. Skaitās prestižš rajons, taču viesnīca kā viesnīca. Nav īsti par ko sūdzēties taču nav tāda klase kā iepriekšējā viesnīca Kauņā.
http://www.parkvilla.lt/
Tālāk dažas bildes (iekavās maršruta punkts no osm route).
Krusta kalns (1)
Maršruts:
http://map.project-osrm.org/QL
Rīga - Šauļi - Kedaiņi - Kauņa - Trakai - Viļņa - Rīga
(nakšņošana izceltās pilsētās)
Budžets:
300 Ls (100 Ls viesnīcas, 100 Ls benzīns, 100 Ls citi tēriņi)
Izmantotās aplikācijas:
Android - OsmAnd (ceļojuma norādes, galapunktu meklēšana)
Web - OSM routeris (visa maršruta punktu plānojums - skat. maršruta linku augstāk)
Web un Android - Booking.com - Viesnīcu atrašana un izvērtējums
Android - OANDA Currency Converter - Ātrai Lt - Ls pārrēķināšanai (nu .... dalam litus uz pieci ja :) )
Viesnīcas:
Kauņā - Daugirdas Old City Hotel - 59 EUR + 60 EUR par 2 papildus gultām. Hotelis Kauņas pašā centrā. Augsta līmeņa serviss. Nedaudz traucēja tur organizētie pasākumi (Tāda aizdoma kad visi lietuvieši šajā laikā precas)
http://www.booking.com/hotel/lt/daugirdas-old-city.lv.html?aid=331511;label=daugirdas-old-city-KnZKv6EW0YhzQT09NUXQtgS4798447182:pl:ta:p1:p2:ac:ap1t1:neg;ws=
Viļņā - Park Villa - 85 EUR + 15 EUR par 1 papildus gultu. Apkārt mežš un netālu no skaistas upes, tomēr nav tālu no centra. Skaitās prestižš rajons, taču viesnīca kā viesnīca. Nav īsti par ko sūdzēties taču nav tāda klase kā iepriekšējā viesnīca Kauņā.
http://www.parkvilla.lt/
Tālāk dažas bildes (iekavās maršruta punkts no osm route).
Krusta kalns (1)
2, 3, 5 - izlaidām.... jo bijām aizkavējušies ēstuvē (4) -
Pilsēta Kedaiņai (6) kā izmirusi... pat informācijas birojs piektdien plkst. 14:00 ir ciet. Bet smuka pilsētiņa ...
Kauņā mums vislabāk patika pilskalns un baznīca kas ir tur blakus (7)
Tur pat netālu no viesnīcas - rātes laukums:
Nākamā rītā nobraucām garām Pažaislis klosterim (10). Agri no rīta pat biļetes nebija kas pārdod, bet visas durvis bija vaļā.
Brīnišķīgākie iespaidi no mūsu Trakai apmeklējuma.
Šī noteikti ir vieta kuru varētu apmeklēt atkārtoti un palikt piemēram šajā hotelī (pa labi):
Noteikti izbrauciet ar kādu no kuģīšiem:
Tālāk braucām uz Lietuvas hoteli, izlaižot pastaigu parku (13). Pēc nakšņošanas Viļņas hotelī apmeklējām pilsētu. Skaistākais ko redzēt Viļņā protams ir baznīcas, Svētā Pētera baznīca (15):
Un vairākas baznīcas vecpilsētā (17)
Nu protams Viļņas apmeklējumā nedrīkst izlaist Gedemina kalnu (16):
Atpakaļ ceļā noteikti neaizmirstiet iebraukt kādā no ēstuvēm un nomēģināt Cepelīnus :).
trešdiena, 2012. gada 23. maijs
Install Open Office on RHL5 - pain in ass.
First take and download 3.4. unpack, go RPMS and install with (do not do it. Just continue to read :) :
rpm -ivh *.rpm
Then go desktop-integration (inside RPMS itself) and install redhat destkop integration rpm. You think it's done?
Nop. 3.4 is not compatible with RH5. You need older version. 3.2 works.
Ok. But where to get it? They are well hiden as "Legacy" versions - http://www.openoffice.org/download/archive.html
But.. now I have to remove 3.4. RPM tool gives me hell of dependencies. Easy way I found to do it with yum:
sudo yum remove openoffice.org3
sudo yum remove openoffice.org-ure
sudo yum remove openoffice.org3.4-redhat-menus
Then you can do same installation with Office 3.2.
rpm -ivh *.rpm
Then go desktop-integration (inside RPMS itself) and install redhat destkop integration rpm. You think it's done?
Nop. 3.4 is not compatible with RH5. You need older version. 3.2 works.
Ok. But where to get it? They are well hiden as "Legacy" versions - http://www.openoffice.org/download/archive.html
But.. now I have to remove 3.4. RPM tool gives me hell of dependencies. Easy way I found to do it with yum:
sudo yum remove openoffice.org3
sudo yum remove openoffice.org-ure
sudo yum remove openoffice.org3.4-redhat-menus
Then you can do same installation with Office 3.2.
otrdiena, 2012. gada 15. maijs
Mans svētdienas garage ražojums :)
Gribiet nosūtīt kādam tikšanās vietu? Gribiet pastāstīt par jaunu izklaides vietu?
http://placemeonmap.com/
Gribiet nosūtīt kādam tikšanās vietu? Gribiet pastāstīt par jaunu izklaides vietu?
http://placemeonmap.com/
piektdiena, 2012. gada 27. aprīlis
If you have project hosted on GIT and want to use other project which is based on SVN. There is how:
- Checkout SVN project as GIT clone:
mkdir Module.git
git svn init https://suversion.dot.com/Module/trunk
git svn fetch
- Later you will keep your GIT clone up to date by (preferable to commit your changes before rebase.
... if you have some):
- Then you are ready to add your new created git repository to your git project as submodule
git submodule add https://your.git.host/Module.git
svētdiena, 2012. gada 22. aprīlis
Izrādās Android telefonam kontakti var būt ierakstīti 3 vietās:
- SIM kartē
- Telefonā
- Kādā no tiešsaistes kontiem
Ja viņi ir ierakstīti primajos divos, tad vienīgais veids kā dabūt viņus uz tiešsaistes kontu (piem. Google contacts) ir eksportēt uz .csv ar speciālu programmu - "Backup contacts" pēc tam importējot Google contacts.
Pēc tam jāizvēlas opcija nerādīt telefona kontaktus.
ceturtdiena, 2012. gada 29. marts
Pagaidām labākais risinājums Latviešu valodai uz Android Ice Cream:
Instalē Ice Cream Sandwich Keyboard bet pēc tam Latvian for ICS keyboard
Tad iet uz uzstādīšanu un uzstelē visu pēc instrukcijas.
Instalē Ice Cream Sandwich Keyboard bet pēc tam Latvian for ICS keyboard
Tad iet uz uzstādīšanu un uzstelē visu pēc instrukcijas.
piektdiena, 2012. gada 9. marts
To set up Active Directory for WebLogic you have to do next steps:
1. With Apache LDAP browser get connection to server. For that you need user (in form domain\user) password and host.
2. Connect to Active directory and find your full domain name for your given account by searching whole domain for - sAMAccountName =
3. Use full path of found user in Principal for Active Directory provider/Provider Specific.
4. Put only domain part (with DC=) in User and Group Base DN (same config provider)
5. Filters should be - (&(sAMAccountName=%u)(objectclass=user)) and (&(sAMAccountName=%g)(objectclass=group)) but with subtree search.
Restart your server and try log in weblogic with your given user.
Abonēt:
Ziņas (Atom)




















