LINKs are encrypted files uploaded to the Bitcoin SV blockchain, which are easily accessible with a simple click.
The purpose of LINK is File Sharing.
Share immutable information with anyone, anywhere, by simply sending them a LINK to click on.
Nobody else should be able to see your data.
made by $BitcoinSofia
Click Here to test with the default values.


Subscribe for news and information from City Bureau’s civic newsroom, including updates to our City Scrapers project.


The Madness of King George
The Madness of King George is a movie starring Nigel Hawthorne, Helen Mirren, and Rupert Graves. When King George III goes mad, his Lieutenants try to adjust the rules to run the country without his participation.


|
Your battle menu shows you everything you need to keep the Cogs at bay. Here’s what your battle menu looks like in a street battle.
|
|
|
If you think you’re in over your head, click the run button to head back to the nearest playground. If you run, you’ll loose any skill points you would have earned in that battle.
Toon Tip: If you are in a battle with other Toons and you run back to the playground,
they’ll stay in the battle unless they decide to run too. You might want to tell the other Toons that you’re leaving, so they’re not caught by surprise.
|
|
|
Warning!
You can’t run from a battle in a Cog building.
|
|
Instead of choosing a gag to attack with, you can click the SOS button to ask for help. The SOS menu lets you choose which friend you want to call for help.
Warning!
You can’t send an SOS from inside a Cog building.
|


0.11.1
Introduction
Installing
Tutorial
Gallery
API
User guide and tutorial
¶
API overview
Overview of seaborn plotting functions
Similar functions for similar tasks
Figure-level vs. axes-level functions
Combining multiple views on the data
Data structures accepted by seaborn
Long-form vs. wide-form data
Options for visualizing long-form data
Options for visualizing wide-form data
Plotting functions
Visualizing statistical relationships
Relating variables with scatter plots
Emphasizing continuity with line plots
Showing multiple relationships with facets
Visualizing distributions of data
Plotting univariate histograms
Kernel density estimation
Empirical cumulative distributions
Visualizing bivariate distributions
Distribution visualization in other settings
Plotting with categorical data
Categorical scatterplots
Distributions of observations within categories
Statistical estimation within categories
Plotting “wide-form” data
Showing multiple relationships with facets
Visualizing regression models
Functions to draw linear regression models
Fitting different kinds of models
Conditioning on other variables
Controlling the size and shape of the plot
Plotting a regression in other contexts
Multi-plot grids
Building structured multi-plot grids
Conditional small multiples
Using custom functions
Plotting pairwise data relationships
Plot aesthetics
Controlling figure aesthetics
Seaborn figure styles
Removing axes spines
Temporarily setting figure style
Overriding elements of the seaborn styles
Scaling plot elements
Choosing color palettes
General principles for using color in plots
Tools for choosing color palettes
Qualitative color palettes
Sequential color palettes
Diverging color palettes


--- layout: post title: security in rails date: 2014-08-04 20:35:34.000000000 -05:00 type: post published: true status: publish categories: - Ruby on Rails tags: [] meta: is_reblog: '1' post_id: '2157' blog_id: '40528223' reblog_snapshot: "O:8:\"stdClass\":8:{s:5:\"title\";s:17:\"security in rails\";s:4:\"type\";s:4:\"post\";s:9:\"mime_type\";s:0:\"\";s:6:\"format\";b:0;s:12:\"modified_gmt\";s:19:\"2014-08-04 12:43:06\";s:9:\"permalink\";s:66:\"http://codedecoder.wordpress.com/2014/08/04/security-in-ruby-rails\";s:7:\"content\";s:20666:\"
attr_protected
,
or attr_accessible
.\r\n\r\nattr_accessible
:name,
:age # it is white listing of attributes for mass assignment\r\n\r\nIt
means only name and age can be mass assigned, if params[:user]
cantain any attributes say :admin => true
, it will throw error.\r\n\r\nattr_protected
:admin # it is blacklisting of attributes for mass assignment\r\n\r\nIt
means any attribute other then :admin can be mass assigned.\r\n\r\nI suggest you
to use attr_accessible
approach. I feel it is more safe. say you add a new attribute
salary in the user table but forgot to modify your model, it will automatically
become eligible for mass assignment with attr_protected
approach, but with attr_accessible
approach it will throw error. Now if you feel salary safe to be mass assigned,
you can add it to attr_accessible
list.\r\n\r\n \r\n\r\nDefence 2 : protection
against cross site scripting (XSS) .\r\n\r\nOh..! You havenâ\x80\x99t
heard about cross site scripting (XSS)
...Read it here . In short, It is execution of script by attacker on
your page which may stole cookies session or any other information or break your
application.\r\n\r\nLet us see a simple example :\r\n\r\nlet you have a application
in which person1 , input a message for person2,
which get stored in db,when person2 open his account the message
displayed on his page with the code <%= @message
%> . But person1 is a bad Guy(remember, mom use to
remind us - world is full of bad people) . He entered the message \"\" .\r\n\r\nWhen
person2 open his page, what he will see. He will see the message \"\" . No harm occur. Person1 must be cursing
Rails. With Rails3 any HTML character
in input will automatically escaped, in older version you have
to use h() explicitly i,e the input code is <%=h
text_field_tag \"message\" %> . More detail on escaping HTML is available
here . So the ill conceived message of person1
get passed to db in harmless form as \"\" .\r\n\r\nNow
say, person1 is big crook and able to insert the message \"\" in db. But person2 is again
not harmed, as not only input but Rails
escape any HTML in the ruby code. But what if you do not want
to escape the html tag in the message. You want the message to be displayed as
such, because Person3 is a nice person and he send a well decorated
message \"Arun I Love You\"
, in which I love you is highlighted . You want it to display
as \"Arun I Love You\",
rather than \"Arun I Love You\"
. So you need to override the Rails default escaping behaviour. below will do
that\r\n\r\n<%=rawÂ @message %>\r\n\r\ngreat,
person3 message look great, but what is this person1 ill conceived
message also get executed, you see the alert box below\r\n\r\n[caption id=\"attachment_2209\"
align=\"aligncenter\" width=\"611\"] xss example[/caption]\r\n\r\nSo, person2 has succeeded
in attacking your application . using raw
for rendering is risky...will you use that???...I don't think
so . If you still want bolded I Love You, try other alternative
than raw : sanitize .\r\n\r\n \r\n\r\nÂ Defence
3 : Protection against CROSS SITE REQUEST FORGERY(CSRF) .\r\n\r\nA
good example of CSRF is
available here . The detail documentation of preventing CSRF attack
is available here . So it is more like attack through chat messages,
email, images etc. This attack is mostly executed on Authenticated i,e logedIn
users. Basically, the cross site scripting attack happen due to your trust on
the website, which is not fulfilled while the Cross Site request forgery attack
occur due to website trust on you. Website trust you with using it properly, identifying
its purpose, content, flow etc. It do not expect you to click on the link like
\"HOT babes\", \"Free tour package\", \"your own FB profile link with friend request
from a sweet girl\" etc. If they are not part of the website on your earlier website,
there is great chance that some one attempting CSRF attack.But we are INNOCENT
people, we are oblivion of any such attack. Rails come to your rescue.\r\n\r\nIf
you are using rails version 3 or above, you can see below within head tag of layout
generated by default.\r\n\r\n<%= csrf_meta_tags
%>\r\n\r\nThis line will create a secret token for each user
session. If you see the page source, you can see the below line generated by the
above code.\r\n\r\n<meta content=\"sptmtpH+EZYnhrfwPplCQkATltqeHwaBAOJAgyj8CII=\"
name=\"csrf-token\" />\r\n\r\nThe above token value is stored in a hidden
filed within each form. It look as below in one of my form for the current session.\r\n\r\n<input type=\"hidden\" value=\"sptmtpH+EZYnhrfwPplCQkATltqeHwaBAOJAgyj8CII=\"
name=\"authenticity_token\">\r\n\r\nWhen, my session expire and I log
in again, this token will change. attacker can never know this secret as it is
generated on fly.So attacker can disguise you to submit a form which look
like a form of your web application, but he can't bypass the authenticity token
and rail will throw an error, saving us from the attack.\r\n\r\nYou can
bypass the above default security measure of rails with below line of code, if
you find any reason to do so.\r\nÂ skip_before_filter :verify_authenticity_token
\r\nBut
it is like \"Going to war without a shield\"
.will you do that...??.. NO...I know you are mature enough.\r\n\r\nAlso, always submit form with post method.
Get method is too easy to attack. Post is also not fool proof, but is harder to
attack.\r\n\r\nmatch \"/launch_all_the_missiles\"
=> \"missiles#launch_all\", :method => :get\r\n\r\nlook crazy...look
like any one can destroy the world. post provide better protection against attack.
If you want such route in your application write it as post method\r\n\r\nmatch \"/launch_all_the_missiles\" => \"missiles#launch_all\",
:method => :post\r\n\r\n \r\n\r\nDefence
4 : protection against Packet Sniffing (MITM).\r\n\r\nPacket Sniffing is also known as Man IN The Middle attack. It
is same as, you written all your secret in a letter , posted it to your lover,
but postman read it before delivering. There are many software like FireShip
, whichÂ can track the bits crossing the wire, and if the data is in plain text..your
game is over. Isn't good to write the letter in encrypted word before posting,
the postman would not have know the secret even if he manage to open the letter.
Rails do that encryption for you if you set below configuration in your environment
file.\r\nconfig.force_ssl =
true
Great info here for securing Rails site. Did not know of sanitize but I am going to use it. Thanks :)


