Displaying 20 results from an estimated 100 matches similar to: "How to save xml values to mysql database"
2012 Sep 12
8
Round off method in 1.8.7
Hi all
i am trying to use round method if have a value 2.08 i want it as 2.1 and
it worked in 1.9.2 but not in 1.8.7 is there any other way of doing it.
USING 1.9.2
1.9.2p320 :001 > 2.08.round(1)
=> 2.1
1.9.2p320 :002 > 2.04.round(1)
=> 2.0
USING 1.8.7
irb(main):001:0> 2.08.round
=> 2
irb(main):002:0> 2.08.round(1)
ArgumentError: wrong number of arguments (1 for
2012 Sep 11
10
wickedpdf
Hi all i''m trying to generate pdf and i got this error
Location of wkhtmltopdf unknown and i also get
Bad wkhtmltopdf''s path
gpa/vendor/plugins/wicked_pdf/lib/wicked_pdf.rb:26:in `initialize''
/EDWARD/_gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:53:in `new''
/EDWARD/gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:53:in `make_pdf''
2012 Oct 27
7
Photo Paperclip::CommandNotFoundError
Hi all,
I am using paperclip plugin. when i am trying to upload photo i am
getting this error " Photo Paperclip::CommandNotFoundError "
and i am getting this error on my server production mode. if i run on
development mode on my server i can able to upload the pic. why this is
happening i have no idea.
can any help me out.
Cheers,
Kp
--
You received this message because
2013 Feb 25
3
How to use same css in pdf for wkhtmltopdf
hi I am not getting the css in my pdf i wanna use same css for my pdf also
rather going for new css for pdf. how can I use same css which I use in my
views. I am using wkhtmltopdf for pdf generation and one more thing is how
get page page brake using wkhtmltopdf.
Cheers,
Kp
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
2013 Oct 30
3
Use of FCKEDITOR as normal text area
Hi all
I am trying to use Fckeditor as text area to send mails.here is my code
<% remote_form_for :send_sms,
:before => "Element.show(''loader'')",
:success => "Element.hide(''loader'')" do |sms| %>
<div id="news_content_text_field_bg">
<%= fckeditor_textarea :send_sms, :message,:lang =>
2012 Oct 04
1
Page Break issue with Wkhtmltopdf
<https://lh5.googleusercontent.com/-Ic75bafROg0/UG10hP-nizI/AAAAAAAAAAc/NkV_Bom9rYI/s1600/552.png>
Hi all im facing a problem with wkhtmltopdf i am unable to break a page for
pdf output. can any one help me to do that.
Cheers,
Kp
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2012 Sep 25
1
Devise Gem
Hi all
i am learning how to implement devise gem but i just want to know do
i need to write the login code first and then runt this command " rails
generate devise:install " or run the command first and then go for login
code. can any one tell me what to do.
Cheers
Kp
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2013 Jan 25
4
Usage of ram for Sunspot Search engine
Hi all,
I am using Sunspot Search Engine in my app. When I deployed my app in
production It it bit slower side.
My Server Details:
ram 256
Ubuntu 11.10
How can I check why my app is slow in production can any one help me out to
solve this issue.
Cheers,
Kp
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2013 Jul 28
4
Fedora 19 installation with virt-install
Hello,
I want to install a DomU with Fedora 19 in a Debian Host Dom0 with the
following versions...
ii libc6-xen:i386 2.13-38
i386 Embedded GNU C Library: Shared libraries [Xen version]
ii libxen-4.1 4.1.4-3+deb7u1
i386 Public libs for Xen
ii libxenstore3.0 4.1.4-3+deb7u1
i386
2017 Nov 01
3
Function to save results
Hi Eric,Thanks for the explanation. Is there a way to save the results automatically after the analysis gets over?. As I recently lost the results, because I didn't save the results. I don't want to run the sink or save command after the analysis is over rather run the command for saving the file before starting to run the analysis, so the file gets saved automatically after the script has
2017 Nov 01
2
Function to save results
Hi Eric,I tried as you suggested but I could not find the output in the text file I created (attr.txt)
net <- loadNetwork("C://Users//Priya//Desktop//Attractor analysis_all genes//synaptogenesis//regulationof_dopamine_signaling_submodule3.txt")sink("C://Users//Priya//Desktop//Attractor analysis_all genes//synaptogenesis//attr.txt")
sink()
attr <- getAttractors(net,
2017 Nov 01
0
Function to save results
Some comments:
1. sink() does not return a value. There is on point to set attr <-
sink(...). Just give the command sink("C://....etc")
2. to complete the saving to the file you must give a second sink command
with no argument: sink()
So your code would be (pseudo-code, not actual code)
sink( "filename" )
do something that prints output which will be captured by sink
2017 Nov 01
0
Function to save results
Let's try a simple example.
> # Create a script file of commands
> # Note we must print the results of quantile explicitly
> cat("x <- rnorm(50)\nprint(quantile(x))\nstem(x)\n", file="Test.R")
>
> # Test it by running it to the console
> source("Test.R")
0% 25% 50% 75% 100%
-2.4736219 -0.7915433
2005 Sep 07
7
Asynchronous IO
Hi,
I have installed Xen on Linux 2.6.11.10 <http://2.6.11.10> and i am trying
to do Asynchronous Direct IO on SAS drives. The application which does the
asynchronous direct io on SAS drive is running on Domain 0. Actually the
IOPs what i get for a 512Bytes IO size is 67, but if i do the same operation
on Linux 2.6.11.10 <http://2.6.11.10> native kernel, i get 267
IOPs.Cananyone
2009 Jul 01
5
Xen time drift issues
Hello everyone!
I been observing some peculiar time drift on my Xen domains (dom0 and
domUs). The time (as returned by timeofday) on my domains drifts at
an almost steady rate from the real time ( as read from the time stamp
counter ).
The drift is so constant that it makes me think there should be some
simple explanation for it in the way Xen keeps time.
Some info about my set up:
guest OS:
2017 Nov 01
0
Function to save results
Hi Priya,
You did not follow the logic of the pseudo-code.
The sink("filename"), sink() pair captures whatever output is generated
between the first sink statement and the second sink statement.
You need (possibly) to do:
sink("C://Users//Priya//Desktop//Attractor analysis_all
genes//synaptogenesis//attr.txt")
net <- loadNetwork("C://Users//Priya//Desktop//Attractor
2017 Nov 01
2
Function to save results
Hi,I want the results to be saved automatically in a output text file after the script has finished running.
I used the sink function in the following example, but the results file (output.txt) was empty.
net <- loadNetwork("C://Users//Priya//Desktop//Attractor analysis_all genes//synaptogenesis//regulationof_dopamine_signaling_submodule3.txt")# First I loaded theinput file for
2009 Apr 17
4
unable to find any probes from the nfs provider
I want to list/use the nfs probes but I get the error "dtrace: failed to
match nfs*:::: No probe matches description". Is there a way to enable
nfs provider probes? My system is running snv_112 (bfu''ed from the gate
archive)
# dtrace -lP nfs*
ID PROVIDER MODULE FUNCTION NAME
dtrace: failed to match nfs*:::: No probe matches
2017 Nov 01
1
Function to save results
Hi David,Thank you for the example.When I try to use the cat function, I get an error
cat(attr<-getAttractors(net, type="asynchronous"))Error in cat(attr <- getAttractors(net, type = "asynchronous")) :
argument 1 (type 'pairlist') cannot be handled by 'cat'
Please let me know, if I have used the function in right way?.
Thank you
Priya
?
2008 Nov 08
1
dovecot Digest, Vol 67, Issue 19
Thanks Buddy,
I got it working. It was giving error when running make 'undefined
reference to `request_init' etc' then I ran it with gmake LDFLAGS+=-lwrap
and it worked and everything is working fine. Thanks again for your help
Thankyou
Tahir Riaz
Assistant Director (Systems)
COMSATS Internet Services
COMSATS Headquarters Building
9, Shahrah-e-Jamhuriat, G-5/2
Islamabad.