LiveJournal for Pēcis Beisikāns.

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

Monday, April 5th, 2004

Pulkstens:18:50
Posted by:watt.
So what if there are 900 audio players, or hundreds of Perl modules doing similar stuff? Do we lecture nature about the inefficiency of having so many different species of birds?
(no slashdot komentāriem)
Varbūt tu ko ierakstīsi?

Monday, March 29th, 2004

Pulkstens:10:37
Posted by:watt.
Object Orientation: a joke.
Varbūt tu ko ierakstīsi?

Wednesday, March 24th, 2004

Pulkstens:16:14
Posted by:watt.

static void Main(string[] args)
{
    // vienkarshi
    Messiah jesus = new Messiah();
    System.Console.WriteLine( "You are " + jesus.save() );
    jesus.Dispose();

    // efektiivi, bet ne korekti
    System.Console.WriteLine( "You are " + ( new Messiah() ).save() );

    // konkreeti
    System.Console.WriteLine( "You are " + Jesus.saves() );
}

[...]

class Messiah: IDisposable
{
    public string save()
    {
        return "saved";
    }

#region IDisposable Members

    public void Dispose()
    {
        // TODO: Add Messiah.Dispose implementation
    }

#endregion
}

class Jesus: Messiah
{
    public static string saves()
    {
        using( Messiah j = new Messiah() )
        {
            return j.save();
        }
    }
}

Varbūt tu ko ierakstīsi?

Sunday, March 21st, 2004

Doma:Programming = Art
Pulkstens:15:19
Posted by:watt.
Oh it *is* an art.

Sadly it's the type of art where they paint with feces.

(no slashdot komentāriem)
Varbūt tu ko ierakstīsi?

Friday, March 19th, 2004

Doma:beware of the garbage collector
Pulkstens:12:11
Posted by:watt.
The garbage collector does _not_ play well with the swap file. It causes each page belonging to the Java heap to be regularly paged in. Often. Several times per garbage collection pass, in fact.

So whereas a system which stuck to C or C++ will still run at full speed when I load 550 MB of programs in a 512 MB of RAM, a 100% Java system would trash to death at that point. (In fact, see point 2: much sooner than that.)

Or if only 300k out of that is Java stuff, it will act all elbows to the other apps. It will keep bringing its own pages in, and forcing everyone else to do with less memory.

(no slashdot komentāriem)
Varbūt tu ko ierakstīsi?

Friday, March 5th, 2004

Pulkstens:15:12
Posted by:watt.
Educational Materials to Assist in Instruction of Information

Hiding Basics

Vibha Sazawal, Ken Yasuhara, and Neil Spring

10 May, 2002

Abstract Information hiding is an essential, often misunderstood, topic of any undergraduate software engineer- ing course. To assist in the instruction of information hiding basics, we created the following high-quality educational materials.

1 Verbal Notes for the Instructor Please recite these notes verbatim. Maintaining close accordance to the melody of Depeche Mode's "Policy of Truth" will increase the quantity of learning.

... tālāk ... )
1 jau ierakstīja | Varbūt tu ko ierakstīsi?

Thursday, December 4th, 2003

Doma:Dziesmiņa
Pulkstens:13:45
Posted by:src.
99 little bugs in the code, 99 bugs in the code,
fix one bug, compile it again...
101 little bugs in the code....
Varbūt tu ko ierakstīsi?

Tuesday, November 11th, 2003

Pulkstens:23:40
Posted by:watt.
ja gadās gatavoties darba intervijai.
1 jau ierakstīja | Varbūt tu ko ierakstīsi?

Monday, November 10th, 2003

Pulkstens:16:25
Posted by:aiks.
req4help
-------
kaadam ir kaadas idejas kaa ieksh java (ar defaulto CORBA implementaaciju), ar pietiekami augstas logjikas izsaukumu dabuut klienta ip?
Varbūt tu ko ierakstīsi?

Tuesday, November 4th, 2003

Doma:xp
Pulkstens:20:41
Posted by:smejmoon.
Questioner: How do I sell my executive team on doing this stuff?

