When I add a bookmark to a folder using "Bookmark This Page".....I sometimes WANT to add the same page to another folder, but it quietly removed the bookmark from the first folder.
I had to use Copy & Paste to make a copy of the bookmark.
Friday, October 29, 2010
Thursday, September 23, 2010
Friday, July 16, 2010
HTML 5 (Thanks to Adam)
- Sencha Touch
- HTML5 Mobile Application Framework - Already working with Android and Applie iOS devices
- http://www.sencha.com/
- HTML5 Mobile Application Framework - Already working with Android and Applie iOS devices
- Yahoo
- Yahoo UI
- HTML5 Player (plugin)
- http://yuilibrary.com/gallery/show/player
- Provided By Josh Brickner
- http://github.com/macinjosh/YUI-HTML5-Player
- YQL Console
- I believe that if you are using a HTML5 compatible browser then YUI storage utility will utilize it
- http://developer.yahoo.com/yui/storage/
- I believe that if you are using a HTML5 compatible browser then YUI storage utility will utilize it
- Yahoo UI
- Adobe
- Flash will now be importable into HTML5 canvas code
-
any Flash creation can be viewable by just about anyone without downloading the Flash plugin. It also means, clearly, that devices that cannot accept the plugin can nonetheless run the animations built on it.
-
- http://www.readwriteweb.com/archives/flash_now_importable_to_hmtl_canvas.php
- Flash will now be importable into HTML5 canvas code
- Gordon
- An open source Flash™ runtime written in pure JavaScript + HTML5
- Tobias Schneider has built a Flash runtime that works right in the browser. It's implemented in pure Javascript and HTML5, and the whole thing is open source, MIT-licensed, and hosted on GitHub.
- http://ajaxian.com/archives/gordon-flash-runtime-implemented-in-javascript
- Tobias Schneider has built a Flash runtime that works right in the browser. It's implemented in pure Javascript and HTML5, and the whole thing is open source, MIT-licensed, and hosted on GitHub.
- http://github.com/tobeytailor/gordon
- An open source Flash™ runtime written in pure JavaScript + HTML5
Thursday, June 3, 2010
IE Debugging
The following are errors when everything works in Firefox.
1. Could not get the type property. This command is not supported.
In IE you can't change the type of an input element after it has been added to the document, so set before being appended.
2. Object doesn't support this action
change createElement('input'); but eventually use ajax callback template;
3. Object required
check if object exist
4. Div Overflow
1. Could not get the type property. This command is not supported.
var hidden_field1 = row3.appendChild(document.createElement("input"));
hidden_field1.id = 'request_type';
hidden_field1.type = 'hidden'; // problem
In IE you can't change the type of an input element after it has been added to the document, so set before being appended.
2. Object doesn't support this action
var calendar_icon = document.createElement("button");
calendar_icon.type = "button"; // problem
change createElement('input'); but eventually use ajax callback template;
3. Object required
check if object exist
var dt_select_msg = document.getElementById('dt_select_msg');
if(dt_select_msg) { dt_select_msg.style.display = 'hidden'; }
4. Div Overflow
container {
height:100%;
overflow:auto;
position:relative;
}
Tuesday, June 1, 2010
Symfony Tips (part2)
1. Error 500
http://symfony-check.org/
http://www.symfony-project.org/gentle-introduction/1_4/en/19-Mastering-Symfony-s-Configuration-Files#chapter_19_sub_default_modules_and_actions
symfony 1.2-
web/errors/error500.php
symfony 1.2+
config/error/error.html.php
config/error/unavilable.php
In application settings.yml
set check_lock to true
2. Session name
http://www.symfony-project.org/reference/1_4/en/07-Databases
symfony use databases.yml to determine the connection settings (host, database name, user, and password)
Problem:
Fatal error: Class 'sfPropelDatabase' not found in /root/workspace/ProjectName/cache/appName/dev/config/config_databases.yml.php on line 6
From doctrine to Prople
http://stackoverflow.com/questions/1835676/switch-symfony-1-4-from-doctrene-to-propel
Problem:
Fatal error: Declaration of MysqlSession::sessionWrite() must be compatible with that of sfDatabaseSessionStorage::sessionWrite() in /root/workspace/ProjectName/lib/symfony/MysqlSession.class.php on line 2
Problem:
Unable to open PDO connection [wrapped: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)]
3. Incomplete Object
Add the XXXXXXX object into the config.php
require_once('xxxxxx/service/xxxx/XXXXXXX.php');
4. Symfony cc
Different environment, index_dev.php works, index.php not.
Try to symfony10 cc, command not found;
Use ./symfony cc
http://symfony-check.org/
throw new sfException('Testing the 500 error');
http://www.symfony-project.org/gentle-introduction/1_4/en/19-Mastering-Symfony-s-Configuration-Files#chapter_19_sub_default_modules_and_actions
symfony 1.2-
web/errors/error500.php
symfony 1.2+
config/error/error.html.php
config/error/unavilable.php
In application settings.yml
set check_lock to true
2. Session name
# ProjectName/apps/appName/config/factories.yml
storage:
class: MysqlSession
param:
session_name: xxxsession
db_table: session
database: uxsession
http://www.symfony-project.org/reference/1_4/en/07-Databases
symfony use databases.yml to determine the connection settings (host, database name, user, and password)
# ProjectName/config/database.yml
all:
xxxsession
:
class: sfPropelDatabase
param:
dsn: mysql://xxxxxxx
Problem:
Fatal error: Class 'sfPropelDatabase' not found in /root/workspace/ProjectName/cache/appName/dev/config/config_databases.yml.php on line 6
From doctrine to Prople
http://stackoverflow.com/questions/1835676/switch-symfony-1-4-from-doctrene-to-propel
#ProjectName/config/ProjectConfiguration.class.php
public function setup()
{
// $this->enablePlugins('sfDoctrinePlugin');
$this->enablePlugins('sfPropelPlugin');
}
Problem:
Fatal error: Declaration of MysqlSession::sessionWrite() must be compatible with that of sfDatabaseSessionStorage::sessionWrite() in /root/workspace/ProjectName/lib/symfony/MysqlSession.class.php on line 2
#ProjectName/lib/symfony/MysqlSession.class.php
public function sessionWrite($id, &$data) //reference parameter
Problem:
Unable to open PDO connection [wrapped: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)]
3. Incomplete Object
Fatal error: xxx_xxxActions::executeGroup() : The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition XXXXXXX of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /root/workspace/xxxx/actions/actions.class.php on line 40Add the XXXXXXX object into the config.php
require_once('xxxxxx/service/xxxx/XXXXXXX.php');
4. Symfony cc
Different environment, index_dev.php works, index.php not.
Try to symfony10 cc, command not found;
Use ./symfony cc
Thursday, May 27, 2010
Symfony: Mailer
In action
factories.yml
$message = $this->getMailer()->compose(
array('your@email.com'=>'Your Name'),
'otheremail@email.com',
'Subject',
'Body'
);
$this->getMailer()->send($message);
factories.yml
dev:
mailer:
class: sfMailer
param:
logging: %SF_LOGGING_ENABLED%
charset: %SF_CHARSET%
delivery_strategy: realtime
transport:
class: Swift_SmtpTransport
param:
host: localhost
port: 25
encryption: ~
username: ~
password: ~
Subscribe to:
Posts (Atom)