search for: doctype

Displaying 20 results from an estimated 1773 matches for "doctype".

2006 Jan 24
2
DOCTYPE declaration:
I am playing around with the Agile Rails development book again and thought to see what effect, if any, placing a doctype declaration at the top of an rhtml file would have. When I insert any of the three standard forms of such declaration at the top of app/views/store.rhtml the product image disappears when the web page is redisplayed. The error logged in log/development.log is: > ActionController::Routing...
2006 May 11
1
Doctype -- utf-8 -- html vs xhtml
I was simply trying to write the DOCTYPE line at the top for UTF-8 and got confused. What doctype do I use with rails for utf-8 files? If I put in all the damn closing tags on paragraphs and hr and br and all that will the stuff pass xhml inspection, or will rails insert something I haven'' yet noticed. Warren ------------...
2006 Jan 22
5
has_one not working as expected?
I messed around with Rails for a while last year, but then got busy and had to drop it. However, I now have time again, so I''m starting to play around with a simple database schema to model my extensive collection of photographic material, including equipment, negatives, photographs, etc. I''m running into an issue with using belongs_to/has_one methods. Read on for an
2005 Mar 02
4
CentOS 4 RC1 to CentOS 4 Final
...100% |=========================| 951 B 00:00 base 100% |=========================| 1.1 kB 00:00 updates 100% |=========================| 328 B 00:00 //var/cache/yum/updates/repomd.xml:1: parser error : Space required after the Public Identifier <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> ^ //var/cache/yum/updates/repomd.xml:1: parser error : SystemLiteral " or '' expected <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">...
2011 Aug 29
32
Weird assignment problem, very confused :(
Hey, I have the following line in my controller: User.create(:email => "fuuu-+RB1Aph5k6s@public.gmane.org", :password => ''asldfkjadsfadsf'', :ip => request.remote_ip) my IP is 127.0.0.1 - now User.find_by_ip(''127.0.0.1'') returns 0 records although User.first contains ''127.0.0.1'' if I change it to: User.create(:email =>
2006 Mar 01
5
scaffold.css and Rails tutorial problem
...:css */ #----------------------------------------------------------------------------- The code in app/views/layouts/store.rhtml produces this in the browser display: #----------------------------------------------------------------------------- <!-- app/views/layouts/store.rhtml --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title> Harte &amp; Lyne Limited - Depot Demo </title> <link href="/stylesheets/scaffold.css&...
2006 Aug 13
7
you can pass multiple parameters using link_to? anything bad
i just found out i can pass mutiple parameters from views like <%= link_to doctype.name, :action => "show_towns", :id => doctype.name, :id2 => doctype.id%> silly me, i always had the impression that i could only pass 1. i guess i dont have to use sessions after all for my site. is there anything wrong with this? basically instead of the user filling...
2006 Mar 02
3
How to identify the browser?
I need to generate some browser-specific code; can I identify which browser is being used from within my RoR code? -- Posted via http://www.ruby-forum.com/.
2015 Aug 25
1
Issues with libcurl + HTTP status codes (eg. 403, 404)
...tps://cran.rstudio.com/", CRANextra = + "http://www.stats.ox.ac.uk/pub/RWin")) > install.packages("lattice") ## could be any package Installing package into ?/Users/kevinushey/Library/R/3.3/library? (as ?lib? is unspecified) Error: Line starting '<!DOCTYPE HTML PUBLI ...' is malformed! > sessionInfo() R Under development (unstable) (2015-08-14 r69078) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X 10.10.4 (Yosemite) I think this could be problematic for users with custom CRAN repositories. For example, if I...
2020 Aug 10
3
Docker container isolation not working in CentOS 7
...ot; container has the 172.17.0.2 IP address: $ docker exec -it webserver1 hostname -I 172.17.0.2 Since "webserver1" and "webserver2" are both on the "bridge" network, they can communicate with each other: $ docker exec -it webserver1 curl -m 5 http://172.17.0.3 <!DOCTYPE html> <html> <head> <title>Welcome to nginx!</title> ... Now I'm creating the custom "blog" network: $ docker network create blog $ docker network ls NETWORK ID NAME DRIVER SCOPE e02e6fc654c6 blog bridge loca...
2009 Oct 13
9
Nokogiri: to_s WITHOUT html surrounding's tags?
Hi all n = Nokogiri::HTML("<h1>H1</h1>") n.to_s # => <!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\">\n<html><body><h1>H1</h1></body></html> Is there a method that only outputs the stuff I''ve read, and not the whole valid XHTML stu...
2015 Aug 25
2
Issues with libcurl + HTTP status codes (eg. 403, 404)
...https://cran.rstudio.com/", CRANextra = "http://www.stats.ox.ac.uk/pub/RWin")) > install.packages("lattice") ## coudl be any package Installing package into ?/Users/kevinushey/Library/R/3.2/library? (as ?lib? is unspecified) Error: Line starting '<!DOCTYPE HTML PUBLI ...' is malformed! This seems to come from a call to `available.packages()` to a URL that doesn't exist on the server (likely when querying PACKAGES on the CRANextra repo) Eg. > URL <- "http://www.stats.ox.ac.uk/pub/RWin" > available.packages(URL, me...
2003 Mar 15
2
Help with reading data
...3 did not have 5 elements it was my understanding it wasn''t necessary to specifiy all defaults. The bizarre thing is this error comes from using read.table. When I use scan I get the following error: Error in scan("tree.dat") : "scan" expected a real, got "<!DOCTYPE" I have checked my work directory and the file i'',m trying to read is there. Any ideas? Thanks in advance Nirvan --------------------------------- [[alternate HTML version deleted]]
2015 Aug 25
3
Issues with libcurl + HTTP status codes (eg. 403, 404)
..."http://www.stats.ox.ac.uk/pub/RWin")) > > > install.packages("lattice") ## coudl be any package > > Installing package into ?/Users/kevinushey/Library/R/3.2/library? > > (as ?lib? is unspecified) > > Error: Line starting '<!DOCTYPE HTML PUBLI ...' is malformed! > > > > This seems to come from a call to `available.packages()` to a URL that > > doesn't exist on the server (likely when querying PACKAGES on the > > CRANextra repo) > > > > Eg. > > > > > URL <- &quo...
2018 Mar 12
0
IceCast Listenter Count Stat - BASH or php?
...xsl, which is > bad form. Well, you can create your own XSL with less data. I use this (as web/simple.xsl): <xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" > <xsl:output omit-xml-declaration="no" method="text" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" indent="yes" encoding="UTF-8" /> <xsl:template match = "/icestats" >MountPoint,Connections,Stream Name,Current Listeners,Descriptio...
2008 Oct 03
2
cannot open connection: Authorization Required
Hi, All: Is there a way in R to access a file / web site that requires permission? Consider for example the following: > readLines('http://www.r-project.org/', 4) [1] "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">" [2] "<html>" [3] "<head>" [4] "<title>The R Project for Statistic...
2006 Jul 16
3
RJS problem
...odd problem while trying to use a simple rjs. _test.rjs : page.alert "test" test.rhtml: <script><%=render_partial(''test'')%></script> When I am attempting to view controller/test the page comes as if it was a text file. So i am actually seeing: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> ... <script> alert("test"); </script> Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: ht...
2006 Feb 01
4
REXML::ParseException - but the feed IS valid
I am using Ruby feedparser and when I try to parse this feed: http://feeds.feedburner.com/Mobilecrunch I get an error: REXML::ParseException: Declarations can only occur in the doctype declaration. This feed does validate at feedvalidator.org. Any idea why it would raise an exception? Thanks, eduard -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060201/4494bc39/attachment.html
2005 Oct 10
3
Scrollable DIV causes flicker in FF - SlideDown & SlideUp
I have a fixed height scrollable div inside another div that controls the slideDown and slideUp effects. This causes a really bad flicker in Firefox (1.0.7) for the entire duration of the slide down and up. While on the other hand it works smoothly in IE (except that on a slideUp it causes a last second flash that shows the entire div). Any ideas on how I can fix this? Thanks.
2006 Aug 13
3
ruby and mysql syntax? tried single quotes, double, none, ...
Hi, how do i use passed in arguments and convert those to something sql can understand? do the aliases have to be double qouted? single qouted? i think i tried all but no avail...thanks! def get_count(doctype, towne) @profiles = Profile.count_by_sql("SELECT COUNT(*) from Profiles where Profiles.doctype_id = 1 and town_id = towne") end -- Posted via http://www.ruby-forum.com/.