LiveJournal for Pēcis Beisikāns.
|
|||||||||||
| Sunday, October 5th, 2003 |
|
||||
|
"Don't worry about the documentation, we need this thing running yesterday!" Well guess what, tomorrow it will be broken and no one will know what the fuck it is and rewrite it. Of course, he said the above quote on the third rewrite. (no kuro5hin) |
||||
|
|
| Friday, October 3rd, 2003 |
|
||||||
|
Richard Gabriel ideju Ralph Johnson un Brian Marick bīda to Ilinoisas universitātē. http://www.testing.com/cgi-bin/blog/200 redzēs, kas sanāks. ;-) Ward Cunningham ar kautko tamlīdzīgu pa perifēriju ņemās jau gadiem. |
||||||
|
|
| Wednesday, October 1st, 2003 |
|
||||
| tas iedvesmo programmēt... | ||||
|
|
| Tuesday, September 30th, 2003 |
|
||||
|
James Gosling (java tēvs) weblog: http://weblogs.java.net/jag/ |
||||
|
|
| Friday, September 26th, 2003 |
|
||||||
|
Vai jums kādi ieteikumi/pieredze ar unit test framework priekš C/C++? Gribētos, lai būtu mazs, vienkāršs un neizmantotu papildus bibliotēkas (tikai libc). Update: šobrīd apsveru domu izmantot MinUnit. But the important thing about unit testing is the testing, not the framework. |
||||||
|
|
| Thursday, September 25th, 2003 |
|
||||||
|
http://www.python.org/2.3.1/ btw, atgādinu, ka kruta Python IDE ir Boa Constructor : http://boa-constructor.sourceforge.net/ |
||||||
|
|
|
||||||
|
Man parādījās mazliet brīvāks laiks, tādēļ nolēmu izmantot early access iespēju un mazliet paspēlēties ar nākamo Java 1.5. ( Lasīt tālāk ) |
||||||
|
|
| Wednesday, September 24th, 2003 |
|
||||
|
software development should be more like the way buildings are constructed hehe |
||||
|
|
| Sunday, September 21st, 2003 |
|
||||||
| don't fuck'n mix up spaces and tabs in the same file | ||||||
|
|
| Thursday, September 11th, 2003 |
|
||||
|
Pastkaste jau dienas četras piecas kā izslaucīta, domāju jāpārbauda. Izrādās, tiešām, nepienāk. Taču man patīk paziņojums 62.85.***.*** does not like recipient.</blockquote>
|
||||
|
|
|
||||||
|
Uzlaboju programmas ātrdarbību no 1.58 minūtēm uz 5 sekundēm (ievaddatos fails ar 1416 rindiņām). Tā vietā, lai izsauktu padding() metodi, kas aizpilda lauku līdz vajadzīgajam garumam ar atstarpēm (" "): 1. konstruktorā izveidoju String objektu (fill), kas sastāv no 2048 atstarpēm (maksimālais lauka garums) 2. padding() izsaukuma vietā izmantoju fill.substring(0, <nepieciešamais garums>) Tagad kādu nedēļu varēs liekt pirkstus, lielīties par šo faktu un nestrādāt. |
||||||
|
|
| Tuesday, September 9th, 2003 |
|
||||||
|
by jmorse (90107) <joe_w_morse@nosp> on Tuesday September 09, @03:08PM (#6913250) (http://www.descendents.com/ | Last Journal: Tuesday April 29, @12:25PM) Tracking #: 121144608 Title: Bush robot constantly makes grammatic mistakes and makes up words. Problem Detail: Corporate puppet robot model George W. Bush (serial #44625441) exhibits erratic grammatical behavior when deviating from scripted speeches. Often uses words like "subliminable", "methodological", "mispronunciated", "stregic", and "permanency" in place of their English equivalents. Platinum users (Haliburton, Exxon/Mobil, Chevron, Bechtel, Kenneth Lay) have noticed other erratic grammatical behavior, including such phrases as "is our children learning", "we need to make the pie higher", and "will the highways on the internet become more few". Strongly suspect some Jim Beam spilled into the model's grammar logic circuits during an all-night instructional binge session with Barbara and Jenna. Suggest immediate implementation of gaffe-filtering algorithm on all corporate media modules to limit the damage from this bug. Problem Resolution: Media filters in place as of 12 SEP 2001. Language errors are no longer being reported in the corporate media. Suggest further workaround of detaining at Guantanamo Bay register all non-corporate media modules that are incompatible with gaffe-filtering algorithm. (no slashdot komentāriem, protams) |
||||||
|
|
|
||||||
|
Neilgu laiku atpakaļ, kad vēl strādāju diezgan pazīstamā Latvijas IT uzņēmumā, kas (mājiens) cita starpā hostē lielāko Latvijas php resursu, kā darba uzdevumu saņēmu uzdevumu uzrakstīt php skriptu, kas no kāda diezgan liela informatīva rakstura portāla savāc informāciju par kinoteātriem (filmas, laiki, vietas, filmu apraksti, utt.). Neesmu pārliecināts, bet man ir aizdomas, ka, pirmkārt, šis pats skripts tiek izmantots vēl šobaltdien, otrkārt, portāla īpašniekiem joprojām nav nekādas nojausmas par šīm darbībām ar viņu portāla saturu. Paša skripta uzrakstīšana aizņēma apmēram divas stundas plus vēl tikpat divās nākošajās dienās, jo izrādījās, ka nav nemaz tik vienots formāts visiem datiem. Portāla dizaina struktūra sastāv no vairākām nestētām tabulām, neskaitāmi daudziem <font> tagiem kā arī daudziem no šiem (un citiem) elementiem ir arī dažnedažādi style atribūti. Protams, pret visu nodrošināties nebija iespējams, tādēļ tika pieļauts apmēram 80% - 90% savācamo datu apjoms. Ja portāls būtu izveidots, dizainam izmantojot tikai css un html būtu minimāls, tīrs un viendabīgs, darbam būtu bijusi nepieciešama apmēram stunda vai divas un rezultāti tiktu ielasīti precīzi. Morāle: html rakstiet tīru un kārtīgu! |
||||||
|
|
| Tuesday, September 2nd, 2003 |
|
||||||
|
||||||
|
|
| Monday, September 1st, 2003 |
|
||||||
|
Kā visjēdzīgāk pārtulkot vārdu "custom" lietotāja interfeisā? "Izvēles"? "Izvērsts"? "Lietotāja definēts"? Ar domu, ka ir iepriekš definēti laika periodi, bet lietotājs var veidot "custom" savus. |
||||||
|
|
|
||||||
|
+ filtri - metam ārā vēstules, kas izskatās pēc spama - kādam jāatjauno informācija + whitelist - atļaujam ienākt vēstulēm no noteiktiem adresātiem - jebkurš (piem. vīruss) var nosūtīt vēstuli, no atļautas adreses izskatās, ka jāsāk popularizēt un ieviest PGP un līdzīgas lietas vēstuļu parakstiem, kombinējot to ar whitelist. kādi citi varianti? |
||||||
|
|
| Saturday, August 30th, 2003 |
|
||||
Refaktoring. Slovo kakoe-to nehoroshoe - mozhet bit potomu shto slovo "fak" v nem jest.PHP Tips & tricks (PDF; 1,62 MB) |
||||
|
|
| Friday, August 29th, 2003 |
|
||||||
|
http://blogs.gotdotnet.com/cbrumme |
||||||
|
|
| Wednesday, August 27th, 2003 |
|
||||||
|
Kāds var ieteikt kādu metodi, ar ko varētu žurnāla stilā nomainīt %%daylong%% parametra tekstu no angļu uz latviešu valodu, t.i., lai Wednesday vietā parādītos Trešdiena, utt. Mēģināju ar JavaScript (ar kuru, tāpat, kā ar HTML, CSS utt. esmu uz jūs), bet izskatās, ka pie postēšanas jebkāds scripts tiek nogriezts. |
||||||
|
|
| Monday, August 25th, 2003 |
|
||||||
|
Pieķēru savu sīko brāli, lasot žurnālu. Manu. 5 minūšu laikā uztapa risinājums. Žurnāla stilā iekš <style> tagiem ievietojam rindinju:@import url('http://janciigais/skripts.php');Bet skripta failā ieliekam aptuveni šādu tekstu: <?Protams, pēc kādiem parametriem katrs atpazīs savu datoru, un to, ka tas nav viņa paša profils, ir katra paša izvēlē. |
||||||
|
|
| Tuesday, August 19th, 2003 |
|
||||||
|
http://www.yourdon.com/books/DeathM |
||||||
|
|
| Monday, August 18th, 2003 |
|
||||||
|
All parsers should be as liberal as possible. There are no exceptions to Postel’s law. Similarly, all publishers and validators should be as strict as possible. Mark Pilgrim |
||||||
|
|
| Wednesday, August 13th, 2003 |
|
||||||
|
http://blogs.gotdotnet.com/raymondc/ Un leģendārā Don Box teksti: http://www.gotdotnet.com/team/dbox/ |
||||||
|
|
|
||||||
|
FreshMeat ir nopublicējusi X Windows GUI rīku salīdzinājumu, skatīt http://freshmeat.net/articles/view/928 Tāpat var palasīties diskusiju iekš Slashdot par šo rakstu. |
||||||
|
|
| Saturday, August 9th, 2003 |
|
||||
Kāpēc Fahrner image replacement tomēr esot labs?You may try telling us that image-based text is against what the Web is about, but that’s blindly ignoring our needs, and the last time that happened the Web ended up with spacer.gifs and table hacks.Kauču tāpēc, ka esmu pārāk slinks, lai katrai bildītei rakstītu alt tekstu, lai viss būtu xhtml valīds. |
||||
|
|
| Thursday, August 7th, 2003 |
|
||||||
|
ieksh php. $life = $_GET['a_life']; |
||||||
|
|
| Thursday, July 31st, 2003 |
|
||||||||
| 2003./2004. gadā pirmā līmeņa profesionājā studiju programmā "Programmētājs" būs 9 meitenes. Pārējie - puikas. (62 puikas, kopā visi - 71) | ||||||||
|
|
| Wednesday, July 30th, 2003 |
|
||||
|
izklaideejos. mssql_query($kverijs) or die('trying'); |
||||
|
|
| Thursday, July 17th, 2003 |
|
||||
|
We the unwilling, led by the unknowing, are doing the impossible for the ungrateful. We have done so much for so long with so little We are now qualified to do anything with nothing. (Mother Theresa, bet der arī citiem, no slashdot komentāra) |
||||
|
|
| Wednesday, July 16th, 2003 |
|
||||
|
It's amusing that major companies are blindly outsourcing their businesses to companies in South and East Asia. All it takes is an uprising in China or nuke fight between India and Pakistan, and US & European engineers suddenly become a hot commodity again. (no slashdot komentāriem) |
||||
|
|
|
||||
| bruce eckel weblogs | ||||
|
|
|
||||
|
being a programmer in the future will be like being a writer. writers are very talented, but they are a dime a dozen. programmers and writers both operate on intellectual capital. and that, as far as economic rules of supply and demand are concerned, is very cheap. what do you need to express your writing abilities? just pen and paper. since these tools are cheap, writers are cheap. previously, a decade or 2 ago, computer hardware was very expensive and rare, and so those who could manipulate it were very much in demand. as computers become ubiquitous, those who manipulate them, like those who manipulate pen and paper to express their intellectual capital, will become equally just as cheap. (no slashdot komentāriem) |
||||
|
|
| Monday, July 14th, 2003 |
|
||||||
|
Slinkuma mākts, pēdējā laikā aizstāju daudzus testus ar daudziem prototipiem. ( море ) Kā darāt jūs, deadmarcheri un guerillas? |
||||||
|
|
| Friday, July 11th, 2003 |
|
||||
| "there's never time to do it right, but there's always time to do it over" | ||||
|
|
| Thursday, July 10th, 2003 |
|
||||||
|
Vakar, veicot kārtējā package tīrīšanu, likvidēju metodi ar 16 parametriem, galvenokārt String tipa. Jautājums: kāds ir lielākais parametru skaits funkcijai/metodei, ko tu esi rakstījis/redzējis? (Neiet runa par C bibliotēkas printf() funkcijai līdzīgām.) |
||||||
|
|
| Wednesday, July 9th, 2003 |
|
||||
|
Tauta! Lasiet klasiķus! (Edsgera Dijkstras proto-blogs, jeb manuskripti un piezīmes.) |
||||
|
|
|
||||||
|
Almost everyone who teaches object orientation uses the class as a fundamental building block. Such an approach misses the central point of object orientation: the objects themselves, and what they portend for flexibility and effective design. This weblog is a case study in teaching object orientation. Teaching OO: Putting the Object back into OOD |
||||||
|
|
| Monday, July 7th, 2003 |
|
||||||
|
Viena no uzkrītošākajām atšķirībām, ko esmu pamanījis starp MySQL 3.23 un 4 ir tā, ka 3.23 nav tādas operācijas kā
xor jeb ^.Xor būtība - varētu tulkoties kā vai arī - binārā operācija - atgriež true tad, ja tikai viens no abiem apgalvojumiem ir patiess, t.i.:true ^ true = falsetrue ^ false = truefalse ^ true = truefalse ^ false = falseTaču, kā jau esmu dzirdējis, nafig tāds vajadzīgs? Pieņemsim, ir tabula ar 5000 rindām, katrā ir statuss, kas atzīmējas ar 1 vai 0. Kā varētu rīkoties, ja visām rindām vajadzētu uzstādīt pretējo statusu? Varētu uzrakstīt skriptu, kas katras rindas statusu izvelk laukā, tad ar kaut kādus skriptu, popularitātes pēc pieņemsim, php, apgriežam uz pretējo un ievietojam iekšā. 5001 querys kā minimums. Jo vairāk, ja tas ir nepieciešams pietiekami bieži, tas sanāk nepiedodami daudz, protams. Priekš tā arī var izmantot paredzēts xor.'update table set status = status ^ 1' (tas ir tikai piemērs, protams). voila Stāsts, protams, nav par to. Doma man bija tāda - bija uzrakstīts php skripts, kas līdzīgā veidā izdarījās ar mysql. Uz datora, uz kura testējos, stāv uzlikts MySQL 4.0.13. Savukārt uz paredzamā servera, uz kura tam būs jābūt, ir MySQL 3.23 (precīzi nepateikšu, kurš, nezinu). Un gribas atrisināt šo problēmu, tomēr ar ne vairāk kā vienu queryu. Tā rezultātā tapa: 'update table set status = abs(status - 1)' |
||||||
|
|
| Thursday, July 3rd, 2003 |
|
||||
|
Always give bool variables positive names and not things like bool m_noBackground. It will be much better to understand the usage of the variable if it's called m_background and then use if (m_background) ... than if (!m_noBackground) ... . (no KDE Visual Tutorial) (tutoriālis par to kā lietot KDevelop un QT Designer kopā) |
||||
|
|