similar to: Meta Programming Help

Displaying 20 results from an estimated 200 matches similar to: "Meta Programming Help"

2006 Mar 02
2
How to get mime extension with file_column
Is there a way to get the MIME extension of a file_column field? Here''s what I want to do (look for comment in before_save method): class ProductFile < ActiveRecord::Base belongs_to :product file_column :file_name def before_save self.file_type = # something that returns the MIME type (e.g. image/jpeg) end end TIA
2006 Dec 07
1
Centos SATA PCI Card
Generator Microsoft Word 11 (filtered medium) Hi there, I' m trying to build a home made NAS/SAN server using Centos 4. I have an old HP ML series server with support for IDE disks only. So I thought that I could by some pci sata controller to use sata disks that are cheaper and faster than IDE' s. My question is , does anyone have used the Conceptronic PCI Sata Card sucefully in CentOS ?
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",
2013 Sep 23
1
Centos 6.4 on Xserve, IPMI error
Hello! I'm trying to install Centos 6.4 64 bit on this Xserve: http://www.everymac.com/systems/apple/xserve/specs/xserve-intel-xeon-2.8-eight-core-specs.html I got a bootloader from: http://blog.christophersmart.com/2009/07/23/linux-on-an-apple-xserve-efi-only-machine/ as none of the official Centos releases (full, minimal, network 64 bit) boot on this machine. They all crash when loading
2016 Oct 18
2
Lockd: failed to reclaim lock for pid ...
My environment is "heterogeneous" my authentication and home server are currently stuck on a 1G shared network, the production servers and storage servers are on a bonded 40G network, all are in the same VLAN. I have about 100 servers on the 40GB bonded network each with 12cores and 128GB of memory. They are running centos 6.6 Except for my storage servers they are all just running
2013 Feb 19
13
[PATCH] mini-os: implement poll(2)
It is just a wrapper around select(2). Signed-off-by: Wei Liu <wei.liu2@citrix.com> --- extras/mini-os/include/posix/poll.h | 1 + extras/mini-os/lib/sys.c | 90 ++++++++++++++++++++++++++++++++++- 2 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 extras/mini-os/include/posix/poll.h diff --git a/extras/mini-os/include/posix/poll.h
2006 Apr 18
4
Windows Xp / Icecast 2.3.1 / Oddcast 3 / Crap Router?
Ok here's the deal. I set up Icecast and Oddcast, got them to communicate properly, but cannot access the live audio remotely. On other computers in the LAN it works perfetly. Currently I operate wirelessly behind a D-Link 514 router (a mite outdated by now, yes?) and have opened all necessary ports, turned my firewalls off, set this computer as a DMZ, pretty much everything I can think of -
2007 Nov 01
2
Spam Filter News
Is there any news on getting the Spam Filter fixed for this mailing list?
2013 Jan 15
0
Telephony card in Thecus N4800
Hello, I've seen this Atom-based NAS appliance with one PCIe 1x slot : http://www.thecus.com/product.php?PROD_ID=65 Has someone successfully added a Digium, Sangoma or other telephony card in it along asterisk of course ? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Apr 19
0
Windows Xp / Icecast 2.3.1 / Oddcast 3 / Crap Router?
Autoegocrat wrote: > > > Ok here's the deal. I set up Icecast and Oddcast, got them to communicate > properly, but cannot access the live audio remotely. On other computers in > the LAN it works perfetly. Currently I operate wirelessly behind a D-Link > 514 router (a mite outdated by now, yes?) and have opened all necessary > ports, turned my firewalls off, set this
2016 Oct 18
0
Lockd: failed to reclaim lock for pid ...
-> Is there a way to get a date stamp for the dmesg? At least on CentOS7: dmesg -T ----- Original Message ----- From: "Dan Hyatt" <dhyatt at dsgmail.wustl.edu> To: "CentOS mailing list" <centos at centos.org> Sent: Tuesday, October 18, 2016 1:36:46 PM Subject: [CentOS] Lockd: failed to reclaim lock for pid ... My environment is "heterogeneous" my
2014 May 14
0
Bug#748052: Bug#748052: xen-hypervisor-4.3-amd64: No USB keyboard after booting into Dom0
Control: tag -1 +moreinfo On Tue, 2014-05-13 at 08:55 -0700, Mike Egglestone wrote: > After booting into kernel 3.13 dom0, the keyboard no longer works. > All other aspects work, ssh is needed to login to the system to > start working with the domU's. > They keyboard works at the grub menu just fine, and > works normal when booting into the non xen kernel. I think at a minimum
2014 May 14
3
Bug#748052: Bug#748052: xen-hypervisor-4.3-amd64: No USB keyboard af
Ian Campbell <ijc at hellion.org.uk> writes: #I think at a minimum to make any progress we would need to see some #logs. Probably the dom0 dmesg (perhaps compared to the native boot #dmesg) and the set of modules which are loaded would be a good start. #Probably xen's dmesg would be useful too. Lastly, it would be good to #mention what sort of keyboard this is (USB, PS2?) # #Also the
2006 Jun 22
3
Compare against array
I have a database field called file_type. I want to compare it against an array of types to either display it as an image or just create a link to it. I am sure there is an easy way to do this but I can''t think of it. I don''t want to do this: <% if resource.file_type == ".png" OR resource.file_type == ".jpg" ... %> I would like to do: <% if
2012 Jun 19
0
[LLVMdev] llvm/include/Support/FileSystem.h
This is a proposed patch to enhance FileSystem.h to add functionality (getting and setting permission bits and mapping an unmapping files). This implementation follows the N3365 proposal regarding permission bits. This functionality is needed for my next patch which will implement llvm/include/Support/FileOutputBuffer.h which is needed by lld. -------------- next part -------------- A
2012 May 18
2
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
On Fri, May 18, 2012 at 3:07 PM, Michael Spencer <bigcheesegs at gmail.com> wrote: > >> +  error_code ec = sys::fs::status(filePathTwine, stat); > > stat is undefined if ec isn't success. ec will be success even in the case of > file_not_found. Actually I was wrong. The Windows and UNIX implementation disagree on this point. I'm going to change it to match
2015 Aug 18
3
Supporting symbolic links in Path library routines
include/llvm/Support/FileSystem.h has file_type which enumerates the file system’s view of the file type. One of the values is “symlink_file”. But because the Unix implementation of status() calls stat() instead of lstat(), if the path refers to a symbolic link, the link is followed. There’s no way to get information about the symbolic link itself. I think changing status() to call lstat() is
2007 Sep 21
3
TextMate Bundle and exception when switching to alternate file.
Hey, sorry if this is something better suited to another list. I''ve encountered a strange problem with the RSpec.tmbundle in trunk - namely that it was raising an exception when pressing ctrl-shift-downarrow (switch between spec and source - "Alternate File"). I tracked down the issue to be handling of the file_type in switch_command.rb#content_for() - the code expected the
2019 Jan 30
2
SELinux policy vs. static web content
Hi, Some time ago I wrote an introductory article about SELinux on my blog. I'm currently updating it for my new blog, and I found a curious change in SELinux policy. Here goes. For demonstration purposes, I'm using some static webpages, more exactly the default pages found in /usr/share/httpd/noindex, which I simply copied over to /var/www/html. As a first practical example, I'm
2015 Apr 10
4
[LLVMdev] Optimization on Atomics (and the OpenMP memory model)
Hi everyone, The OpenMP standards committee has begun work to formalize their memory model, and define its relationship to the C/C++ memory models. A questionnaire has been put together (pasted below), and I'd like everyone's help in composing detailed answers to inform their decision-making process. While our OpenMP support is still in active development, many of these questions apply