Re: [Rails] use send_data for downloadable not working in Rails 5.0.0?

2016-08-10 Thread Liz Huang
Issue got fixed after I recreate the project after upgrading rails. Liz On Monday, August 8, 2016 at 4:40:21 PM UTC-4, Liz Huang wrote: > > > > THe part of code is: > > def downloadCSV > require 'csv' > @ary = session[:ary] > csv_string= CSV.

Re: [Rails] use send_data for downloadable not working in Rails 5.0.0?

2016-08-08 Thread Liz Huang
ad: CSV <http://methodologymedia.psu.edu/most/rannumgenerator/downloadCSV> | Excel <http://methodologymedia.psu.edu/most/rannumgenerator/downloadXLS> the code above is used for downloading CSV file after click CSV, which works in rails 4.2.0, now instead of showing the download dialog, all

[Rails] use send_data for downloadable not working in Rails 5.0.0?

2016-08-08 Thread Liz Huang
Hi, Recently I just upgrade rails from 4.2.0 to 5.0.0, wonder what I need to do to make send_data downloadable file working again? Now the data displayed in page instead of downloadable file as before? Thanks! Liz -- You received this message because you are subscribed to the Google Groups

[Rails] Re: bug in fiddle or something I did is wrong?

2015-11-24 Thread Liz Huang
Follow example in fiddle document about "strcpy" and finally got it right. Liz On Monday, November 23, 2015 at 2:22:24 PM UTC-5, Liz Huang wrote: > > > > I tried like this: > > msg = " " > buf = Fiddle::Pointer[msg] >

[Rails] Re: bug in fiddle or something I did is wrong?

2015-11-23 Thread Liz Huang
session[:n] is correct, I see that I could get the underlying pointer for ruby object and return it as a Fiddle::Pointer <http://ruby-doc.org/stdlib-2.0.0/libdoc/fiddle/rdoc/Fiddle/Pointer.html> object, and I can pass the pointer to C function, don't know how to get session[:err

[Rails] Re: bug in fiddle or something I did is wrong?

2015-11-23 Thread Liz Huang
y session[:n] is returned correctly, even I couldn't get session[:errmsg]. Before, I was able to pass session[:errmsg] and get out errormsg (don't need to deal with Fiddle::Pointer), my c code, I didn't use malloc for errmsg, but copy another char * to errmsg using a for loop... Liz O

[Rails] Re: bug in fiddle or something I did is wrong?

2015-11-23 Thread Liz Huang
st guess and try, guess I use buf = Fiddle::Pointer.malloc(8) then pass buf to C function, then try to convert string from buf returned? Liz On Monday, November 23, 2015 at 12:21:27 PM UTC-5, Frederick Cheung wrote: > > On Monday, November 23, 2015 at 3:25:07 PM UTC, Liz Hu

[Rails] Re: bug in fiddle or something I did is wrong?

2015-11-23 Thread Liz Huang
support_encoder(options) else # to_json is being invoked directly, use ActiveSupport's encoder ActiveSupport::JSON.encode(self, options) Do I need to change anything in ruby file when use a pointer? Thanks! Liz On Friday, November 20, 2015 at 2:57:33 PM UTC-5, Frederick

[Rails] bug in fiddle or something I did is wrong?

2015-11-20 Thread Liz Huang
an be changed or something I did was wrong? Any advice will be greatly appreciated. Thanks! Liz -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to ru

[Rails] Trouble to configure web applets with Apache 2.4.16

2015-09-22 Thread Liz Huang
generated will have port number 34580 instead, so I change port number to 8080, but it seems alias (I uses passenger) can't be set up the same way? I have three rails projects and only one of them works.. Any suggestion or reference is greatly appreciated. Best, Liz -- You received

Re: [Rails] Re: "Incomplete response received from application" message

2015-07-14 Thread Liz Huang
After I tried to install fiddle package (even it is supposed to be included in package already) and update other packages it depends on, then I did "bundle update" for my project, the issue is fixed without changing any error... -- You received this message because you are subscribed to the Go

[Rails] Re: i have some error on windows when cmd as rails server

2015-06-09 Thread Liz McGurty
The server cannot find file 'nokogiri' You evidently declared it with a reguire statement... Check that you have installed that gem: gem list 'nokogiri' On Tuesday, June 9, 2015 at 3:14:22 AM UTC-4, Chutirat Chaisan wrote: > > >

