Subscribe to RSS feed

Blue Diamon Bold Maui Onion & Garlic

,

Hey!

What the hell happened to this product?
All of a sudden I can't find it anywhere in the stores in Iowa, plus I can't buy it anymore online!
And it's missing from the Blue Diamond's website: http://www.bluediamond.com/index.cfm?navid=31

I got a response from the Customer Service:


Thank you for your inquiry. We no longer offer this product.

It is a strategic sales and marketing decision. Periodically, Marketing will make a decision to phase out a particular product/flavor to introduce new products/flavors.



Banans

Can you use Spring-WS 1.5 with Spring3?

,

The answer to that question is here

And I guess the best thing to do would be to wait for Spring-WS 2.0 and use it with Spring 3.0

Django

, , ,

USCIS H1B for 2010

, , , ...

On April 20 the USCIS department announced of an update for the FY2010 H1B petition filing.
Up to this date the 65,000 quota was not filled up yet, there were only 44,000 applications so far, which means there are a lot of chances for those who applied this year to get an H1B visa.

This is the link to the news

UPDATE
On May 18, USCIS released an update where they said that approximatively 45,500 applications were filled so far.
Link to the update

UPDATE
On May 5, USCIS released an update where they said that approximatively only 45,000 applications were filled so far.
Link to the update

UPDATE
On April 28, USCIS released an update where they said that approximatively only 45,000 applications were filled so far.
Link to the update

DB2 regexp in select clause

, , , ...

How to use regular expressions in a DB2 select query?
The simple answer is you can't. But if you are very insistent you can acheive that.
A lot of RDBSes have built in support for regular expressions, why doesn't DB2 has one? I have no idea.

In MySQL you do REGEXP, NOT REGEXP or RLIKE. here is another link.

In Microsoft SQL Server 2000 you call xp_pcre. In Microsoft SQL Server 2005 you call integrated .NET Regex classes from .

In PostgreSQL you call the regexp functions, here is another link.

For Oracle here we have a bunch of resources: First, second and also on regular-expressions.info

If you'll do a search on DB2 regexp you will stumbled upon this IBM article:
http://www.ibm.com/developerworks/data/library/techarticle/0301stolze/0301stolze.html
Which I found very interesting.

Immutable String

, ,

I read an article about "how much" immutable the java.lang.String class.
The article says that the String class is a classic example of an immutable class - but is it?

Read the article

Perf4J

I was reading today about a nice library for java for monitoring performance, looks really neat.
Check it out at: http://perf4j.codehaus.org/

Documentation: http://perf4j.codehaus.org/devguide.html

Cannot convert value of type [javax.mail.Session] to required type [javax.mail.Session] for property 'session'

, , , ...

The full exception is:


org.springframework.beans.TypeMismatchException: Failed to convert property value of type [javax.mail.Session] to required type [javax.mail.Session] for property 'session'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [javax.mail.Session] to required type [javax.mail.Session] for property 'session': no matching editors or conversion strategy found
Caused by:
java.lang.IllegalArgumentException: Cannot convert value of type [javax.mail.Session] to required type [javax.mail.Session] for property 'session': no matching editors or conversion strategy found



In my case when I got this exception, what I did is moved the activation.jar and mail.jar file from the web app lib directory to CATALINA_HOME/common/lib.

And it worked just fine.

ADAM setpassword 0x80005008

, , , ...

Today I was fighting with a problem at work.
If I tried and set the password in ADAM in C# it gave the next error:

Message: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80005008): Exception from HRESULT: 0x80005008.



As described in this page:
http://social.technet.microsoft.com/forums/en-US/exchangesvrdevelopment/thread/bb518eb3-02cb-4b3c-9a18-4ce85f245131/

They say there is a fix for that from Microsoft. I didn't try that but I found another solution to my problem.
So, I was:
1. Going against ADAM
2. Through SSL
3. .NET 1.1

The code I had was exactly from the page above:


de.Invoke("SetOption", new object[] {(int)ADS_OPTION_PASSWORD_PORTNUMBER, (object)_portNo });
de.Invoke("SetOption", new object[] { (int)ADS_OPTION_PASSWORD_METHOD, (object)ADS_PASSWORD_ENCODE_CLEAR});
de.Invoke("SetPassword", new object[] {newPassword});



What is sneacky here is the ADS_PASSWORD_ENCODE_CLEAR constant, btw the constants are declared like:


const long ADS_OPTION_PASSWORD_PORTNUMBER = 6;
const long ADS_OPTION_PASSWORD_METHOD = 7;

const int ADS_PASSWORD_ENCODE_REQUIRE_SSL = 0;
const int ADS_PASSWORD_ENCODE_CLEAR = 1;



As you can see the ADS_PASSWORD_ENCODE_REQUIRE_SSL is not used in my case.
So, what I had to change is from this:


de.Invoke("SetOption", new object[] { (int)ADS_OPTION_PASSWORD_METHOD, (object)ADS_PASSWORD_ENCODE_CLEAR});



To this:


de.Invoke("SetOption", new object[] { (int)ADS_OPTION_PASSWORD_METHOD, (object)ADS_PASSWORD_ENCODE_REQUIRE_SSL});



And it worked.
Remeber this is changing the password in ADAM through SSL.
And by the way on your DirectoryEntry object set the AuthenticationType to AuthenticationTypes.SecuredSocketLayer

Related links:

1. http://msdn.microsoft.com/en-us/library/aa772136(VS.85).aspx

2. http://msdn.microsoft.com/en-us/library/system.directoryservices.authenticationtypes.aspx

3. http://social.technet.microsoft.com/forums/en-US/exchangesvrdevelopment/thread/bb518eb3-02cb-4b3c-9a18-4ce85f245131/

4. http://www.techreplies.com/windows-2003-77/setting-user-passwords-adam-vb-net-466581/

5. http://directoryprogramming.net/forums/9/ShowForum.aspx