Thursday, November 18, 2010

sc.exe problem Wrong return code

sc.ece version 5.2.3790.4455 does not return error code 1060 when querying non existing service

C:\>sc.exe query NonExistingServiceName
[SC] EnumQueryServicesStatus:OpenService FAILED 1060:

The specified service does not exist as an installed service.


C:\>echo %ErrorLevel%
0



While on other macine the same commands give error
c:\>sc.exe query NonExistingServiceName
[SC] EnumQueryServicesStatus:OpenService FAILED 1060:

The specified service does not exist as an installed service.


c:\>echo %ErrorLevel%
1060

just a little annoying thing

Wednesday, July 7, 2010

Amazon AWS EC2 S3 - experience

Recently I'm playing with EC2 images

Things are not trivial and different steps requires googling and trying things as the task is not a common one

1. Running on windows EC2 image (rather than linux)
2. Run task on instance startup (thather than at log in time)
- I expected this to be one of the mainstream tasks, but still found it hard to find "How to" about it
3. Automatically running instaces of an image
That should've been trivial, but AWS web interfaces has changed so old doc was misleading
Took me long time and some help to find to which cert they refer and how to match it to private key, to which one ... (this is behind me now)
4. S3 automation - currently using CloudBerry Explorer for Amazon
Boot task:
1. Task should run automatically w/o user logon
I used service for that, but I hope there is a simpler way, even though this is currently working for me.

Next thing is an S3 boot strapper ...

Saturday, November 1, 2008

יד שניה - אגורה

אתרי יד שניה בישראל

לעניות דעתי הבלתי קובעת - מסירת חפצים ושימוש בחפצים מיד שניה הם דבר חיובי מכמה בחינות:

  1. איכות הסביבה


  2. פחות הוצאות


  3. תרמה לזולת (יותר מודעות)

אני מכיר את אתר אגורה ומאוד ממליץ






אשמח לקבל המלצות על אתרים נודפים וחנויות יד שניה

Tuesday, September 9, 2008

Getting into LINQ and error CS0742 (101 LINQ samples)

While checking what can be done with LINQ using the samples at:
http://msdn.microsoft.com/en-us/vcsharp/aa336758.aspx#SelectSimple1

I bumped into compile error:
error CS0742: A query body must end with a select clause or a group clause

Searching the web did not give good answer (only one saying this is not the correct syntax)

I had to go the VS help for select and From statemens titled: "from clause (C# Reference)"

  • The wrong syntax:
    from a in numbersA, b in numbersB
  • The correct syntax:
    from a in numbersA from b in numbersB
HTH

Dekel

Sunday, July 13, 2008

SanDisk Sansa and playing Podcasts

Few months ago I discovered the podcasts (a bit late I must admit)

One that I like to hear with my family while driving somewhere is:
Ran Levi: Making History: http://www.ranlevi.blogspot.com/

I found out that my old MP3 player is quite inconvinient (to say the least) for hearing podcasts.
Well, what's the difference between hearing podcast and hearing any other mp3, you'd ask (would you?) and here is what I'm missing:
  • Podcast as opposed to music is usually long (about an hour in many cases)
  • Podcast, like a radio program is composed of many parts
  • Podcast could be a lecture in which you'd like to bookmark something, hear the last sentence again ...
  • When pausing a lecture and Resume playing, I'd like to jump BACK few seconds (I'd also like to have a shortcut key for 5 seconds back)
  • Hearing something while playing fast forward (Available in MiniDIsk)

My old Minidisk allowed me to do some editing on the recorded media, for example, splitting long part and naming the parts

Now even with an advanced player such as Sansa e260 I don't have such abilities

Do you know of a good player for hearing Podcasts/Lectures?

Do you know of other people writing about such problems?

If there was one simple feature to ask for it would be: "Named bookmarks"
* Bookmark should be to the exact location in the played media
* I need to name it in order to jump to the exact part

Is that too much to ask?

Yours

Dekel