| She Asks | about blog contact us |
Welcome girls!!!Feel free to ask your doubts !!!! |
|
SheAsks is a NLP based Chatbot integrated on a website, specially designed to resolve the health issues faced by girls of different age group. You can ask any health related issues from the bot. Chatbot is developed using the Google DialogFlow.
You can ask questions to SheAsks Chatbot like:
->Hello
->How to remain healthy?
->What vitamin should a women take?
->Most common diseases in women
and many more.....
Main motive of SheAsks project is to resolve the health related issues faced by women in day to day
As We all know how much important physical health and hygiene is. But due to unavailability of doctors or due to shy nature of women, they face many
health related issues which becomes a serious problem in future.
So SheAsks is a website consisting of NLP based chatbot which will help girls.
Future Improvements:
After consulting some specialists we can add more data and can train our chatbot , to make it more efficient.


_Shaft_ (R) *** (out of ****)
Cinematically speaking, Gordon Parks' original 1971 _Shaft_ is not a great film.
Yet nearly 30 years after its original release--and long after the genre it spawned, "blaxploitation," died with that decade--the 1971 _Shaft_ remains an extremely entertaining watch, never having completely escaped pop culture consciousness. The reason for this is the same one that explains the film's connection with moviegoers far beyond the target African-American audience: the title character of John Shaft.
This fact also explains why John Singleton's Y2G revival of John Shaft is as enjoyable as it is. Much like the film that started the franchise, this _Shaft_'s plot doesn't score points in the originality department, but the energy level and smooth attitude distinguishes it from standard crime thrillers.
Contrary to what has been reported over the past few months, this _Shaft_ is not a remake of the original film, but more of a sequel/spinoff. The star audiences know and love from the original film and its first two sequels (1972's _Shaft's_Big_Score!_ and 1973's _Shaft_in_Africa_), Richard Roundtree, once again plays John Shaft, who still runs a private investigation firm in New York City. However, the focus of the film lies on his same-named nephew (Samuel L. Jackson), who, as the film begins, is a cop whose take-no-crap demeanor constantly leaves him at odds with his superiors. When a privileged young man named Walter Wade Jr. (Christian Bale) accused of a brutal, racially-motivated murder is allowed to be released on bail, a disgusted Shaft leaves the force and decides to take matters into his own hands as a P.I.
But that's easier said than done, for also standing in the way of Shaft and his way of justice is Peoples Hernandez (Jeffrey Wright), a Dominican gangster who is hired by Walter to rub out waitress Diane Palmieri (Toni Collette), the only eyewitness to his crime. Peoples--or, rather, Wright is also the big obstacle in Jackson's way toward commanding this film. Peoples is more of an outrageous comic character for most of the running time, and Wright is insanely funny during these stages. However, he isn't so funny as to make the character come off as goofy and buffoonish, and Peoples' eventual turn to more serious villainy is seamless and believable (which probably would not have been the case had he been played by original casting choice John Leguizamo, who bowed out before filming). It's no easy task to steal a film from the Jackson (who is his usual captivating, charismatic self here), but that's exactly what Wright does--and makes it seem effortless.
Then again, with such a talented ensemble surrounding him, it is not too surprising that Jackson's impressive star turn doesn't quite tower over the rest; he is strongly complemented not only by Wright but all his other co-stars. Bale has already proven his ability to play an uppity killer in _American_Psycho_, so it only follows that his performance as a similar, less exaggerated character would be spot-on. Collette lends the film some convincing and welcome dramatic weight as the frightened, conflicted Diane. Busta Rhymes brings some good laughs as Shaft's sidekick Rasaan. Registering not as strongly--but through no fault of their own--are Vanessa Williams (as tough narcotics cop Carmen Vasquez) and a dismayingly underused Roundtree; they simply are given little to do in the script credited to Richard Price, Singleton, and Shane Salerno. (Jackson also has little to "do" in a sense; some throwaway footage during the opening credits aside, his Shaft doesn't even have one sex scene.)
That Singleton once again proves his ability with actors is an especially good thing since he's not really an action director. This is not to say that he does a bad job with the numerous gunfights and the requisite foot and car chases. They move well (as does the film as a whole) and are reasonably exciting; it's just that there's nothing terribly inventive about them. These set pieces are functional in the way the script is: they work well enough, but they're unsurprising and conventional.
But if there's anything that a _Shaft_ movie does well, it's make the familiar look cool--and this _Shaft_ keeps that tradition alive. From the slick title sequence--scored, of course, to Isaac Hayes' ever-infectious Oscar-winning theme song, which Singleton wisely sprinkles throughout the film--on, the film looks great and easily sweeps the viewer into its world with its energetic bravado. Even a common visual trick such as employing fancy wipes for scene transitions not only feels unforced, it feels necessary. Style doesn't exactly make for a great film, but when it comes to _Shaft_, that's of little consequence. What matters above all else is having a good time, and the latest _Shaft_ should be just the first of many fun rides to be had with this bad mutha--shut your mouth.
Michael Dequina<EMAIL_ADDRESS>|<EMAIL_ADDRESS>|<EMAIL_ADDRESS>|<EMAIL_ADDRESS>Mr. Brown's Movie Site: http://welcome.to/mrbrown CinemaReview Magazine: http://www.CinemaReview.com on ICQ: #25289934 | on AOL Instant Messenger: MrBrown23
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


