<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>More than technology</title>
	<atom:link href="http://blog.attomsoft.com/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.attomsoft.com</link>
	<description>Blog of Attomsoft Inc.</description>
	<lastBuildDate>Sat, 14 Aug 2010 17:57:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Failed at updating Kindle2(Int) firmware from 2.3.3 to 2.5.2</title>
		<link>http://blog.attomsoft.com/tutorial/141/failed-at-updating-kindle2int-firmware-from-2-3-3-to-2-5-2</link>
		<comments>http://blog.attomsoft.com/tutorial/141/failed-at-updating-kindle2int-firmware-from-2-3-3-to-2-5-2#comments</comments>
		<pubDate>Sat, 14 Aug 2010 17:57:06 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Kindle]]></category>

		<guid isPermaLink="false">http://blog.attomsoft.com/?p=141</guid>
		<description><![CDATA[A few guys complain the failure at updating their Kindles 2 International firmware from 2.3.3 to 2.5.2, mostly just get 2.3.4 result. Although not many cases reported, but looks like their Kindles all are K2I and produced in a specific term of 2010. If you are not luck enough, maybe you got the same problem. <a href="http://blog.attomsoft.com/tutorial/141/failed-at-updating-kindle2int-firmware-from-2-3-3-to-2-5-2" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>A few guys complain the failure at updating their Kindles 2 International firmware from 2.3.3 to 2.5.2, mostly just get 2.3.4 result. Although not many cases reported, but looks like their Kindles all are K2I and produced in a specific term of 2010.</p>
<p>If you are not luck enough, maybe you got the same problem. Here are the solutions.</p>
<ol>
<li>be sure that you got the proper firmware update package, for K2I, <a href="https://s3.amazonaws.com/G7G_FirmwareUpdates_WebDownloads/Update_kindle2_gw_2.5.2.bin" target="_blank">here is the link from Amazon</a>. Before download, make sure your Kindle is international version with serial no. prefix B003.<strong>DON’T USE FILES FROM OTHER SITES, THAT MAY BRICK YOUR KINDLE.</strong></li>
<li>uninstall all hacks installed on your Kindle before process the updating. Except the hacks are claimed no need to be uninstalled before update, like usbNetwork hack, in fact, if you want to keep usbNetwork working on 2.5.2, you <strong>MUST NOT</strong> uninstall it before update. And make sure you restore all files which you have modfied to its original.</li>
<li>Backup anything on your kindle to make sure you would not lose it during the update process.</li>
<li>OK, here is the classic update way: plug your kindle to your computer to enter the USB drive mode, copy the 2.5.2 update package to the root of your kindle, and then eject it from your computer.  Click the menu button and enter the settings sub-menu, then select “update your software” by pressing the 5-way joystick, here it goes.</li>
</ol>
<p>That’s just for non-us K2I users, if you got Whispernet you could wait for remote update automatically, if that failed, call Amazon.</p>
<p>Most reported failure of above update process is raised at first stage, normally with error code U006 at the left-bottom of the screen, that means md5 check-sum failure. Normally because some files are modified and not acceptable.</p>
<p>You can find out which files caused that by following below steps:</p>
<ol>
<li>Enable Kindle debug mode: click any visible alpha-number button on the QWETY keyboard to bring out the search field, then clear it by press DEL button, enter [;debugOn] and click Enter. ([;] could be entered by click SYM button). And then enter [;dumpmessages] and click Enter. You should see a new file appear on the top of the screen after a while, that’s the log file of your Kindle.</li>
<li>Copy the log file from your Kindle to your computer, open it with any text editor. Search “checksum failure” in the file, check the line carefully, most guys got this:def:patch:patchinfo=”/opt/amazon/ebook/config/framework.mario.conf”:checksum failure OR this:def:patch:patchinfo=”/opt/amazon/ebook/config/browser_prefs”:checksum failure, whatever, that’s the problem.</li>
<li>The md5 check-sum failure is caused by file modification, maybe you did it yourself, maybe some hacks did, you need to restore them to original. If your situation is the second one, you could restore the files by uninstall the hacks (better all than some). The first situation is up to your own, since you modified them yourself, get them back is your task too. If you could not restore the files caused md5 check-sum failure, you can’t update your Kindle, so try your best on it.</li>
<li>If you had restored the files successfully, congratulations, you should have no problem now, try the update process again. If not, try restore them again.</li>
</ol>
<p>That’s the solution for most unlucky guys with K2I, maybe the part of restoring files is most difficult to perform, uninstall hacks is easy, but some guys just can’t remember what they have done to their Kindles, then the easiest way to do this is just getting proper files from other users with untouched system.</p>
<p>OK, maybe you don’t know how to restore Kindle files manually, I will cover that in other post lately.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.attomsoft.com/tutorial/141/failed-at-updating-kindle2int-firmware-from-2-3-3-to-2-5-2/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Original Kindle files on 2.3.3 system</title>
		<link>http://blog.attomsoft.com/resources/139/original-kindle-files-on-2-3-3-system</link>
		<comments>http://blog.attomsoft.com/resources/139/original-kindle-files-on-2-3-3-system#comments</comments>
		<pubDate>Sat, 14 Aug 2010 17:55:45 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[Kindle]]></category>

		<guid isPermaLink="false">http://blog.attomsoft.com/?p=139</guid>
		<description><![CDATA[I will post some files dumped from Kindle 2(International) 2.3.3 system, in case you mess them up. /opt/amazon/ebook/config/browser_prefs /opt/amazon/ebook/config/framework.mario.conf /opt/amazon/ebook/config/reader.conf]]></description>
			<content:encoded><![CDATA[<p>I will post some files dumped from Kindle 2(International) 2.3.3 system, in case you mess them up.</p>
<p><a href="http://www.easy-share.com/1911099809/browser_prefs(2.3.3K2I).rar" target="_blank">/opt/amazon/ebook/config/browser_prefs</a></p>
<p><a href="http://www.easy-share.com/1911099807/framework.mario(2.3.3K2I).rar" target="_blank">/opt/amazon/ebook/config/framework.mario.conf</a></p>
<p><a href="http://www.easy-share.com/1911099847/reader.conf(2.3.3).rar">/opt/amazon/ebook/config/reader.conf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.attomsoft.com/resources/139/original-kindle-files-on-2-3-3-system/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Prevent Kindle console from sleep</title>
		<link>http://blog.attomsoft.com/tutorial/137/prevent-kindle-console-from-sleep</link>
		<comments>http://blog.attomsoft.com/tutorial/137/prevent-kindle-console-from-sleep#comments</comments>
		<pubDate>Sat, 14 Aug 2010 17:54:08 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Kindle]]></category>

		<guid isPermaLink="false">http://blog.attomsoft.com/?p=137</guid>
		<description><![CDATA[Have you ever found that your Kindle always disconnects from SSH or Telnet when you are coding in its console? Here is the trick: /etc/init.d/netwatchd stop]]></description>
			<content:encoded><![CDATA[<p>Have you ever found that your Kindle always disconnects from SSH or Telnet when you are coding in its console?</p>
<p>Here is the trick:</p>
<blockquote><p><strong>/etc/init.d/netwatchd stop</strong></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.attomsoft.com/tutorial/137/prevent-kindle-console-from-sleep/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kindle 2 unicode font hacks works great</title>
		<link>http://blog.attomsoft.com/tutorial/135/kindle-2-unicode-font-hacks-works-great</link>
		<comments>http://blog.attomsoft.com/tutorial/135/kindle-2-unicode-font-hacks-works-great#comments</comments>
		<pubDate>Sat, 14 Aug 2010 17:52:39 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Kindle]]></category>

		<guid isPermaLink="false">http://blog.attomsoft.com/?p=135</guid>
		<description><![CDATA[I just tested unicode font hacks on my K2I from MobileRead wiki, it works like charm. The process is simple and straigtforward, step 1 is installing the jailbreak, step 2 is installing the font hack. Step 1 will raise a failure as its supposed to, just skip the failure; step 2 does need a manual <a href="http://blog.attomsoft.com/tutorial/135/kindle-2-unicode-font-hacks-works-great" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>I just tested unicode font hacks on my K2I from MobileRead wiki, it works like charm.<br />
The process is simple and straigtforward, step 1 is installing the jailbreak, step 2 is installing the font hack. Step 1 will raise a failure as its supposed to, just skip the failure; step 2 does need a manual reboot after the installation to trigger it on.<br />
Detailed instructions could be found on <a href="http://wiki.mobileread.com/wiki/Kindle_Screen_Saver_Hack_for_all_2.5.x_Kindles" target="_blank">MobileRead.com Wiki</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.attomsoft.com/tutorial/135/kindle-2-unicode-font-hacks-works-great/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to configure OpenVPN on Android CyanogenMod</title>
		<link>http://blog.attomsoft.com/android/134/how-to-configure-openvpn-on-android-cyanogenmod</link>
		<comments>http://blog.attomsoft.com/android/134/how-to-configure-openvpn-on-android-cyanogenmod#comments</comments>
		<pubDate>Sat, 14 Aug 2010 17:51:12 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://blog.attomsoft.com/android/134/how-to-configure-openvpn-on-android-cyanogenmod</guid>
		<description><![CDATA[I just tested this on my old Google G1(Dream) with CyanogenMod 6.0.2(RC), and I think it could apply on other CyanogenMod rom with OpenVPN GUI. Not like OpenVPN on Windows or Linux which needs a config folder holding separate keys and certificates,  on CyanogenMod, the OpenVPN GUI needs a PKCS12 compressed file to perform importing actions. Lets say <a href="http://blog.attomsoft.com/android/134/how-to-configure-openvpn-on-android-cyanogenmod" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>I just tested this on my old Google G1(Dream) with CyanogenMod 6.0.2(RC), and I think it could apply on other CyanogenMod rom with OpenVPN GUI.</p>
<p>Not like OpenVPN on Windows or Linux which needs a config folder holding separate keys and certificates,  on CyanogenMod, the OpenVPN GUI needs a PKCS12 compressed file to perform importing actions.</p>
<p>Lets say you have got the three files: client.key, client.cert and ca.cert, then you could compress them into a single PKCS12 file by running the following command(Linux):</p>
<blockquote><p>openssl pkcs12 -export -in [PathToClientCert] -inkey [PathToClientKey] -certfile [PathToCACert] -name [FriendlyName] -out certs.p12</p></blockquote>
<p>Be sure to replace all the [PathTo**] with appropriate path to your files. On Windows, you could using “openssl.exe”.</p>
<p>Once you got the PKCS12 file, copy it to your Android SDCARD root, and go to “Settings › Security and location”, and then select “Import from SDCARD”.</p>
<p>After importing, you could go to “Wireless &gt; VPN Settings”, and create a new OpenVPN connection and do your stuff.</p>
<p>BTW. You should configure OpenVPN on Android carefully according to the configuration file from Linux or Windows, something important like key-size and encryption method may result very differently, check them by tap “Menu &gt; Advanced settings” in OpenVPN GUI.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.attomsoft.com/android/134/how-to-configure-openvpn-on-android-cyanogenmod/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>First SMS Trojan detected for smartphones running Android</title>
		<link>http://blog.attomsoft.com/android/132/first-sms-trojan-detected-for-smartphones-running-android</link>
		<comments>http://blog.attomsoft.com/android/132/first-sms-trojan-detected-for-smartphones-running-android#comments</comments>
		<pubDate>Sat, 14 Aug 2010 17:49:32 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://blog.attomsoft.com/?p=132</guid>
		<description><![CDATA[Kaspersky Lab, a leading developer of secure content management solutions, announces that the first malicious program classified as a Trojan-SMS has been detected for smartphones running on Google’s Android operating system. Named Trojan-SMS.AndroidOS.FakePlayer.a, it has already infected a number of mobile devices. The new malicious program penetrates smartphones running Android in the guise of a harmless <a href="http://blog.attomsoft.com/android/132/first-sms-trojan-detected-for-smartphones-running-android" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<blockquote><p>Kaspersky Lab, a leading developer of secure content management solutions, announces that the first malicious program classified as a Trojan-SMS has been detected for smartphones running on Google’s Android operating system. Named <em>Trojan-SMS.AndroidOS.FakePlayer.a</em>, it has already infected a number of mobile devices.</p>
<p>The new malicious program penetrates smartphones running Android in the guise of a harmless media player application. Users are prompted to install a file of just over 13 KB with the standard Android extension .APK. Once installed on the phone, the Trojan uses the system to begin sending SMSs to premium rate numbers without the owner’s knowledge or consent, resulting in money passing from a user’s account to that of the cybercriminals.</p>
<p>The Trojan-SMS category is currently the most widespread class of malware for mobile phones, but <em>Trojan-SMS.AndroidOS.FakePlayer.a</em> is the first to specifically target the Android platform. It should be noted that there have already been isolated cases of devices running Android being infected with spyware. The first such program appeared in 2009.</p>
<p>“The IT market research and analysis organization IDC has noted that those selling devices running Android are experiencing the highest growth in sales among smartphone manufacturers. As a result, we can expect to see a corresponding rise in the amount of malware targeting that platform,” says Denis Maslennikov, Mobile Research Group Manager at Kaspersky Lab. “Kaspersky Lab is actively developing technologies and solutions to protect this operating system and plans to release Kaspersky Mobile Security for Android in early 2011.”</p>
<p>Kaspersky Lab recommends that users pay close attention to the services that an application requests access to when it is being installed. That includes access to premium rate services that charge to send SMSs and make calls. When a user agrees to these functions during the installation of an application, the smartphone may then be able to make calls and send SMSs without further authorization.</p>
<p>The signature for <em>Trojan-SMS.AndroidOS.FakePlayer.a</em> has already been added to Kaspersky Lab’s antivirus databases.</p></blockquote>
<p><strong>Check carefully before you install any application either from market or download site, something bad may hurt you.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.attomsoft.com/android/132/first-sms-trojan-detected-for-smartphones-running-android/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to build a stackoverflow or Yahoo! Answers like system using Drupal (Part2)</title>
		<link>http://blog.attomsoft.com/drupal/126/how-to-build-a-stackoverflow-or-yahoo-answers-like-system-using-drupal-part2</link>
		<comments>http://blog.attomsoft.com/drupal/126/how-to-build-a-stackoverflow-or-yahoo-answers-like-system-using-drupal-part2#comments</comments>
		<pubDate>Mon, 26 Apr 2010 08:17:52 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Answers]]></category>
		<category><![CDATA[nodereference]]></category>
		<category><![CDATA[Q&A]]></category>
		<category><![CDATA[Stackoverflow]]></category>

		<guid isPermaLink="false">http://blog.attomsoft.com/?p=126</guid>
		<description><![CDATA[We&#8217;ll create the two content types which will be used by our Q&#38;A system in today&#8217;s part-2. The Questions content-type fields: Question title(Module form [title]) Question description(Module form [body]) Disable comment option if you don&#8217;t want users comment on the question itself. Points: field_question_points, type[integer], default value[0], set as required, minimum value also as 0 <a href="http://blog.attomsoft.com/drupal/126/how-to-build-a-stackoverflow-or-yahoo-answers-like-system-using-drupal-part2" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ll create the two content types which will be used by our Q&amp;A system in today&#8217;s part-2.</p>
<p><strong>The Questions content-type fields:</strong></p>
<ol>
<li>Question title(Module form [title])</li>
<li>Question description(Module form [body])</li>
<li>Disable comment option if you don&#8217;t want users comment on the question itself.</li>
<li>Points: field_question_points, type[integer], default value[0], set as required, minimum value also as 0</li>
<li>Answers: field_question_answers, type[nodereference count], set as required, the &#8220;nodereference field that can be counted&#8221; option should be set to the field name that we&#8217;ll create it in &#8220;Answers&#8221; content-type in step 2. (So you could just process #5 field)</li>
<li>Best answer: field_question_best_answer, type[nodereference]. Save the content type here and we will refine it later.</li>
</ol>
<p><strong>The Answers content-type fields:</strong></p>
<ol>
<li>Set &#8220;Automatic title generation&#8221; option to &#8220;Automatically generate the title and hide the title field&#8221;, you can set the automated title pattern using tokens available there.</li>
<li>Disable the comment option if you don&#8217;t want user comment on answers themselves. Or leave it R/W just like Stackoverflow.</li>
<li>Target Question field: type[nodereference][nodereference from url], select our previously created &#8216;Questions&#8217; type for referring.</li>
<li>Selected Answer field: type[integer][Single on/off checkbox],  set allowed values as &#8217;0|No&#8217; and &#8217;1|Yes&#8217; (that&#8217;s separated lines)</li>
</ol>
<p><strong>Here, we&#8217;ll go back to the &#8220;Questions&#8221; type and re-configure it:</strong></p>
<ol>
<li>The &#8220;nodereference field that can be counted&#8221; of the &#8220;Answers&#8221; field should be set to our just created &#8220;Target Question&#8221; field.</li>
<li>The &#8220;Content types that can be referenced&#8221; of the &#8220;Best answer&#8221; field should be set to our just created &#8220;Answers&#8221; type.</li>
</ol>
<p><strong>If you want to allow free tagging feature, here&#8217;s how:</strong></p>
<ol>
<li>Create new vocabulary  named &#8220;Tags&#8221; or something you prefer.</li>
<li>Select the content types we just created which will allow using terms below this vocabulary and its free tagging feature.</li>
<li>Enable the &#8220;Tags&#8221; option for this vocabulary to allow users free tagging</li>
</ol>
<p>That&#8217;s all basic content types we needed for our Q&amp;A system, we&#8217;ll build the needed views and panels in our next part tutorial.</p>
<p>See ya.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.attomsoft.com/drupal/126/how-to-build-a-stackoverflow-or-yahoo-answers-like-system-using-drupal-part2/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to build a stackoverflow or Yahoo! Answers like system using Drupal (Part1)</title>
		<link>http://blog.attomsoft.com/drupal/122/how-to-build-a-stackoverflow-or-yahoo-answers-like-system-using-drupal-part1</link>
		<comments>http://blog.attomsoft.com/drupal/122/how-to-build-a-stackoverflow-or-yahoo-answers-like-system-using-drupal-part1#comments</comments>
		<pubDate>Fri, 23 Apr 2010 14:04:44 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Answers]]></category>
		<category><![CDATA[Q&A]]></category>
		<category><![CDATA[Stackoverflow]]></category>
		<category><![CDATA[Yahoo!]]></category>

		<guid isPermaLink="false">http://blog.attomsoft.com/?p=122</guid>
		<description><![CDATA[Do you believe that? Stackoverflow or Yahoo! Answers interactive sites will replace old forums. Because users on most interactive sites treat finding solutions or help people as their daily job, traditional forum style systems are good at entertaining users, but not solution oriented. From this post start, I&#8217;ll tell you how to build a stackoverflow <a href="http://blog.attomsoft.com/drupal/122/how-to-build-a-stackoverflow-or-yahoo-answers-like-system-using-drupal-part1" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>Do you believe that? Stackoverflow or Yahoo! Answers interactive sites will replace old forums. Because users on most interactive sites treat finding solutions or help people as their daily job, traditional forum style systems are good at entertaining users, but not solution oriented.</p>
<p>From this post start, I&#8217;ll tell you how to build a stackoverflow or Yahoo! Answers like system using Drupal only, on this topic completion, we will have a Question&amp;Answer system with following features:</p>
<ul>
<li>Users can post and answer question with granted access; (ACL)</li>
<li>Every question can be assigned &#8220;Points&#8221; by its author, and the points will be granted to the author of the best question which picked up by the author of question;  (Awarding)</li>
<li>On the questions list page, users can see how many answers have been posted to single question, and whether the best answer has been picked up;</li>
<li>On the question detail page, users can see the question itself and information including tags, points, authors, posted date, and all answers following the question;</li>
<li>On the question detail page, if the best answer has been picked up, the question will be marked as &#8220;Closed&#8221; and the best answer will be on the top of the answers list and marked as &#8220;Best Answer&#8221;;</li>
<li>If the author of a question had picked up the best answer, other users will not be able to post answers anymore, and the author himself will not be able to pick another answer as the best;</li>
</ul>
<p>The following modules will be used by this little project:</p>
<ul>
<li>Drupal (itself, of cause)</li>
<li>CCK (with build-in plugins and additional nodereference and the nodereference_url widget)</li>
<li>Nodereference Count module</li>
<li>Automatic nodetitles</li>
<li>Views</li>
<li>Panels</li>
<li>Userpoints</li>
<li>Our custom Q&amp;A module</li>
</ul>
<p>We&#8217;ve set our gold and list tools we&#8217;ll need later, we&#8217;ll start the building this Q&amp;A system from next part of this topic.</p>
<p>See ya.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.attomsoft.com/drupal/122/how-to-build-a-stackoverflow-or-yahoo-answers-like-system-using-drupal-part1/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Nodereference field from custom url in Panels pane</title>
		<link>http://blog.attomsoft.com/drupal/118/nodereference-field-from-custom-url-in-panels-pane</link>
		<comments>http://blog.attomsoft.com/drupal/118/nodereference-field-from-custom-url-in-panels-pane#comments</comments>
		<pubDate>Tue, 20 Apr 2010 13:04:27 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[nodereference]]></category>
		<category><![CDATA[panels]]></category>

		<guid isPermaLink="false">http://blog.attomsoft.com/?p=118</guid>
		<description><![CDATA[Nodereference field is a powerful CCK field type for relationship handling for Drupal, the nodereference_url module is a plugin supplying it with referenced nid from url path. I use them a lot in daily Drupal based solutions. Nodereference Url works under path like node/add/NODETYPE/NODE_ID situation by default, it&#8217;s sufficient for normal problem such as &#8220;Post <a href="http://blog.attomsoft.com/drupal/118/nodereference-field-from-custom-url-in-panels-pane" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>Nodereference field is a powerful CCK field type for relationship handling for Drupal, the nodereference_url module is a plugin supplying it with referenced nid from url path. I use them a lot in daily Drupal based solutions.</p>
<p>Nodereference Url works under path like node/add/NODETYPE/NODE_ID situation by default, it&#8217;s sufficient for normal problem such as &#8220;Post reply&#8221;, &#8220;Add comment&#8221;, etc. You just need to build the link with proper NODE_ID.</p>
<p>One of our projects need to build a system like &#8220;StackOverflow&#8221; with simple Question&amp;Answers workflow. I created &#8220;Question&#8221; type and &#8220;Answer&#8221; type which has a filed referring to the &#8220;Question&#8221; type, then I used Panels to integrate single &#8220;Question&#8221; node with its related &#8220;Answer&#8221;s node.</p>
<p>Everything works as will, until I tried to add a &#8220;Answer Add Form&#8221; below the created panel page, the form displayed but the field referring &#8220;Question&#8221; node gave out &#8220;Referenced content not found&#8221; error.</p>
<p>I could find out why, until I read the document of Nodereference URL module carefully.</p>
<p>The reason why above solution not worked is that, the Nodereference URL module supports /add/NODETYPE/NODE_ID by default, and that&#8217;s the only pattern it works on.</p>
<p>At last, the solution laid just in the README.txt file with the module itself. Silly me!</p>
<p>It said:</p>
<pre style="padding-left: 30px;"><em><span style="color: #c0c0c0;"><strong>By default Node Reference URL Widget will only work with node form paths that
match the standard Drupal install: "node/add/%type", where %type is a node type
like "blog" or "story". If you want to use Node Reference URL Widget on
non-standard URLs, you may do so by informing Node Reference URL Widget of these
special paths.

To do so, add additional paths to your settings.php with the following code:

$conf['nodereference_url_paths'] = array(
 'node/add/%type/%nid',
 'node/%/add/%type/%nid',
);
</strong></span></em></pre>
<p>So, remained work just as easy as put above lines of code to my settings.php. And then, magic happens.</p>
<p> <img src='http://blog.attomsoft.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.attomsoft.com/drupal/118/nodereference-field-from-custom-url-in-panels-pane/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Attomsoft main site will be re-constructed for new business strategy</title>
		<link>http://blog.attomsoft.com/attomsoft/116/attomsoft-main-site-will-be-re-constructed-for-new-business-strategy</link>
		<comments>http://blog.attomsoft.com/attomsoft/116/attomsoft-main-site-will-be-re-constructed-for-new-business-strategy#comments</comments>
		<pubDate>Sat, 17 Apr 2010 07:59:38 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Attomsoft]]></category>

		<guid isPermaLink="false">http://blog.attomsoft.com/?p=116</guid>
		<description><![CDATA[Attomsoft main site (www.attomsoft.com) will be reconstructed these days, because we have got new funds from investors and new refined strategy. Since 2005, Attomsoft Inc. has been a leading company targeting mid-large business website architect and design in China mainland, we&#8217;ve served lots of  great companies including Petro China, China Mobile, etc.]]></description>
			<content:encoded><![CDATA[<p>Attomsoft main site (www.attomsoft.com) will be reconstructed these days, because we have got new funds from investors and new refined strategy.</p>
<p>Since 2005, Attomsoft Inc. has been a leading company targeting mid-large business website architect and design in China mainland, we&#8217;ve served lots of  great companies including Petro China, China Mobile, etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.attomsoft.com/attomsoft/116/attomsoft-main-site-will-be-re-constructed-for-new-business-strategy/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

