A 15 year old girl saves 40 elementary school kids and that's why she is my hero!

A Revolutionary way to take notes!

14. October 2008 20:55 by Scott in   //  Tags:   //   Comments (14)

For the past few weeks I have been testing out a piece of software for note taking.  I found the software by luck trolling through www.stackoverflow.com.  The software is called Evernote.  It can do almost everything that is need to do when you need to take a quick note.  All the notes live in an online repository.  Without the repository being Google, I worried that the information might not be there forever.  I decided to take a test drive and let me tell you that this thing just kicks ass.  I have it installed both on my phone and several computers where I can access the notes from anywhere.  I fully enjoy this because my last note taking software was the TASKS section from outlook.  Microsoft was doing a better job with them, but Evernotes ability to take notes anywhere is amazing.  To briefly go through what kind of notes it can take:

Desktop

  • It can take anything typed or from a web browser.  The browser part is quite extraordinary because all you have to do is click a button and it adds a note.  You can either highlight text or make the entire web page a note without highlighting and wa-la, you have a web page that you don't have to bookmark for later.  You can just go back to your notes which then unclogs the bookmarks for the real purpose of what bookmarks were made for.

Phone/PDA

  • Voice notes
  • Text note - Typed text
  • Ink Note - If you have a touch screen you can write on the note.
  • Snapshot - You can take a picture of some document or anything.  If you take a picture of the document, EverNote has the ability to capture the text off the document so it can be edited for later.
  • Upload a file - Currently this isn't on the desktop version, but you can upload a file which will be saved both on your dektops and the database.

Coding

  • I specifically use Evernote a lot when have some interesting piece of code that I want to make sure I have at home too.  Instead of emailing it to my self, I now place it in Evernote, tag it as code and then I am off!

For both os's, you can save, delete, tag, print, categorize each and every note.

I wanted to mention one more thing.  This program is FREE!  The service has limits unless you upgrade, but after using it for several weeks, I have yet to reach my limit.

I hope you will give EverNote a try.  It does also have a IPhone version out as well.

kick it on DotNetKicks.com

If you liked this post, please be sure to subscribe to my RSS Feed.

Another way of thinking about how to store data inspired by ASP.NET

14. October 2008 10:38 by Scott in   //  Tags: , ,   //   Comments (49)

A while back I witnessed how the profile properties of ASP.NET are stored in the database.  All the properties all stored in one string.  There is then another string that describes the properties and how to view them and pull them from the database.

For example you have this string:
SmtpServer:S:0:18:Port:S:18:2:Password:B:0:48:ApplicationID:S:20:1:EmailUsername:S:21:15:

Then you have another string that looks like this:
pop.abcdefgh.co.uk257abcdefghij-abcd

If you break it down correctly you could get something like this:

  • Property Name : SmtpServer
  • Property Type : string (S) <-- Or this could be the Serialize As Type
  • Property Start Index : 0
  • Property String Length : 18

Now the question that I ask my self is:
Does this actually increase performance of the system?

I would argue yes and no.  Since the system could have an infinite amount of members attached to it and a countless amount of profile properties.  It would need to have something like this to decrease the amount of rows owned by a single user in the profile table. To give an example, I could be one user with 20 propertie.  If the application had over 1,000,000 users, that would be 20,000,000 rows.  That is huge and you must design for scale when it comes to an application that could potentially be used by all the world.

I would argue no to small applications.  If you only ever expect 1,000 users to an application, then why build something this complex other than for the thrill of it. This is especially the case when you don't need to worry about space on the system.  Space is cheap, but time spent coding a solution for this sample could be huge depending on experience.

I personally would build a generic code base for two ideas of this kind.  You could first build the generic code for the example above, but there would be another generic sample to build for. Lets say that you knew you were only going to ever store numbers in your database for each user.  These numbers could be used for ID's of another tables real data.  So I only want to store ID's of a table for each user.

I would store them like:
1:56:34:39:6798:10:39:40

This is because I wouldn't need another cell to split them up with indexes.  I would just split the numbers by the Colon. I would love to hear everyone's thoughts on this and why or why not it is a good choice.  Thanks for the time to read this.

