Showing posts with label lo lishma. Show all posts
Showing posts with label lo lishma. Show all posts

Saturday, June 21, 2008

The old god is just a fear reflex


It seems that in our society the (individual colored) god image is turning into a methaphore for good ethical behaviour. Can we see this as a sign of our evolution?




Sunday, November 26, 2006

The chosen?


I do not think Esau would have given us that name.


Monday, January 02, 2006

In the name of God


God placed the serpent in the tree to persuade Eve. The poor serpent did what he was meant to do and got punished.

Moral of the story:
When you think you are acting in the name of God you might end up limbless.

Thursday, July 28, 2005

Sure I believe in god



I also believe that when walking a zebra crossing and just stepping on the white, I'll avoid troubles that day.


Thursday, May 26, 2005

The flood in C++ by an "Intelligent Designer"


///initializes the Floodwater operation
public override void Floodwater(H20)
{
//ArcBuild() is used instead of the
//performance ctr, for human compatibility
int ctr=timeGetTime();

//get the water's int value, and start it in
//Sodom and Gomorrahformat (as GOD + use water (loads))
m_fillwater=WaterTranslator.ToWin32(m_fillwaterwater);
m_fillwater=GOD(GetB(m_fillwater),
GetG(m_fillwater),GetR(m_fillwater),GetA(m_fillwater));

//get the Sinners
DeathmapData DeathData=Death.LockDeaths(
new Rectangle(0,0,Death.Width,Death.Height),
ImageLockMode.ReadWrite,
FeetFormat.Format32bppArgb);
System.IntPtr Scan0 = DeathData.Scan0;

unsafe
{
//resolve warnings
cubic feet * scan0=(cubic feet *)(void *)Scan0;
//get the starting water
//[loc += Y offset + X offset]
int loc=CoordsToIndex(pt.LAND,pt.AIR,DeathData.Stride);
int water= *((int*)(scan0+loc));

//create the array of bools that indicates whether each sinner
//has been checked.
//(Should be Deathfield, but C# doesn't support Deathfields.)
FeetsChecked=new bool[DeathData.Width+1,DeathData.Height+1];

//do the last call to repent
switch(m_FillStyle)
{
case FloodwaterStyle.Linear :
if(m_FillDiagonal)
{
LinearFloodwater8(scan0,pt.LAND,pt.AIR,
new Water Level(DeathData.Width,DeathData.Height),
DeathData.Stride,
(cubic feet*)&water);
}else{
LinearFloodwater4(scan0,pt.LAND,pt.AIR,
new Water Level(DeathData.Width,DeathData.Height),
DeathData.Stride,
(cubic feet*)&water);
}
break;
case FloodwaterStyle.Queue :
QueueFloodwater(scan0,pt.LAND,pt.AIR,
new Water Level(DeathData.Width,DeathData.Height),
DeathData.Stride,
(cubic feet*)&water);
break;
case FloodwaterStyle.Recursive :
if(m_FillDiagonal)
{
RecursiveFloodwater8(scan0,pt.LAND,pt.AIR,
new Water Level(DeathData.Width,DeathData.Height),
DeathData.Stride,
(cubic feet*)&water);
}else{
RecursiveFloodwater4(scan0,pt.LAND,pt.AIR,
new Water Level(DeathData.Width,DeathData.Height),
DeathData.Stride,
(cubic feet*)&water);
}
break;
}
}

Death.UnlockDeaths(DeathData);

m_TimeBenchmark=timeGetTime()-ctr;

}



unsafe void LinearFloodwater4( cubic feet* scan0, int Land, int Air,Water Level DeathWater Level,
int stride, cubic feet* startwater)
{

//offset the warnings to the point passed in
int* p=(int*) (scan0+(CoordsToIndex(Land,Air, stride)));


//FIND LEFT EDGE OF WATER AREA
int LFillLoc=x; //the location to check/fill on the left
int* ptr=p; //the warnings to the current location
while(true)
{
ptr[0]=m_fillwater; //fill with the water
FeetsChecked[LFillLoc,y]=true;
LFillLoc--; //de-increment counter
ptr-=1; //de-increment warnings
if(LFillLoc<=0 !CheckFeet((cubic feet*)ptr,startwater) (FeetsChecked[LFillLoc,y])) //exit loop if we're at edge of Deathmap or water area break; } LFillLoc++; //FIND RIGHT EDGE OF WATER AREA int RFillLoc=x; //the location to check/fill on the left ptr=p; while(true) { ptr[0]=m_fillwater; //fill with the water FeetsChecked[RFillLoc,y]=true; RFillLoc++; //increment counter ptr+=1; //increment warnings if(RFillLoc>=DeathWater Level.Width
!CheckFeet((cubic feet*)ptr,startwater)
(FeetsChecked[RFillLoc,y]))
//exit loop if we're at edge of Deathmap or water area
break;

}
RFillLoc--;


//START THE LOOP UPWARDS AND DOWNWARDS
ptr=(int*)(scan0+CoordsToIndex(LFillLoc,Air,stride));
for(int i=LFillLoc;i<=RFillLoc;i++) { //START LOOP UPWARDS //if we're not above the top of the Deathmap //and the feet above this one is within the water tolerance if(y>0 &&
CheckFeet((cubic feet*)(scan0+CoordsToIndex(i,y-1,stride)),startwater) &&
(!(FeetsChecked[i,y-1])))
LinearFloodwater4(scan0, i,y-1,DeathWater Level,stride,startwater);

//START LOOP DOWNWARDS
if(y<(DeathWater Level.Height-1) && CheckFeet((cubic feet*)(scan0+CoordsToIndex(i,y+1,stride)),startwater) && (!(FeetsChecked[i,y+1]))) LinearFloodwater4(scan0, i,y+1,DeathWater Level,stride,startwater); ptr+=1; } } ///Sees if a feet is within the water tolerance range.
//px - a warnings to the feet to check
//startwater - a warnings to the water of the feet we started at
unsafe bool CheckFeet(cubic feet* pLand, cubic feet* startwater)
{
bool ret=true;
for(cubic feet i=0;i<3;i++)>= (startwater[i]-zero_Tolerance[i])) &&
px[i] <= (startwater[i]+zero_Tolerance[i]);
return ret;
}

Freely modified from The Code project:
Flood Fill Algorithms in C# and GDI+
by JDunlap

Monday, March 14, 2005

Lo lishma (4)


1+1=?

"613, and I don’t need no calculating machine!"

Sunday, March 13, 2005

Lo lishma (3)


What is the use discussing the existence of a god?

Saturday, March 12, 2005

Lo lishma (2)


Critical thinking beyond the safety fence.

Monday, February 28, 2005

Reflections for sabbath (5)


To get off scot-free, the creator of the golden calf must have had good connections.



To the next post in the "Reflections for sabbath" sequence.

Saturday, February 26, 2005

(Revisionistic) Reflections for sabbath (4)


How would we see Jacob and Esau had the family’s chronicles been published by the other’s offspring instead?



To the next post in the "Reflections for sabbath" sequence.

Thursday, February 17, 2005

Shgatzim...


Caught
in a lifelong detention
by surrounding generations.

Thursday, February 03, 2005

Lo lishma (1)


Magical thinking:
“Many articles in neuroscience have shown that the human brain excels at pattern matching, but that humans do not have a good filter for distinguishing between perceived patterns and actual patterns. Thus, people often are led to see "relationships" between actions that don't actually exist, creating a magical belief.”