I have installed Captcha Image on b2evolution. But I got an error about "No TrueType Font". That is easy! All you need to do,uploading a TrueType to "/fonts" under the plugin. That will works
Archives for: November 2008
http://wordpress.org/development/2008/11/wordpress-265/
Wordpress 2.7 finial version has not released yet. But 2.6.5 has come
I found Joomla 1.5 does not allow you to add custom html form. I have tried sourcer and blank module. The blank module can create module box with custom html form at top of the page. But it can allow me to add the custom html form into an article. Anyway, that is simple and good, worth to try:
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,3668/Itemid,35/
I have nearly reaching the sucessful point. I went to configuration.php and changed
var $editor = 'none'; The form is created, but action attribute is cut out.
Finally, I put all code into a html file and upload to the server. A menu wrapper is created to grab the URL. That is a kind of work around.
I like to use regular expression validation. That is simple.
You only need to use:
Code:
using System.Text.RegularExpressions |
For the numeric value validation:
Code:
Regex regex = new Regex(@"^[0-9]*$"); | |
if (!regex.IsMatch(textBox1.Text)) | |
{ | |
MessageBox.Show("Invalid value, integer only!"); | |
} |
I faced a number of error for parsing a string into int. In most of cases, there is a validation missing.
Code:
If (IsNumeric(str)) | |
{ | |
int i =0; | |
Int32.TryParse(str,out i); | |
} |
You can use regex inside IsNumber or use foreach loop to check whether each character is numberic.
BUT NEVER NEVER DO LIKE THIS:
Code:
try | |
{ | |
int i= Int32.Parse(i); | |
} | |
catch(FormatException) | |
{ | |
// Error Hanlding | |
} |
Try-catch is an expensive operation!!!!!!!!
Secondly, I like to use TryParse even in the case, the progam can tolrate invalid value. TryParse can allow the logic to continue execution. I hate some things like stack track on the screen.
I think Server Side and Client Side, both have advantages and disadvantages.
Server Side:
Adv:
- More efficiency
- Easy to scale up(if the process is too complex, we can use load balancing)
Dis:
- Hard to deploy, to some complex operations, it may be required CLI store procs.
- More expertises required
Client Side:
Adv:
- Easy to be implement, You need to know C#
- Easy to deploy
- Easy to be manage
Dis:
- Less efficiency
I think, in generally, for complex operations, we can try to put that into the server side. For simple operations, just putting them into the client side logic. That is simple.
I love JoomGallery. It has Juploader, so I can upload multi-files.
I love it!!!!
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,5481/Itemid,35/
Nowadays, the most of webmail providers, such as Yahoo, Google and MS, provided a huge storage or even unlimited. Therefore, you will have a lot of email. Now, I got 11915 in my inbox at Yahoo and I have around a hundred new incoming email per day. This morning, I need to find an email which have some information I need but I got that email at the early of this year, maybe Jan or Feb(I can't remember). Well, email search is my life saver. I remember some keywords in email and I know the email received this year. I entered the keyword and limited this year. I can't find the exact emai. But I found an email with similar information. They are a kind of related. It should be received similar period of time. Then I got my inbox, went to the page has the email I found and I scrolled a page. Then I found the email I need. So, email with a search function, that is a "must have" function!
http://wordpress.org/development/2008/11/wordpress-27-beta-3/
Wordpress 2.7 Beta 3 is released.
I have tried a number of photo gallery components. I want somethings simple. The component should have only thumbnail and view photo. I found JoomGallery is fitted with my requirements!
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,5481/Itemid,35/
That is simple and can view the full view image in an ajax window. That is good, reducing popup!
I have tried to Convert.ToString to convert int into a format a comma in each thousand. I am not successfully. Well, because I went to a wrong way. I shoulduse String.Format. Just like this
Display the int in thousand format(e.g. 1,200)
String.Format("{0:N0}",i);
Nowadays, Facebook is very popular. Most of friends have a Facebook account. Moreover, you may have few hundreds people in your friends. But, have you ever thought to use it as a tool to your website?
Firstly, they are all friends. You have a good relationship with them. I believe they are interested to visit your website. They are your most valuable target audiences. I believe that is more helpful than you have a link on some popular web portal with thousands of people viewed your link. But maybe they have not paid attentions to that.
Secondly, Facebook has some good tools to let your friends know about your website. You can put your URL of website in your profile. Yes, that is a common feature. What I like to use “notes” and “posted items”. When my blogs have any major changes, I post a note to update all of my friends. When I wrote any good articles, I will post a link in “posted items” to draw my friends’ attention. If your website are related with a real entity, you can create a page with your website. Your friends can become a fan of your website.
Facebook is helpful to promote your website and that is FREE!
This afternoon, I was practicing Socket Programming in C#. That is the reason I wrote this program.
http://www.itblogs.info/download/NetworkTester.zip
This program can check whether the port of IP address is opened.
Note that, that is only a toy to practice C#.
That is easy!
In Click of LinkLabel:
System.Diagnostics.Process.Start("http://www.itblogs.info/");
Then .Net Runtime will call your default browser.
I am a sharpdev user. As far as I know, Sharpdev only support Wix setup. That is the reason I started to learn about that.
Wix is easy to use. That is a XML-based tool. What I need to do, specifing the files needs to be install and path in the xml files.
This is a good tutorial.
I have installed a brand new WordPress, it is all fine.
But when I enter some chinese, it will become "?????".
The solution for this is simple.
Please comment out these two lines in wp-config.php:
//define('DB_CHARSET', 'utf8');
//define('DB_COLLATE', '');
http://wordpress.org/development/2008/11/wordpress-27-beta-2/
WordPress 2.7 Beta 2 is released
http://www.australianit.news.com.au/story/0,,24592753-15306,00.html
Australian IT said Australia s the cheapest place to buy ipod. That is becuase our aus dollar falling a lot. The shop bought the stock when our aus dollar was high. Let's say, they bought the iPod from Apple for US$100, and sold AUD$200(=US$150). Now they are still $200, but is equal to US$100. So, that is cheaper. Just the price has not updated yet.
I will consider to buy a netbook if that is in 3G. Because I mainly use that to connect internet. You can say I can use wifi. But in Australia, that is not many places have wifi. 3G internet is the best opinion. That is the most important, the netbook is still like a toy. That is not very useful for myself.
Recent comments