[Rails] Re: Show in text box

2015-06-09 Thread Liz McGurty
One possibility: <% test_news_last = News.last %> <% unless test_news_last .blank? %> <%= render partial: 'news/news', locals: { news: News.last } %>. <% else %> Sorry but not results were found. #However you want to display message <% end %> Another, is that you do similar test in the partia

Re: [Rails] Re: "Incomplete response received from application" message

2015-05-18 Thread Liz Huang
16K STACK GUARD 56.0M Stack 10.0M VM_ALLOCATE 12K __DATA 1956K __LINKEDIT 72.4M __TEXT 22.8M __UNICODE

Re: [Rails] Re: "Incomplete response received from application" message

2015-05-11 Thread Liz Huang
allocation and memory deallocation. The error_log is posted: https://gist.github.com/Liz-Huang/f6eb0ef4e5b99c62c67b Liz On Friday, May 8, 2015 at 3:51:40 PM UTC-4, Hassan Schroeder wrote: > > On Fri, May 8, 2015 at 12:41 PM, Liz Huang > wrote: > > > I like to attach apache e

[Rails] Re: "Incomplete response received from application" message

2015-05-08 Thread Liz Huang
be able to detect something? Liz On Tuesday, April 28, 2015 at 2:12:58 PM UTC-4, John Athayde wrote: > > Liz - > > Not helpful, but I too am experiencing this behavior on a new app/deploy > on a server where other Rails apps are running fine. > > This is happening on a Cent

[Rails] "Incomplete response received from application" message

2015-04-24 Thread Liz Huang
# Uncomment this if you're on Apache >= 2.4: Require all granted RackEnv development PassengerRuby /Users/liz/.rbenv/shims/ruby Click here to Reply -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group

[Rails] Stack level too deep error

2014-08-27 Thread Liz Huang
I tried to call an external library which worked in older version of Ruby On Rails with DL, but I couldn't get it working in newer version of Ruby On Rails using fiddle, the error message is "stack level too deep". I tried several new versions of Ruby without success. After some digging, it se

[Rails] stack size too deep

2014-08-12 Thread Liz Huang
s and it works well. libsamplesize.dylib works before in older version of RubyOnRails, so I am sure there is no infinite recursive loop inside the library. When I try "compute", it takes forever to finish, I wonder if stack size needed is over the limit and is there a way to increase i

[Rails] Re: How to use Fiddle to call .dylib

2014-08-12 Thread Liz Huang
It seems not many people using Ruby to call Fortran .dylib, anyway, I figured that I need to wrap Fortran with C... On Monday, July 21, 2014 11:21:06 AM UTC-4, Liz Huang wrote: > > > > Hi, > > I used DL to call intel fortran .dylib file successfully before, but DL is >

[Rails] Re: require 'dl' doesn't work

2014-08-04 Thread Liz Huang
Does fiddle work in Mac? I saw some comment that it doesn't work in all platforms. Liying On Monday, August 4, 2014 11:01:33 AM UTC-4, Liz Huang wrote: > > > Dear Matt: > > I have tried fiddle, but couldn't make it to import functions in .dylib > (Fortran dll

[Rails] Re: require 'dl' doesn't work

2014-08-04 Thread Liz Huang
Dear Matt: I have tried fiddle, but couldn't make it to import functions in .dylib (Fortran dll generated by intel fortran compiler) that I could use DL to import successfully before. Any suggestions? Thanks! Liz On Tuesday, July 15, 2014 3:55:54 PM UTC-4, Liz Huang wrote: > > &g

[Rails] How to use Fiddle to call .dylib

2014-07-21 Thread Liz Huang
Hi, I used DL to call intel fortran .dylib file successfully before, but DL is removed from latest Ruby version. I tried to use fiddle and got error message "unknown symbol 'samplesize'", could anyone help to see where I did wrong? Thanks! Liz my fortran function

[Rails] Re: require 'dl' doesn't work

2014-07-15 Thread Liz Huang
Thanks! I will check fiddle out and post if I have any questions. It can call .dylib? Liz On Tuesday, July 15, 2014 2:46:35 PM UTC-4, Matt Jones wrote: > > > > On Monday, 14 July 2014 15:49:51 UTC-4, Liz Huang wrote: >> >> >> >> I don't see anythin

[Rails] Re: require 'dl' doesn't work

2014-07-14 Thread Liz Huang
I don't see anything else though, let me copy the whole page: LoadError in SamplesizeController#compute cannot load such file -- dl Extracted source (around line *#14*): 121314151617 def compute require 'dl' require 'pathname' #if ( session[:sigma_sq] <= 0.0 )

[Rails] Re: require 'dl' doesn't work

2014-07-14 Thread Liz Huang
I am using Ruby 2.1.0 and Rails 4.1.2 now, and 'dl' no longer works? Liz On Monday, July 14, 2014 11:32:51 AM UTC-4, Liz Huang wrote: > > > In Ruby 1.8.7 and Rails 2.3.18, I used Dl.dlopen to load intel fortran dll > like the following > > require 'dl'

[Rails] require 'dl' doesn't work

2014-07-14 Thread Liz Huang
; ] session[:n], args = samplesize[ session[:nmax], session[:delta], session[:conf], session[:errmsg] ] but I got error message at line require 'dl' This error occurred while loading the following files: dl Thanks! Liz -- You received this message bec

