Not Equal C && !=C && 不等于西
RSS icon Email icon Home icon
  • jQuery $.ajax()/$.get() function always get same value for IE

    Posted on June 19th, 2014 Sean Add comments

         When I was trying to use jQuery $.ajax() or $.get() function retrieve some random value from the server side, it’s working fine on firefox or chrome, but not IE. The server side code like below (written in ASP.NET MVC):

         The client side code:

         I’m supposed to get a random number every time I click the link, but in IE, always same one returned. Regarding Craic Computing’s Blog, that’s because IE will cache the value first returned, and trade rest requests as identical by default, so it won’t update the value since the request URL never change.
         To fix this issue, just disable cache in the jQuery function as following:

  • 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading...Loading...
    16 views
  • Set up Zend framework 2 with NetBeans Running on XAMPP

    Posted on April 2nd, 2014 Sean 12 comments

        Zend framework is an open source MVC framework implemented in PHP 5. Like other popular MVC frameworks (ASP.NET MVC, Java Spring MVC), Zend provides database abstraction, code skeleton, and more. Let’s see how to use it on NetBeans:

    1. Download necessary packages from Zend: Application Skeleton from here, and full framework from here. Also the composer package here (if you don’t have it on your system)
    2. Install php composer (if you haven’t installed), remember to select correct php.exe file under XAMPP
    3. Put skeleton and framework files into desired folder, unzip the framework file, but keep the skeleton zipped

    4. Read the rest of this entry »

    PHP
  • 1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
    Loading...Loading...
    3,534 views
  • Mailbox unavailable for IIS 6 smtp service

    Posted on January 18th, 2014 Sean Add comments

         After created a smtp virtual server and enable the smtp service, if the web application still got error such “Mailbox unavailable. The server response was: 5.7.1 Unable to relay for name@email.com”, need to do following:

    1. Open “IIS 6 Manager”
    2. Under local computer name, find SMTP virtual server, and open properties for it
    3. On “Access” tab, click “Relay” on “Relay restrictions” section
    4. Choose “Only the list below”, then add loopback ip “127.0.0.1” and server ip to the list
    5. Restart smtp service
  • 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading...Loading...
    12 views
  • How to Fix Acrobat X Pro Won’t Open

    Posted on December 28th, 2013 Sean Add comments

         Acrobat X Pro won’t start on Windows 7 (64-bit) recently. It just doesn’t respond whether I try to open PDF files with it or double-click to start the program. I am pretty sure I DID activation while I install it. After some researches, realized the reason might be I did NOT sign in. (how stupid software!!)
         I did the following, and it does the job for me:

    1. Delete the file “C:\Program Files (x86)\Common Files\Adobe\Adobe PCD\Cache\Cache.db”
    2. Open the program
    3. Sign in with your username/password (if you don’t have, apply one)
    4. Acrobat will be back
  • 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading...Loading...
    33 views
  • Predicates in Lambda Expression for Entity Framework Code First

    Posted on July 24th, 2013 Sean 1 comment

         If I have 2 entities of “People” and “Car”, and “1” People can have “Many” Car, my code first class could be like below:

    Read the rest of this entry »

  • 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading...Loading...
    639 views