LiveJournal for Pēcis Beisikāns.

View:Par lietotāju.
View:Draugi raksta.
View:Kalendāra skats.
View:Izlase.
You're looking at 40 entries, after skipping 160 newer ones. Missed some entries? Then simply jump back 40 entries or forward 40 entries.

Wednesday, June 1st, 2005

Pulkstens:15:05
Posted by:smejmoon.
"Strong typing means there [are] a lot of variables whose names are
in ALL CAPS." - Paul Rubin
1 jau ierakstīja | Varbūt tu ko ierakstīsi?

Doma:Nopelni $ vasarā
Pulkstens:00:13
Posted by:src.

Google maksā 4500$ studentiem par sekmīgu piedalīšanos atvērtā koda projektā.

Ja esi students — piesakies!

Varbūt tu ko ierakstīsi?

Monday, May 30th, 2005

Doma:Um
Pulkstens:12:44
Posted by:markizs.
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 :/
8 jau ierakstīja | Varbūt tu ko ierakstīsi?

Thursday, May 26th, 2005

Doma:[censored] loops
Pulkstens:18:56
Posted by:smejmoon.
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
14 jau ierakstīja | Varbūt tu ko ierakstīsi?

Doma:css help needed
Pulkstens:17:35
Posted by:aiks.
krossposts no mana žurnāla, varbūt kāds css un html zinošs cilvēciņš var palīdzēt?
1 jau ierakstīja | Varbūt tu ko ierakstīsi?

Doma:help!
Pulkstens:17:25
Posted by:taapati.
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 :)
24 jau ierakstīja | Varbūt tu ko ierakstīsi?

Pulkstens:16:34
Posted by:misame.
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/2005/05/26/mapi_cdo
Varbūt tu ko ierakstīsi?

Tuesday, May 24th, 2005

Doma:Been there, seen that ...
Pulkstens:11:44
Posted by:aiks.
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!
1 jau ierakstīja | Varbūt tu ko ierakstīsi?

Monday, May 16th, 2005

Pulkstens:23:46
Posted by:watt.
"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)
Varbūt tu ko ierakstīsi?

Friday, May 13th, 2005

Doma:ja nu viss noiet greizi dēļ librarijiem
Pulkstens:11:25
Posted by:grrr.
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.
(...)
Try running the following script:
#! /bin/sh
( find -s /usr/local/lib /usr/X11R6/lib -name "lib*.so"
 find -s /usr/local/bin /usr/X11R6/bin/
) |
xargs ldd -a 2>/dev/null |
awk '
 /^[^\t]/ { cmd=$1 }
 /^\tlibc_r.so/ { printf "%s\t%s\n",cmd,$3 }
'


That should print out all the libraries and programs that are explicitly linked to libc_r.so. Rebuild the ports they came from and you should be okay.
Varbūt tu ko ierakstīsi?

Saturday, May 7th, 2005

Doma:PostgreSQL v8
Pulkstens:10:40
Posted by:grrr.
iznāca jau pirms laiciņa, bet nu arī reviews (salīdzina Ora10g, MySQL5, Postgres8 - visus uz Windows):

http://www.suite101.com/article.cfm/oracle/115560
7 jau ierakstīja | Varbūt tu ko ierakstīsi?

Monday, May 2nd, 2005

Doma:html lieta
Pulkstens:11:18
Posted by:kits.
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!
9 jau ierakstīja | Varbūt tu ko ierakstīsi?

Sunday, May 1st, 2005

Pulkstens:23:36
Posted by:watt.
||| 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)
Varbūt tu ko ierakstīsi?

Tuesday, April 26th, 2005

Pulkstens:20:34
Posted by:grrr.
SWT un Swing
Varbūt tu ko ierakstīsi?

Doma:biki no DHTML
Pulkstens:15:24
Posted by:tidliibums.
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("elementToChange").style.visibility = "hidden";

Bet 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).
8 jau ierakstīja | Varbūt tu ko ierakstīsi?

Wednesday, April 20th, 2005

Pulkstens:22:22
Posted by:grrr.
- Good programmers are like good linguists. They speak many languages and are richer for the experience and comparision.
3 jau ierakstīja | Varbūt tu ko ierakstīsi?

Doma:java newbie jautājums
Pulkstens:12:30
Posted by:src.
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.
23 jau ierakstīja | Varbūt tu ko ierakstīsi?

Pulkstens:10:42
Posted by:watt.
Zem kontraversā virsraksta C# vs. VB.NET slēpjas diezgan labs teksts par programmēšanas vēsturi. Ar citātu no Virta un Dijkstras.


After more than 30 years of programming we ought to know that the design of complex software is inherently difficult. This despite of the fact that, for decades, the industry has been advertising programmers' positions by claiming that programming is easy. Later on, when doubts arose even to the advertisers, they switched to promising a wide variety of tools to facilitate the arduous tasks. Tools became the slogan; the right tools, paired with clever tricks and serious management methods, would work wonders. Then Edsger Dijkstra called Software Engineering 'Programming in spite of the fact that you can't'.

Indeed, the woes of Software Engineering are not due to lack of tools, or proper management, but largely due to lack of sufficient technical competence. A good designer must rely on experience, on precise, logical thinking, and on pedantic exactness. No magic will do.

3 jau ierakstīja | Varbūt tu ko ierakstīsi?

Friday, April 15th, 2005

