Oren Eini

CEO of RavenDB

a NoSQL Open Source Document Database

Get in touch with me:

oren@ravendb.net +972 52-548-6969

Posts: 7,591
|
Comments: 51,223
Privacy Policy · Terms
filter by tags archive
time to read 1 min | 174 words

 [via you've been HAACKED[Via Scoble]

http://www.molly.com/2005/01/15/the-accidental-blogger/ THE ACCIDENTAL BLOGGER is what I'm going to call what happens when a blogger writes a post that accidentally becomes far more important to their site than ever intended. I certainly never intended that racing frogs and the death test would be among my more popular threads, but there you ...

I am not a native English speaker (in fact, I don't get to speak much English. Only when the ICRC comes to visit) so I make a lot of spelling mistakes (and I hate spell checking).

Because of this, I made some pretty horrible typing mistakes, and appernatly they are generating the most views from google searches:

The Incridibiles

Read Habbits

Laptob

time to read 1 min | 95 words

I don't usually go to horror movies, and after seeing this one, I know why.
It's a good movie in the sense that I jumped in all the right places, and I was really tense most of the movie. And now that I'm out of there I don't think I'll have trouble sleeping etc.

However, I don't think that I'll be able to see someone sticking out their tongue and not shudder for the next few days.

Unbelievable!

time to read 1 min | 186 words

Update: The Issue has been resolved thanks to Mike Griffin. See here for the details.

I just downloaded MyGeneration to test it.

I install the software, and selected Launch MyGeneration in the setup prompt.

So far, everything is normal. What wasn't normal that nothing seems to happen for longs minutes, and suddenly I'm feeling sever memory pressure.

When I finally got taskmgr to load (took nearly 30 seconds) I discovered what the problem is.

I was swapping! Swapping!
I've 1GB RAM excatly because of this!

Take a look at Taskmgr's report:

That's right, 260MB just sitting there.
And peek memory usage of 500MB just to load the bloody application.

I've run stress tests on my machine that didn't use that much memory.

I know about moore's law, but this is ridiculous!

Uninstalled, good riddance.

time to read 1 min | 131 words

What he's doing there might give you nightmares.

Raymond Chen blogs about the simple act of getting the size of a directory, not so simple after all, if you take into account all sorts of obscure stuff like reprase points, hard links, sparse files, compressed files and file streams.

It remind me an article about file copying by Joel from some time ago.

"CCITT" -- Can't Conceive Intelligent Thoughts Today

"Yes, it's tough, but not as tough as doing comedy." -- Final words of Edmund Gwenn, actor, d. September 6, 1959 (When asked if he thought dying was tough.)

[Listening to: Sealed with A Kiss - Agnetha Faltskog - My Colouring Book(02:35)]

Lambada in C#

time to read 9 min | 1626 words

Sriram Krishnan attempts to create lambada in C#, and James Robertson sneers at the attempt.
Peronally, I don't understand why she took the string approach even if she wanted to remain general. Delegates are perfectly possible to move a delegate around in a type-safe manner.

Here is a possible solution1, it works for both static and instance methods.

     1: using System;
     2: using System.Collections;
     3:  
     4: namespace Lambada
     5: {
     6:     class Mai2n
     7:     {
     8:         private static string[] words = {"dog","cat","mink"};
     9:         delegate void StringDelegate(string args);
    10:         delegate string RetStringDelegate(string args);
    11:         delegate void IntegerDelegate(int i);
    12:  
    13:         private static void PrintInt(int i)
    14:         {
    15:             Console.WriteLine("Integer: " +i);
    16:         }
    17:  
    18:         private static void PrintStr(string str)
    19:         {
    20:             Console.WriteLine(str);
    21:         }
    22:  
    23:         private static string Capitalize(string str)
    24:         {
    25:             if(!Char.IsUpper(str,0))
    26:                 str = Char.ToUpper(str[0])+str.Substring(1);
    27:             return str;
    28:         }
    29:  
    30:         private int multiplyBy;
    31:         public void Multiply(int i)
    32:         {
    33:             Console.WriteLine("Multiply by "
+ multiplyBy +": " + i*multiplyBy);
    34:         }
    35:  
    36:         public static void Main(string[] args)
    37:         {
    38:             Mai2n m = new Mai2n();
    39:             m.multiplyBy = 2;
    40:             Map(new StringDelegate(PrintStr),words);
    41:             Map(new IntegerDelegate(PrintInt),new int[]
{1,3,5,7,11,13});
    42:             Map(new StringDelegate(PrintStr),
    43:                 ReturningMap(new RetStringDelegate(Capitalize)
                         ,words));
    44:             Map(new IntegerDelegate(m.Multiply),new int[]
                             {2,4,6,8,10});
    45:         }
    46:  
    47:         public static void Map(Delegate d, IList list)
    48:         {
    49:             foreach (object o in list)
    50:             {
    51:                 d.DynamicInvoke(new object[]{o});
    52:             }
    53:         }
    54:  
    55:         public static IList ReturningMap(Delegate d, IList list)
    56:         {
    57:             ArrayList al = new ArrayList(list.Count);
    58:             object ret;
    59:             foreach(object o in list)
    60:             {
    61:                 ret = d.DynamicInvoke(new object[]{o});
    62:                 if(ret!=null)
    63:                     al.Add(ret);
    64:             }
    65:             return al;
    66:         }
    67:     }
    68: }

Here is the output of the above program:

dog
cat
mink
Integer: 1
Integer: 3
Integer: 5
Integer: 7
Integer: 11
Integer: 13
Dog
Cat
Mink
Multiply by 2: 4
Multiply by 2: 8
Multiply by 2: 12
Multiply by 2: 16
Multiply by 2: 20

 

1 Possible restrictions about no error checking, validation etc apply :-)

 

"A coat hanger is 44 inches long when straightened." -- Fact of lifes

"Quality assurance: A way to ensure you never deliver shoddy goods accidentally." -- Tech Support Slogan

"If you yelled for 8 years, 7 months and 6 days, you would have produced enough sound energy to heat one cup of coffee." -- Fact of lifes

[Listening to: Better Than Ezra - One More Murder - - (04:39)]

Birthday

time to read 1 min | 86 words

I'm 23 years old today :-D

A lot more people then I thought has called and congratulated me. I didn't know that my birthday was so wide known.

It's good to have friends.

"Everybody needs a little love sometime; stop hacking and fall in love!" -- Tech Support Slogan

Regarding yesterday's posts, I'm listening to Queen's collection and I suddenly heard this song, spooky:

[Listening to: Mustapha - Queen - Jazz(03:01)]

FUTURE POSTS

  1. Using Vector Search for Posts Recommendations - about one day from now

There are posts all the way to Jul 24, 2025

RECENT SERIES

  1. RavenDB 7.1 (7):
    11 Jul 2025 - The Gen AI release
  2. Production postmorterm (2):
    11 Jun 2025 - The rookie server's untimely promotion
  3. Webinar (7):
    05 Jun 2025 - Think inside the database
  4. Recording (16):
    29 May 2025 - RavenDB's Upcoming Optimizations Deep Dive
  5. RavenDB News (2):
    02 May 2025 - May 2025
View all series

Syndication

Main feed ... ...
Comments feed   ... ...
}