Displaying 20 results from an estimated 1000 matches similar to: "Config problems (?)"
2012 Sep 23
1
ruby koans don't understand the principle sandwhich code
hello,
Im still working on ruby koans.
Now I have to do some sandwhich code.
The exercise looks like this :
require File.expand_path(File.dirname(__FILE__) + ''/edgecase'')
class AboutSandwichCode < EdgeCase::Koan
def count_lines(file_name)
file = open(file_name)
count = 0
while line = file.gets
count += 1
end
count
ensure
file.close if
2013 Oct 15
4
[Bug 70511] New: nouveau_bo_name_get segmentation fault while running root tutorials/gl/glbox.C
https://bugs.freedesktop.org/show_bug.cgi?id=70511
Priority: medium
Bug ID: 70511
Assignee: nouveau at lists.freedesktop.org
Summary: nouveau_bo_name_get segmentation fault while running
root tutorials/gl/glbox.C
QA Contact: xorg-team at lists.x.org
Severity: normal
Classification: Unclassified
2015 Oct 01
1
doveadm + ldap userdb
Hi!
OS: CentOS Linux release 7.1.1503 (Core)
Dovecot: 2.2.18
Run user listing - doveadm user '*', single user - work.
auth[20540]: segfault at 8 ip 00007fd554340c6b sp 00007ffc17c886e0 error
4 in libauthdb_ldap.so[7fd55433b000+a000]
dovecot: auth: Fatal: master: service(auth): child 20540 killed with
signal 11 (core dumped)
dovecot: auth: Error: net_connect_unix(auth-worker) failed:
2006 Nov 23
0
Two repeatable crash bugs in Ferret proper
Hi guys! Been reading this list for a while.
I have two repeatable Ferret crash bugs, both seg faults.
1. The first bug appears to seg fault Ferret when you use quotes in a search
argument (eg ''file_name:"file name"'')
2. The second bug appears to seg fault Ferret when you attempt to index text
with very long tokens (above 256 chars). It may have something to do with
2007 Apr 05
5
Odd error handling in ActionView#compile_template causes WSOD
If a view file cannot be compiled (eg it has a block with a missing
''end'' statement), I''m experiencing WSODs - the browser reports a lost
network connection, rather than the helpful compilation error that we
used to have.
When the compilation fails, ActionView#compile_template raises this
error :
TemplateError.new(find_base_path_for(file_name || template), file_name
||
2006 Dec 21
0
Curious win32-changenotify behavior - numbers instead of names
Hi all,
Ruby 1.8.5
win32-ipc 0.4.2 (or 0.5.0 in cvs)
win32-changenotify 0.4.2
I noticed something strange tonight while tinkering with
win32-changenotify. Here''s my sample script:
# cntest.rb
require ''win32/changenotify''
include Win32
path = "C:\\test"
filter = ChangeNotify::FILE_NAME | ChangeNotify::DIR_NAME
cn = ChangeNotify.new(path, true, filter)
2007 Aug 08
12
Some more win32-changenotify analysis
Hi all,
I decided to check the responsiveness of the pure Ruby vs C extension
versions of win32-changenotify. I setup this little file generator program:
a = []
10.times{ |n|
a << Thread.new{
File.open("File_#{n}", ''w''){ |fh| fh.puts "test #{n}" }
}
}
a.each{ |t| t.join }
The pure Ruby version did not do so well. In some cases it
2006 Jun 19
3
can''t dump anonymous class Class
I''m trying to create a document upload system, where most of the code is
the super class Document and just the path to file on the system is
controlled by the sub classes. When I attempt to use my code, I get the
following when I try to save the document.
can''t dump anonymous class Class
Any ideas?
** Migration **
class CreateDocuments < ActiveRecord::Migration
def
2007 Aug 18
1
problem with file_column url generator
Hi,
I have the following in a viewer
Here, @lst = Homework.find(:all) is an array of homeworks. I checked
this this is correct.
Based on the error below, somehow, the url_for_file_colum does not
like to act on the model element.
I checked the source code to url_for_file_column, and the problem is
with instance_variable_get().
I have no idea wat is going on! Any help is appreciated. Gordon.
2006 Jan 19
4
UserEngine - rake bootstrap aborted => undefined method `synchronize_with_controllers'' for Permission:Class
Good day all.
I have successfully installed Engines and LoginEngine and LE is setup and
running correctly.
However, after installing and setting up UE, when attempting to run the rake
bootstrap method I get the following error:
undefined method `synchronize_with_controllers'' for Permission:Class
My environment is
Rails 1.0.0
Ruby 1.8.2
WinXP
WebBRICK
MySQL 4.1.14
I found the following
2011 Nov 12
2
dev.new() within a loop
Hello,
I have a loop where I iterate performance data files within a folder, parse and plot them in one shot (see below).
However, when executing plot_raw which invokes dev.new(..) all windows come out blank whereas if I execute each file outside of a loop then I can see the plots properly. What's wrong here?
Thanks in advance,
Best regards,
Giovanni
# given a directory name, it will
2005 Feb 08
2
test_process.rb => LoadError
Line 4 and following of test_process.rb reads:
if defined?(RAILS_ROOT)
# Temporary hack for getting functional tests in Rails running under
1.8.2
class Object #:nodoc:
alias_method :require_without_load_path_reloading, :require
def require(file_name)
begin
require_without_load_path_reloading(file_name)
rescue Object => e
2005 Mar 20
1
app_nv_backgrounddetect - how to make module
How to compile additional module to asterisk?
I have app_nv_backgrounddetect.c file and followed instructions below,
but "make" did not generate app_nv_backgrounddetect.so or
app_nv_backgrounddetect.o
(1) Drop the code in your /usr/src/asterisk/apps directory
(2) Edit the Makefile in the apps directory. Add the following line:
APPS+=app_nv_backgrounddetect.so
(3) Go to
2004 May 14
0
Syncronising off-line content with my Samba Server in WinXP
Hello,
I get an error when I want to syncronise my 'changed off-line files' with
the files of my Samba Server. The off-line files are located on my laptop
with windows XP running on it.
I can syncronise and acces my files manually (by drag-and-drop or
copy-paste) without a problem. There is no problem with the internet
connection.
The error message I get from the syncronisation
2006 Jun 15
0
displaying the image within html page
Hi-
I have a list of objects and each of them has an image. (like an array
of person object, with name and picture as attributes)
I need to display the images on the html in the thumb format. I use the
following RMagic stuff to create the thumb image
<% file_name = "pictures/"
file_name << person.image_name
file_name <<
2006 Mar 16
0
problem with file_column storing images and other files
I have a model called ProductFiles which associates an arbitrary
amount of image and documents with a product. I am using the
file_column plugin to manage the upload and storage of the images,
like so:
class ProductFile < ActiveRecord::Base
# Accepted MIME types, mime types that are not part of this list are rejected
MIME_EXTENSIONS = {
"image/gif" => "gif",
2005 Jan 06
0
Some thoughts on win32-changenotify
Hi all,
As things stand now, you can do something like this with
win32-changenotify:
require "win32/changenotify"
include Win32
filter = ChangeNotify::FILE_NAME | ChangeNotify::DIR_NAME |
ChangeNotify::LAST_WRITE
cn = ChangeNotify.new("c:\\",false,filter){
puts "Something changed"
}
cn.wait
You can pass a block that''s executed when a change occurs, but
2006 Apr 17
1
[patch] calloc arguments
Hi, it looks like a few users of calloc had their arguments backwards. I
checked the other users and they seem fine.
Since one of those is in ioemu code, does that mean we (I?) will be
submitting that bug to qemu upstream?
--
Hollis Blanchard
IBM Linux Technology Center
Fix swapped calloc() arguments.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
diff -r c4eead8a925b
2006 Nov 07
1
reading VERY large binary files
Hello,
I am trying to read in elements out of a very large binary file ... the
total file is 4 gigs. I want to select rows out of the file, and the
current procedure I run works but is prohibitively slow (takes more than
a day to run and still won't complete). Is there any faster way to
accomplish this?
My current procedure looks like this:
readHH <- function(file_name,
2006 Jun 20
2
Problem with "can''t dump anonymous class Class"
I submitted this earlier, but the web forums went down and I''ve screwed up
the thread, so I''m starting over.
I''m trying to built a document upload system. The system has a main
Document model with different subclasses for different types of documents.
With the code below, if I attempt to create a Document, it works fine, but
if I attempt to use one of the subclasses, I