Class: ActiveRecord::ConnectionAdapters::TransactionManager
Do not use. This class is for internal use only.
| Relationships & Source Files | |
| Inherits: | Object |
| Defined in: | activerecord/lib/active_record/connection_adapters/abstract/transaction.rb |
Constant Summary
Class Method Summary
- .new(connection) ⇒ TransactionManager constructor
Instance Method Summary
- #begin_transaction(options = {})
- #commit_transaction
- #current_transaction
- #open_transactions
- #rollback_transaction(transaction = nil)
- #within_new_transaction(options = {})
-
#after_failure_actions(transaction, error)
private
Deallocate invalidated prepared statements outside of the transaction.
Constructor Details
.new(connection) ⇒ TransactionManager
146 147 148 149
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 146
def initialize(connection) @stack = [] @connection = connection end
Instance Method Details
#after_failure_actions(transaction, error) (private)
Deallocate invalidated prepared statements outside of the transaction
221 222 223 224 225
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 221
def after_failure_actions(transaction, error) return unless transaction.is_a?(RealTransaction) return unless error.is_a?(ActiveRecord::PreparedStatementCacheExpired) @connection.clear_cache! end
#begin_transaction(options = {})
[ GitHub ]151 152 153 154 155 156 157 158 159 160 161 162 163
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 151
def begin_transaction( = {}) run_commit_callbacks = !current_transaction.joinable? transaction = if @stack.empty? RealTransaction.new(@connection, , run_commit_callbacks: run_commit_callbacks) else SavepointTransaction.new(@connection, <EMAIL_ADDRESS>, run_commit_callbacks: run_commit_callbacks) end @stack.push(transaction) transaction end
#commit_transaction
[ GitHub ]165 166 167 168 169 170 171 172 173 174 175 176
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 165
def commit_transaction transaction = @stack.last begin transaction.before_commit_records ensure @stack.pop end transaction.commit transaction.commit_records end
#current_transaction
[ GitHub ]212 213 214
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 212
def current_transaction @stack.last || NULL_TRANSACTION end
#open_transactions
[ GitHub ]208 209 210
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 208
def open_transactions @stack.size end
#rollback_transaction(transaction = nil)
[ GitHub ]178 179 180 181 182
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 178
def rollback_transaction(transaction = nil) transaction ||= @stack.pop transaction.rollback transaction.rollback_records end
#within_new_transaction(options = {})
[ GitHub ]184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206
# File 'activerecord/lib/active_record/connection_adapters/abstract/transaction.rb', line 184
def within_new_transaction( = {}) transaction = begin_transaction yield rescue Exception => error if transaction rollback_transaction after_failure_actions(transaction, error) end raise ensure unless error if Thread.current.status == "aborting" rollback_transaction if transaction else begin commit_transaction rescue Exception rollback_transaction(transaction) unless transaction.state.completed? raise end end end end


Our new neighbours are very friendly.
The children have a new classmate.
Dad bathes our dog on every Saturday.
Too much chocolate is bad for teeth.
Peter does his homework regularly.
The potter made a beautiful pot.
They were late for school.
Jason slid down a sand dune.
Mom exercises everyday for one hour.
Tracy knows her spellings correctly.


BERSHIRE HATHAWAY INC.
355 Farnuam Street
Omaha NE, 68131
Official Home Page
- A Message From Warren E. Buffett
- Annual Interim Reports
Updated November 6, 2015
- Special Letters From Warren Charlie RE:Past, Present and Future
- Link to SEC Filings
- Links to Berkshire Subsidiary Companies
- Corporate Governance
- Owner's Manual
- Letters from Warren E. Buffett Regarding Pledges to Make Gifts of Berkshire Stock
News ReleasesUpdated November 6, 2015
Warren Buffett's Letters to Berkshire Shareholders
Updated November 6, 2015
Charlie Munger's Letters to Wesco Shareholders
Annual Meeting Information
Celebrating 50 Years of a Profitable Partnership
Comparative Rights and Relative Prices of Class A and B Stock
Berkshire Activewear
If you have any comments about our WEB page, you can either write us at the address shown above or e-mail us at<EMAIL_ADDRESS>However, due to the limited number of personnel in our corporate office, we are unable to provide a direct response.
Legal Disclaimer
Copyright © 1978-2015 Berkshire Hathaway Inc.