[Rails] Re: Unable to set up Rails app by Apache on Mac OS X 10.9.3

2014-07-02 Thread Liz Huang
app, will need to figure out how to set up multiple rails apps by sub URI. Best, Liz On Wednesday, July 2, 2014 8:16:25 AM UTC-4, Jim wrote: > > On Tuesday, July 1, 2014 11:55:43 AM UTC-4, Liz Huang wrote: > > the error I got now seem to be something different... >> >> inte

[Rails] Re: Unable to set up Rails app by Apache on Mac OS X 10.9.3

2014-07-02 Thread Liz Huang
Yes, "nobody" is the owner and it seems to be a bug with Ruby. I will change the ownship of the rails project to see if it fixes the problem. Liz On Wednesday, July 2, 2014 8:16:25 AM UTC-4, Jim wrote: > > On Tuesday, July 1, 2014 11:55:43 AM UTC-4, Liz Huang wrote: > &g

[Rails] Re: Unable to set up Rails app by Apache on Mac OS X 10.9.3

2014-07-01 Thread Liz Huang
4294967294 is actually "-2", default uid and gid for nobody in Mac OS X. Not sure how to get around this, change ownership of some files will help? Liz On Tuesday, July 1, 2014 11:55:43 AM UTC-4, Liz Huang wrote: > > > > Yes, I did add that line in the .conf file inside

[Rails] Re: Unable to set up Rails app by Apache on Mac OS X 10.9.3

2014-07-01 Thread Liz Huang
ariables On Tuesday, July 1, 2014 11:33:54 AM UTC-4, Jim wrote: > > On Tuesday, July 1, 2014 10:40:51 AM UTC-4, Liz Huang wrote: > >> >> Great, it seems that I got further, now I got error message >> >> It looks like Bundler could not find a gem. Maybe you didn&

[Rails] Re: Unable to set up Rails app by Apache on Mac OS X 10.9.3

2014-07-01 Thread Liz Huang
02(com.apple.sharepoint.group.2) On Tuesday, July 1, 2014 9:46:56 AM UTC-4, Jim wrote: > > On Monday, June 30, 2014 4:07:41 PM UTC-4, Liz Huang wrote: > > >> Yes, server.app comes with Mavericks, so I use it to host Rails web apps >> and have tried to create >>

[Rails] Re: Unable to set up Rails app by Apache on Mac OS X 10.9.3

2014-07-01 Thread Liz Huang
ect, I did "gem uninstall passenger" afterwards as the developer of passenger told me that I installed passenger by homebrew, I don't need gem install passenger, o.w. I would have trouble... Liz On Tuesday, July 1, 2014 9:46:56 AM UTC-4, Jim wrote: > > On Monday, June

[Rails] Re: Unable to set up Rails app by Apache on Mac OS X 10.9.3

2014-07-01 Thread Liz Huang
Thanks so much! I will carefully follow all your advice to see if I can get it work... Best, Liz On Tuesday, July 1, 2014 9:46:56 AM UTC-4, Jim wrote: > > On Monday, June 30, 2014 4:07:41 PM UTC-4, Liz Huang wrote: > > >> Yes, server.app comes with Mavericks, so I use it