kick it on DotNetKicks.com

If you liked this post, please be sure to subscribe to my RSS Feed.

Windows Mobile CE 6.1 (and Compact Framework) Released!

13. October 2008 08:44 by Scott in   //  Tags: , ,   //   Comments (25)

If you haven't seen it yet.  Mobile 6.1 was just release two months ago.  I just found out and will be upgrading tonight.

New changes include but are not limited to:

  • Copy / Paste (finally!) - Only touch screens used to do this.
  • Domain Enroll in Settings (Enrolling in a domain will connect your device with company resources.)
  • New home screen (pan left and right to check out missed calls, notifications like email, sms, etc.)
  • Change Master Security Cod
  • Added text input settings
  • Recent Programs when pressing Start menu - Allows you to see recent programs launched.
  • Threaded SMS! - This makes it so MUCH EASIER to carry on conversations.
  • When you compose an email, or SMS, and start typing the name of the contact in the "To:" field, the contact names finally pop up like Windows Mobile Professional!
  • Internet Explorer now lets you define a homepage, and also zoom in and out using a nice and clean interface - ZOOMING feature is AMAZING!!!
  • Task Manager now shows CPU usage as a whole, and also lists it by process
  • Internet Explorer offers 6 zoom modes and copy / paste functionality
  • IE also uses a new font, which looks worlds better
  • ActiveSync will now try to automatically configure your Exchange settings once you enter an email address
  • Wi-Fi indicator in the status bar, just as in Windows Mobile Professional
  • New "Vista" home screen and theme
  • Video Share Calling
  • Remote Desktop Monitor
  • ONE Note Mobile!!!
  • PTT Button can now be reassigned under Start / Settings / Buttons.

 This new CE looks and feels so much better.

 I am two months short on this launch, but if your reading this then so are you!!!

kick it on DotNetKicks.com

If you liked this post, please be sure to subscribe to my RSS Feed.

The next 8 years with Technology.

12. October 2008 08:39 by scott in   //  Tags:   //   Comments (13)

Today I watched a Google Talk today about Technology.  The president nominee spoke about ideas on free Internet, Public opinion, technology within bills that get passed in the house and senate, Public knowledge of bills, and more.

I for one am a Republican with many views against democrats and especially left wing democrats, but I do think that Technology can SAVE THE WORLD.  I have not seen my parties stance on technology, but today I saw the democrats stance on technology.  I ask you to also look at this stance.  Republicans have not shown me what they plan on doing with technology, but democrats have.

So for me and the stance on technology, I lean towards the democratic view even though I am a republican.

I hope all of you also review this video and sit down for an hour and take the time out of your day to do so.  This has greatly increased my chances for voting democrat. 

Please understand, that I am not being political, but to show you what I think should be done in the technology market.

kick it on DotNetKicks.com

If you liked this post, please be sure to subscribe to my RSS Feed.

Pros and Cons for President 2008

7. October 2008 05:19 by Sam in   //  Tags:   //   Comments (9)

I read an article today that talked about swing voters.  The people in the middle of both McCain and Obama that don't know which person to vote for.  I for one am one of those people.  I must say with less than a month to do before the election, I am a bit worried and coming down to the wire.  My GF is pretty much for Obama and I am a republican but lean more in the middle than anything else.  I only choose republican so I actually have a voice during the primaries instead of sitting out and not doing anything about my country.

Since I am in the middle and it is a current toss up on who to vote for, I must say that I am going to make a pros and cons list of what I think are each candidates good and bad qualities about them.  This will hopefully quell my thoughts on who to vote for and a list to look back on when I get ready to vote.

I am doing my best to not be biased.  If you find anything I say to be biased, please speak up.  I also ask that you please give me more pros and cons to make up the decision of a middle ground person.

Obama