| Up | TOC | Index | |||||
| << 8 API Reference | < 9.6 Version 4.0.2 April 5, 2011 | Up: 9 Release Notes | 9.8 Version 4.0.0 December 22, 2010 > | 10 Index >> |
9.7 Version 4.0.1 March 29, 2011
9.7.1 Bug Fixes
- Renamed implicit Top Level SubProgram to an illegal name. Previously used "_toplevel_", which became a legal name for euphoria 4.0
- ticket:577 object() works same on translator as the interpreter.
- euc now uses quotes around filenames when processing resource files
- ticket:575 OW installer file setenv-ow.bat functionality restored from 4.0.0RC2.
- case issues were removed from pathinfo(), canonical_path(), and abbreviate_path() these functions now return raw OS output; it is up to the user to change case when necessary
- ticket:593 Atoms represented as doubles, but that hold the double representation of a euphoria integer, now hash as though they were actually represented as an integer. This ensures that two objects that evaluate as equal() will have the same hash value.
- ticket:597 Invalid negative routine ids were not detected properly by the interpreter, leading to a machine crash.
- Now EUPHORIA can be installed under the Windows' 'Program Files' (with spaces) and the translated code will be compiled.
- Fixed Demos to not rely on EUDIR being set and to not issue warnings
- Improved confirmation in the algorithm that determines where EUPHORIA is.
- ticket:601 Missing htmldoc added to Makefile
- ticket:604 Uninstaller now completely cleans up after the installer. Note %EUBIN%\bin\eu.cfg is left in place if modified.
- Fixed link to PDF documentation
- Added HTML documentation
- ticket:610 Euphoria Installer that includes Watcom will now prevent the user from installing Euphoria under a directory with spaces. Watcom itself has a lot of problems when spaces are in its path
- ticket:614 maybe_any_key() was not pausing when a Console Program was run from Windows Explorer.
- ticket:591 updated copyright and version and added documentation reminding us all of the places we need to change that information.
- ticket:607 Fixed translation of integers with decimals (e.g., 2.0) when assigned to constants
- ticket:598 Link windows binaries to comdlg32.dll to make sure GUI calls work with the new manifest.
- ticket:590 Fixed outdated or incorrect documentation on loop statements
- ticket:594 Fixed problem with not being able to link to resource file in a location with spaces.
- ticket:615 Fixed abbreviate_path for Windows
- ticket:595 When it is necessary, tell user to change directory before using the make program.
- ticket:592 eu.cfg files in the program's directory and the euphoria executable directories are searched before platform specific directories
- ticket:609 Scientific notation not handling a decimal of all zeroes correctly.
- ticket:621 Add -eudir <dir> handler to binder and shrouder
- ticket:617 Fix top level case values when referencing an unqualified constant in another file
- ticket:620 Added comdlg32.dll to mingw linking flags
- ticket:625 Negative subscripts result in runtime errors.
- Fixed eu.cfg handling precedence and parameter merge / de-dupe algorithm to keep correct order of switches.
- Load eu.cfg arguments when running programs with no arguments, e.g., "eui app.ex"
- ticket:619 GNU makefile "all" target builds all binaries now
- ticket:632 fix trace screen prompts to prompt to continue
- ticket:633 On Windows, dir was incorrectly case sensitive if wildcards were used.
- ticket:624 Fixed regex function is_match to use the from parameter
- ticket:596 Worked around GNU C problem of a lack of alias attribute support on some Mac OS X machines.
- ticket:636 Source files checked out from Mercurial (and thus distributed packages) will use the conventions of the OS for line breaks.
- ticket:639 In place RHS slice (on sequence with reference count 1), followed by in place splice (on sequence still with reference count 1) works correctly
- ticket:640 Fix dir when a file cannot be stat()ed
- ticket:641 Use dir instead of just calling raw machine_func in canonical_path and abbreviate_path
9.7.2 Enhancements
- Added parsing of two digit years to std/datetime.e parse.
- ticket:516 added join_path and split_path routines.
- current_dir() now always returns an upper case letter for the drive id.
- canonical_path() can now leave the case alone, lower the case, correct the case, and even get short file names for programs that still cannot handle quoted arguments at the command line.


css-tricks 首页效果
Title
Some article description stuff.
Title
Some article description stuff.
Title
Some article description stuff.
Title
Some article description stuff.
Title
Some article description stuff.


Angry Rev. Obofour blast and curses editor who edited his videos
by Qwame BenedictThe leader and founder of Anointed Palace Chapel Rev. Obofour some few hours ago was reported on some portals in the country to have said that he wouldn’t work for God to take the glory.
After the publication, some sections of social media users took to social media to bash him for making such a comment regarded as blasphemous.
Well, the rich pastor has himself reacted to the video which has since gone viral stating that none of the content is true.
According to Rev. Obofour who is also known as Iron Boy has stated that the said rival video has been edited by some of his colleagues’ pastors who want his downfall to taint his hard earn reputation.
Watch the video below:
Obofour rather rained generational curse on the unknown editor who edited that said video saying that he together with his parents, unborn children and grandchildren would suffer till the end of the world.
He added that all epilepsy he has cured from since the start of his ministry would go upon the editor’s unborn children as well as the family of whichever lady he prepares to marry.


{% extends 'base.html'%} {% block content %}
[L.N. 269/1966, s. 2.]
To the Registrar of Marriages for Oa_Online WHEREAS I wish to marry
at
in
NOW I hereby apply for the certificate of the Registrar-General that he is not aware of any legal impediment to the intended marriage.
AND I hereby declare that I am not already married to any person whether under customary law or otherwise howsoever.
My particulars are as follows:
Witness my hand, this day of 20
Signature