Jim Highsmith: Don't. Just do it. They don't know what you're doing anyway.
Varbūt tu ko ierakstīsi?

Monday, November 3rd, 2003

Doma:Python
Pulkstens:00:42
Posted by:laacz.
Mood:curious.
Music:TATU.

Esmu gatavs izsaukt uguni fleimu uz sevi. Bet nespēju nenoturēties un nepaust savu autoritāro viedokli.

Manuprāt Python ir tāda advancēta spēļmantiņa koderiem (scripteriem). Vismaz .lv apstākļos toč.

No otras puses, Python varētu tikt dēvēta par Perl nākamo pakāpi :)

Sue me.

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

Friday, October 31st, 2003

Doma:latvian programming language shootout
Pulkstens:21:28
Posted by:smejmoon.
Trīs vienkārši uzdevumi, nav vienas pareizās atbildes.

C++,Java, Pascal, PHP, Pike, Prolog, Python, VB.NET

Parādi savu valodu!

http://smejmoon.lv/lsl/
Varbūt tu ko ierakstīsi?

Wednesday, October 29th, 2003

Pulkstens:14:30
Posted by:smejmoon.
please remove your debugging comments from code
Varbūt tu ko ierakstīsi?

Thursday, October 23rd, 2003

Doma:TEV, KODERI
Pulkstens:21:51
Posted by:watt.
I doubt very highly that your instructors will tell you how to handle all the nasty little things that can occur when humans work in groups: backstabbing, stonewalling, sabotage, etc. The sad truth is that the people who do actually learn about these tactics (under the guise of "organizational behavior") are MBAs, the people who end up being managers. Folks, the deck has been stacked: The MBAs have been given whips, and the CS majors have all been given saddles.



uzreiz pēc "Surviving DeathMarch" iesaku uzmest aci šim...

Software Exorcism: Tactics for Maintaining Legacy Code
3 jau ierakstīja | Varbūt tu ko ierakstīsi?

Pulkstens:19:25
Posted by:smejmoon.
What Java has removed from C++: (p.902)

* Java does not allow the goto.

New features added by Java: (p.904)

* The break and continue statements have been enchanced in Java to accept labels as targets.


--Java TM 2: The Complete reference
3 jau ierakstīja | Varbūt tu ko ierakstīsi?

Pulkstens:12:34
Posted by:aiks.
cilveeciigs IDL failu (taadaa formaataalai to CORBA saprastu) editors ir?
2 jau ierakstīja | Varbūt tu ko ierakstīsi?

Pulkstens:00:27
Posted by:watt.
disassembler desktop
Varbūt tu ko ierakstīsi?

Tuesday, October 14th, 2003

Doma:html koderiem
Pulkstens:01:14
Posted by:src.

Jaunumi no Tantek — highpass un midpass css filtri.

Varbūt tu ko ierakstīsi?

Tuesday, October 7th, 2003

Doma:Micro-horse unleashed!
Pulkstens:12:46
Posted by:watt.
Robin [...] was once asked during a job interview: "What's your favourite design pattern?"
What's the correct response to that? "Oh, Decorator every time! Yeah, I use it for everything!"



(Software Fashion Victim)
4 jau ierakstīja | Varbūt tu ko ierakstīsi?

Sunday, October 5th, 2003

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

Friday, October 3rd, 2003

Doma:Master of Fine Arts in Software
Pulkstens:19:20
Posted by:smejmoon.
Richard Gabriel ideju Ralph Johnson un Brian Marick bīda to Ilinoisas universitātē.

http://www.testing.com/cgi-bin/blog/2003/10/02#mfa

redzēs, kas sanāks. ;-) Ward Cunningham ar kautko tamlīdzīgu pa perifēriju ņemās jau gadiem.
Varbūt tu ko ierakstīsi?

Wednesday, October 1st, 2003

Pulkstens:13:31
Posted by:watt.
tas iedvesmo programmēt...
Varbūt tu ko ierakstīsi?

Tuesday, September 30th, 2003