[Rails] Re: Unable to set up Rails app by Apache on Mac OS X 10.9.3

2014-06-30 Thread Liz Huang
Server admin in snow leopard is now server.app in Mavericks? Liying On Saturday, June 28, 2014 8:41:11 AM UTC-4, Jim wrote: > > > I followed your advice, still couldn't get my site running. Do you set up >> your rails project in >> Mac OSX Mavericks? It seems from its instruction, /etc/apache2

[Rails] Re: Unable to set up Rails app by Apache on Mac OS X 10.9.3

2014-06-30 Thread Liz Huang
tc/apache2, it is quite straightfoward and easy, but when I try to do the samething with server.app under folder /Library/Server/Web/Config/apache2. I couldn't make it work, the steps seem to be quite simple, but not easy to find out what might go wrong. I used brew to install passenger. Li

[Rails] Re: Unable to set up Rails app by Apache on Mac OS X 10.9.3

2014-06-27 Thread Liz Huang
pp in Mac OSX Mavericks. Thanks! Liz On Tuesday, June 24, 2014 10:11:30 AM UTC-4, Jim wrote: > > > and couldn't display http://localhost/most/rannumgenerator/index >> (rannumgenerator is controller I generated in most project). >> >> Wonder if something that

[Rails] Re: Unable to set up Rails app by Apache on Mac OS X 10.9.3

2014-06-24 Thread Liz Huang
I checked error log in apache2 folder, it is empty. I wonder if it is related to permission for folders or files as I am not using root, but admin account to develop rails projects. Liz On Tuesday, June 24, 2014 10:11:30 AM UTC-4, Jim wrote: > > > and couldn't display http://

[Rails] Re: Unable to set up Rails app by Apache on Mac OS X 10.9.3

2014-06-24 Thread Liz Huang
Thanks! I will try and see if I can figure it out, I use rbenv to manage ruby versions. Best, Liz On Tuesday, June 24, 2014 10:11:30 AM UTC-4, Jim wrote: > > > and couldn't display http://localhost/most/rannumgenerator/index >> (rannumgenerator is controller I gener

Re: [Rails] Unable to set up Rails app by Apache on Mac OS X 10.9.3

2014-06-24 Thread Liz Huang
Thanks! I will check heroku. Liz On Monday, June 23, 2014 3:32:08 PM UTC-4, Sampath Weerasinghe wrote: > > > i used to go through this kind of drama, then one day someone told about > heroku. > > -Sam > > > On Mon, Jun 23, 2014 at 8:20 AM, Liz Huang > wrote

[Rails] Unable to set up Rails app by Apache on Mac OS X 10.9.3

2014-06-23 Thread Liz Huang
display http://localhost/most/rannumgenerator/index (rannumgenerator is controller I generated in most project). Wonder if something that I should do for Mac Mavericks or some setting for Apache that I am not aware? Thanks! Liz Huang -- You received this message because you are subscribed to the Google Group

[Rails] Re: text_field_tag doesn't display after upgrade Rails from 2.3.18 to 4.0.4

2014-06-19 Thread Liz Huang
Thanks a lot! Liz On Thursday, June 19, 2014 12:08:30 PM UTC-4, Frederick Cheung wrote: > > > > On Thursday, June 19, 2014 4:45:37 PM UTC+1, Liz Huang wrote: >> >> >> Hi, >> >> I developed a few simple apps using Ruby On Rails (no database) for >&

[Rails] text_field_tag doesn't display after upgrade Rails from 2.3.18 to 4.0.4

2014-06-19 Thread Liz Huang
Hi, I developed a few simple apps using Ruby On Rails (no database) for researchers, we got a new server (Mac Pro) and I try to develop in rails 4.0.4, I have this piece of code in index.rhtml, but not anymore if I copy it to index.html.erb, I don't get any error, but text_field_tag and submi

[Rails] [JOBS] Jr. & Sr. RoR Developers—San Francisco and LA—$130-170K

2013-06-24 Thread liz
I'm working a group of Bay Area companies with fun company culture and great compensation—Chartboost, Everlane and Triggit. Chartboost is based in downtown SF and just raised $19 million in funding from Sequoia Capital. They want a Sr. Ruby Developer to join their small team of engineers—guys