baavgai's Profile User Rating: *****

Reputation: 6247 Overlord
Active Posts:
13,419 (4.71 per day)
16-October 07
Profile Views:
Last Active:
User is online 19 minutes ago
Viewing Topic: Looking for online CS courses wi...

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Your Car:
Who Cares
Dream Kudos:
Expert In:
C, C++, Java, C#, ASP.NET, PHP, Perl, Python, Oracle, SQL Server, MySql, HTML, JavaScript, Lua, Cheese

Latest Visitors

Icon   baavgai has not set their status

Posts I've Made

  1. In Topic: When I close my eyes...

    Posted 1 Aug 2015

    View Postishkabible, on 01 August 2015 - 02:33 AM, said:

    Ok, that's cool. Who'd have thunk someone named that stuff.

    Though 4 and 5 don't really fit the "strange stuff you just see in the dark" criteria; seems way too conscious or at least engaged.

    I'll, um, admit to visiting all these levels. Well, 5 sounds like lucid dreaming, which I've only happened on by chance. Number 4 sounds a whole lot like the happy place you can pass through when meditating. It's actually a good meditation trick to settle your attention outside yourself so the noise in your head quiets. For sitting meditation, this means enjoying the patterns on the back of your eyelids.
  2. In Topic: When I close my eyes...

    Posted 31 Jul 2015

    Heh, perhaps "nothing" was a bit sloppy on my part. I was trying to stay in the tone of silliness. Then again, the concept of no thing is quite philosophically debatable.

    I was only half joking. In total absence of visual stimulus your eyes will still happy pulse away, trying to make sense of a dearth of input. Totally matte blackness is hard to come by; even if you think you've found it, know that your brain will screw with you like that.

    For alternate perceptual realities, I personally have an odd one: I see UV. Seriously. Since cataract surgery the whites are whiter and there's a whole lot more purple in my life. Basically, the V band of a prism is double wide for me. See this guy.
  3. In Topic: StackOverflow Exception when reading from SQL Database

    Posted 31 Jul 2015

    As a quick aside, try to open your connection at the last possible moment. Also, I don't see any intrinsic value in "using" and SqlConnection.

    I'd refactor your code like so:
    private SqlConnection GetSqlConnection() {
        return new SqlConnection(SmartInventory.SqlObjects.DatabaseCredentials.ConnectionString);
    private SqlCommand GetSqlCommand(string sql) {
        var cmd = GetSqlConnection().CreateCommand();
        cmd.CommandText = sql;
        return cmd;
    private object GetScalar(SqlCommand cmd) {
        object result = null;
        try {
            result = cmd.ExecuteScalar();
        } finally {
        return result;
    private bool ManufacturerDescriptionExists() {
        bool found = false;
        var cmd = GetSqlCommand("SELECT count(*) FROM DetailedDescriptions WHERE ItemID=@ItemID");
        cmd.Parameters.AddWithValue("@ItemID", _itemId);
        try {
            var result = GetScalar(cmd);
            found = (result != null && ((int)result) != 0);
        } catch (Exception ex) {
            // ugly, ugly, ugly
            // crash while testing and go fix it
        return found;

    Always look to avoid repetition. Of particular note, imagine if one day "SmartInventory" became "DbInventory." How many lines of code would you have to change? If you write a single function to get your connection with, the answer is one.

    Hope this helps.
  4. In Topic: When I close my eyes...

    Posted 31 Jul 2015

    Your eyes always see. Sometimes what they see is nothing. :P

    Wait, you don't see groovy flashy patterns and stars and shit? Maybe that's just me...
  5. In Topic: Stuck on: class of Circle with attributes radius, X and Y

    Posted 31 Jul 2015

    You want two constructors:
    public Circle(double x, double y, double radius) { /* your code here */ }
    public Circle(double x, double y) { /* your code here */ }

    For your cross, rather than getting fancy with a distance formula derivative, actually work the the distance out. Then go from there. However, what you have looks like it may work, if the compare were reversed.

My Information

Member Title:
Dreaming Coder
Age Unknown
Birthday Unknown
Jersey, be afraid.
Years Programming:
Programming Languages:

Contact Information

Click here to e-mail me
Website URL:
Website URL  http://


  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  1. Photo

    mireille4U Icon

    30 Apr 2015 - 05:26
    Greeting from mireille i saw your profile today and i became interested in you and i will like to know more about you and if you can mail an email to my mail address ( i will give you my is my mail address i hope we can move from here.above. Mireille
  2. Photo

    ImChicago Icon

    17 Mar 2015 - 17:34
    Hey, im new to coding, how do you recommend starting? What should I master first? Should I use a website to help me?
  3. Photo

    8byte Icon

    10 Jan 2014 - 11:08
    Awesome, thanks for all the help!
  4. Photo

    codiddle Icon

    07 Mar 2013 - 18:59
    GENIUS GUY HERE MAN. Write a book!
  5. Photo

    mamelove25 Icon

    19 Feb 2013 - 10:53
    Hello My Dear, My Name is Mame. i saw your profile today and became interested in you,i will also like to know you more,and if you can send an email to my email address,i will give you my pictures here is my email address ( I believe we can move from here! Am waiting for your mail to my email address above because i have much to tell you,
    love Miss Mame.
  6. Photo

    bilbil0629 Icon

    24 Oct 2012 - 05:39
    hey! you mongolian?
  7. Photo

    Ticon Icon

    20 Aug 2012 - 13:23
    I just noticed your an expert in cheese. I lol'd
  8. Photo

    mostyfriedman Icon

    18 Aug 2012 - 23:13
    Hello there Brett
  9. Photo

    MehrdadSecret Icon

    26 Jul 2012 - 05:51
    hello, can i have a contact email or Yahoo or something? Need ur help badly
  10. Photo Icon

    18 Apr 2012 - 23:17
    Thanks ! Solved My problem !
  11. Photo

    RetardedGenius Icon

    25 Oct 2011 - 14:29
    I agree so much with your opinion of incompetent CS teachers. So true!
  12. Photo

    WabiSabi Icon

    21 Oct 2011 - 11:00
    I agree with assert(C). However, I'd rather not specify what you are "the best" at.
  13. Photo

    assert(C) Icon

    20 Oct 2011 - 08:38
    You are the best
  14. Photo

    macosxnerd101 Icon

    30 Sep 2011 - 09:33
    Congrats on hitting the big 3k!
  15. Photo

    sjin Icon

    16 Aug 2011 - 18:41
    This guy is AWESOME! Cheers bro!
  • (3 Pages)
  • +
  • 1
  • 2
  • 3