Mumbo Jumbo

Some usesful and not so useful ramblings…

Follow me on TwitterRSS Feeds

  • Home
  • About
  • Multithreaded Singleton in C#

    Many a times you run into scenario where only one instance of a class should be created in your application. If you need to know more about Singleton pattern, this article "Singleton pattern" provides good reading. There are quite a few ways to implement this (singleton) but after doing some search on the net found this one to be best for my case. public sealed class DBHelper { private static volatile...
    More
  • Embedding Fonts in CS5

    Font Embedding in Flash CS5

    Flash CS5 introduces a new way of emebdding fonts and unfortunately it breaks the older way of embedding fonts :( . The older way of embedding fonts which can be found here , does not work anymore for Flash IDE projects though that will still work for pure AS3 projects. I was using this method only in my project but as soon as I upgraded to flash CS5, text disappeared in my compiled movie. Googling pointed me to...
    More
  • Check Internet Connectivity

    How to check is your PC/ Server is connected to the internet.... there are more than one ways to do that - using wininet.dll, calling for DNS resolution, pinging a internet server, calling a web page and checking for response status and as I wanted to be sure that client is able to reach my server so put them all together. First bit is thanks to Rydal. using System; using System.Collections.Generic; using...
    More
  • You cannot debug this SWF because it does not contain ActionScript

    Upgrading from Flash CS4 to CS5 ran into great wall of china again 8O .. really man.. I know web is full of posts from people running into this problem then why the hell can't Adobe just make the error message a little less misleading :roll: ... most common reason for this is the code behind is so big that the compiler is running out of memory while compiling the movie. In case of CS4, the solution can be found...
    More
  • Windows 7 - "New txt file" missing from right click menu

    Few days back realized that somehow I managed to loose the "New txt file" option in the context menu 8O . To fix this 1. Download the fix file given below. (Use Right-click – Save as option in your browser to download the file.) 2. Unzip the file and extract the .reg file to your desktop or My documents folder. 3. Right-click the REG file and choose Merge or just double click the file. You can also open t...
    More

How to vertically center content?

Aug 30th

Posted by Bhootnath in CSS

No comments

While using in for table cells, this CSS tag works as expected. Just use following code to vertically align content in the table cell. <td style=”vertical-align:middle”> … </td> Do you enjoy this blog? Do you find the information helpful? Then go ahead and treat me to a coffee or send me a tip! I love

CSS, html, middle, vertical-align

Windows 7 “Unidentified Network” / No Internet Access

Aug 13th

Posted by Bhootnath in Microsoft

No comments

Ran into a really weird today. On my Windows 7 desktop, I was able to browse network just fine and even access internet while nobody in the LAN was able to access anything on my desktop. When I went to the “Network and Sharing Center”, I saw that it is showing “Unidentified Network” for my

access, internet, limited access, network, unidentified, windows7

Checking your SMTP server using Telnet

Aug 5th

Posted by Bhootnath in Web

No comments

If you are having problems sending mails from your SMTP server, you can test the sending server using telnet. Same steps work for Linux and Windows but in windows, telnet does not accept backspace so if you enter something wrong, do not try to edit it, just press enter and re-enter the command and also

25, email, internet, mail, SMTP, telnet

A2DP Enabler for iPhone 2G

Jul 17th

Posted by Bhootnath in Mobile

No comments

Though I have a lot of gripes against iPhone, biggest was lack for support for A2DP support in the iPhone 2G (original iPhone). Yes yes, easiest solution will be to just go buy the new iPhone 4, but I guess I just hate Apple way too much. Anyways coming back to the topic, now you can

2g, a2dp, a2dp enabler, Apple, bluetooth, cydia, dmytro, iPhone, iPhone2G

Disable/ Enable Directory Browsing on Apache

Jul 13th

Posted by Bhootnath in Apache

No comments

By default Apache allows directory browsing but unless it is needed for your application to work, you should disable it. You can disable it by either using .htaccess or editing the configuration file of your web server. Disable directory browsing using .htaccess: Open your .htacces file If there is any entry which reads “Options Indexes”

Apache, directory browsing, disable, enable, htaccess, virtual host, Webserver

Check Internet Connectivity

Jul 7th

Posted by Bhootnath in .Net

No comments

How to check is your PC/ Server is connected to the internet…. there are more than one ways to do that – using wininet.dll, calling for DNS resolution, pinging a internet server, calling a web page and checking for response status and as I wanted to be sure that client is able to reach my

.Net, C3, csharp, internet, wininet

Multithreaded Singleton in C#

Jul 1st

Posted by Bhootnath in .Net

No comments

Many a times you run into scenario where only one instance of a class should be created in your application. If you need to know more about Singleton pattern, this article “Singleton pattern” provides good reading. There are quite a few ways to implement this (singleton) but after doing some search on the net found

.Net, C#, csharp, microsoft, multithread, singleton

Get Unix Time/ POSIX Time in c#

Jun 29th

Posted by Bhootnath in .Net

No comments

Recently needed to convert the time into Unix format in C#. Since the Unix time format is basically a count of the seconds passed since 1/1/1970 (Unix epoch), this can be easily done using the DateTime object. ?View Code CSHARP1 int unixTime = (int) (DateTime.UtcNow – new DateTime(1970, 1, 1)).TotalSeconds; If you are trying to

C#, csharp, POSIX time, unix epoch, utc

Error creating Virtual Port in 64bit Vista/ Windows 7 GPSGate

Jun 29th

Posted by Bhootnath in GPS

No comments

If you getting error 1275 while creating virtual port for GPSGate in Vista/ Windows 7 64 bit, here is the fix from their forums.. If you use 64-bit Vista or Windows 7 please follow those steps. (If you are unsure, simply install GpsGate normally first, if Virtual ports does not work – follow those steps)

1275, 64 bit, error, franson, GPS, GPSGate, virtual port, vista, windows 7, x64

Casting int or string to Enum

Jun 29th

Posted by Bhootnath in .Net

No comments

Quick note to myself From a string: ?View Code CSHARP1 MyEnum foo = (MyEnum) Enum.Parse(typeof(MyEnum), yourString); From an int: ?View Code CSHARP1 MyEnum foo = (MyEnum) yourInt; Do you enjoy this blog? Do you find the information helpful? Then go ahead and treat me to a coffee or send me a tip! I love Barista’s

.Net, C#, cast, casting, enum, enums, int, string
123»
  • Tags

    .Net 5005 actionscript Adobe AIR Apache AS3 byte code C# center align CE PB6 crash CS5 csharp CSS deploy dynamic form Embed Font error Flash CS4 Flash CS5 Font Form Designer installation internet Italian JAVA_TOOL_OPTIONS JDK JDK 1.4 JDK 1.5 JVM Max Heap Size layout MySql password PB6 PHP Recipe reset risotto root service Tomcato Webserver windows7 Windows CE6
  • Calendar

    September 2010
    M T W T F S S
    « Aug    
     12345
    6789101112
    13141516171819
    20212223242526
    27282930  
  • Meta

    • Register
    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
  • .Net 5005 actionscript Adobe AIR Apache AS3 byte code C# center align CE PB6 crash CS5 csharp CSS deploy dynamic form Embed Font error Flash CS4 Flash CS5 Font Form Designer installation internet Italian JAVA_TOOL_OPTIONS JDK JDK 1.4 JDK 1.5 JVM Max Heap Size layout MySql password PB6 PHP Recipe reset risotto root service Tomcato Webserver windows7 Windows CE6

    WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.

    • Recent comments
    • Popular posts
    • Archives
    • Tags
    • Categories
    • Adobe (6)
      • AIR (4)
      • AS3 (4)
      • Flash CS4 (2)
      • Flash CS5 (2)
      • LiveCycle (1)
    • CSS (2)
    • Database (2)
      • MySql (2)
    • Embedded (1)
      • Windows CE (1)
    • GPS (1)
    • Java (2)
    • Microsoft (7)
      • .Net (4)
        • C# (4)
      • Windows 7 (2)
    • Mobile (1)
      • iPhone (1)
    • Recipes (1)
      • Italian (1)
    • Security (1)
    • Tomcat (1)
    • Vella Stuff (1)
    • Web (10)
      • Apache (1)
      • PHP (2)
    .Net 5005 actionscript Adobe AIR Apache AS3 byte code C# center align CE PB6 crash CS5 csharp CSS deploy dynamic form Embed Font error Flash CS4 Flash CS5 Font Form Designer installation internet Italian JAVA_TOOL_OPTIONS JDK JDK 1.4 JDK 1.5 JVM Max Heap Size layout MySql password PB6 PHP Recipe reset risotto root service Tomcato Webserver windows7 Windows CE6
    • August 2010 (3)
    • July 2010 (4)
    • June 2010 (6)
    • February 2010 (1)
    • January 2010 (4)
    • November 2009 (1)
    • March 2009 (1)
    • January 2009 (5)
    • September 2008 (3)
    • July 2008 (1)
    • You cannot debug this SWF because it does not contain ActionScript (4)
    • Font Embedding in Flash CS5 (3)
    • Embedding font family in AS3 (2)
    • LiveCycle Form Designer quits on opening a dynamic form (1)
    • Develop in JDK1.5, deploy on 1.4 :-) (0)
    • Problem Installing Windows CE 6 Platform Builder SP1 (0)
    • Reset MySql root password (0)
    • Center align site layout using CSS (0)
    • Tomato Basil Risotto (0)
    • How to remove Bonjour Service (0)
    • Darren S.: An update on this issue: I seem to have fixed it by preceding my source path with '.' since it was...
    • Bhootnath: TBH, looking at the posts all over the net, am not sure what is the problem as like you, many...
    • Darren S.: Here's a workaround that worked for me: Place your document class in the directory as the FLA and...
    • Darren S.: So what's the cause of this "error" in CS5? I had this occur with a small project with about 15...
    • Bhootnath: and there is one more here
    • Bhootnath: Well, AFAIK you will have to export the class if you want to use it in your AS3 code. And though I...
    • BG: Any ideas on how to uncheck "Export in Frame 1" and still get things to work? One of the nice...
    • Bhootnath: doing good.. though quite bored... missing KA though.. trying to play the normal worlds but it just...
  • Google Translate

    EnglishFrenchGermanHindiItalianPortugueseRussianSpanish
  • Amazon Cloud

  • Tip Jar

    Do you enjoy this blog? Do you find the information helpful? Then go ahead and treat me to a coffee or send me a tip! I love Barista's Cappuccino Cookie n Cream . Choose any amount you wish, whatever you feel this blog is worth to you.


Mystique theme by digitalnature | Powered by WordPress Copyright © 2010 Mumbo Jumbo
RSS Feeds XHTML 1.1 Top