Displaying 20 results from an estimated 20000 matches similar to: "Writing static HTML?"
2006 Jul 18
9
Displaying HTML pulled directly from a database
How can I get RoR to display html pulled directly from a database,
without converting the tags. (e.g. if "<h1>Hello</h1>" is stored (as
text) in a database, how can I get RoR NOT to corvert it to
"<h1>Hello</h1>", but instead to just pass the tags along so that
"Hello" displays in bold.
I''m sure it''s just a
2006 Jul 18
4
Limiting markdown/textile
I''m using RedCloth for a forum type app. I want users to have control
over the look of their posts, but within limits. For example, I don''t
want them to be able to include images or use header tags. The RedCloth
documentation is pretty thin and I don''t feel it''s very explanatory.
I''m wondering if there''s any easy way to do this? Or do I
2019 Dec 19
1
[PATCH] daemon: reorder internal static libs to fix linking
Move the interal static libraries as the last items in the list of
libraries of guestfsd, to make sure their symbols are used for all the
other libraries. This is because GCC resolves the symbols looking at
the arguments from the beginning to the end of the command line.
This currently does not cause failures, however it "just works" because
of the tricky situation set up.
The
2006 Mar 30
2
How do I format text before saving it?
I tried to use a before_save and use simple_format, it returns and
undefined method error. Can I even use these methods within a model? I
tried to use auto_link and it failed too. What am I doing wrong?
Furthermore, would it be recommended I format text before saving it to
the database? Advantages or disadvantages?
--
Posted via http://www.ruby-forum.com/.
2019 Mar 07
5
Writing unit tests - how to test re-orderable blocks...
We have a test that looks like this…
define void @array16_store() {
; CHECK-LABEL: array16_store:
; CHECK: ldi [[REG1:r[0-9]+]], 204
; CHECK: ldi [[REG2:r[0-9]+]], 170
; CHECK: sts int.array+3, [[REG2]]
; CHECK: sts int.array+2, [[REG1]]
; CHECK: ldi [[REG1:r[0-9]+]], 187
; CHECK: ldi [[REG2:r[0-9]+]], 170
; CHECK: sts int.array+1, [[REG2]]
; CHECK: sts int.array, [[REG1]]
; CHECK: ldi
2006 Apr 19
5
Apache, Rails, FastCGI, Ruby, slow
I''m running Windows XP Pro on a not-so-new machine, Pentium 4 2.4GHz
with 512 RAM. I''ve got Apache 2 installed and I''m using FastCGI to run
Typo in development mode while I design a theme for it. But it''s slow,
very slow.
Inconsistently slow. If I reload a page, sometimes it happens pretty
quickly. Sometimes it takes more than a minute. Sometimes it
2011 Mar 17
4
[LLVMdev] Writing unit tests for DWARF?
One problem that has been vexing me of late: It seems that whenever I run
into a problem that requires debugging one of my programs in gdb, before I
can do that I have to fix my frontend's broken generation of debugging info.
The code that generates debugging information is quite fragile - you have to
generate metadata for each of your files, classes, and functions, and do so
without error,
2019 Oct 10
3
[cfe-dev] RFC: End-to-end testing
Philip Reames via cfe-dev <cfe-dev at lists.llvm.org> writes:
> A challenge we already have - as in, I've broken these tests and had to
> fix them - is that an end to end test which checks either IR or assembly
> ends up being extraordinarily fragile. Completely unrelated profitable
> transforms create small differences which cause spurious test failures.
> This is
2011 Mar 17
0
[LLVMdev] Writing unit tests for DWARF?
Talin,
If there is a magic wand, I would be interested to know!
DIDescriptor.Verify() is not suitable for you needs. It checks structure of encoded debug info after optimizer has modified the IR. Its main goal is inform Dwarf writer, at the end of code gen, which IR construct it should ignore.
If you want to test code gen you have to link compiled code and run it regularly. That's what
2013 Feb 09
1
Swaeve, Beamer and \alt
Hi,
I am having trouble getting \alt (or \altenv) to work with
Schunk/Sinput and was wondering if anybody had had success? With the
slide
\begin{frame}[fragile]\frametitle{Basic R}
\alt<2>{
<<echo=TRUE>>=
2+2
@
}{
<<echo=TRUE, eval=FALSE>>=
2+2
@
}
\end{frame}
I get the error message:
! FancyVerb Error:
Extraneous input `> 2+2 \end {Sinput} \end
2008 Jun 19
1
Setting the xlab for 'the other' (upper) X axis?
I would like to set the 'xlab' on the 'upper' x axis. The following code
shows roughly what I want by way of (one possible) expected behaviour.
par(mar=c(5.1, 4.1, 5.1, 2.1))
plot(rnorm(10), rnorm(10), xlab="the lower one")
axis(3, xlab="the upper one????")
There are various other ways that could be expected to work, but hopefully
the above is clear enough to
2010 Aug 04
1
Problem using R and Beamer...
Dear [R] and beamer community,
I am trying to build a presentation using beamer and [R]. I can Sweave the file; however, when I run pdflatex on the file i get the following error:
! FancyVerb Error:
Extraneous input `> a = 123450 > b = -0.69 \end {Sinput} \end {Schunk} \end {
beamer at frameslide}\ifbeamer at twoscreenstext \beamer at dosecondscreennow {{fragile}
\frametitle
2007 Mar 27
7
Eager loading not working well for me
Man my app is causing me so much grief lately.
Okay let''s say I have:
class Discussion
has_many :posts
end
class Post
belongs_to :discussion
acts_as_tree
end
Then let''s say I grab a discussion object and try to eager load all of
its posts:
discussion = Discussion.find(:first, :include => [:posts])
Seems simple enough and it grabs an entire tree of posts. However:
2016 Jun 30
0
Git Move: GitHub+modules proposal
> That makes it fragile, and that’s why I disagree with your “90% done” assessment.
> What if the service behing the hook is down for a few days?
In the long-term view, a pretty trivial catch-up script ought to be
able to synthesize a sane history after any amount of down-time.
People could even run it locally for their bisecting needs if it was
that important to them.
In the short term, I
2019 Sep 21
2
Re: [PATCH v4 07/12] v2v: nbdkit: Add the readahead filter unconditionally if it is available.
On Fri, Sep 20, 2019 at 09:33:06AM -0500, Eric Blake wrote:
> Checking for file existence for filters is somewhat less fragile than
> for plugins, because all filters are built in-tree (we've specifically
> documented that we don't provide ABI guarantees for filters, so the only
> sane way to use a filter is to compile it at the same time/version as
> the nbdkit binary that
2006 Jul 22
7
Validation with has_many
I have two problems. I have a comment that has_many uploads. Before
saving the comment, I want to be sure that the upload(s) has passed
validation, but I also need to validate in other ways. For example, I
do not want to save the comment if there is no comment or upload. Or, I
do not want to save the comment if the image has been uploaded
previously (comparing md5s with past upload md5s
2006 May 12
5
Bumping threads in a forum-type app
I have a forum-type application. The Board model has many comments, the
Comments model acts as a tree. So I have a board with multiple
comments, some comments are parent comments and there are comments that
belong to a parent comment, making up a thread.
Like most forums, I want it so that threads are sorted based on the date
of their last comment. But I have no idea how to specify this in
2015 Aug 27
2
Disabling host key checking on LAN
On Thu, 27 Aug 2015, Bostjan Skufca wrote:
> Are you connecting by specifying "ssh HOSTNAME" instead of "ssh IP.IP.IP.IP"?
>
> If this is the case, then "Host 192.168.*.*" line never matches when
> you think it should.
>
> From ssh_config manpage:
> "The host is the hostname argument given on the command line (i.e. the
> name is not
2011 Mar 17
1
[LLVMdev] Writing unit tests for DWARF?
Could dwarfdump --verify be used to check the debug info?
- Jan
________________________________
From: Devang Patel <dpatel at apple.com>
To: Talin <viridia at gmail.com>
Cc: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu>
Sent: Thu, March 17, 2011 9:41:10 AM
Subject: Re: [LLVMdev] Writing unit tests for DWARF?
Talin,
If there is a magic wand, I would be interested
2019 Mar 08
2
Writing unit tests - how to test re-orderable blocks...
I’m not sure if it’s truly deterministic. It always gives the same results (so far) on my machine but I’m not sure that’s enough.
My guess is it’s probably going to be deterministic on one machine but might well not be deterministic across environments. Like it might give varying results if cross compiled on different hosts, macOS vs intel Linux vs arm vs s390. (Obviously AVR is always a cross