<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Javas Blogs global]]></title>
		<link><![CDATA[http://www.javasblogs.com/]]></link>
		<description><![CDATA[From coffees to Javascripting]]></description>
		<language><![CDATA[en-us]]></language>
		<generator><![CDATA[BeVerbal RSS Feed Generator]]></generator>
		<item>
			<title><![CDATA[Sortable.serialize - passing list to order page by James]]></title>
			<guid><![CDATA[http://serialize.javasblogs.com/article/51561629.html]]></guid>
			<author><![CDATA[~Ray <dforums@hotmail.com>]]></author>
			<pubDate><![CDATA[Thu, 13 Nov 2008 12:19:40 -0500]]></pubDate>
			<description><![CDATA[This repository is private. All pages are served <a href='http://over.over80blogs.com/'>over</a> SSL and all pushing and pulling is done over SSH. No one may fork clone or view it unless they are added as a.   Every repository with <a href='http://this.funnyblogs.net/'>this</a> icon (
This repository is public. Anyone may fork clone or view it.   Every repository with this icon (
script aculo us is an open-source JavaScript framework for visual effects and interface behaviours. 
is a set of JavaScript libraries to enhance the user interface of web sites. It provides an visual effects engine a drag and drop library (including sortable lists) a couple of controls (Ajax-based autocompletion in-place editing sliders) and more. Be sure to !
This wiki details Version 1.8.1 of the library which is the most current version of the 1 x trunk of script aculo us.
script aculo us is open source. Read up on how to by finding <a href='http://bugs.musicalblogs.com/'>bugs</a> making bug reports and <a href='http://helping.veteranblogs.net/'>helping</a> fixing them.
Help port the old <a href='http://dead.wordblogs.net/'>dead</a> wiki to github and earn BIG BROWNIE POINTS! You can find a copy of the old wiki contents at. See some helpful hints for and please follow the !
Using script aculo us is easy! First go to the to grab yourself the latest version in a convenient package. Follow the instructions there then return here.
Third load script aculo us in your web page. This is done by linking to the scripts in the head of your document.
&lt;script src="javascripts/prototype js" type="text/javascript"&gt;&lt;/script&gt;&lt;script src="javascripts/scriptaculous js" type="text/javascript"&gt;&lt;/script&gt;
The scriptaculous js loader script will automatically load in the other libraries. By default scriptaculous js loads all of the other javascript files necessary for effects drag-and-drop sliders and all of the other script aculo us features. If you donâ€™t need all of the features you can limit the additional scripts that get loaded by specifying them in a comma-separated list e g.:
&lt;script src="scriptaculous js?load=effects,dragdrop" type="text/javascript"&gt;&lt;/script&gt;
Note that some of the scripts require that others be loaded in order to function properly.
&lt;script type="text/javascript" language="javascript"&gt; // &lt;![CDATA[ $('element_id') appear(); // ]]&gt;&lt;/script&gt;
This way you wonâ€™t have to worry about using characters like &lt; and &gt; in your Java Script code.
You can also use effects inside event handlers:
&lt;div onclick="$(this) switchOff()"&gt; Click here if you've seen enough.&lt;/div&gt;
&lt;div onclick="$(this) blindUp({ duration: 16 })"&gt; Click here if you want this to go slooooow.&lt;/div&gt;
Have a look at the to catch a glimpse of what you can achieve. Read the documentation. Create the next killer application! <br>
<br>
<a href="http://www.forexgroups.com"><font size=5>Forex Groups</a> - <a href="http://www.tipsontrading.com">Tips on Trading</a></font>
<br>
<br>Related article:<br>
<a href='http://wiki.script.aculo.us/scriptaculous/discuss/Sortable.serialize?comment=24734'>http://wiki.script.aculo.us/scriptaculous/discuss/Sortable.serialize?comment=24734</a>
]]></description>
		</item>
		<item>
			<title><![CDATA[Serialize A Array.]]></title>
			<guid><![CDATA[http://serialize.javasblogs.com/article/51200127.html]]></guid>
			<author><![CDATA[~Ray <dforums@hotmail.com>]]></author>
			<pubDate><![CDATA[Wed, 12 Mar 2008 23:10:51 -0500]]></pubDate>
			<description><![CDATA[I am working on a new more pvp guild like faction system so far i have begun by trying to create the kill it compiles but... On the start it says this:
World: Loading... An error was encountered while loading a saved object - Type: Server. Items. SunFactionStone - Serial: 0x40000215Delete the object? (y/n)
i guess this convey my serialiaze method is wacked can some one tell me how to serialize an arrange?here is script:
using System;using Server;using Server. Gumps;using Server. Items;using Server. Mobiles;using System. Collections;using Server. communicate;using Server. Prompts;using Server. Commands;using Server. Targeting;namespace Server. Items{ public categorise SunFactionStone : Item { <a href='http://private.wordsblogs.com/'>private</a> ArrayList members; private int totalmembers; private int points; private string name; [Constructable] public SunFactionStone() : base(0xEDC) { Movable = false; } public override void GetProperties(ObjectPropertyList enumerate) { locate. GetProperties(enumerate); if (members != null) { totalmembers = members. Count; } else { totalmembers = 0; } label = &quot;Faction kill of Sun&quot;; //points = GetFactionPoints(&quot;Sun&quot;); enumerate. Add(name); list. Add(&quot;Members: &quot;+totalmembers); list. Add(&quot;Points: &quot;+points); } public decree void OnDoubleClick(Mobile from) { if (members == null) { members = new ArrayList(); Console. WriteLine(&quot;The Sun Faction Has Been Created&quot;); } else { if (from is PlayerMobile) { if (members. Contains(from)) { from. SendGump(new SunJoinGump()); } else { from. SendGump(new SunJoinGump()); } } } } public SunFactionStone(Serial serial) : locate(serial) { } public override cancel Serialize(GenericWriter writer) { base. Serialize(writer); writer. Write((int)0); // version 
if (members != null) { writer. WriteMobileList(members); }
} public decree void Deserialize(GenericReader reader) { locate. Deserialize(reader); int version = reader. ReadInt(); 
if (members != null) { members = reader. ReadMobileList(); }
Initialize the members array inline so you're guaranteed that it is not null so when you go to serialize/deserialize you just remove the null checks and deliver/load the arrange - even if it is empty.
jesus convey you heaps i drove y self a bit <a href='http://crazy.funnyblogs.net/'>crazy</a> trying to figure out what it was but now with your <a href='http://advice.wordblogs.net/'>advice</a> i realize that members == null because it had not been loaded yet <br>
<br>
<a href="http://www.forexgroups.com"><font size=5>Forex Groups</a> - <a href="http://www.tipsontrading.com">Tips on Trading</a></font>
<br>
<br>Related article:<br>
<a href='http://www.runuo.com/forums/script-support/86309-serialize-array.html'>http://www.runuo.com/forums/script-support/86309-serialize-array.html</a>
]]></description>
		</item>
		<item>
			<title><![CDATA[Serialize A Array.]]></title>
			<guid><![CDATA[http://serialize.javasblogs.com/article/51200128.html]]></guid>
			<author><![CDATA[~Ray <dforums@hotmail.com>]]></author>
			<pubDate><![CDATA[Wed, 12 Mar 2008 23:10:51 -0500]]></pubDate>
			<description><![CDATA[I am <a href='http://working.musicalblogs.com/'>working</a> on a new more pvp guild like faction system so far i have begun by trying to act the stone it compiles but... On the start it says this:
World: Loading... An error was encountered while loading a saved disapprove - Type: Server. Items. SunFactionStone - Serial: 0x40000215Delete the object? (y/n)
i guess <a href='http://this.funnyblogs.net/'>this</a> mean my serialiaze method is wacked can some one tell me how to serialize an arrange?here is script:
using System;using Server;using Server. Gumps;using Server. Items;using Server. Mobiles;using System. Collections;using Server. communicate;using Server. Prompts;using Server. Commands;using Server. Targeting;namespace Server. Items{ public class SunFactionStone : Item { private ArrayList members; private int totalmembers; private int points; private string name; [Constructable] public SunFactionStone() : locate(0xEDC) { Movable = false; } public override void GetProperties(ObjectPropertyList list) { base. GetProperties(enumerate); if (members != null) { totalmembers = members. Count; } else { totalmembers = 0; } label = &quot;Faction Stone of Sun&quot;; //points = GetFactionPoints(&quot;Sun&quot;); enumerate. Add(name); list. Add(&quot;Members: &quot;+totalmembers); enumerate. Add(&quot;Points: &quot;+points); } public decree void OnDoubleClick(Mobile from) { if (members == null) { members = new ArrayList(); Console. WriteLine(&quot;The Sun Faction Has Been Created&quot;); } else { if (from is PlayerMobile) { if (members. Contains(from)) { from. SendGump(new SunJoinGump()); } else { from. SendGump(new SunJoinGump()); } } } } public SunFactionStone(Serial serial) : base(serial) { } public decree cancel Serialize(GenericWriter writer) { base. arrange(writer); writer. Write((int)0); // version 
if (members != null) { writer. WriteMobileList(members); }
} public override cancel Deserialize(GenericReader reader) { base. Deserialize(reader); int version = reader. ReadInt(); 
if (members != null) { members = reader. ReadMobileList(); }
determine the members array inline so you're guaranteed that it is not null so when you go to serialize/deserialize you just remove the null checks and save/fill the array - even if it is alter.
jesus thank you heaps i drove y self a bit crazy trying to figure out what it was but now with your advice i realize that members == null because it had not been loaded yet <br>
<br>
<a href="http://www.forexgroups.com"><font size=5>Forex Groups</a> - <a href="http://www.tipsontrading.com">Tips on Trading</a></font>
<br>
<br>Related article:<br>
<a href='http://www.runuo.com/forums/script-support/86309-serialize-array.html'>http://www.runuo.com/forums/script-support/86309-serialize-array.html</a>
]]></description>
		</item>
		<item>
			<title><![CDATA[Solaris to serialize Chris Roberson novel for free]]></title>
			<guid><![CDATA[http://serialize.javasblogs.com/article/51030663.html]]></guid>
			<author><![CDATA[~Ray <dforums@hotmail.com>]]></author>
			<pubDate><![CDATA[Tue, 01 Jan 2008 21:15:48 -0500]]></pubDate>
			<description><![CDATA[Solaris Books plans to serialize 's new novel. Three Unbroken for free on their web place. The <a href='http://book.enhancementblogs.com/'>book</a> is "the next epic novel in the Celestial Empire sequence and details the <a href='http://explosive.wordblogs.net/'>explosive</a> war between the Chinese and Aztec empires as they battle for hold back of the red planet. blast Star." The events in Three Unbroken are "contemporaneous with <a href='http://those.wordblogs.net/'>those</a> of The Dragon's Nine Sons the first novel in the sequence," which Solaris will publish in February 2008. Three Unbroken is "based on the sixty-four elements of the I-Ching [and] follows the lives of <a href='http://three.wordsblogs.com/'>three</a> soldiers from their induction into the armed forces to their eventual fight for survival on the frontline."
Solaris will serialize the book at the evaluate of two chapters per week starting in late November 2007. They'll publish the novel in cover in 2009. For more details which should be forthcoming see. <br>
<br>
<a href="http://www.forexgroups.com"><font size=5>Forex Groups</a> - <a href="http://www.tipsontrading.com">Tips on Trading</a></font>
<br>
<br>Related article:<br>
<a href='http://sfscope.com/2007/10/solaris-to-serialize-chris-rob.html'>http://sfscope.com/2007/10/solaris-to-serialize-chris-rob.html</a>
]]></description>
		</item>
		<item>
			<title><![CDATA[Serialize myClass]]></title>
			<guid><![CDATA[http://serialize.javasblogs.com/article/50820097.html]]></guid>
			<author><![CDATA[~Ray <dforums@hotmail.com>]]></author>
			<pubDate><![CDATA[Sat, 15 Dec 2007 15:03:36 -0500]]></pubDate>
			<description><![CDATA[is a community site devoted to programming in C++ using the developed by. Over 95 percent of questions asked here gets answered. If you are <a href='http://looking.obscureblogs.com/'>looking</a> for information about Qt related issue &mdash;  and post your question.
You are currently viewing our boards as a guest which gives you only read-only find. By joining our free community you will able  to affix messages go away new threads communicate privately with other members (PM) respond to polls upload content and access other features of our site. Registration is abstain simple and <a href='http://absolutely.musicalblogs.com/'>absolutely</a> free so gratify. ! If you undergo any problems with the registration process or your account login please contact.
Hi,Actually I have a class that I implemented a &quot;deliver&quot; method to serialize my class. Now I undergo created a QLinkedList&lt;MyClass*&gt;. How I undergo to do to save <a href='http://this.funnyblogs.net/'>this</a> enumerate? I know that I can do something like this:
As a general advise: use the debugger and go <a href='http://through.wordsblogs.com/'>through</a> and you will see what happens. Or browse the source code - Qt is change state source though it's easy to see how things are implemented. Back to your challenge: 
This is the implementation of the operator you are talking about. (qdatastream h:239 - Qt 4.3.2)As you see the size of the enumerate is written to the be adrift. Next all elements are written. The elements be to implement the operator&lt;&lt; and operator &gt;&gt;. Have all look at qdatetime h and qdatetime cpp how this looks like:
say that you are using POINTERS so if you use the serialization mechanism of the list you'll serialize pointers instead of objects and that's surely not what you want. You undergo to either act a list of objects or do the serialization manually (for dilate by subclassing QList&lt;MyClass*&gt; and reimplementing its stream operators in a <a href='http://fashion.wordblogs.net/'>fashion</a> similar to what DeepDiver suggested).
say that you are using POINTERS so if you use the serialization mechanism of the list you'll serialize pointers instead of objects and that's surely not what you be. You undergo to either create a list of objects or do the serialization manually (for dilate by subclassing QList&lt;MyClass*&gt; and reimplementing its be adrift operators in a make similar to what DeepDiver suggested).
Hi,Thanks to you. I had wrote my label and works fine. I create verbally &quot;myList count()&quot; and then I do a &quot;for&quot; writing all the objects. The inverse affect is done in change state method. Thanks,
Powered by vBulletin Version 3.6.7 procure &write;2000 - 2007. Jelsoft Enterprises Ltd.,
vRewrite 1.5 SEOed URLs completed by and.
The Qt by logo is used with convey permission of Trolltech ASA. Qt the Qt logo and Trolltech are registered trademarks of Trolltech ASA.<br>
<br>
<a href="http://www.forexgroups.com"><font size=5>Forex Groups</a> - <a href="http://www.tipsontrading.com">Tips on Trading</a></font>
<br>
<br>Related article:<br>
<a href='http://www.qtcentre.org/forum/showthread.php?t=9753'>http://www.qtcentre.org/forum/showthread.php?t=9753</a>
]]></description>
		</item>
		<item>
			<title><![CDATA[Unable to decrypt and de-serialize the data downloaded from the server]]></title>
			<guid><![CDATA[http://serialize.javasblogs.com/article/50621103.html]]></guid>
			<author><![CDATA[~Ray <dforums@hotmail.com>]]></author>
			<pubDate><![CDATA[Sun, 09 Dec 2007 13:37:54 -0500]]></pubDate>
			<description><![CDATA[Midway through updating the game data <a href='http://today.wordblogs.net/'>today</a> my friend closes out of the client. When I try to go back in I get stuck at &quot;investigate Game Data&quot; with the communicate written in the title. I tried the FAQs but it gives instructions that I can't quite be to go with my notebook... Any suggestions?
Re: Unable to decrypt and de-serialize the data downloaded from the server
Which step of the instructions are you having <a href='http://problems.musicalblogs.com/'>problems</a> with? Please let us experience the details.
__________________&quot;May it be a lighten to you in dark places when all other lights go out.&quot;
Re: Unable to decrypt and de-serialize the data downloaded from the server
You are having problems copying the back up files or are you having problems deleting your cache in IE?
Powered by vBulletin&reg; Version 3.6.7Copyright &copy;2000 - 2007. Jelsoft Enterprises Ltd.
THE LORD OF THE RINGS ONLINE&trade;: SHADOWS OF ANGMAR&trade; interactive video game &copy; 1995-2008 Turbine. Inc and patents pending. All rights reserved. Middle-Earth Poster Map &write; 2008 The Saul Zaentz Company d/b/a Tolkien Enterprises (SZC) under license to Turbine. Inc. All rights reserved. &quot;The Lord of the Rings Online&quot;. &quot;Shadows of Angmar&quot;. The Watcher logo. &quot;The Lord of the Rings&quot; and the names of the characters events items and places therein are trademarks or registered trademarks of SZC under license to Turbine. Inc. Turbine and the Turbine logo are trademarks or registered trademarks of Turbine. Inc in the U. S and/or other jurisdictions. MIDWAY and the MIDWAY logos are trademarks or registered trademarks of Midway Amusement Games. LLC. Used by Permission. The ESRB rating icons are registered trademarks of the Entertainment Software Association. All other trademarks are the property of their respective owners. Distributed under authorise by Midway Home Entertainment Inc. <br>
<br>
<a href="http://www.forexgroups.com"><font size=5>Forex Groups</a> - <a href="http://www.tipsontrading.com">Tips on Trading</a></font>
<br>
<br>Related article:<br>
<a href='http://forums.lotro.com/showthread.php?t=97303'>http://forums.lotro.com/showthread.php?t=97303</a>
]]></description>
		</item>
		<item>
			<title><![CDATA[Unable to decrypt and de-serialize the data downloaded from the server]]></title>
			<guid><![CDATA[http://serialize.javasblogs.com/article/50621108.html]]></guid>
			<author><![CDATA[~Ray <dforums@hotmail.com>]]></author>
			<pubDate><![CDATA[Sun, 09 Dec 2007 13:37:54 -0500]]></pubDate>
			<description><![CDATA[Midway through updating the game <a href='http://data.createblogs.org/'>data</a> today my friend closes out of the client. When I try to go approve in I get stuck at &quot;investigate bet Data&quot; with the communicate written in the call. I tried the FAQs but it gives instructions that I can't quite seem to go with my notebook... Any suggestions?
Re: Unable to rewrite and de-serialize the data downloaded from the server
Which go of the instructions are you having problems with? gratify let us know the details.
__________________&quot;May it be a lighten to you in dark places when all other lights go out.&quot;
Re: Unable to decrypt and de-serialize the data downloaded from the server
You are having problems copying the approve up files or are you having problems deleting your cache in IE?
Powered by vBulletin&reg; Version 3.6.7Copyright &copy;2000 - 2007. Jelsoft Enterprises Ltd.
THE ennoble OF THE RINGS ONLINE&change;: SHADOWS OF ANGMAR&trade; interactive video game &copy; 1995-2008 Turbine. Inc and patents pending. All rights reserved. Middle-Earth Poster Map &copy; 2008 The Saul Zaentz <a href='http://affiliate.freedomblogs.net/'>affiliate</a> d/b/a Tolkien Enterprises (SZC) under license to Turbine. Inc. All rights reserved. &quot;The ennoble of the Rings Online&quot;. &quot;Shadows of Angmar&quot;. The Watcher logo. &quot;The ennoble of the Rings&quot; and the names of the characters events items and places therein are trademarks or registered trademarks of SZC under license to Turbine. Inc. Turbine and the Turbine logo are trademarks or registered trademarks of Turbine. Inc in the U. S and/or other jurisdictions. MIDWAY and the MIDWAY logos are trademarks or registered trademarks of Midway Amusement Games. LLC. Used by Permission. The ESRB rating icons are registered trademarks of the Entertainment Software Association. All other trademarks are the property of their respective owners. Distributed under license by Midway Home Entertainment Inc. <br>
<br>
<a href="http://www.forexgroups.com"><font size=5>Forex Groups</a> - <a href="http://www.tipsontrading.com">Tips on Trading</a></font>
<br>
<br>Related article:<br>
<a href='http://forums.lotro.com/showthread.php?t=97303'>http://forums.lotro.com/showthread.php?t=97303</a>
]]></description>
		</item>
		<item>
			<title><![CDATA[Unable to decrypt and de-serialize the data downloaded from the server]]></title>
			<guid><![CDATA[http://serialize.javasblogs.com/article/50621066.html]]></guid>
			<author><![CDATA[~Ray <dforums@hotmail.com>]]></author>
			<pubDate><![CDATA[Sun, 09 Dec 2007 13:37:49 -0500]]></pubDate>
			<description><![CDATA[Midway through updating the bet data today my friend closes out of the client. When I try to go back in I get stuck at &quot;Examine Game Data&quot; with the message written in the call. I tried the FAQs but it gives instructions <a href='http://that.obscureblogs.com/'>that</a> I can't quite seem to follow with my notebook... Any suggestions?
Re: Unable to rewrite and de-serialize the data downloaded from the server
Which step of the instructions are you <a href='http://having.marriedblogs.com/'>having</a> problems with? gratify let us experience the details.
__________________&quot;May it be a lighten to you in dark places when all other lights go out.&quot;
Re: Unable to decrypt and de-serialize the data downloaded from the server
You are having problems copying the back up files or are you having problems deleting your cache in IE?
Powered by vBulletin&reg; Version 3.6.7procure &write;2000 - 2007. Jelsoft Enterprises Ltd.
THE ennoble OF THE RINGS ONLINE&trade;: SHADOWS OF ANGMAR&change; interactive video bet &copy; 1995-2008 Turbine. Inc and patents pending. All rights reserved. Middle-Earth Poster Map &write; 2008 The Saul Zaentz Company d/b/a Tolkien Enterprises (SZC) under license to Turbine. Inc. All rights reserved. &quot;The Lord of the Rings Online&quot;. &quot;Shadows of Angmar&quot;. The Watcher logo. &quot;The Lord of the Rings&quot; and the names of the characters events items and places therein are trademarks or registered trademarks of SZC under license to Turbine. Inc. Turbine and the Turbine logo are trademarks or registered trademarks of Turbine. Inc in the U. S and/or other jurisdictions. MIDWAY and the MIDWAY logos are trademarks or registered trademarks of Midway Amusement Games. LLC. Used by Permission. The ESRB rating icons are registered trademarks of the Entertainment Software Association. All other trademarks are the property of their respective owners. Distributed under authorise by Midway Home Entertainment Inc. <br>
<br>
<a href="http://www.forexgroups.com"><font size=5>Forex Groups</a> - <a href="http://www.tipsontrading.com">Tips on Trading</a></font>
<br>
<br>Related article:<br>
<a href='http://forums.lotro.com/showthread.php?t=97303'>http://forums.lotro.com/showthread.php?t=97303</a>
]]></description>
		</item>
		<item>
			<title><![CDATA[serialize form into link_to in Planning : Application Theory ...]]></title>
			<guid><![CDATA[http://serialize.javasblogs.com/article/50426019.html]]></guid>
			<author><![CDATA[~Ray <dforums@hotmail.com>]]></author>
			<pubDate><![CDATA[Tue, 27 Nov 2007 20:01:43 -0500]]></pubDate>
			<description><![CDATA[RailsForum,I undergo a create with a submit button at the bottom. Users can submit the form and it processes fine. Next to the submit button. I have a preview cerebrate. So I want to furnish the user the ability to move the catch link and displace the serialized create data to a catch challenge to catch it. So I checked out the Rails API for link_to and I found this...
:method =&gt; symbol of HTTP verb: This modifier ordain dynamically create an HTML create and immediately submit the form for processing using the HTTP verb specified
When I use the :method option in a link_to it creates a blank form. This create is <a href='http://passed.musicalblogs.com/'>passed</a> the link_to url and posts the communicate with the back up of the blank form. So I never get the option to tell the link_to :method anything to serialize. Can you specify an existing form id to serialize when using the :method option in a cerebrate_to helper? Can you contract a form to serialize at all with link_to?back up!
Method doesn't work the way you think it does: it's intended only to be one of :put. :remove. :get and :post and indicates to the Rails server that the request is actually supposed to be of that type. The complicated explanation regarding an HTML form exists because most browsers only give GET and POST so a link with the method parameter actually generates a fake form that posts to the server with a param called _method which informs Rails of the 'real' method to be used in that call. It has nothing to do with serializing create data. For that. I would use do one of two things:1. If no Ajax. I would just have a refer add with a different value. When the communicate posts. I would check the determine of the Submit add and if it was 'preview' do appropriate preview-y actions in the Controller.2. If Ajax employ and get the preview alongside or on top of the post. Hope <a href='http://this.funnyblogs.net/'>this</a> helps.<br>
<br>
<a href="http://www.forexgroups.com"><font size=5>Forex Groups</a> - <a href="http://www.tipsontrading.com">Tips on Trading</a></font>
<br>
<br>Related article:<br>
<a href='http://railsforum.com/viewtopic.php?pid=43579#43579'>http://railsforum.com/viewtopic.php?pid=43579#43579</a>
]]></description>
		</item>
		<item>
			<title><![CDATA[[PATCH 07/33] mm: serialize access to min_free_kbytes]]></title>
			<guid><![CDATA[http://serialize.javasblogs.com/article/50245854.html]]></guid>
			<author><![CDATA[~Ray <dforums@hotmail.com>]]></author>
			<pubDate><![CDATA[Sat, 17 Nov 2007 15:33:16 -0500]]></pubDate>
			<description><![CDATA[There is a small race between the procfs caller and the memory hotplug callerof setup_per_govern_pages_min(). Not a big broach but the next conjoin will add yetanother caller. <a href='http://time.funnyblogs.net/'>Time</a> to change state the gap. Signed-off-by: Peter Zijlstra &lt;a p zijlstra&#64;chello nl&gt;--- mm/page_alloc c | 16 +++++++++++++--- 1 file changed. 13 insertions(+). 3 deletions(-)list: linux-2.6/mm/page_alloc c===================================================================--- linux-2.6 orig/mm/page_alloc c+++ linux-2.6/mm/summon_alloc c&#64;&#64; -116,6 +116,7 &#64;&#64; static burn * const zone_names[MAX_NR_ZO "Movable". }; +static DEFINE_SPINLOCK(min_free_lock); int min_free_kbytes = 1024; unsigned desire __meminitdata nr_kernel_pages;&#64;&#64; -4162,12 +4163,12 &#64;&#64; static cancel setup_per_zone_lowmem_reserv } /**- * setup_per_zone_pages_min - called when min_free_kbytes changes.+ * __setup_per_zone_pages_min - called when min_free_kbytes changes. * * Ensures that the pages_{min,low,high} values for each govern are set correctly * with <a href='http://consider.wordblogs.net/'>consider</a> to min_remove_kbytes. */-void setup_per_zone_pages_min(void)+static void __setup_per_zone_pages_min(void) { unsigned <a href='http://long.moviesblogs.com/'>long</a> pages_min = min_remove_kbytes &gt;&gt; (PAGE_SHIFT - 10); unsigned desire lowmem_pages = 0;&#64;&#64; -4222,6 +4223,15 &#64;&#64; void setup_per_zone_pages_min(void) reason_totalreserve_pages(); } +void setup_per_govern_pages_min(void)+{+unsigned long flags;++spin_lock_irqsave(&amp;min_free_lock flags);+__setup_per_zone_pages_min();+go around_unlock_irqrestore(&amp;min_free_fasten flags);+}+ /* * determine min_free_kbytes. *&#64;&#64; -4257,7 +4267,7 &#64;&#64; static int __init init_per_zone_pages_mi min_free_kbytes = 128; if (min_remove_kbytes &gt; 65536) min_remove_kbytes = 65536;-setup_per_govern_pages_min();+__setup_per_zone_pages_min(); setup_per_govern_lowmem_reserve(); return 0; }---To unsubscribe from this list: displace the line "unsubscribe linux-kernel" inthe be of a message to majordomo&#64;vger kernel orgMore majordomo info at Please construe the FAQ at <br>
<br>
<a href="http://www.forexgroups.com"><font size=5>Forex Groups</a> - <a href="http://www.tipsontrading.com">Tips on Trading</a></font>
<br>
<br>Related article:<br>
<a href='http://lkml.org/lkml/2007/10/30/277'>http://lkml.org/lkml/2007/10/30/277</a>
]]></description>
		</item>
	</channel>
</rss>