Pēcis Beisikāns' Journal
View:Personal Journal.
View:Friends.
View:Calendar.
Missed some entries? Then simply jump to the previous day or the next day.

Monday, March 16th, 2009

Subject:PyXML minidom parsing problems
Time:10:35 am.
Problēma ir sekojoša. Ir XML fails:Tālāk... )

Ir Python skripts, ar kura palīdzību katras <target>...</target> virknes beigās pievienot newline, goes like this:Tālāk... )
Problēma sastāv no apstākļa, ka tāda vai citāda iemesla dēļ XML parseris apstājas pie <ph>...</ph> taga un ievieto newline tur, ignorējot atlikušo virknes daļu.
Comments: Read 6 or Add Your Own.

Subject:.net delegāti
Time:1:47 pm.
Kāpēc visi raksta tā
class HaHa
{
	delegate void GlugGlug();
public:
	void Zomg()
	{
		dispatcher->Invoke(DispatcherPriority::Normal, gcnew GlugGlug(this, &HaHa::Pooper));
		dispatcher->Invoke(DispatcherPriority::Normal, gcnew GlugGlug(this, &HaHa::Pirate));
	}
	void Pooper() { }
	void Pirate() { }
}
nevis šitā
class HaHa
{
	delegate void GlugGlug();
	GlugGlug^ glug;
	GlugGlug^ zomg;
public:
	HaHa()
	{
		glug = gcnew GlugGlug(this, &HaHa::Pooper);
		zomg = gcnew GlugGlug(this, &HaHa::Pirate);
	}
	void Zomg()
	{
		dispatcher->Invoke(DispatcherPriority::Normal, glug);
		dispatcher->Invoke(DispatcherPriority::Normal, zomg);
	}
	void Pooper() { }
	void Pirate() { }
}
?
Comments: Read 1 or Add Your Own.

Pēcis Beisikāns' Journal

View:User Info.
View:Friends.
View:Calendar.
View:Memories.
Missed some entries? Then simply jump to the previous day or the next day.