LiveJournal for Pēcis Beisikāns.
|
|||||||||||
| Wednesday, June 1st, 2005 |
|
||||
|
"Strong typing means there [are] a lot of variables whose names are in ALL CAPS." - Paul Rubin |
||||
|
|
|
||||||
|
Google maksā 4500$ studentiem par sekmīgu piedalīšanos atvērtā koda projektā. Ja esi students — piesakies! |
||||||
|
|
| Monday, May 30th, 2005 |
|
||||||
| Ir veids kā netā uzkjīlēt binary failu of mansObjekts, kur varētu uzreiz drukāt iekshā jaunus objektus, neko vairs nedomājot, kā arī seekoties turp un atpakalj pa objektiem. Tipa kautkāda struktūjra/rekords whatever un lai to var ērti serializēt un deserializēt. Doma tāda delphi 7 bij pieejama tāda vienkārša fīča kā F: file of MyRecord, R:MyRecord; un tad varēja attiecīgi write(F,R); read(F,R); Seek(F,FilePos(F)-1); utt. bez liekas domāšanas un čakara ar lasāmo rakstāmu bitu daudzuma mērīšanu etc. Un tagad delphi 8, tipa NET only tāda fīča vairs nav pieejama :/ | ||||||
|
|
| Thursday, May 26th, 2005 |
|
||||||
Es ar sevi nelepojos, bet kad jums pēdējoreiz ir gadījies uzrakstīt kautko tik dziļu?
for xxx in xxxxxx:
for xxxx in xxx:
for xxxxxxxx in xxxx:
for xxxxxx in xxxx.xxxxx:
try:
if (xxxxxxxx.xx * xxxxxx).xxxx():
return False
except:
continue
|
||||||
|
|
|
||||||
| krossposts no mana žurnāla, varbūt kāds css un html zinošs cilvēciņš var palīdzēt? | ||||||
|
|
|
||||||
|
kaapeec shis te nestraadaa??? #include #include using namespace std; fstream f,f2; int main(){ char s[31]; f.open ("f.txt", ios::in|ios::out|ios::binary); while(!(f.eof())){ f.read(s,30);}; f.seekp(0, ios::end); cin>>s; f.write(s,30); f.close(); return 0;}; nepareizo paarkopeeju, tagad pielaboju. paldies par paliidziibu! :))) probleema bija tur, ka vajadzeeja f.clear() peec f.eof izmantoshanas :) |
||||||
|
|
|
||||
|
Nav jau smuki ar saviem nedarbiem "zīmēties", bet nu offtopic šai komūnai arī nebūs. Aprakstīju savas nedienas un veiksmes darbā ar MS Exchange Server un tā pieeju caur oficiālajiem API. Jā, tēma diezgan specifiska un daudziem neinteresanta, bet materiāls ir latviešu valodā un varētu izrādīties noderīgs, kad jākodē kaut kas līdzīgs. Pats materiāls atrodams iekš http://naivist.net/tips/index.php/2 |
||||
|
|
| Tuesday, May 24th, 2005 |
|
||||||
|
Sēž nakti negulējis un pārstrādājies programmētājs. Pienāk mazais dēls: - Tēt. Kāpēc saule katru rītu lec austrumos, bet noriet rietumos? - Tu to esi pārbaudījis? - Esmu. - Kārtīgi pārbaudījis? - Kārtīgi. - Darbojas? - Darbojas. - Katru dienu darbojas? - Jā, katru dienu. - Tad, Dieva dēļ, neko neaiztiec un neko nemaini! |
||||||
|
|
| Monday, May 16th, 2005 |
|
||||
|
"Mach was the greatest intellectual fraud in the last ten years." "What about X?" "I said `intellectual'." ;login [usenix.org], 9/1990 (no slashdot komentaariem) |
||||
|
|
| Friday, May 13th, 2005 |
|
||||||
This error happens when a program is linked to two different threads libraries. Both use init sections to set themselves up, so when the second one gets initialized it complains with that very obscure error message. |
||||||
|
|
| Saturday, May 7th, 2005 |
|
||||||
|
iznāca jau pirms laiciņa, bet nu arī reviews (salīdzina Ora10g, MySQL5, Postgres8 - visus uz Windows): http://www.suite101.com/article.cfm/ora |
||||||
|
|
| Monday, May 2nd, 2005 |
|
||||||
Tagad tā - šitas man nekad nav licis mieru, un slinkums arīdzan vienmēr ir bijis par lielu, lai noskaidrotu, kas un kā. Sekojošs ir triviālā situācija: ir td, kurā ir img un teksts (poga). Vajag, lai img un teksta apakšas stāv uz vienas līnijas. Jā, jā, tabulas sūkā, \m/ ir div, bet tas pamatā nav mans ražojums, un man nekrata to visu pārrakstīt. Ja kāds noasistētu, es būtu gauži pateicīgs!
|
||||||
|
|
| Sunday, May 1st, 2005 |
|
||||
|
||| Because XML configuration files are self-validating. As opposed to all of those depressed, self-loathing DOC files out there? (ok, vareeja iemest lol, bet neviens nesaprastu) |
||||
|
|
| Tuesday, April 26th, 2005 |
|
||||
| SWT un Swing | ||||
|
|
|
||||||
|
Vai kāds nevar ieteikt kādu labu/vienkāršu veidu, kā tikt galā ar sekojošo: ar javascript tiek taisīts vaļā logs, un tajā ielādēts kaut kāds html: w = window.open("secondfile.html");Un tālāk gribas caur DOM pamanipulēt tā loga saturu, darīt kaut ko tādu kā w.document.getElementById("elementToChanBet problēma ir tā, ka tās otrās komandas izpildes brīdī lapa var vēl nebūt paspējusi līdz galam ielādēties, un attiecīgi DOMs var nebūt vēl uzbūvēts. Vai varat ieteikt kādu labu veidu, kā "sagaidīt" lapas ielādēšanos? Vēlams tādu, kurā nevajadzētu aiztikt secondfile.html (likt tajā skriptus). |
||||||
|
|
| Wednesday, April 20th, 2005 |
|
||||
| - Good programmers are like good linguists. They speak many languages and are richer for the experience and comparision. | ||||
|
|
|
||||||
|
Kā (un vai vispār var) no superklases metodes tikt klāt pie child klases atribūta vērtības? Upd: Paldies par izglītošanu, problēmu esmu apgājis citādāk. |
||||||
|
|
|
||||
Zem kontraversā virsraksta C# vs. VB.NET slēpjas diezgan labs teksts par programmēšanas vēsturi. Ar citātu no Virta un Dijkstras.
|
||||
|
|
| Friday, April 15th, 2005 |
|
||||
| apsūbējis nedaudz esmu iekš php, nevaru vairs dokumentācijā atrast kā pārslēgt output uz mainīgo (tb funkcija izvada uz ekrāna, a uz ekrāna nevajag, vajag mainīgajā). | ||||
|
|
| Wednesday, April 6th, 2005 |
|
||||||
|
Interesanta pieeja par tēmu Loren Ipsum: http://www.37signals.com/svn/archives/0 |
||||||
|
|
| Friday, April 1st, 2005 |
|
||||
| mind->toBlog() : possible null pointer dereference | ||||
|
|
| Tuesday, March 29th, 2005 |
|
||||||
|
Runa nebuus par kaut kaadaam konsoles aplikaacijaam, web lapinjaam, bet par normaalaam ofisa programmaam (nu tipa graamatvediiba etc). Saakumaa visi kodeeja text rezhiimaa, taalaak progress tika liidz tam ka populaars bija visual basic, tad delphi. Tagad cilveekiem iepatikaas ideja par web applikaacijaam. Taadeelj, ka nav jaainstallee uz datora jaunu versiju pie katraam izmainjaam. Viss buutu ok, tikai HTML nav domaats tam. Nu ko, bars ar koderiem protams skrien un ar JS paliidziibu meegjina kaut ko muhljiit. Ar Mozillas XUL var daudz ko panaakt, tikai joprojaam visi aizmirst par dazhaam svariigaam funkcijaam kaa printeeshana, straadaashana ar klaviatuuru, popup windows taadiem kaa tie jaabuut etc. Ko tauta lieto shaadu applikaaciju veidoshanai? Nee vienkaarshi apskatiijos iTunes un ideja ir baigi gjeniaalaa. Respektiivi tas shopa kontents un funckijas atrodas uz servera, pasha applikaacija ir tikai pleijeriitis uz browsers, kursh servera xml paarveido par normaalu skataamu lapu. Vai mosh kaads piebiedrosies uztaisiit Framework vai kaa tur vinju saukt, kursh graabj nost xml datus un paarveido. Realizaacija. Serverside - php, clientside - mono (C#) + gtk# (nu lai vareetu gan uz windows, gan linux, gan uz mac darbinaat). Par glade es gan negribeetu piekrist, jo taas funkcijas vinjsh izpilda lokaali, bet gribeetos, lai taa browsera kodu peec tam visu laiku nebuutu jaamaina, respektiivi, lai automaatisku posteetu visus variables un eventus uz serveri, kursh peec tam to visu izparsee. Mosh kaut kas liidziigs jau ir izveidots? Kuru interesee taads projektinjsh? |
||||||
|
|
| Saturday, March 12th, 2005 |
|
||||||
|
Links nācis no Kaklz'a bloga - brašie leišu bāleņi ir pamocījuši PHP dažādos veidos, lai noskaidrotu, kas tad ir ātrāks: http://www.php.lt/benchmark/phpbench.ph Varbūt, ka kādu no mums tas arī interesē? |
||||||
|
|
| Wednesday, March 2nd, 2005 |
|
||||||
|
Rakstam PHP aplikācijas kā Windows aplikācijas GUI videi - WinBinder: http://www.hypervisual.com/winbinde Pagaidām tas viss vēl ir bērna autiņos, taču šo to reālu jau ir iespējams izveidot. Vēl viens līdzīgs risinājums - win32std: http://wildphp.free.fr/wiki/doku.ph |
||||||
|
|
| Tuesday, February 22nd, 2005 |
|
||||||
|
Kādi rīki tiek izmantoti ērtai history pārlūkošanai? Noteikti pastāv kāds risinājums ar history logošanu datubāzē. Padalieties ar pieredzi, nav vēlmes no jauna izgudrot riteni. |
||||||
|
|
| Wednesday, February 16th, 2005 |
|
||||
|
"How will this software get my users laid" should be on the minds of anyone writing social software (and these days, almost all software is social software). (of jwz) |
||||
|
|
| Wednesday, February 9th, 2005 |
|
||||||
|
...it develops that Alan Kay is an agent of the Underground, which is called Dobbs' Lightning because of Heraclitus' idea that Dobbs first manifested Himself as a lightning bolt which created the world. It was in Dobbs' Lightning that I first read Tux Sneezed, which I still think is a rip-roaring good yarn. The scene where Atlanta Hope sees Niklaus Wirth and it's her old *ahem* "boyfriend" with the gaunt cheeks, and he said "I am Bob Dobbs", man, that's writing. The 103-page long speech afterwards, explaining the importance of strong typing and showing why all the anti-Heracletians are destroying civilization by destroying strong typing, certainly is persuasive, especially to me who's got three (going on four) contracts, each of which share the same include files. "Without strong typing there can be no civilization." Her nonfiction book, "Antitrust: The Unknown Ideal for the New Heracletian" is, I think, a distinct letdown, but the Dobbs' Lightning bumper stickers sure give people the creeps. I met Atlanta Hope at the time of the IEEE Committee Riots. I was in the thick of it (you have no idea how bizarre civil war gets when one side uses nerf weapons as a large part of its arsenal), and met Atlanta herself where the last stand was being made. She grabbed my right arm and howled something like "War is the Health of the State! Conflict is the creator of all things!" Seeing as how she was on a heavy Heraclitus wavelength, I quoted with great passion, "Men should fight for the Laws as they would for the walls of the city!" That won her, and I was Atlanta's personal lieutenant for the rest of the battle. no slashdot komentāriem: http://developers.slashdot.org/comm |
||||||
|
|
| Sunday, January 30th, 2005 |
|
||||||
|
Politics-Oriented Software Development http://www.kuro5hin.org/story/2005/1/2 |
||||||
|
|
| Friday, January 7th, 2005 |
|
||||
| Kādam kaut kur nemētājas Latvijas pasta indeksu datubāze? Vienam projektiņam nepieciešams atrast pasta indeksu pēc pilsētas un ielas. Alus garantēts. | ||||
|
|
| Thursday, December 9th, 2004 |
|
||||||
| Skatīt šeit: http://www.useit.com/ | ||||||
|
|
| Thursday, November 25th, 2004 |
|
||||||
The Craft of Programming, by Alan Cooper.I define craft the way the word was used hundreds of years ago, when a craftsman was a skilled expert who produced unique and highly valued practical objects that only the wealthy could afford. |
||||||
|
|
| Thursday, October 28th, 2004 |
|
||||
|
Here's the rest of the file. Wow. //This file was written by XXXX Pro to make C++ easier for Pascal programmers. ( ... tālāk ... ) # re: #include "pascal.h" 10/27/2004 3:22 PM Jeff S It's funny to see things defined as nothing, so they are ignored. Aparently for nice-reading code. This gives me some good ideas; you could do: #define please #define also #define thanks #define let then you can write code like: also please let a = 1 thanks |
||||
|
|
| Friday, October 22nd, 2004 |
|
||||||
|
4-dimensional layout. Nu, galvenais protams \m/ nosaukt kaut ko. Bet dažas no lietām interesantas. |
||||||
|
|
| Thursday, October 14th, 2004 |
|
||||
|
http://thedailywtf.com/archive/2004/10/1 re: HowBigIsMyCallStackSort() 10/13/2004 3:21 PM chris I admit to having done worse. I would state that it does not matter. Moreover, Big-O notation is important but does not take into account the bussiness-world-centric rules of development time vs runtime. If you know your datasets are smallish, a quick hack search with little development time is always better than a well thought out search that takes even just an hour or so longer. This is precisely why I left the world of business applications. |
||||
|
|
| Tuesday, October 12th, 2004 |
|
||||||
|
Neesmu vēl pats izpētījis - varbūt crappy modeļi, bet tik un tā interesanti: http://www.databaseanswers.org/data_mode |
||||||
|
|
| Monday, September 27th, 2004 |
|
||||
| ģimene ir mirusi | ||||
|
|
| Friday, September 3rd, 2004 |
|
||||
| structured exception handling will kill you | ||||
|
|
| Wednesday, August 25th, 2004 |
|
||||
|
#338364 +(2108)- [X] |
||||
|
|
| Monday, August 23rd, 2004 |
|
||||
Getting back to the subject of scientific method and its possible application to programming, readers may be interested in the observation of Thorngate, who offers that a theory/model cannot simultaneously be general, accurate and simple. It's like a one-armed clock: it can point to any of these three or in between them, but no more. |
||||
|
|
| Tuesday, August 17th, 2004 |
|
||||||
|
Most developers are morons, and the rest are assholes. Es arīdzan peldu kaut kur pa vidu šiem tipiem. |
||||||
|
|