MMOG business model
Been thinking this morning. What can a MMOG generates? I mean, as far as I can see, it oly exploits subscription fee. What about other alternatives? Virtual goods may have been in the list. But what about sponsored item and other in-game ads?
Do you see these stuff in your local MMOG scene?
Also, if MMOG is very lucrative business then how lucrative it is to build a MMOG engine? So that just like Wordpress or Ning, people can create their own MMOG. Not feasible?
Language Neutral for PathAuto
add in function pathauto_admin_settings() {
//path auto ignore language setting
$form[‘general’][‘pathauto_ignore_language’] = array(
‘#type’ => ‘checkbox’,
‘#title’ => t(‘Force Language Neutral’),
‘#default_value’ => variable_get(‘path auto ignore language setting’, FALSE),
‘#description’ => t(‘Create path in language neutral mode’),
);
And add also in function _pathauto_set_alias($src, $dst, $entity_type, $entity_id, $pid = NULL, $verbose = FALSE, $old_alias = NULL, $language = ”) {
// patch: should we ignore language setting
if (!(bool) variable_get(‘path auto ignore language setting’, false))
$language = ”;
Okay, now you are good to go. See this new option in General section of Path Auto Automated Alias Setting
Search in Views
Easy,create a filter and expose it. Example, create a Node.Title filter, then Expose the filter. You can even expose the operator if you are feeling geeky.
I was thinking of using argument, but I was worng. Filter is the way to go :)
I’m somewhat agree. maybe KHTML can be converted to something “proprietary” inside KDE. I don’t know, maybe a slicker Plasma foundation.
Yes, KHTML need to be thought of where does it fit into KDE.
IE Keypress
Some keys are not captured during keyup and keydown, but they are available on keypress. So, for IE special treatment, you may want to duplicate key handling for these keys: TAB, ESC, ENTER
Tested in IE7.
Google for more: jquery ie keypress
Working out autocomplete.js
Even in Drupal 6, autocomplete dropdown is still limiting dropdown width. For a standard label on top, input at the bottom, this solution may fit. But still, if you have a long completion more than what your input field can cope, you will get a truncation.
Also, that double enter key just to submit the text is PITA.
Feel sad no more, I have the fix you need here: http://pastebin.com/f7134cef3
PEAR Moai? What's that?!
Below are errors spewed when requesting an icon over Yahoo! Blueprint. Anyone know about PEAR Moai? Private CDN?
<error>
<code>500</code>
−
<description>
Error retrieving requested resource: Error happened during image lookup on file system
</description>
−
<detail>
#0 /home/y/share/pear/Moai/Pipeline.class.inc(50): Moai_Service_Resources_Pipeline_Image_Lookup->process(Object(Moai_Pipeline_Context))
#1 /home/y/share/pear/Moai/Service/Resources/Handler/Resource.class.inc(279): Moai_Pipeline->process()
#2 /home/y/share/pear/Moai/Service/Resources/Handler/Resource.class.inc(138): Moai_Service_Resources_Handler_Resource::resWidget(Object(Moai_Http_Request), Object(Moai_Http_Response), Array, NULL)
#3 /home/y/share/pear/Moai/Http/Handler.class.inc(86): Moai_Service_Resources_Handler_Resource->onGet(Object(Moai_Http_Request), Object(Moai_Http_Response))
#4 /home/y/share/pear/Moai/Http/Dispatcher.class.inc(212): Moai_Http_Handler->execute(Object(Moai_Http_Request), Object(Moai_Http_Response))
#5 /home/y/share/pear/Moai/Http/Dispatcher.class.inc(137): Moai_Http_Dispatcher->executeHandler(Array, Array, Object(Moai_Http_Request), Object(Moai_Http_Response))
#6 /home/y/share/pear/Moai/Http/Dispatcher.class.inc(101): Moai_Http_Dispatcher->executeEntry(Array, Object(Moai_Http_Request), Object(Moai_Http_Response))
#7 /home/y/share/pear/Moai/Http/Dispatcher.class.inc(212): Moai_Http_Dispatcher->execute(Object(Moai_Http_Request), Object(Moai_Http_Response))
#8 /home/y/share/pear/Moai/Http/Dispatcher.class.inc(137): Moai_Http_Dispatcher->executeHandler(Array, Array, Object(Moai_Http_Request), Object(Moai_Http_Response))
#9 /home/y/share/pear/Moai/Http/Dispatcher.class.inc(101): Moai_Http_Dispatcher->executeEntry(Array, Object(Moai_Http_Request), Object(Moai_Http_Response))
#10 /home/y/share/pear/Moai/Http/Controller.class.inc(34): Moai_Http_Dispatcher->execute(Object(Moai_Http_Request), Object(Moai_Http_Response))
#11 /home/y/share/htdocs/mobile/service/controller.php(9): Moai_Http_Controller->run()
#12 {main}
</detail>
</error>
−
<!—
ycar2.mobile.sp1.yahoo.com uncompressed/chunked Thu Apr 16 19:11:58 PDT 2009
—>
Reminds me of QuickReport goodness. Good ‘ol days
How to achieve a simpler SOLR scoring
this one is for dismax query type, I haven’t test for the normal one.
solrconfig.xml:
- tie=1.0 (make it sum game)
schema.xml:
- add omitNorms=”true” on fields you use in qf
Now you will have less thing to worry. Scoring will only depend on idf, tf, and everything else but fieldNorm. fieldNorm will always be 1.
<str name="id=214950,internal_docid=112150">
1.1009237 = (MATCH) sum of:
1.1009237 = (MATCH) max plus 1.0 times others of:
0.90732294 = (MATCH) weight(company_name:doctor^10.0 in 112150), product of:
0.097192064 = queryWeight(company_name:doctor^10.0), product of:
10.0 = boost
9.335361 = idf(docFreq=36)
0.0010411174 = queryNorm
9.335361 = (MATCH) fieldWeight(company_name:doctor in 112150), product of:
1.0 = tf(termFreq(company_name:doctor)=1)
9.335361 = idf(docFreq=36)
1.0 = fieldNorm(field=company_name, doc=112150)
0.19360073 = (MATCH) weight(full_classification:doctor^8.0 in 112150), product of:
0.040155806 = queryWeight(full_classification:doctor^8.0), product of:
8.0 = boost
4.821239 = idf(docFreq=3377)
0.0010411174 = queryNorm
4.821239 = (MATCH) fieldWeight(full_classification:doctor in 112150), product of:
1.0 = tf(termFreq(full_classification:doctor)=1)
4.821239 = idf(docFreq=3377)
1.0 = fieldNorm(field=full_classification, doc=112150)
</str><str name="id=212332,internal_docid=109538">
0.90732294 = (MATCH) sum of:
0.90732294 = (MATCH) max plus 1.0 times others of:
0.90732294 = (MATCH) weight(company_name:doctor^10.0 in 109538), product of:
0.097192064 = queryWeight(company_name:doctor^10.0), product of:
10.0 = boost
9.335361 = idf(docFreq=36)
0.0010411174 = queryNorm
9.335361 = (MATCH) fieldWeight(company_name:doctor in 109538), product of:
1.0 = tf(termFreq(company_name:doctor)=1)
9.335361 = idf(docFreq=36)
1.0 = fieldNorm(field=company_name, doc=109538)
</str>
VirtualBox VMDK non-functional keyboard and mouse
Don’t panic! Just follow the lead. Do ACPI shutdown until all devices hardware are installed.
1.