Wednesday, April 14, 2010

A Crazy Error in Visual Studio 2008

Scenario:

- MS Windows 7
- MS Visual Studio 2008
- MS SQL Server 2005 Express

While trying to add a database from visual studio I got a crazy error about some assembly missing. This link helped me. I just needed to install these packages to integrate VS 2008 with SQL Express 2005:


  • Microsoft SQL Server System CLR Types
  • Microsoft SQL Server 2008 Management Objects
  • Microsoft SQL Server 2008 Native Client

Saturday, February 20, 2010

Hide and Show Hidden files in MAC OS

Open your terminal (Finder > Go > Utilities > Terminal.app)

To Show all the files, including hidden files type in:
defaults write com.apple.finder AppleShowAllFiles -bool true
and restart your Finder, (Apple > Force quit ... > Finder [relaunch])

and to hide then again:
defaults write com.apple.finder AppleShowAllFiles -bool false
relaunch finder and you're done.

Thursday, September 17, 2009

Tomcat service does not run on Windows?

Copy msvcr71.dll to somewhere in your PATH, and it solves the problem. Better to copy it in:
"C:\Program Files\Java\jre6\bin\client" nst beside jvm.dll! :)
This thread helped a lot: http://forums.sun.com/thread.jspa?threadID=5121172&start=0&tstart=0

Saturday, February 2, 2008

How to disable autorun feature in Win XP

- Run regedit
- Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom.
- Double-click the Autorun value, and type 0 for its value. (If it's not there, create it by selecting Edit -> New -> DWORD Value, and typing "Autorun" for its name.)
- You may have to log out and then log back in for this change to take effect.

Monday, December 3, 2007

To complete the Fodora 8 Installation

There are some repositories which I strongly recommend Fedora Users to check out. You will need them to complete your Fedora installation with required desired packages:
  1. Fedora Solved: http://fedorasolved.org/
  2. Linva: http://rpm.livna.org/rlowiki/
  3. JPackage: http://www.jpackage.org/
  4. DAG Archive: http://dag.wieers.com/rpm/packages.php
  5. FreshRPMS: http://freshrpms.net/
  6. Adobe Repository: http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
  7. And more unofficially made RPMS: check package list here http://dag.wieers.com/rpm/mega-merge.php
In my case I needed to have
  • A reliable Java Runtime and Development Kit
  • Working tweaked drivers for Video, Sound, WiFi
  • Multimedia Software, for mp3, mp4, flv, ogg ....
  • Some Web Browsers with essential plugins and add-ons
  • PDF Readers
  • Fine Farsi Fonts
1. Java Development packages


2. Drivers (Nvidia Display Adapter)

3. Multimedia Softwares (xmms, VLC Player)

4. Web Browsers (Firefox, Opera + Addons)
- Flash Player
- Video Downloader (Video Download Helper)
- Theme ( MacFoxII Graphit)
FireFox
Firefox Essential Plugins:
https://addons.mozilla.org/en-US/firefox/browse/type:7

Opera
Download and install opera from: http://www.opera.com
Don't forget Flash Player plugin

5. Acrobat Reader
Just add the adobe repository, this rpm from Adobe will do that for you: http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm

then just use yum to install or update Adobe products:
yum install acroread

6. Farsi Fonts
http://www.farsiweb.ir/wiki/Products/PersianFonts
http://www.farsiweb.ir/wiki/Install_Font

7. Firefox Plugins

(It's not completed yet. I'll do it whenever I find a piece of time :) )

Fedora 8 - little tricks for installation

This time, I had to install Fedora 8 on my laptop, there were two problems in my case:
  1. Installer DVD stops and never continue when reaches "Loading /sbin/loader"
  2. I have 4 primary partitions that is full! and Fedora 8 wants a primary one for /boot
  • The first problem is very weird, it took me two days and I finally got the solution on the web:
It seems, it was a known and popular problem, to get rid of it just add this boot options to DVD Installer boot options:
floppy.allowed_drive_mask=0 clocksource=acpi_mp

  • For the second problem: The Installer has a partition tool, which allow you make a desired custom layout but it won't let you create a layout without a primary partition for boot use. It just says something weired, something "There is not enough space to create the partition".
But the solution:
As you may consider it is the problem with partition creation, so I booted by Hiren Utility CD, and did the partition stuff with Acronis Partition Director Suite, such that all of the partitions be logical, then came back to Fedora Installer, and just set the mount points, and Installer passed the partitioning step. That's all.

As a note: In conventional partition scheme, also known as "Fdisk Partiotion Scheme" just 4 primary partitions are possible. Thus, for systems which need more than 4 Partitions, one of them is used as a an extended partition which has a separate table and could include much more partitions as logical type.