Tuesday, July 3, 2012

How to erase company logo

How many times you wanted to debrand your phone/monitor/cups etc

Here is an easy way, no more scratches and dents

  1. Take your sunblock/sunscreen lotion, and apply it over the logo
  2. Wait for a minute
  3. Use a soft cloth and gently rub on the logo area
  4. your logo will start vanishing !!!
Worked great on my computer monitor, bank sponsored water bottle and cell phones

Thursday, May 24, 2012

Convert schema to Read Only

There are times where you want to restrict a schema to Read Only mode. Say you want to freeze your production system, and you don't want anybody to modify any data.

The quickest way to do is to make the tablespaces read only

In this example below, I have RMANNI schema and my database is ORCLDB11G

Login as SYS or SYSTEM

1) Find all the tablespaces used by the RMANNI schema

select distinct tablespace_name from dba_tables where owner ='RMANNI';
select distinct tablespace_name from dba_indexes where owner ='RMANNI';

2) Change tablespace to Read Only ( Make sure that you have no transactions pending a commit or rollback)

 alter tablespace rmanni_data read only;
 alter tablespace rmanni_indx read only;



3) Now when you query dba_tablespaces and check the status column, they will show as READ ONLY instead of ONLINE
 

4) If you try make any modification to the schema, you will get a error message now



5) To make the tablespaces back to read write,






you can see the status changed from READ ONLY to ONLINE

***Only issue/bug I noticed is, even if the tablespace is read only, Oralce allows me to create empty tables.


Tuesday, May 15, 2012

Removing Heatsink From Corsair Vengeance

The new corsair Vengance series RAM comes with huge heat sinks or heat spreaders.

In my opinion, if you dont over clock your computer, then you dont need any heat sinks for your RAM, Moreover the cooler master hyper 212 Plus CPU fan was also blocking one of the RAM Slot.

So, the solution is simple,
1) Pop open the nubs from the slots on the either side of the RAM ( flat head screw driver would work fine)
2) Take your home hair dryer, blow hot air on either side of the RAM,
3) Slowly and gently pull the head sink from either side of the RAM
4) Remove any glue stuck on the chip ( just rub on the chip with your finger )

Thursday, February 2, 2012

How to disable FIPS

When you set up a new web application on Windows 2008 server, I get FIPS error.

You can disable FIPS on registry, go the following path and set Enabled = 0

HKLM\System\CurrentControlSet\Control\Lsa\FIPSAlgorithmPolicy


Tuesday, December 20, 2011

Flex: Cannot upload larger files

I had a very strange problem with my file upload in flex. While it was working for smaller files, it threw weird errors for large files ( files greater than 30MB or so)

I got "Error #2038: File I/O Error." some times, and then "SecurityError: Error #2000: No active security context." error.

After some wild google chase, figured out that the problem was coming from IIS Server and Flex is not reporting the error correctly.


By default, IIS rejects files larger than 4MB or so, In order to fix this I used to add the following.

<system.web>
<httpRuntime maxRequestLength="102400" executionTimeout="600" />    <!-- 100mb ,10 min-->
</system.web>


but for IIS 6 or IIS 7, You also need a new section to allow large file uploads (100MB in my case)


    <system.webServer>
    <security>
      <requestFiltering>
        <requestLimits       maxAllowedContentLength="100000000"    />
      </requestFiltering>
    </security>   
  </system.webServer>

and this fixed it.