Yes I got another web development device in my collection called BenQ FP72E Size 17-Inch LCD PC Monitor collected from Dubai. Before that I was using my Fujitsu LIFEBOOK L series LH531 model. So now you can say I can review or test my web development works on a larger display . Actually it’s not the major but it’s just useful when I need to test my work on a larger display. I will work on my laptop display normally and will test on it if required.
Another things optionally is, I love watching movie when I am a bit free or when I am too much busy with my programming work! I have a collection of movie around 120 above. It’s great to watch HD movie on this new 17-Inch LCD display. On my old one Fujitsu when I was watching a movie that was also perfect but not like now on my 17-Inch new monitor. I really love it!
It’s today I was trying to do a wordpress admin login to one of my clients wordpress powered websites admin area, I was redirecting to a 404 page called http://x.x.x.x/404.html page!
It’s something like when I try to login on http://domain.com/wp-login.php?redirect_to=http%3A%2F%2Fdomain.com%2Fwp-admin%2F&reauth=1 after have submitted the login form it’s redirecting me on a http://x.x.x.x/404.html page.
To fix it I had a look on it’s database and all seems fine. Then tried some google and found a solution called renaming the .htaccess
So I was trying again after renaming my .htaccess and It works property.
After that I have some review on it’s .htaccess and found some conditional misplacement and then I fixed it and renamed the .htaccess again and then it also works!
However, The point was may be my client or someone else modified the .htaccess for his shop rules or somehow it has been modified by any other plguins.
Just to note it if you got something like this 404 while wordpress admin login you can first check the .htaccess
That is why I wrote it!
Sometimes we work for a website with wordpress keeping the development version on sub directory. Say are working for http://www.example.com website and currently it is live and we work for it’s new version in wordpress. So we setup a new wordpress version on new folder so the current development version is http://www.example.com/new
When we are done with all development and uploaded all contents on that new setup that means all media files and contents media urls are targeting with http://www.example.com/new
So when we are going to make the site live we need to do something manually to replace media paths for contents. Or if we directly copy contents from another hosting in that case same things will happen.
For the faster replacement of each media guid, contents media url or other meta values below mentioned 3 mysql query is nice.
Note: After running below code we need to ensure that all wp-contents/uploads folders contents are available as it was on new development directory.
update wp_posts set guid = replace(guid, 'http://www.example.com/new', 'http://www.example.com')
update wp_posts set post_content = replace(post_content, 'http://www.example.com/new', 'http://www.example.com')
update wp_postmeta set meta_value = replace(meta_value, 'http://www.example.com/new', 'http://www.example.com')
update wp_options SET option_value = 'http://www.example.com' WHERE option_name = 'home' OR option_name = 'siteurl';
With this above queries below listed things will happen –
1. Replace all resource or post guid
2. Replace all old media src url to new src url in post contents
3. Replace all meta resource url like image, video or audio etc
4. Replace site home page and siteurl url
I have a pathology laboratory in Beanibazar, Sylhet Bangladesh for my Uncle Md. Yeakub-Ul Islam. Last few days we are deciding to develop that pathology laboratory to a complete diagnostic center. That is why my uncle saying me to develop a computer software by which we can manage it.
We are planning to manage below listed all sections of a diagnostic center like
- Sample Collection
- Test Report or Report Printing
- Report Delivery
- Reagent Stock Control etc
So, for our complete professional project development we are deciding to develop this project which will control a complete diagnostic center with above listed sections.
Work Flow of a diagnostic center:
Step 1: Patients come to lab reception section to do some medical diagnosis with a doctors prescription.
Step 2: Reception executive keep that patients record with list of test and print a voucher with patients record also keep payments record.
Step 3: Reception executive forward that patients to sample collection department.
Step 4: Sample collection complete and forward the sample to lab section and forward the patients to waiting room.
Step 5: After all medical test done, Lab executive needs to input all data with his/her computer screen for that invoiced patients.
Step 6: Lab report delivery executive prints the report.
Step 7: Finally report delivery executive deliver the report to patients.
So, based on above work flow of a diagnostic center we are going to do some system analysis and features listing on our next article. To be continued…..
If you see any control visual looks is not just what it was looking on interface design mode (or windows style looks) like below 2 images
looks of interface design mode
Without Enable Visual Styles or Windows Classic Looks
Then It means you are skipping a method call from System.Windows.Forms Namespaces, that is EnableVisualStyles
To Enables visual styles or operating system like controls color, fonts and other visual elements for your application just use below code before application run on Main method.
static void Main()
It is a common features you may need it several times when you are on the way of a professional C# application development.
Suppose you have a Parent form which has a Textbox control and a Button control. Now you want to click on the button Control then it will open a Sub form or a PopUp form. In which there will be another button or any other control for example DatagridView and you want to click on it and it will return a value to it’s Parent form and that value will display on Parent forms TextBox control as text property.
You can do it by below listed steps.
Step 1 (Parent Form Code):
On parent form button control click event you can call your sub form like below code to open it and get it’s returning values from it’s predefined properties and use it for your textBox control as below.
private void button1_Click(object sender, EventArgs e)
frmSubForm objSForm = new frmSbFOrm();
if (objSForm.ShowDialog() == DialogResult.OK)
this.txtParent.Text = objSForm.StringProperty;
Step 2 (Sub Form Code):
On the sub form which one is opening after the click on button control of Parent form you can write below code for any events to return the value and exit sub form.
private void button1_Click(object sender, EventArgs e)
this.StringProperty= "Sample String";
this.DialogResult = DialogResult.OK;
When you are on the way of a professional software development with any programming language, there are some primary things you need to keep in touch while development.
- When or why a software is needed in a factory or company?
- Why any factory level company or a general company will agree to use your software instead of maintaining their company by the current procedure?
- What is the security of your software?
- What is the extra benefit to use a computer software?
There are a lot of question will come from a client end when you propose to use a computer software, you know.
To keep some perfect answer against above listed questions and upcoming question from the client, there are a lot of solution or features should have to be available in a professional software included.
When working with wordpress sometime we need to copy full site content with new wordpress site setup. If you use wordpress default inport / export then all content and resource source url works fine but all image or attachment source url in content is keeping it’s old values.
To replace those old source url to new site url you can add a wordpress filter like my below given one.
Note: You need to copy uploads folder to your new server.
$content = str_replace('http://olddomain.com/', 'http://newdomain.com/', $content);
If I start from the beginning when I was in University and working hard for a Complete professional software development with VB.Net on Visual Studio 2005.
I was too much curious to know what is the actual look or coding system for a professional software? How can I develop a software with professional look and coding? What will be the features listing of a complete software? etc etc
It’s after 5 years from here! Now I can develop those all things with quite nice features, coding standard and looks with some different languages!
Ok, come to the point, With C Sharp .net I will write a complete series of article to show the step by step development of a complete professional software. It should be from the step zero, that is selecting what I want to develop and what function can be done with that project that is features listing. Then the step by step development.
So the basic flow of that series of articles will be
Hopefully all those articles will be easy to read and easy to understand for those who have basics on computer programming in C Sharp language. I am not sure how much it is true yet, to see what is coming next keep in touch!
Note: In the meantime you can do some basic study on C Sharp with Visual Studio 2010 as well!
I know you can not add products on your creloaded Cart! It is always trying to keep itself neat and clean that is EMPTY! 🙂
The Empty Cart error on Creloaded is all about COOKIE save path or COOKIE storage domain!
So, The Empty Cart error on Creloaded Solution can be Some settings on configure.php file
For localhost setup:
For server setup:
On visual studio C Sharp .net windows form application if you have a form which you want to close on escape key press, you need to have a button (Cancel Button) on the form. If you click on the button the form will close. So that is Close Button with any of below listed code…
private void btnCancel_Click(object sender, EventArgs e)
Then on form properties you need to Set the value for CancelButton with the above mentioned button name selected.
Check the below attached graphical example to do it….
On my previous “developing cakephp multilingual website” article I as advising you to do a management for languages db table for site administrator, It seems a lot of readers do not understand what will be the management I am asking to write. Sorry for that, Now I am attaching a zip file to show what to do with “do a management for languages db table for site administrator”, It has 2 screenshot, 1 controller, 1 model of language table and view files for a sample.
There are a lot of extra codes on view files which is required for my projects, You just advised to follow the steps or structures.
Merry Christmas to all