Displaying 20 results from an estimated 11000 matches similar to: "truncating html text"
2006 Apr 24
5
Custom pagination
I am trying to paginate objects from a has_many/:through relationship
using Paginator.
current_user.things returns the objects that I''d like to paginate. For
testing, I tried to make it 1 item per page. I initialise the paginator
as follows:
@thing_pages = Paginator.new(self, current_user.things.count, 1,
@params[''page''])
I don''t know how to obtain
2006 Jan 06
4
"Selecting" a calculated row / Using :select in the paginate method
Hi,
I was trying to use the :select parameter to select a calculated row,
but it appears that the parameter is not picked up by the paginate method.
I want to add the following to the select statement:
timediff(now(), created_on) as age
So I tried:
@story_pages, @stories = paginate :stories, {:per_page => 10, :include
=> ''user'', :select =>
2006 Jan 29
8
Determining width and height of image files
I''m trying to figure out how to determine the width and height of images
that are uploaded through my app. Either from the posted data or the
file I save to disk. I''ve been searching around for info but no luck;
I''m completely at a loss. Any suggestions or pointers would be great.
Project background:
The site is an artists portfolio site. The images are thumbnails
2006 May 04
12
RJSCallback 0.1
Announcing RJSCallback 0.1
The RJS Callback plugin is being developed to provide Ruby On Rails with
the ability to easily call RJS templates for the various callbacks
associated with AJAX function calls (e.g., :before, :loading, :complete).
Currently this plugin automatically detects, loads, and renders RJS
templates with specific names and inserts them in the appropriate spot
in
2006 Mar 07
6
Anybody use Red|Blue Cloth?
Does anybody use and prefer Redcloth (or bluecloth, which appears to be
alpha)? Does it affect performance much? Is there a way to get it to
automatically process templates without having to call textilize?
Thanks,
Joe
--
Posted via http://www.ruby-forum.com/.
2006 Jan 06
7
how do I create a change password using sha1?
Hello,
The problem I am having is I have a form where a user can edit their data that does not include their password.
I have another form that I allow them to change their password.
Both forms use the before_update method that hashes the password. There is no password in the first form.
Am I making this too complicated?
How do I call the hash_password for only the second form?
Both forms use
2006 Aug 02
5
Fun with ez_where
I''ve been trying to use the ez_where plugin to create a dynamic finder.
The structure looks somehing like this..
=== controller ===
def list
attribute_filter = params[:filter]
@filter = Caboose::EZ::Condition.new :table do
attribute <=> attribute_filter if attribute_filter
end
#
... do the find with the @filter
#
end
=== view ===
....
<%= link_to
2005 Dec 21
8
textilize - redcloth
Hi,
I''m using textilize with redcloth 3.0.4. Everything works best except
that paragraphs are not translated as an HTML paragraph
When I write something like:
*first paragraph*
second paragraph
the output is without paragraph:
*first paragraph*
second paragraph
Any help??? Thanks
Jörg
2006 Jul 16
3
pagination over custom-sorted collections?
I have a little web app where we need to paginate collections of
items. I''m trying to sort the collection and then pass it, sorted, to
a Paginator, and still be able to paginate through the collection,
across several pages, with the new sort order. The only thing I''m
doing differently from the regular scaffolding approach is this:
@order_pages = Paginator.new(self,
2018 Jan 23
1
Scraping from different level URLs website
I am doing a research on World Bank (WB) projects on developing countries. To do so, I am scraping their website in order to collect the data I am interested in.
The structure of the webpage I want to scrape is the following:
1. List of countries the list of all countries in which WB has developed projects<http://projects.worldbank.org/country?lang=en&page=>
1.1. By clicking on a
2016 May 15
3
How to disable audio in CentOS7?
How can I completely disable audio drivers and services in my CentOS7
system?
This system is a server that will never run any audio applications. The
problem is, I can't disable the audio device in my BIOS, so the system
finds it in the PCI device list and configures it on each boot.
Yes, I know I can blacklist specific device driver modules, but I've got
a minimum of 11
2006 Feb 27
12
RedCloth
Is this the prefered method to implement RedCloth in your views. I''m
trying to display user input that will sometimes have code references in
it. This strips out all tags. I would like for the tags to be
displayed but not read as html.
Thanks in advance!
<%= RedCloth.new(strip_tags(comment.comment),[:filter_html]).to_html %>
charlie bowman
recentrambles.com
--
Posted via
2023 Jul 26
1
Downloading a directory of text files into R
?s 23:06 de 25/07/2023, Bob Green escreveu:
> Hello,
>
> I am seeking advice as to how I can download the 833 files from this
> site:"http://home.brisnet.org.au/~bgreen/Data/"
>
> I want to be able to download them to perform a textual analysis.
>
> If the 833 files, which are in a Directory with two subfolders were on
> my computer I could read them
2018 Aug 01
1
Re: [PATCH v2 nbdkit 5/6] Add truncate filter for truncating or extending the size of plugins.
On 08/01/2018 06:10 AM, Richard W.M. Jones wrote:
> This can truncate, extend, or round up/down to a multiple.
> ---
> common-rules.mk | 3 +-
> configure.ac | 1 +
> filters/offset/nbdkit-offset-filter.pod | 7 +-
> filters/partition/nbdkit-partition-filter.pod | 1 +
>
2006 Jul 20
9
Including children''s children?
a has many b''s
b has many c''s
results = A.find params[:id], :include => :b
How do you also make sure the b''s include the c''s?
Thanks for your help.
Thank You,
Ben Johnson
E: bjohnson@contuitive.com
O: 800-341-6826
M: 817-229-4258
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2016 Dec 06
2
rvest
Estimados
Hace un tiempo que no uso rvest, corrí un código viejo, anda sin problemas, escribo el nuevo y hay algo que me olvide.
Básicamente desde el navegador de internet selecciono el xpath, copio y pego este en R, pero me sale el siguiente error.
> text <- Pagina.R %>%
+ html_nodes(xpath='//*[@id="content"]/p')%>%
+ html_text()
>
2005 Oct 31
1
Truncating with decoding/recoding
Hello all. Thanks for FLAC. It's served me well for the past few
years.
Is there a program out there to truncate a FLAC file without
decoding/recoding it ? Preferably command-line (I already know at
what point I want to truncate it).
Thanks in advance.
--
Andr? Majorel <URL:http://www.teaser.fr/~amajorel/>
Do not use this account for regular correspondence.
See the URL above for
2007 May 03
2
Truncating trailing digits
Hello,
I am relatively new to R and have a rudimentary question, I think. How
does one
truncate the number of digits displayed after the decimal when viewing
the results
of analyses?
My apologies if this question has been answered previously, I was not
able to find
references very easily.
Thank you in advance,
Matt
[[alternative HTML version deleted]]
2008 Jun 30
2
[BUGFIX][OCFS2 1/1] inode truncating
/an ocfs2 bug:
a truncate races with ocfs2_get_block(...,0).
1) 'dd' is doing a truncate, clearing the page cache and reset inode size./
/2) between clearing page cache and resizing inode, a read comes and
create a /
/new page and insert it to page cache./
/3) the read(from `cat`) set buffer head in the new page as mapped but
doesn't increase / /ip_mmu_private in ocfs2_get_block()
2006 May 25
4
How to add a migration with a plugin?
I''m working on a plugin that requires some database support to do its
job (adding a model or two). I''d like the plugin to automatically add a
migration once it is installed. Is there already a mechanism for this?
If so, how do you do it?
--
*Berin Loritsch*
Owner
*Work:* 571-215-7708
*Email:* bloritsch@d-haven.com <mailto:bloritsch@d-haven.com>
*IM:*