Pros -

  1. Healthcare - This is a big topic for me.  Health insurance companies today now value a persons life around $100,000.  I honestly think when it came down to it and your life was in jeopardy, you would be more than willing to pay more than $100,000 for your life.  I would too.  I personally cannot be a hypocrite on this topic and only allow my self to be able to afford an operation that is more than $200,000.  Health care MUST provide for everyone and NOT allow for a value to be placed on a persons life.  This is unfair and unjust.  "All Men are created equal, not just the rich."  I personally have great health care.  I love my health care, but I also believe that if you do not have health care, it should be provided for you.  Just like the ability to have an attorney provided for you in a court of law that will help decide if you live or die, you should also have a health care provider without a price of worth.
    Obama has spoken freely on this topic that everyone in the world should be provided FREE health care.  That's why I agree with him.
  2. No Smear about financial problems - Currently, John McCain and camp have not brought anything against Barack Obama about his doings in the financial crisis which leads me to believe that Obama did not partake.
  3. Has not been corrupted - He is young and admirable.  Young people are usually most often the least corrupt in politics.  I can see that since he is so young, the hounds and dogs of politics have not had the chance yet to corrupt this man - Pure opinion.

Cons -

  1. Rev. Jeremiah Wright - Obama has been a member of this church for more than 20 years. He has sat in many of Rev. Sermons and listened to many of the preachers talk.  If you view this video or this video of the Rev., you can see that he bashes America and the white people.  Martin Luther King Jr. chose to use the words, I will judge the person by "the content of his character, and not by the color of his skin".  If this is true, then you cannot compare the Rev. to King.  Also, one last brief note.  If this wasn't a bad church and it was a good church and spoke true to American values, then why did Obama quit his church?

 

McCain

Pros -

  1. Pro-Life - Senator McCain is for life.  "Why should a life be taken out of convenience?"  It doesn't matter when the soul enters the body.  When I was in sex education, we were always told that the sperm takes less then 5 hours to enter the egg.  Upon entering is when a new life starts.  It doesn't matter about theology, what matters is the fact that life should NOT be taken out of convenience.  Lets say I am in a traffic jam and if I see someone kill another person just because they were too slow, that is a taken life out of convenience.
    Some will argue that the mother loses all abilities to better her self.  Well honestly PROGRAMs should be in place that when young women become pregnant, they still have the ability to continue on with their life without sacrificing the life of a new born.
    Some also argue that the president cannot do anything about this topic.  I beg to differ, because the president has the ability to pick the new and upcoming Justices of the Supreme Court which allows them to overturn Roe v.s. Wade.
  2. Education - Education has been a hot topic for decades.  People always think throwing money at the system will help it change and over the years, we have hoped for this change.  Obama thinks this way about Education.  McCain is not.  McCain thinks parents should have a choice on where their kid goes to school and also think the money should follow the kid.  This allows for schools to either reform or be pushed into garbage.  This will then allow for a School system to be shut down and rebooted.  Higher new teachers with better equipped ability to teach better.  This is a radical move when it comes to education, but when throwing money at a system that doesn't seem to get better doesn't work.  I say lets try it a different way.
  3. Trust - John McCain is a man I can trust.  I honestly think I can trust him.  He has shown me that I can trust him through his service as a veteran and POW.  If you must know what I am talking about, read this and then you decide if you can trust him.  Please be advised, this article was put out before he decided to run for President. - The article is fact, but my trust is opinion.

Cons -

  1. Keating Economics - John McCain is undoubtedly involved in the Keating Economics which was involved in the saving and loan crisis in the 90's.  The video is here.  Keating was looting the savings and loans, and McCain does not deny it.  After looking through the facts, of the five senators who worked with Keating on non-regulation of savings and loans. John McCain and John Glenn are the only two senators to 're-enlist' in the Senate. Keating tried to de-regulate the economy as with what John McCain says to do now. McCain speaks here that deregulation contributes to the growth of economy, but does it also allow for less oversight which allows for the ability to corrupt?  So is deregulation a good thing?  Honestly, no.  It is not a good thing and hers why.  If we had deregulation then there would be no checks and balances in our government which then allows for more corruption.  Our fore fathers wanted checks and balances so no ONE MAN would have absolute power. That holds true today for deregulation.

Please feel free to make comments on this post, because it will be something I will also take into account.

If you liked this post, please be sure to subscribe to my RSS Feed.

A LINQ lesson

