Search:
RSS feed:
Login
Login here to be able to
  • post comments (everybody)
  • insert articles (administrator only)
Subscribe

I want to receive notification when new comments are posted
E-mail address:
                     

 

Linux > Vim Dictionary for ColdFusion
July 12, 2006

Because I had to translate some PHP code into ColdFusion and I'm not a guru yet in this language I badly needed sometime a ColdFusion library with all the tags and CF functions for the vim. It was impossible for me to find one on their site which has already plenty of resources therefore I gone into the Coldfusion online documentation and I took the list of the CF tags and the CF functions. I integrated this list in alphabetical order to create a dictionary which is helpfull for autocompletion.

You may download this vim Coldfusion dictionary for free as is. I had put this file into a folder dict inside the vim Windows installation and then edited the vimrc. Here I added the following lines:

set dict+="C:\Program Files\Vim\vim70\dict\CF.dict"
silent sv C:\Program Files\vim\vim70\dict\CF.dict
q

Now I have a working way to autocomplete the CF tags, CF native functions and tag attributes with autocompletion without any problem. Probably I will improve this little file over the time and when I will consider this ready I will try to publish it to the Vim community site.

I forgot to mention that I tested this only with the Vim 7.0


Posted at: 1:18 AM | Linux | Comments(15) | Add a comment

 
Your name*:
Your email*:
Your comment*:
Word verification*:
This is a captcha-picture. It is used to prevent mass-access by robots.
Type the characters you see in the picture above
 
InterAKT > myFeedz will have a new server
June 14, 2006

Today we purchased a new dedicated server from the HostMySite for the myFeedz beta project. The beta preview of the application already gathered enough information that forced us to move it so it will not interfere with our dedicated site server service.

We almost finished the server configuration and we plan for tomorrow or the day after the information migration for myFeedz. I hope the people that use this system to not experience any problems in this process.

For those of you that are not yet familiar with myFeedz project you should read more on the myFeedz official site. We encourage people in subscribing to the beta and give us feedback about it. For any questions you should write us an email.


Posted at: 7:03 PM | InterAKT | Comments(3) | Add a comment

 
Your name*:
Your email*:
Your comment*:
Word verification*:
This is a captcha-picture. It is used to prevent mass-access by robots.
Type the characters you see in the picture above
 
Programming > MySQL 5.0 has problems
June 02, 2006

We had bad experiences with MySQL 5.0.x suite. Some basic functionalities stopped working normally in some situation which are almost common that make me wonder about the stability and future of this database.

When we first changed on our servers the MySQL version from 4.1.x to the MySQL 5.0.15 we discovered that even if we didn't touch the application that use this database everything became slower. They say they improved the indexing engine in the 5.0 release but actually all the subselects and union queries start working very, very slow with the same indexes that we had on the 4.1. We had to rewrite couple of these queries, even to break them into multiple small queries and join them manually from the PHP to be able to achieve the same speed as before. 

After this the hell began. Queries started to not work anymore, data was crashed...

1. A client reported that some pages where empty even if the information existed into the database. Therefore we started investigation and found that a very basic query in unknown situations returned empty results:

SELECT * FROM table_a INNER JOIN table_b ON table_b.fk = table_a.pk

even if information was there. After multiple tries we discovered that this query however works:

SELECT * FROM table_a INNER JOIN table_b ON table_a.pk = table_b.fk

This query using an INNER JOIN the condition order should not count at all. The equality is the same no matter were you start evaluating the expression. But incredible, it does and produce different outputs. We still search for a reason why this problem appeared on those tables.

2. Another query that do was crashing with empty results was:

SELECT * FROM orders_ord WHERE status_ord IN ('Confirmed', 'Closed', 'Initialized');

changing this to:

SELECT * FROM orders_ord HAVING status_ord IN ('Confirmed', 'Closed', 'Initialized');

worked as expected. We managed to reproduce this bug on a very small data subset and reported back to them. We seen they marked the bug as fixed.

3. The most crazy bug we experienced was that a simple query like this:

SELECT * FROM table_a WHERE date_field < '2006-01-01 00:00:00'

do not returned any records but

SELECT * FROM table_a WHERE date_field < '2006-01-01 00:00:00' AND primary_key>0

had 400 results. The cause was a bug fixed in the InnoDB engine:

"Inserting a new row into an InnoDB table could cause DATETIME values already stored in the table to change. (Bug#13900)"

therefore many of the records where crashed with dates like: '?789-56-34' or '2005-12-30 10:23:99'. Because of these invalid dates I suspect that indexes were crashed as well. After upgrading to a newer version we had to take all the dates from the table and manually change them to some values that were at least correct as dates but the original data was lost.

