Displaying 20 results from an estimated 700 matches similar to: "How to create a very simple form"
2006 Mar 07
3
STI and unit testing
Hi all, I''m having a bit of a problem with unit testing. I''ve simplified my
models to try and get my head round it but I''m still struggling. I''m using
STI and trying to write tests for the extended models (code below). I''ve
written test cases for the extended models which themselves extend the test
case for the parent model, so BarTest extends
2008 Jan 17
6
how to control self.method access
i think self.method just like class method,so if i want to define it
as a private method,i should use
private_class_method :my_method
but i found follow code in < <Agile Web Development with Rails>>
private
def self.hash_password(password)
Digest::SHA1.hexdigest(password)
end
just a mistake or there have some thing which i cannot get?
2006 Jan 30
2
problem redefining module method
I''m having a problem redefining a method in one of my modules. Lets
say I have this module in /lib:
module Hello
def say_hello
"hello"
end
end
And one of my ActiveRecord models mixes it in like:
class Item < ActiveRecord::Base
include Hello
end
This works fine, I can call @item.say_hello just fine. But when I try
to redefine the method:
class Item <
2015 Sep 10
3
[PATCH 0/1] efi: DNS resolver
From: Sylvain Gault <sylvain.gault at gmail.com>
Despite having native network capabilities, UEFI 2.4 (the most widely deployed
at the moment) has no native DNS resolver. I propose here an implementation
more or less inspired by the one found in core/legacynet/dnsresolv.c.
Since it's non-trivial, I'd like to ask for a deep review of this code. I tried
to make it as strong as
2009 Jul 28
4
RJS-Template and link_to_remote
Hi, I am quite new to rails and can''t use any rjs-templates.
The problem is, that he can''t use/find the methods in that template
e.g. ''page'' or ''replace_html''. I get an error message on these
methods.
Here''s what I got so far in my example:
Controller:
----
class AjaxTestController < ApplicationController
layout
2006 Jul 20
5
RJS where to put helper method?
Hi,
If I want to have helper method for my rjs, where''s the best place to put
it?
so for example:
--- bla.rjs:
page.replace_html ...
page.visual_effect ...
--- somewhere: (currently I put in application_helper.rb)
def replace_with_effect(page)
page.replace_html ...
page.visual_effect ...
end
--- bla.rjs:
replace_with_effect page
and is there a way to define the helper so we
2010 Feb 11
2
LinkingTo and C++
Hello,
I've been trying to make LinkingTo work when the package linked to has
c++ code.
I've put dumb packages to illustrate this emails here ;
http://addictedtor.free.fr/misc/linkingto
Package A defines this C++ class:
class A {
public:
A() ;
~A() ;
SEXP hello() ;
} ;
Package B has this function :
SEXP say_hello(){
A a ;
return a.hello() ;
}
headers of package A are copied
2013 Sep 06
1
autologin-user-timeout
Hello,
in the assumption that I understand them correctly I specified in
/etc/lightdm/lightdm.conf
autologin-user=xxxx
autologin-user-timeout=10
so that after 10 seconds the user xxxx is logged-in automatically.
What happens is that the user xxxx is logged-in immediately i.e. without
any delay.
Do I understand the second variable wrong or am I missing something?
Thanks for any help.
K.D.J.
2007 May 10
13
Is there a way to do incremental search?
Say the user first enters "ruby" for search and gets 1000 results. Then
he can search "rails" just in the 1000 results just returned.
The common scenario is some kind of advanced search. User can
incrementally add criteria and the program will narrow the results step
by step.
I know that at least I can use all the criteria as a whole to do the
searching, but this is a waste
2006 Feb 14
3
Can Ajax updates more than one <div>?
Hi,
I wish to know, is it possible that Ajax can update
more than one zone "<div>"???? like :
<%= link_to_remote("Title", :update => ''mydiv0'', :url
=> {:action=>:say_hello} )%>
<div id="mydiv0"> to be changed one</div>
<div id="mydiv0"> to be changed two</div>
When I execute the code, only
2012 Feb 10
1
Changing the appearance of the login box
I'm the founder and lead developer of the lightweight Linux distro Swift Linux. I'm currently in the process of switching from the old antiX Linux base to the new Linux Mint Debian Edition base.
The new Swift Linux will be using LightDM instead of SLiM. I've found that replacing LMDE's default GDM display manager with SLiM disables many functions (like audio). Restoring these
2013 Jan 05
1
greeter-show-remote-login on debian
Hello,
I need the possibility to login to other machines on my network. With kdm it
works by choosing "Remote Login" from a menu in the greeter. I would prefer not
to use kdm. ;-)
I saw that the option "greeter-show-remote-login" should do that for lightdm. I
work with a debian "wheezy/testing" system and installed the following packages
from the
2013 Jun 17
1
lightdm 1.7.2 released
Unstable release in 1.8 series.
Overview of changes in lightdm 1.7.2
* Fix incorrectly distributed guest-session apparmor data
Overview of changes in lightdm 1.7.1
* Fix .pc file for liblightdm-qt5-3
* Add a new option "autologin-in-background" which lets an autologin
happen
in a second display while still showing the greeter.
* Stop if fail to create default
2017 Feb 04
4
Greeter openssh 7.4 is not according rfc4253.
Hi,
I discovered when using my fuse fs for connecting to a remote host
using sftp that the new
server version 7.4 sends a greeter which is not according the format desribed in
https://tools.ietf.org/html/rfc4253#section-4
There is written that the greeter "MUST be terminated by a single
Carriage Return (CR) and a single Line Feed (LF) character (ASCII 13
and 10, respectively)."
Now
2015 Dec 28
3
Problems to authenticate Ubuntu 14 on Samba4
Hi,
I have saw many tutorials to ingress Ubuntu 14 in the Samba4 domain, but
none worked properly. I put the Ubuntu workstation in the Domain, but when
I try to login, appear the following messenge:
"your password will be expire in 42 days "
and does not permit the authentication.
How can I configure correctly Ubuntu 14 workstation to authenticate in the
Samba 4 domain?
Thanks
2012 Aug 17
2
lightdm fails to stop & can't change login
I've been using lightdm for about a year now and with all the versions
I've tried, Gentoo prints a message about lightdm and xdm failing to
stop if I reboot from the lightdm menu or the xfce4 menu. If I issue
'reboot' as root from an xterm within xfce4, lightdm stops fine. I
couldn't find anything in the logs, but in which one of syslog-ng's
logs should I look?
I'm
2009 Sep 18
2
gdm-simple-greeter config?
grep face /home/<username> -r
:)
--
David Fix
Senior Systems Administrator
Mr. X Inc.
----- Original Message -----
From: "m roth" <m.roth at 5-cent.us>
To: "CentOS mailing list" <centos at centos.org>
Sent: Friday, September 18, 2009 9:01:27 AM
Subject: Re: [CentOS] gdm-simple-greeter config?
> Greetings,
>
> On Fri, Sep 18, 2009 at
2015 Dec 28
2
Problems to authenticate Ubuntu 14 on Samba4
I'm using Ubuntu 14.04-64 bits
I had installed with apt-get the follows packages
krb5-user krb5-config winbind samba samba-common smbclient cifs-utils
libpam-krb5 libpam-winbind libnss-winbind
The samba version is 4.1.16-Ubuntu
Below are my files of configuration
*/etc/samba/smb.conf*
[global]
netbios name = cliente-ad192
workgroup = EMPRESA
security = ads
realm = EMPRESA.COM
2015 Mar 23
40
[Bug 89730] New: NV50: LightDM GTK+ Greeter Background - inconsistent display
https://bugs.freedesktop.org/show_bug.cgi?id=89730
Bug ID: 89730
Summary: NV50: LightDM GTK+ Greeter Background - inconsistent
display
Product: xorg
Version: git
Hardware: Other
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
2013 Nov 13
1
Can LightDM work with an existing X server socket?
Hi all,
I'm setting up an LXC container for Ubuntu 13.10 where the X server is
started in the host on vt6. The unix socket and authority file are
then mounted in the LXC container. I can start X sessions and
applications from the container but I can't get LightDM to use this
server.
I would really like to have the container's LightDM/Ubuntu greeter to
automatically start on this