2. October 2008 12:18 by Scott in   //  Tags:   //   Comments (47)

I needed to get a query completed like this in LINQ.

Select max(uid) as uid, Serial_Number from Table Group BY Serial_Number
I thought about it for a while but didn't get anywhere.  I kept testing until I asked another person and they came up with:
 
        using (DataContext dc = new DataContext())
        {
            var q = from t in dc.TableTests
                    group t by t.SerialNumber
                        into g
                        select new
                        {
                            SerialNumber = g.Key,
                            uid = (from t2 in g select t2.uid).Max()
                        };
        }
 
This code is very nice and sweet.  It allows you to select the all MAX Rows of a table with a grouped table column. 
Hope you enjoyed this little lesson.  I decided to save this syntact because it is something I will most likely come accross again.
Scott
If you liked this post, please be sure to subscribe to my RSS Feed.

Found Hacker news

1. October 2008 20:13 by Scott in   //  Tags:   //   Comments (1)

I found a website a few days ago that is very credible to things like Digg and technorati.  Its called Hacker news and is offered by YCombinator.com which is a nest for startups. Hacker news is a very narrowed view of haaackers who work all day to hack away at jobs.  The site is pretty simple in its design, but looks extremely valuable to the person looking to use the NITCH developer community.

 It also uses Open ID which is great so I don't have to register and remember yet another password.

Website can be found here.

Thanks for reading.

Scott

If you liked this post, please be sure to subscribe to my RSS Feed.

Religion in politics.

19. September 2008 22:01 by sam in   //  Tags:   //   Comments (6)

Religion in someone's stand point is what makes up their values and beliefs. It is not involved in politics, but sometimes not as people would believe. I also disagree with Religion should be involved in politics. If you look at the time of old compared to now, you can truly and honesty say, religion in not involved.

Religion of the past does not run our government. It does not decide who lives or dies. It does not make rules for the people. Especially not like in the past when religion was the authority to the government.

It does though govern the moral and ethical decisions people make. Do I rip this guy off for a few hundred dollars, do I lie cheat or steal, do I live a life where abortion is accepted or not, do I live where people think there is a soul in everyone?

Religion does not govern the government. Religion governs those who wish it, because that is how some of you might define your values. Please don't say that religion is a deciding factor in this election or any other. It is religion that is a deciding factor in our lives and it is what defines some of us as a person. So what defines us as a person decides these elections not religion.

If you liked this post, please be sure to subscribe to my RSS Feed.

When is multi-threading not a good idea?

18. September 2008 09:40 by Scott in   //  Tags:   //   Comments (3)
 
I was recently asked when not to use mulit-threading so I gave them the best answer possible.  I think my answer below fits the bill pretty nicely.
  1. On a single processor machine and a desktop application, you use multi threads so you don't freeze the app but for nothing else really.
  2. On a single processor server and a web based app, no need for multi threading because IIS handles most of it.
  3. On a multi processor machine and desktop app, you are suggested to use multi threads and parallel programming. Make as many threads as there are processors.
  4. On a mulit processor server and a web based app, no need again for multi threads because IIS handles it.

In total, if you use multi threads for other than un-freezing desktop apps and any other generic answer, you will make the app slower over time IF you have a single core machine.

Why? Well because of the hardware switches. It takes time for the hardware to switch between threads in total. On a multi core box, go ahead and use 1 thread for each core and you will greatly see a ramp up in speed at the start and over time as the cores heat up.

kick it on DotNetKicks.com
If you liked this post, please be sure to subscribe to my RSS Feed.

StyleCop was just released!

12. September 2008 06:55 by Scott in   //  Tags:   //   Comments (69)

For those that don't know. StyleCop was just released!

For those that don't understand what StyleCop is.  It is a tool that formats your code to all standards that makes it readable and nicely organized for human consumption.  It makes you look like a Rock Star (<-- that phrase is so over used).  I have started to use it and I currently have well over 1000 style errors.  I guess I need to adjust to make it work with the standards set out by the coding gods.

I would suggest a download and you look at it.  It should be at least looked at.

kick it on DotNetKicks.com If you liked this post, please be sure to subscribe to my RSS Feed.