http://www.youtube.com/watch?v=Fg5KhZ8DHQ4
Kazama watch over Himawaris (Sin Chan’s Sister)
Language: Malay
]]>It is not just our energy demands that can be succseeded by affectual green alternatives, but our building materials and product packing can become environmentally sustainable today.
One of the racketeers of this new movement are the energy multi-national corporations who are seeking to sell a new green depiction of themselves by their research into secondary power, which they will sell us once natural resources are no longer existent. It is these same corporations that have smothered the rise of true alternative energy in our lifetime, not in 2025. To individuals who are responsive to inquire into such technologies, it will become clear that true alternatives to power needs have been to hand for over a century. You are able to power your mode of transport with water right now or you can take a trip to Brazil where the majority cars run on ethanol.
While suring the net I found a green home web site, which will give you an idea of some of the alternatives out there. The eb log is continually updated with new environmental items and news from the environmental scene. The posts probe numerous of subjects, such as green home designs and green home buildings.
]]>
I hope to have a new screencast up soon that will show you Synergy (at least on each side, Mac and PC), and maybe one that shows you a few things about iShowU. I have a list of some ROR screencasts that I’d like to do, but I’m finding that I need to really just record and then splice together all sorts of pieces to get a screencast. Maybe I’ll have the option soon to create shorter ones with the use of Jing, iShowU, and Camtasia Studio. 
In general, acts_as_versioned behaves well and integration has gone smoothly. The object that we wanted to version is called SurveyContent. We created a database table called survey_content_versions with the same columns and data types as survey_contents, plus id (key) and survey_content_id (foreign key to the versioned object). After adding :acts_as_versioned to the class definition for SurveyContent, every save of a SurveyContent object that has changes results in a new survey_content_version entry in the database.
acts_as_versioned provides methods for things like .revert_to, .latest, and .previous, which is really nice. But we ran into trouble on a few fronts, particularly since SurveyContent also uses acts_as_state_machine. Users can request changes to their associated survey content, but these changes are subject to administrative approval, so we basically care about two versions of a SurveyContent instance: the approved version, and the latest version. Since we have distinct states defined for acts_as_state_machine, we’re used to calling foo.approved? to see if an object is in the “approved” state. Unfortunately, these convenience methods are not available on our survey_content_version object.
We ended up adding the methods to our version by creating anonymous mix-ins in SurveyContent:
class SurveyContent
No real magic here– the documentation for the plugin provided the tip– but hopefully this will be of use to someone else.
There was another situation in which we needed to act on an actual instance of a different version of SurveyContent, while keeping the existing instance intact. In that case, we opted to clone:
def approved_version if @approved_version.nil? && self.survey_content _last_approved = self.survey_content.versions.reverse.detect{|v| v.status == "approved"} unless _last_approved.nil? @approved_survey_content = SurveyContent.new _temp = _last_approved.attributes _temp.delete('survey_content_id') @approved_survey_content.attributes = _temp end end @approved_survey_content end
Maybe a little ham-fisted, but it got the job done. Note that we had to drop the survey_content_id from the attributes, as SurveyContent has no such field.
The last problem we ran into had to do with the fact that one of the attributes on our versioned object was serialized. Out of the box, acts_as_versioned ended up converting it to a string. Luckily, some Google mining later, we found the solution.
First, we added some code to acts_as_versioned.rb:
def acts_as_versioned(options = {}, &extension) ... # Preserve serialized attributes self.serialized_attributes().each do |key, value| versioned_class.serialize key, value end end end module ActMethods ...
Then, we added another method to our anonymous mix-in on SurveyContent:
class SurveyContent
(Note that in the snippet above, data is the name of our attribute.)
One last problem with serialization that we ran into was that acts_as_versioned was not detecting changes when we did a merge operation on our serialized attribute. To ensure that a save took place, we had to call will_change!:
def survey_content_date=( survey_content_params ) self.survey_content.data_will_change! ...
Again, substitute the name of your object’s parameter for data.
If you’re looking for the plugin, be sure to download acts_as_versioned from github and not Rick’s site– he’s moved from SVN to Git, and github has the latest version.
]]>
]]>Note: Come visit the front page for more of life in Japan - sort of…








part1






part2









part 3






part 4






part 5









part6



part7






part8
Next Episode Preview:



Thoughts on the Episode:
Great way to end that whole situation from last episode.So as of August, my wife and I are doing a cost comparison for the next year shopping at local stores instead of at Costco. We have canceled our Costco account, actually just didn’t renew our membership we’ve had since Costco opened its doors in Amagasaki many years ago.
Of course, Costco won’t miss us. They only know our names when we write it down on when we’re returning something or when we’re checking out at the cash register. If they send us a renewal notice, I’ll be surprised.
Most people at Costco recognize our faces, but don’t know our names. Local store employees may not know our names either, but that doesn’t matter. For the next year, we’ll spend more time shopping and pass through the checkout line more often than once a month if the items we buy aren’t as large as the Costco brands. But on a more positive note, we’ll probably also see people we know that live closer to home, maybe even friends or neighbors, and who knows, maybe we’ll even put together a BBQ at a local park and spend time together, spend less money on gas and transportation and won’t have to pay the extra 3500 yen Costco annual fee.
NOTE: We’re also canceling our Japanese American Express card, an annual savings of 20,000 yen for membership before our 5000 yen arigato coupon they send us once a year!
]]>

Title: Little Lolicon Girls
Genre: Sexy
Credits: Kitty Media
Cover Description: In a crowded train, lolicon sex strangers often end up being too close for comfort. But for some people, being too close is a comfort. When a poor conductor witnesses the train sex phenomenon, he decides to turn it into a business. Every night after the midnight train finishes its route, hardcore lolicon he turns it into a rolling bordello. Climb aboard, because the train is leaving the station! lolicon vids
(more…)
The Google Web Toolkit is an OpenSource Java software development framework. It allows developers to create applications natively in Java, the Toolkit then converts that code into JavaScript and HTML. The majority of the time spent on web applications today is spent on testing. Everything from CSS up to JavaScript framework configurations. This framework allows you to build applications and focus on logic, instead of the nuances of cross browser integration.
]]>這是範例(線性圖的drill down)
這是垟始碼
With Flex3 data visualization package, we are able to get the selectedItems byChartBase.selectionMode = "multiple";ChartBase.selectedItems
Therefore, it is handy to measure a range for filtering out our data. We have to know that every series in a chart contains a data provider. The data providers are ListCollectionView objects. So to filter out those objects will update the display of chart immediately. Those lines will be redrawn. You could see the line scaled just like drilling-down into it.
Here is a sample and source code.
Simple Drill Down into Line Chart
Source