Choose the best
Mon, 08/23/2010 - 12:21 | Laryedwards
Like all aspects of business, IT Services requires constant management and supervision as well as expert level guidance so that you may be able to leverage it as a revenue center. When you manage your connectivity and computing requirements effectively, you gain business advantages essential to long term growth and success. With DataFocus as your technology partner, you can expect increased employee productivity, enhanced systems reliability, protection for your mission critical business information and the freedom to focus on your core business.
0
Chose the best option
Thu, 08/19/2010 - 12:30 | Guest
Like all aspects of business,requires constant management and supervision as well as expert level guidance so that you may be able to leverage it as a revenue center. When you manage your connectivity and computing requirements effectively, you gain business advantages essential to long term growth and success. With you can expect increased employee productivity, enhanced systems reliability, protection for your mission critical business information and the freedom to focus on your core business.
0
Error on autocomplete node reference field: found no valid post with that title.
Wed, 04/14/2010 - 15:58 | gurayc
When importing content into a node reference field that is shared the preview import throws the following error:
Fieldname: found no valid post with that title.
I have found the cause of this problem and can offer a partial solution.
The cause is that the validation function nodereference_autocomplete_validate in nodereference.module expects data in a different format than what is supplied by nodereference.inc of node_import. This function expects data in one of three forms:
"node title"
"node title [nid:node id]"
"[nid:node id]"
I was able to make it work for importing noderefs by node id. I have not tested it with importing noderefs by title, although that might work also. In the file node_import/supported/cck/nodereference.inc, the line
5
Average: 5 (1 vote)
Python for loop
Wed, 04/14/2010 - 09:29 | bbayer
This example shows simple usage of python for loop syntax..
0
Drupal : Wrong Imagecache File Path if User Changes "File System Path"
Mon, 04/12/2010 - 16:41 | gurayc
When calling the image, it generates the address: /sites/default/all/imagecache/preset/IMAGE When it should generate: /sites/default/all/imagecache/preset/sites/default/all/IMAGE
The file's path is being saved properly to the database, imagecache is just having a hard time adding the file system's path before the file name.
To fix the original reported issue:
If you have direct SQL access, e.g., through a shell or PHPMyAdmin:
Run the following query: UPDATE files SET filepath = REPLACE(filepath, 'sites/default/files/', 'sites/example.com/files/')
where example.com is the name of the directory your site is located in.
0
Drupal : Evaluate PHP in pattern + Token
Thu, 04/08/2010 - 13:50 | gurayc
How to use tokens with PHP in Drupal? Here is the answer.
5
Average: 5 (1 vote)
Python Bing API
Thu, 04/08/2010 - 00:31 | bbayer
Here is very basic Bing API implementation with Python. This is useful but there could be more complete alternatives out there. You can use it as quick and dirty solution. Note that this will not fetch any content from Bing. This class only generate proper Bing url. You should handle fetching and parsing operations.
BING_APP_ID="YOUR_BING_APP_ID"
bingurl = Bing( BING_APP_ID ).version("2.0").source("web","news","image","video","relatedsearch").market("en-US").count(20).get_query_address ( "Hello world")
urllib.urlopen(bingurl)
0
Alexa Rank Check of current visited site
Sun, 04/04/2010 - 06:46 | bbayer
Press edit button and copy/paste this code to newly created bookmarks url section. Now you can check currently visited site's Alexa Rank with single click. Previous version (http://codetiny.com/code/create-browser-button-alexa-rank-check) was asking for website.
0
Set variable with whiptail
Wed, 03/31/2010 - 22:31 | bbayer
whiptail is very usefull for creating user friendly bash scripts. Getting input and setting a variable with whiptail --inputbox method could be tricky and here is the solution
0
Recent comments
-
That is cool!12 weeks 4 days ago
-
sexcam13 weeks 6 days ago
-
thanx26 weeks 4 days ago
-
It is very usefull man thanks26 weeks 4 days ago
-
not at all26 weeks 5 days ago
more