We were curious after this MySQL version upgrade what bugs they fixed. By looking to the change logs we found some amaizing ones:

"A left join on a column that having a NULL value could cause the server to crash. (Bug#15268)"

"RPM packages had an incorrect zlib dependency. (Bug#15223)"

"mysqld would not start on Windows 9X operating systems including Windows Me. (Bug#15209)"

"The server crashed if compiled without any transactional storage engines. (Bug#15047)"

"Invoking a stored procedure within another stored procedure caused the server to crash. (Bug#13549)"

"SELECT with GROUP BY on a view can cause a server crash. (Bug#16382)"

"For a MySQL 5.0 server, using MySQL 4.1 tables in queries with a GROUP BY clause could result in buffer overrun or a server crash. (Bug#16752)"

" The absence of a table in the left part of a left or right join was not checked prior to name resolution, which resulted in a server crash. (Bug#15538)"

"Use of stored functions with DISTINCT or GROUP BY can produce incorrect results when ORDER BY is also used. (Bug#13575)"

"SELECT COUNT(*) for a MyISAM table could return different results depending on whether an index was used. (Bug#14980)"

"A LEFT JOIN with a UNION that selects literal values could crash the server. (Bug#17366)"

"Creating a table in an InnoDB database with a column name that matched the name of an internal InnoDB column (including DB_ROW_ID, DB_TRX_ID, DB_ROLL_PTR and DB_MIX_ID) would cause a crash.(Bug#18934)"

and many others. I am disapointed about this version 5.0 which is the worst one we had. Never encoutered in the normal usage experience such problems on 3.23.x, 4.0.x or 4.1.x.


Posted at: 12:46 PM | Programming | Comments(6) | Add a comment

 
Your name*:
Your email*:
Your comment*:
Word verification*:
This is a captcha-picture. It is used to prevent mass-access by robots.
Type the characters you see in the picture above
 
InterAKT > New site release
May 08, 2006

We just release a new InterAKT site minor version Thursday.
I know that until now such releases were not public announced but we did some changes to the Forum system and others in order to be able to improve the support.

A change log will look like this: 

- A beta preview of the new CSS Menu that is almost ready was integrated
- The email messages of the forums changed to be able to track them down. I know that this probably destroyed the automatic email filters you had specially those subscribed on Beta and we apologize for that.
- Some small bugs corrected.

I know that after the release some problems appeared. If you encounter any issue don't hesitate to tell me eiter as a comment or by email directly (cristic AT interaktonline.com).


Posted at: 12:34 AM | InterAKT | Comments(4) | Add a comment

 
Your name*:
Your email*:
Your comment*:
Word verification*:
This is a captcha-picture. It is used to prevent mass-access by robots.
Type the characters you see in the picture above
 
Linux > Amazingly simple: Fedora Core version upgrade
April 26, 2006

I didn't know even if I am a long yum user that is that simple to upgrade a Linux Fedora Core installed machine so easily and safely.

You will have only to find first a Linux Fedora Core mirror distribution version that you need to install. Next step is to run this command:

rpm -Uvh ftp://ftp.iasi.roedu.net/mirrors/fedora.redhat.com/core /CORE_VERSION/i386/os/Fedora/RPMS/fedora-release-x-x.noarch.rpm

which will install the fedora-release package for the new version.

The next step is even easiear: 

yum upgrade

After couple of hours you'll have the new version installed. 

I will have to warn you however that there are couple of things that you should know first:

  • you can't do a big version jump like from Fedora Core 2 to Fedora Core 5. You'll have to make the upgrades to 3 then to the 4 and only after to the 5.
  • after each upgrade check the grub to have the latest kernel image as default and then do a reboot
  • the configuration files are not overwriten, instead they are saved with .rpmnew extension in the same folder. It is very probably that services do not restart after the reboot because changes have been made to these configuration. Do a diff between the old and new configuration to see what settings have been deprecated and what new settings have been added. ( I had problems with postfix, named and others).
  • you should do the same thing with the init.d scripts
  • the downloaded rpm files used for upgrade may be cleared using the yum clean all as is possible that the next version upgrade to not have the necessary space.
  • read the yum manual in case you have problems.

Read this article if you still wonder why to upgrade to Fedora Core 5.

Good luck !


Posted at: 11:35 PM | Linux | Comments(4) | Add a comment

 
Your name*:
Your email*:
Your comment*:
Word verification*:
This is a captcha-picture. It is used to prevent mass-access by robots.
Type the characters you see in the picture above
 

Records 1 to 5 of 9

Powered by Macromedia Dreamweaver MX & MX Kollection