Thank you for your interest in LifeHQ while it was still in the early stages with all the rough edges and the occasional bug.
Your interest is what helped me validate the idea for this crazy mix of project management, productivity and self improvement and is what motivated me to continue pushing until the end. For that I am forever grateful.
As a reward you get a discount code that gives you 50% off LifeHQ forever, the discount code is: tnx-1337-lfhq
Make sure to use it until June 1st. (On the checkout popup you will see the Add coupon button and that's where you enter the code.)
I have been using LifeHQ exclusively for the past 6 months for managing all aspects of my life. Organization, project management, working productively, tracking my habits and journaling.
To be honest, my biggest struggle has always been the consistency part (I am still working on it). Usually on weekends I tend to over relax and lose my momentum from the previous week.
The best thing from a system like LifeHQ is how easy it is to get back on track after a bad weekend.
I have everything already defined in there and I just need to have one productive day to get back on the right path.


Formatting Code Block
How to insert a code block in the TelerikEditorProvider RTE.
- Place your cursor where you want to place the code block.
- Click the Format Code Block button. This opens the Format Code Block window.
- In the Paste Source Code Below text box, paste the source code.
- In the Options section complete the following:
- Optional. In the Max Snippet Width text box, set the maximum width of the code block in either pixels or as a percentage. Do this by either typing a value into the text box or by using the Increase and Decrease buttons. The value will automatically be saved as pixels unless you enter the percentage symbol (%) into the text box. E.g. Enter 100px or 100 to set the width as 100 pixels, or enter 100% to set the width as 100%. Leave blank for no specified width.
- Optional. In the Max Snippet Height text box, set the maximum height of the code block in either pixels or as a percentage. Leave blank for no specified width.
- At Select Language, select the language of the code block from these options: Markup - (x)HTML, XML, ASPX, ..."; Javascript, CSS, C#, CPP, VB, Php, SQL, Delphi, or Python.
- At Display Line Numbers, to display line numbers for each line of code - OR - to disable numbering.
- Optional. Click the Preview button to preview the code in the Preview window below.
- Click the OK button to insert the code block.


| Overview | Namespace | Class | Index | Help |
| DEFINES | MACROS |
| Defined As | "component_canUnload" |
| In File | unload.h |
component_canUnload
.
If the function returns sal_True
then the module can be safely unloaded.
That is the case when there are no external references to code within the
library. In case a module houses UNO components then the function must return
sal_False
after the first factory has been handed out. The function then
continues to return sal_False
as long as there is at least one object (factory
or service instance) which originated from the module.
Libraries which not only contain UNO components (or none at all) have to provide a means to control whether they can be unloaded or not, e.g. However, there is no concept yet.
The argument pTime
is an optional out-parameter. If the return value is
sal_True
then pTime
reflects a point in time since
when the module could have
been unloaded. Since that time the function would have continually returned
sal_True
up to the present. The value of pTime
is
important for the decision
as to a module will be unloaded. When someone initiates the unloading of
modules by calling rtl_unloadUnusedModules
then the caller can specify a time
span with the effect that only those modules are unloaded which are unused at
least for that amount of time. If component_canUnload
does not
fill in pTime
then the module is unloaded immediately.
component_canUnload
is implicitly called by rtl_unloadUnusedModules
. There is no need to call the function directly.
| Defined As | CPPU_STRINGIFY( CPPU_ENV ) |
| In File | lbnames.h |
Name for C++ compiler/ platform, e.g. "gcc3", "msci"
| Defined As | CPPU_ENV |
| In File | macros.hxx |
| Defined As | SAL_EXCEPTION_DLLPUBLIC_EXPORT |
| In File | macros.hxx |
| Defined As | \ INCLUDED_CPPUHELPER_PROPERTYSETMIXIN_HXX |
| In File | propertysetmixin.hxx |
| Defined As | \ { {rtl_moduleCount_acquire,rtl_moduleCount_release}, rtl_moduleCount_canUnload, 0, {0, 0}} |
| In File | unload.h |
| Defined As | ((sal_uInt32)(0x1)) |
| In File | file.h |
| Defined As | ((sal_uInt32)(0x2)) |
| In File | file.h |
| Defined As | OSL_THIS_FILE ":" OSL_THIS_FUNC ":" OSL_MACRO_VALUE_TO_STRING( __LINE__ ) "; " |
| In File | diagnose.h |
| Defined As | 0x0001 /* create pipe and open it, fails if already existst */ |
| In File | pipe.h |
| Defined As | (RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_MAPTOPRIVATE |\ RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_DEFAULT |\ RTL_TEXTTOUNICODE_FLAGS_INVALID_DEFAULT) |
| In File | ustring.h |
| Defined As | (RTL_UNICODETOTEXT_FLAGS_UNDEFINED_DEFAULT |\ RTL_UNICODETOTEXT_FLAGS_INVALID_DEFAULT |\ RTL_UNICODETOTEXT_FLAGS_UNDEFINED_REPLACE |\ RTL_UNICODETOTEXT_FLAGS_PRIVATE_MAPTO0 |\ RTL_UNICODETOTEXT_FLAGS_NOCOMPOSITE) |
| In File | string.h |
| Defined As | SAL_CALL |
| In File | regtype.h |
| Defined As | 0x0001 |
| In File | regtype.h |
| Defined As | 0x0002 |
| In File | regtype.h |
| Defined As | {\ 0x6b,0xa7,0xb8,0x10,\ 0x9d,0xad,\ 0x11,0xd1,\ 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\ } |
| In File | uuid.h |
(Use them the following way : sal_uInt8 aNsDNS[16]) = RTL_UUID_NAMESPACE_DNS;
6ba7b810-9dad-11d1-80b4-00c04fd430c8
| Defined As | {\ 0x6b, 0xa7, 0xb8, 0x12,\ 0x9d, 0xad,\ 0x11, 0xd1,\ 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\ } |
| In File | uuid.h |
6ba7b812-9dad-11d1-80b4-00c04fd430c8
| Defined As | { \ 0x6b, 0xa7, 0xb8, 0x11,\ 0x9d, 0xad,\ 0x11, 0xd1,\ 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\ } |
| In File | uuid.h |
6ba7b811-9dad-11d1-80b4-00c04fd430c8
| Defined As | {\ 0x6b, 0xa7, 0xb8, 0x14,\ 0x9d, 0xad,\ 0x11, 0xd1,\ 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\ } |
| In File | uuid.h |
6ba7b814-9dad-11d1-80b4-00c04fd430c8
| Defined As | 0x0200 |
| In File | types.h |
| Defined As | 0x0800 |
| In File | types.h |
| Defined As | 0x0010 |
| In File | types.h |
| Defined As | 0x0040 |
| In File | types.h |
| Defined As | 0x0080 |
| In File | types.h |
| Defined As | 0x0004 |
| In File | types.h |
| Defined As | 0x0002 |
| In File | types.h |
| Defined As | 0x4000 |
| In File | types.h |
| Defined As | 0x8000 |
| In File | types.h |
| Defined As | 0x0001 |
| In File | types.h |
| Defined As | 0x1000 |
| In File | types.h |
| Defined As | 0x0100 |
| In File | types.h |
| Defined As | 0x0020 |
| In File | types.h |
| Defined As | SAL_DLLPUBLIC_EXPORT |
| In File | types.h |
Exporting the symbols necessary for exception handling on GCC.
These macros are used for inline declarations of exception classes, as in rtl/malformeduriexception.hxx.
| Defined As | \ int SAL_CALL main(int argc, char ** argv) \ { \ int ret; \ sal_detail_initialize(argc, argv); \ ret = sal_main(); \ sal_detail_deinitialize(); \ return ret; \ } |
| In File | main.h |
| Defined As | \ int SAL_CALL main(int argc, char ** argv) \ { \ int ret; \ sal_detail_initialize(argc, argv); \ ret = sal_main_with_args(argc, argv); \ sal_detail_deinitialize(); \ return ret; \ } |
| In File | main.h |
| Defined As | \ int WINAPI WinMain( HINSTANCE _hinst, HINSTANCE _dummy, char* _cmdline, int _nshow ) \ { \ int argc = __argc; char ** argv = __argv; \ (void) _hinst; (void) _dummy; (void) _cmdline; (void) _nshow; /* unused */ \ return main(argc, argv); \ } |
| In File | main.h |
| Defined As | ((sal_uInt32)0x10000000) |
| In File | types.h |
| Defined As | ((sal_uInt16)0x0400) |
| In File | types.h |
| Defined As | 256 |
| In File | types.h |
| Defined As | ((sal_uInt16)0x0200) |
| In File | types.h |
| Defined As | SAL_CALL |
| In File | refltype.hxx |
| Defined As | "uno_initEnvironment" |
| In File | environment.h |
Function exported by some bridge library providing acquireInterface(), releaseInterface(); may set a disposing callback.
| pEnv | environment to be initialized |
| Defined As | osl_VolumeInfo_Mask_FileSystemCaseHandling |
| In File | file.hxx |
| Defined As | __attribute__ ((aligned (__alignof__ (base_struct)))) |
| In File | macros.hxx |
| Defined As | (*interface_pointer) |
| In File | cuno.h |
macro to call on a C interface
| interface_pointer | interface pointer |
| Defined As | /* empty */ |
| In File | doublecheckedlocking.h |
| Defined As | ((sal_Int32)(sizeof(constAsciiStr)-1)) |
| In File | string.h |
| constAsciiStr | must be an expression of type "(possibly cv-qualified reference to) array of (possibly cv-qualified) char." Each element of the referenced array must represent an ASCII value in the range 0x00--0x7F. The last element of the referenced array is not considered part of the represented ASCII string, and its value should be 0x00. Depending on where this macro is used, the nature of the supplied expression might be further restricted. |
| Defined As | constAsciiStr, ((sal_Int32)sizeof(constAsciiStr)-1) |
| In File | string.h |
| constAsciiStr | must be an expression of type "(possibly cv-qualified reference to) array of (possibly cv-qualified) char." Each element of the referenced array must represent an ASCII value in the range 0x00--0x7F. The last element of the referenced array is not considered part of the represented ASCII string, and its value should be 0x00. Depending on where this macro is used, the nature of the supplied expression might be further restricted. |
| Defined As | constAsciiStr, ((sal_Int32)(sizeof(constAsciiStr)-1)), RTL_TEXTENCODING_ASCII_US |
| In File | ustring.h |
| constAsciiStr | must be an expression of type "(possibly cv-qualified reference to) array of (possibly cv-qualified) char." Each element of the referenced array must represent an ASCII value in the range 0x00--0x7F. The last element of the referenced array is not considered part of the represented ASCII string, and its value should be 0x00. Depending on where this macro is used, the nature of the supplied expression might be further restricted. |
| Defined As | ((void)0) |
| In File | logfile.hxx |
| Defined As | ::rtl::Logfile instance(project, author, name ) |
| In File | logfile.hxx |
| Defined As | \ rtl_logfile_longTrace( "| %s : %s\n", \ instance.getName(), \ message ) |
| In File | logfile.hxx |
| Defined As | \ rtl_logfile_longTrace( "| %s : ", \ instance.getName() ); \ rtl_logfile_trace( frmt , arg1 ); \ rtl_logfile_trace( "\n" ) |
| In File | logfile.hxx |
| Defined As | \ rtl_logfile_longTrace( "| %s : ", \ instance.getName() ); \ rtl_logfile_trace( frmt , arg1 , arg2 ); \ rtl_logfile_trace( "\n" ) |
| In File | logfile.hxx |
| Defined As | ((void)0) |
| In File | logfile.hxx |
| Defined As | \ rtl_logfile_longTrace( "| %s : ", \ instance.getName() ); \ rtl_logfile_trace( frmt , arg1 , arg2 , arg3 ); \ rtl_logfile_trace( "\n" ) |
| In File | logfile.hxx |
| Defined As | \ ::rtl::Logfile instance( name ) |
| In File | logfile.hxx |
| Defined As | \ rtl_logfile_longTrace( "| %s : ", \ instance.getName() ); \ rtl_logfile_trace( frmt, arg1 ); \ rtl_logfile_trace( "\n" ) |
| In File | logfile.hxx |
| Defined As | \ rtl_logfile_longTrace( "| : %s\n", string ) |
| In File | logfile.hxx |
| Defined As | \ rtl_logfile_longTrace( "| : " ); \ rtl_logfile_trace( frmt, arg1 ); \ rtl_logfile_trace( "\n" ) |
| In File | logfile.hxx |
| Defined As | \ rtl_logfile_longTrace( "| : %s\n", string ) |
| In File | logfile.h |
| Defined As | \ rtl_logfile_longTrace( "| %s (%s) : %s\n", \ project,\ author,\ string ) |
| In File | logfile.h |
| Defined As | \ rtl_logfile_longTrace( "| %s (%s) : ", \ project,\ author );\ rtl_logfile_trace( frmt, arg1 ); \ rtl_logfile_trace( "\n" ) |
| In File | logfile.h |
| Defined As | ((void)0) |
| In File | logfile.h |
| Defined As | \ rtl_logfile_longTrace( "| %s (%s) : ", \ project,\ author ); \ rtl_logfile_trace( frmt, arg1 , arg2 ); \ rtl_logfile_trace( "\n" ) |
| In File | logfile.h |
| Defined As | ((void)0) |
| In File | logfile.h |
| Defined As | \ rtl_logfile_longTrace( "| %s (%s) : ", \ project,\ author ); \ rtl_logfile_trace( frmt, arg1 , arg2 , arg3 ); \ rtl_logfile_trace( "\n" ) |
| In File | logfile.h |
| Defined As | \ rtl_logfile_longTrace( "| : " ); \ rtl_logfile_trace( frmt, arg1 ); \ rtl_logfile_trace( "\n" ) |
| In File | logfile.h |
| Defined As | \ rtl_logfile_longTrace( "| : " ); \ rtl_logfile_trace( frmt, arg1 , arg2 ); \ rtl_logfile_trace( "\n" ) |
| In File | logfile.h |
| Defined As | \ rtl_logfile_longTrace( "| : " ); \ rtl_logfile_trace( frmt, arg1 , arg2 , arg3 ); \ rtl_logfile_trace( "\n" ) |
| In File | logfile.h |
| Defined As | (const_cast< type >(expr)) |
| In File | types.h |
Wrap C++ const_cast, reinterpret_cast and static_cast expressions in macros to keep code portable to old compilers (since most compilers still lack RTTI support, dynamic_cast is not included here).
| Defined As | \ static int SAL_CALL sal_main(void); \ SAL_MAIN_IMPL \ SAL_WIN_WinMain \ static int SAL_CALL sal_main(void) |
| In File | main.h |
| Defined As | \ static int SAL_CALL sal_main_with_args (int _argc_, char ** _argv_); \ SAL_MAIN_WITH_ARGS_IMPL \ SAL_WIN_WinMain \ static int SAL_CALL sal_main_with_args(int _argc_, char ** _argv_) |
| In File | main.h |
| Defined As | ((type) (expr)) |
| In File | types.h |
A cast between integer types, to avoid C compiler warnings.
In C source code, use SAL_INT_CAST(type, expr) instead of ((type) (expr)) whenever a compiler warning about integer type problems shall be silenced. That way, source code that needs to be modified when the type of any of the expressions involved in the compiler warning is changed can be found more easily. The argument 'type' must be an integer type and the argument 'expr' must be an integer expression. Both arguments are evaluated exactly once.
| Defined As | \ ((sizeof (x) == sizeof (float)) ? __isfinitef(x) \ : (sizeof (x) == sizeof (double)) ? __isfinite(x) \ : __isfinitel(x)) |
| In File | mathconf.h |
| Defined As | SAL_DLLPREFIX name SAL_DLLEXTENSION "." version |
| In File | module.h |
| Defined As | SAL_DLLPREFIX name ".dylib." version |
| In File | module.h |
| Defined As | name version SAL_DLLEXTENSION |
| In File | module.h |
| Defined As | |
| In File | types.h |
Definition of function throw clause macros. These have been introduced to reduce code size by balancing out compiler bugs.
These macros are ONLY for function declarations, use common C++ throw statement for throwing exceptions, e.g. throw RuntimeException(); SAL_THROW() should be used for all C++ functions, e.g. SAL_THROW( () ) SAL_THROW_EXTERN_C() should be used for all C functions
| Defined As | \ { \ typelib_TypeDescriptionReference * pMacroTypeRef = (pTypeRef); \ typelib_TypeDescription ** ppMacroTypeDescr = (ppDescription); \ if (TYPELIB_TYPEDESCRIPTIONREFERENCE_ISREALLYWEAK( pMacroTypeRef->eTypeClass )) \ { \ typelib_typedescriptionreference_getDescription( ppMacroTypeDescr, pMacroTypeRef ); \ } \ else if (!pMacroTypeRef->pType || !pMacroTypeRef->pType->pWeakRef) \ { \ typelib_typedescriptionreference_getDescription( ppMacroTypeDescr, pMacroTypeRef ); \ if (*ppMacroTypeDescr) \ typelib_typedescription_release( *ppMacroTypeDescr ); \ } \ else \ { \ *ppMacroTypeDescr = pMacroTypeRef->pType; \ } \ } |
| In File | typedescription.h |
Gets a description from the reference. The description may not be locked by this call. You must use the TYPELIB_DANGER_RELEASE macro to release the description fetched with this macro.
| Defined As | \ { \ if (TYPELIB_TYPEDESCRIPTIONREFERENCE_ISREALLYWEAK( (pDescription)->eTypeClass )) \ typelib_typedescription_release( pDescription ); \ } |
| In File | typedescription.h |
Releases the description previouse fetched by TYPELIB_DANGER_GET.
| Defined As | \ ((eTypeClass) == typelib_TypeClass_INTERFACE_METHOD || \ (eTypeClass) == typelib_TypeClass_INTERFACE_ATTRIBUTE) |
| In File | typedescription.h |
Returns true, if the type description reference may lose the type description. Otherwise pType is a valid pointer and cannot be discarded through the lifetime of this reference.  There are expanded forms of the macro usage in implbaseN.hxx/compbaseN.hxx. So there is commonly no need to use these macros. Though, you may need to implement more than 12 interfaces. Then you have to declare something like the following in your headers (where N is your demanded number of interfaces): #define __IFC3 Ifc1, Ifc2, Ifc3, ... up to N #define __CLASS_IFC3 class Ifc1, class Ifc2, class Ifc3, ... up to N #define __PUBLIC_IFC3 public Ifc1, public Ifc2, public Ifc3, ... up to N __DEF_IMPLHELPER_PRE( N ) __IFC_WRITEOFFSET( 1 ) __IFC_WRITEOFFSET( 2 ) __IFC_WRITEOFFSET( 3 ), ... up to N __DEF_IMPLHELPER_POST( N )
| Defined As | __IFC_EX_TYPE_INIT_NAME( class_cast, Ifc##N ) |
| In File | implbase_ex_pre.hxx |
*/
| Defined As | \ { { ifc_name::static_type }, ((sal_IntPtr)(ifc_name *) class_cast 16) - 16 } |
| In File | implbase_ex_pre.hxx |
Copyright © 2012, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.


Rails 5.0.2 (March 01, 2017)
Allow render locals to be assigned to instance variables in a view.
Fixes #27480.
Andrew White
Return correct object name in form helper method after
fields_for
.Fixes #26931.
Yuji Yaginuma
Rails 5.0.1 (December 21, 2016)
- No changes.
Rails 5.0.1.rc2 (December 10, 2016)
Restore support for locals named
_
,arg
,args
, andblock
.Fixes #27302.
Toshimaru
Rails 5.0.1.rc1 (December 01, 2016)
Fix support to ::ActionController::Parameters in
button_to
.Jon Moss
Render now accepts any keys for locals, including reserved words
Only locals with valid variable names get set directly. Others will still be available in local_assigns.
Example of render with reserved words:
<%= render "example", class: "text-center", message: "Hello world!" %>  <%= tag.div class: local_assigns[:class] do %>
<%= message %>
 <% end %>
Peter Schilling, Matthew Draper
Changed partial rendering with a collection to allow collections which implement
to_a
.Extracting the collection option had an optimization to avoid unnecessary queries of ActiveRecord Relations by calling
#to_ary
on the given collection. Instances ofEnumerator
or Enumerable are valid collections, but they do not implement#to_ary
. By changing this to#to_a
, they will now be extracted and rendered as expected.Steven Harman
Fix
ActionView::Helpers#current_page?
to work properly even with a trailing slash.Fixes #19472.
Stan Lo
Rails 5.0.0 (June 30, 2016)
Changed partial rendering with a collection to allow collections which implement
to_a
.Extracting the collection option had an optimization to avoid unnecessary queries of ActiveRecord Relations by calling
#to_ary
on the given collection. Instances ofEnumerator
or Enumerable are valid collections, but they do not implement#to_ary
. By changing this to#to_a
, they will now be extracted and rendered as expected.Steven Harman
Change
datetime_field
anddatetime_field_tag
to generatedatetime-local
fields.As a new specification of the HTML 5 the text field type
datetime
will no longer exist and it is recomended to usedatetime-local
. Ref: https://html.spec.whatwg.org/multipage/forms.html#local-date-and-time-state-(type=datetime-local)Herminio Torres
Raw template handler (which is also the default template handler in Rails 5) now outputs HTML-safe strings.
In Rails 5 the default template handler was changed to the raw template handler. Because the ERB template handler escaped strings by default this broke some applications that expected plain JS or HTML files to be rendered unescaped. This fixes the issue caused by changing the default handler by changing the Raw template handler to output HTML-safe strings.
Eileen M. Uchitelle
select_tag
'sinclude_blank
option for generation for blank option tag, now adds an empty space label, when the value as well as content for option tag are empty, so that we confirm with html specification. Ref: https://www.w3.org/TR/html5/forms.html#the-option-element.Generation of option before:
<option value=""></option>
Generation of option after:
<option value="" label=" "></option>
*Vipul A M *
date_select
helper:with_css_classes
option now accepts a hash of strings for:year
,:month
,:day
,:hour
,:minute
,:second
that will extend the select type with the given css class value.<%= f.date_select :birthday, with_css_classes: { month: "my-month", year: "my-year" } %>
<select id="user_birthday_3i" name="user[birthday(3i)]">…</select> <select id="user_birthday_2i" name="user[birthday(2i)]" class="my-month">…</select> <select id="user_birthday_1i" name="user[birthday(1i)]" class="my-year">…</select>
Matthias Neumayr
Add
to_sentence
helper that is a HTML-safe aware version of Array#to_sentence.Neil Matatall
Added log "Rendering ...", when starting to render a template to log that we have started rendering something. This helps to easily identify the origin of queries in the log whether they came from controller or views.
Vipul A M and Prem Sichanugrist
Collection rendering can cache and fetch multiple partials at once.
Collections rendered as:
<%= render partial: 'notifications/notification', collection: @notifications, as: :notification, cached: true %>
will read several partials from cache at once. The templates in the collection that haven't been cached already will automatically be written to cache. Works great alongside individual template fragment caching. For instance if the template the collection renders is cached like:
# notifications/_notification.html.erb <% cache notification do %> <%# ... %> <% end %>
Then any collection renders shares that cache when attempting to read multiple ones at once.
Kasper Timm Hansen
Add support for nested hashes/arrays to
:params
option ofbutton_to
helper.James Coleman
Fix stripping the digest from the automatically generated img tag alt attribute when assets are handled by Sprockets >=3.0.
Bart de Water
Create a new ::ActiveSupport::SafeBuffer instance when
content_for
is flushed.Fixes #19890.
Yoong Kang Lim
Fix
collection_radio_buttons
hidden_field name and make it appear before the actual input radio tags to make the real value override the hidden when passed.Fixes #22773.
Santiago Pastorino
ActionView::TestCase::Controller#params
returns an instance of ::ActionController::Parameters.Justin Coyne
Fix regression in
submit_tag
when a symbol is used as label argument.Yuuji Yaginuma
I18n.translate
helper will wrap the missing translation keys in a tag only ifdebug_missing_translation
configuration be true. Default value istrue
. For example inapplication.rb
:# in order to turn off missing key wrapping config.action_view.debug_missing_translation = false
Sameer Rahmani
Respect value of
:object
if:object
is false when rendering.Fixes #22260.
Yuichiro Kaneko
Generate
week_field
input values using a 1-based index and not a 0-based index as per the W3 spec: http://www.w3.org/TR/html-markup/datatypes.html#form.data.weekChristoph Geschwind
Allow
host
option injavascript_include_tag
andstylesheet_link_tag
helpersGrzegorz Witek
Restrict
url_for :back
to valid, non-JavaScript URLs. GH#14444Damien Burke
Allow
date_select
helper selected option to accept hash like the default options.Lecky Lao
Collection input propagates input's
id
to the label'sfor
attribute when using html options as the last element of collection.Vasiliy Ermolovich
Add a
hidden_field
on thecollection_radio_buttons
to avoid raising an error when the only input on the form is thecollection_radio_buttons
.Mauro George
url_for
does not modify its arguments when generating polymorphic URLs.Bernerd Schaefer
number_to_currency
andnumber_with_delimiter
now accept a customdelimiter_pattern
option to handle placement of delimiter, to support currency formats like INR.Example:
number_to_currency(1230000, delimiter_pattern: /(\d?)(?=(\d\d)(\d)(?!\d))/, unit: '₹', format: "%u %n") # => '₹ 12,30,000.00'
Vipul A M
Make
disable_with
the default behavior for submit tags. Disables the button on submit to prevent double submits.Justin Schiff
Add a break_sequence option to word_wrap so you can specify a custom break.
Mauricio Gomez
Add wildcard matching to explicit dependencies.
Turns:
<% # Template Dependency: recordings/threads/events/subscribers_changed %> <% # Template Dependency: recordings/threads/events/completed %> <% # Template Dependency: recordings/threads/events/uncompleted %>
Into:
<% # Template Dependency: recordings/threads/events/* %>
Kasper Timm Hansen
Allow defining explicit collection caching using a
# Template Collection: ...
directive inside templates.Dov Murik
Asset helpers raise
ArgumentError
whennil
is passed as a source.Anton Kolomiychuk
Always attach the template digest to the cache key for collection caching even when
virtual_path
is not available from the view context. Which could happen if the rendering was done directly in the controller and not in a template.Fixes #20535.
Roque Pinel
Improve detection of partial templates eligible for collection caching, now allowing multi-line comments at the beginning of the template file.
Dov Murik
Raise an
ArgumentError
when a false value forinclude_blank
is passed to a required select field (to comply with the HTML5 spec).Grey Baker
Do not put partial name to
local_assigns
when rendering without an object or a collection.Henrik Nygren
Remove
:rescue_format
option fortranslate
helper since it's no longer supported by I18n.Bernard Potocki
translate
should handleraise
flag correctly in case of both main and default translation is missing.Fixes #19967.
Bernard Potocki
Load the
default_form_builder
from the controller on initialization, which overrides the global config if it is present.Kevin McPhillips
Accept lambda as
child_index
option infields_for
method.Karol Galanciak
translate
allowsdefault: [[]]
again for a default value of[]
.Fixes #19640.
Adam Prescott
translate
should accept nils as members of the:default
parameter without raising a translation missing error.Fixes #19419.
Justin Coyne
number_to_percentage
does not crash withFloat::NAN
orFloat::INFINITY
as input whenprecision: 0
is used.Fixes #19227.
Yves Senn
Fixed the translation helper method to accept different default values types besides String.
Ulisses Almeida
Fixed a dependency tracker bug that caused template dependencies not count layouts as dependencies for partials.
Juho Leinonen
Extracted ::ActionView::Helpers::RecordTagHelper to external gem (
record_tag_helper
) and added removal notices.Todd Bealmear
Allow to pass an integer value to
size
option inimage_tag
andvideo_tag
.This makes the behavior more consistent with
width
orheight
options.Mehdi Lahmam
Partial template name does no more have to be a valid Ruby identifier.
There used to be a naming rule that the partial name should start with underscore, and should be followed by any combination of letters, numbers and underscores. But now we can give our partials any name starting with underscore, such as _🍔.html.erb.
Akira Matsuda
Change the default template handler from ERB to
Raw
.Files without a template handler in their extension will be rendered using the raw handler instead of ERB.
Rafael Mendonça França
Remove deprecated
AbstractController::Base::parent_prefixes
.Rafael Mendonça França
Default translations that have a lower precedence than a html safe default, but are not themselves safe, should not be marked as html_safe.
Justin Coyne
Make possible to use blocks with short version of
render "partial"
helper.Nikolay Shebanov
Add a
hidden_field
on thefile_field
to avoid raising an error when the only input on the form is thefile_field
.Mauro George
Add support for Reply-To field in
mail_to
helper.Mark Dodwell
Add an explicit error message, in ::ActionView::PartialRenderer for partial
rendering
, when the value of optionas
has invalid characters.Angelo Capilleri
Allow entries without a link tag in
AtomFeedHelper
.Daniel Gomez de Souza
Please check 4-2-stable for previous changes.


--- layout: post title: On Koans & Schemers date: 2011-07-27 04:27:53.000000000 -07:00 type: post published: true status: publish categories: [] tags: [] meta: _edit_last: '1' author: login: admin email<EMAIL_ADDRESS>display_name: admin first_name: Carina C. last_name: Zon ---
I'm getting back up to speed on Ruby and Rails.
I learned back in the era of Ruby 1.8 and Rails 1.1.*. TDD and BDD were just emerging as topics of serious interest within the community. Oh, ye olden days!
I didn't use the skills for a couple of years, so they'd fallen fallow. Meanwhile, Ruby 1.9 introduced some syntactical changes that are backwards-incompatible and Rails, at 3.*, is apparently a different beast altogether. Between the three, it seemed best to start education over from beginner. No doubt uptake this time will go much quicker.
I'm enjoying the Ruby Koans. They're stirring fond memories of The Little Schemer. The koans are kind of a hippy-dippy, cheat-sheet included, test-driven, Little Schemer Lite.
The Little Schemer was considerably more challenging and abstract/conceptual. But both teach through code itself; an uncommon approach, that keeps my mind happily engaged with problem-solving.