Pulkstens:00:22
Posted by:watt.
James Gosling (java tēvs) weblog:
http://weblogs.java.net/jag/
Varbūt tu ko ierakstīsi?

Friday, September 26th, 2003

Doma:Unit tests
Pulkstens:12:40
Posted by:ukawi.
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.
2 jau ierakstīja | Varbūt tu ko ierakstīsi?

Thursday, September 25th, 2003

Doma:jauns Pitons!!!
Pulkstens:12:54
Posted by:watt.
http://www.python.org/2.3.1/

btw, atgādinu, ka kruta Python IDE ir Boa Constructor : http://boa-constructor.sourceforge.net/ (screenshots)
1 jau ierakstīja | Varbūt tu ko ierakstīsi?

Doma:Jauninājumi programmēšanas valodas Java 1.5 versijā
Pulkstens:00:54
Posted by:ukawi.
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 )
4 jau ierakstīja | Varbūt tu ko ierakstīsi?

Wednesday, September 24th, 2003

Pulkstens:19:17
Posted by:watt.
software development should be more like the way buildings are constructed
hehe
Varbūt tu ko ierakstīsi?

Sunday, September 21st, 2003

Doma:coding standard
Pulkstens:15:38
Posted by:smejmoon.
don't fuck'n mix up spaces and tabs in the same file
Varbūt tu ko ierakstīsi?

Thursday, September 11th, 2003

Pulkstens:22:35
Posted by:skalpelis.
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>
Varbūt tu ko ierakstīsi?

Pulkstens:17:50
Posted by:ukawi.
Mood:penisLength++;.
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.
10 jau ierakstīja | Varbūt tu ko ierakstīsi?

Tuesday, September 9th, 2003

Doma:My favorite bug report (Score:5, Funny)
Pulkstens:23:44
Posted by:watt.
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)
Varbūt tu ko ierakstīsi?

Doma:Kam nepieciešams semantisks un tīrs (x)html markup(latviski?)?
Pulkstens:15:25
Posted by:skalpelis.
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!
10 jau ierakstīja | Varbūt tu ko ierakstīsi?

Tuesday, September 2nd, 2003

Doma:inbox.lv un php
Pulkstens:14:40
Posted by:smejmoon.

Received: from timmy.inbox.lv (timmy.inbox.lv [81.94.227.7])

[..]

-- Tavs bezmaksas pasts Inbox.lv


Warning: fpassthru(): supplied argument is not a valid stream resource in /www/wwwn.inbox.lv/fetchbanners.php on line 7
Varbūt tu ko ierakstīsi?

Monday, September 1st, 2003

Doma:Custom
Pulkstens:19:48
Posted by:xoox.
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.
3 jau ierakstīja | Varbūt tu ko ierakstīsi?

Doma:kā cīnīties ar spamu
Pulkstens:17:05
Posted by:smejmoon.
+ 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?
2 jau ierakstīja | Varbūt tu ko ierakstīsi?

Saturday, August 30th, 2003

Pulkstens:18:16
Posted by:skalpelis.
Refaktoring. Slovo kakoe-to nehoroshoe - mozhet bit potomu shto slovo "fak" v nem jest.
PHP Tips & tricks (PDF; 1,62 MB)
Varbūt tu ko ierakstīsi?

Friday, August 29th, 2003

Doma:lūk tas ir spēcīgs programmētāja weblogs
Pulkstens:19:12
Posted by:smejmoon.
http://blogs.gotdotnet.com/cbrumme
1 jau ierakstīja | Varbūt tu ko ierakstīsi?

Wednesday, August 27th, 2003

Doma:Conditions in HTML
Pulkstens:19:23
Posted by:xoox.
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.
12 jau ierakstīja | Varbūt tu ko ierakstīsi?

Monday, August 25th, 2003

Doma:privacy [css & php]
Pulkstens:21:22
Posted by:skalpelis.
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:

<?
header('Content-Type: text/css');
if (($_SERVER['REMOTE_ADDR'] == '***.***.***.***') && ($_ENV['username'] != 'skalpelis'))
echo 'body{ display: none; }';
?>


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