Pulkstens:10:28
Posted by:grrr.
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ā).
2 jau ierakstīja | Varbūt tu ko ierakstīsi?

Wednesday, April 6th, 2005

Doma:Web UI dizains
Pulkstens:18:38
Posted by:nfoworm.
Interesanta pieeja par tēmu Loren Ipsum: http://www.37signals.com/svn/archives/001083.php
1 jau ierakstīja | Varbūt tu ko ierakstīsi?

Friday, April 1st, 2005

Pulkstens:18:14
Posted by:watt.
mind->toBlog() : possible null pointer dereference
1 jau ierakstīja | Varbūt tu ko ierakstīsi?

Tuesday, March 29th, 2005

Doma:Uzrakstiishu par software development
Pulkstens:17:10
Posted by:zverj.
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?
11 jau ierakstīja | Varbūt tu ko ierakstīsi?

Saturday, March 12th, 2005

Doma:PHP soliņu iezīmēšana
Pulkstens:23:01
Posted by:nfoworm.
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.php

Varbūt, ka kādu no mums tas arī interesē?
5 jau ierakstīja | Varbūt tu ko ierakstīsi?

Wednesday, March 2nd, 2005

Doma:Windows API + PHP
Pulkstens:17:56
Posted by:nfoworm.
Rakstam PHP aplikācijas kā Windows aplikācijas GUI videi - WinBinder: http://www.hypervisual.com/winbinder/

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.php?id=win32std:index
6 jau ierakstīja | Varbūt tu ko ierakstīsi?

Tuesday, February 22nd, 2005

Doma:Jautājums par CVS
Pulkstens:15:51
Posted by:src.

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.

3 jau ierakstīja | Varbūt tu ko ierakstīsi?

Wednesday, February 16th, 2005

Pulkstens:17:13
Posted by:watt.
"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)
Varbūt tu ko ierakstīsi?

Wednesday, February 9th, 2005

Doma:Illuminatus!
Pulkstens:22:30
Posted by:watt.
...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/comments.pl?sid=138807&threshold=3&mode=flat&commentsort=0&op=Change
Varbūt tu ko ierakstīsi?

Sunday, January 30th, 2005

Doma:the only methdology you need to know
Pulkstens:10:45
Posted by:watt.
Politics-Oriented Software Development
http://www.kuro5hin.org/story/2005/1/28/32622/4244
Varbūt tu ko ierakstīsi?

Friday, January 7th, 2005

Pulkstens:01:36
Posted by:xoox.
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.
4 jau ierakstīja | Varbūt tu ko ierakstīsi?

Thursday, December 9th, 2004

Doma:Derīgs resurss par lietojamību.
Pulkstens:11:24
Posted by:nfoworm.
Skatīt šeit: http://www.useit.com/
Varbūt tu ko ierakstīsi?

Thursday, November 25th, 2004

Doma:The Craft of Programming
Pulkstens:15:30
Posted by:grrr.
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.
Varbūt tu ko ierakstīsi?

Thursday, October 28th, 2004

Pulkstens:23:07
Posted by:grrr.
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
3 jau ierakstīja | Varbūt tu ko ierakstīsi?

Friday, October 22nd, 2004

Doma:Once more with feeling
Pulkstens:18:10
Posted by:grrr.
4-dimensional layout.
Nu, galvenais protams \m/ nosaukt kaut ko. Bet dažas no lietām interesantas.
Varbūt tu ko ierakstīsi?

Thursday, October 14th, 2004

Pulkstens:13:14
Posted by:grrr.
http://thedailywtf.com/archive/2004/10/13/2557.aspx#2559, no DailyWTF, par briesmīgu sortēšanas implementāciju ( O(n^n) ):

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.
2 jau ierakstīja | Varbūt tu ko ierakstīsi?

Tuesday, October 12th, 2004

Doma:Datu modeļi par velti?
Pulkstens:09:01
Posted by:grrr.
Neesmu vēl pats izpētījis - varbūt crappy modeļi, bet tik un tā interesanti:

http://www.databaseanswers.org/data_models/index.htm
Varbūt tu ko ierakstīsi?

Monday, September 27th, 2004

Pulkstens:23:07
Posted by:watt.
ģimene ir mirusi
Varbūt tu ko ierakstīsi?

Friday, September 3rd, 2004

Pulkstens:15:54
Posted by:watt.
structured exception handling will kill you
Varbūt tu ko ierakstīsi?

Wednesday, August 25th, 2004

Pulkstens:23:24
Posted by:grrr.
#338364 +(2108)- [X]

Saying that Java is nice because it works on all OS's is like saying that anal sex is nice because it works on all genders
Varbūt tu ko ierakstīsi?

Monday, August 23rd, 2004

Pulkstens:13:57
Posted by:grrr.
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.

I see this a applicable to the classification of a requirement: the collection of them cannot simultaneously be general, accurate, and simple.

Does this help?

Thorngate, W. (1976). "In general" vs. "It depends": some comments of the Gergen-Schlenker debate. Personality & Social Psychology Bulletin, 2, 404-410.
Varbūt tu ko ierakstīsi?

Tuesday, August 17th, 2004

Doma:par specifikācijām
Pulkstens:14:43
Posted by:src.

Most developers are morons, and the rest are assholes.

Es arīdzan peldu kaut kur pa vidu šiem tipiem.

5 jau ierakstīja | Varbūt tu ko ierakstīsi?