Forwarding Multiple Messages with Thunderbird - And Not as Attachments

Uncategorized No Comments »

Mozilla Thunderbird does not have a built-in option to right-click and forward multiple messages without sending them as attachments of a single message or sending each message inline after entering the address manually. While this makes sense as it minimizes server resources and web traffic,  sometimes it is more convenient for sender to send (bounce) multiple messages to the same recipient in one action, giving the reader single messages in her inbox. Luckily there’s the Mail Redirect Add-on that helps with this task, one of the most useful Thunderbird extensions. 

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Sorted and Translated ActiveRecord Model with Globalize2 and Ruby Magic

Uncategorized No Comments »

This code returns all records of your model sorted by translated field name when using Globalize2 :

#app/models/widget.rb

def self.all_sorted
Widget.find(:all, :joins => :globalize_translations,
:conditions => ['locale = ?', I18n.locale]).sort_by(&:name)

end

As outlined it this post, :joins => :globalize_translations is mandatory. The unary ampersand operator converts a Proc to a block, so in this case sort_by(&:name) is “shorthand” for

sort {|x,y| x.name <=> y.name}

Ruby sometimes feels like assembling a Swiss watch in code, where other languages feel like fixing an old car.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Free Burma!

Uncategorized No Comments »

Free Burma!

Go to Irrawaddy.org (published here in Chiang Mai) to learn in-depth about the appalling political and human-rights situation in Burma and the continuing struggle for freedom.

Free Burma! Petition Widget

Name: (required)

Email:

Web:

Country:

del.icio.us Tags:
[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Vista Cursors on XP and Windows Server 2003

Uncategorized No Comments »

Vista-style cursors can be downloaded here (white pointer) and here (black pointer). Unzip anywhere on your hard drive, right-click the .inf files and select “Install…”. Then select the cursor at Start Button>Control Panel>Mouse>Pointers. One more reason NOT to upgrade to Vista. Still looking for a “red expanding circle at mouse-click location like in the Camtasia videos” which is (probably?!, I have no Mac) available for OS X but not for Windows. 

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Resource file "*.resx" cannot be found

Uncategorized 5 Comments »

Visual Studio 2002 and 2003 created resx resource files for each and every ascx and aspx file. When upgrading to ASP.NET 2.0 these files are no longer needed as resource files are centrally stored in the resource folders and compiled.

So if after removing the resx files you get compilation errors such as the following

image

simply open the project file (.csproj or .vbproj) in Notepad and delete the entries that look like this:

<EmbeddedResource Include=”panorama\search.aspx.resx”>
     <DependentUpon>search.aspx.cs</DependentUpon>
   </EmbeddedResource>
   <EmbeddedResource Include=”panorama\tellafriend.aspx.resx”>
     <DependentUpon>tellafriend.aspx.cs</DependentUpon>
   </EmbeddedResource>
   <EmbeddedResource Include=”panorama\upload.aspx.resx”>
     <DependentUpon>upload.aspx.cs</DependentUpon>
   </EmbeddedResource>

 Then the project should build without problems. Hope it helps.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in