Displaying 20 results from an estimated 1000 matches similar to: "Complex tests - use a DSL instead of fixtures"
2006 Jul 15
2
Database Config as DSL
In listening to this week''s Ruby on Rails Podcast the issue of YAML came
up, and it got me thinking. Yes, YAML is very simple and cleanly defines
both the database configuration and fixtures, but couldn''t the same
thing be accomplished in Ruby? Jamis and others have encouraged the use
of DSLs to simplify and clarify code. Since Django (whose author was on
the podcast) uses
2020 Jun 16
4
nbdkit rust plugin: copyright notices, Cargo workspace, and macro hygiene
2020 Jun 17
2
Re: nbdkit rust plugin: copyright notices, Cargo workspace, and macro hygiene
On Wed, Jun 17, 2020 at 5:23 AM Richard W.M. Jones <rjones@redhat.com>
wrote:
> I pushed 2 & 3, thanks.
>
> But ...
>
> > From 9fa3e443467e3c06761ec54241327e8daf8701ca Mon Sep 17 00:00:00 2001
> > From: Alan Somers <asomers@gmail.com>
> > Date: Mon, 15 Jun 2020 16:59:53 -0600
> > Subject: [PATCH 1/3] Add a Cargo.toml file to the top-level
2019 Jul 05
3
Re: [PATCH] Add Rust bindings
> Have you decided whether we need to commit the generated files
> (Cargo.toml, Cargo.lock)? It looks like in this series those files
> are still included and not added to .gitignore.
I'm sorry I forgot adding Cargo.lock to .gitignore. I'll add it to
.gitignore. However, I think Cargo.toml should be staged. This is because
this is a file managed by hands. It contains
2019 Aug 31
1
[PATCH libnbd] Add bindings for Rust language
Still not working, but I took the latest patch and:
- rebased it against libnbd 1.0
- fixed it so it handles new args and cbargs
The generator now runs without warnings.
This patch doesn't handle optargs at all. In C these are converted to
non-optional parameter. Rust doesn't (AFAIK) have optional or
labelled arguments unfortunately.
Rich.
2019 Jun 27
2
Re: [PATCH 3/9] Rust bindings: Add 4 bindings tests
On Thu, Jun 27, 2019 at 05:06:04PM +0900, Hiroyuki Katsura wrote:
> From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com>
>
> ---
> generator/rust.ml | 13 ++++++++---
> run.in | 9 ++++++++
> rust/Cargo.lock | 6 +++++
> rust/Cargo.toml | 4 +---
> rust/tests/010_load.rs
2019 Jul 06
3
Re: [PATCH] Add Rust bindings
On Fri, Jul 05, 2019 at 08:37:20AM +0100, Richard W.M. Jones wrote:
>On Fri, Jul 05, 2019 at 01:28:12PM +0900, Hiroyuki Katsura wrote:
>> > Have you decided whether we need to commit the generated files
>> > (Cargo.toml, Cargo.lock)? It looks like in this series those files
>> > are still included and not added to .gitignore.
>>
>> I'm sorry I forgot
2007 Aug 07
0
Object equality with a DSL
How would you spec a DSL which descends from Jim Weirich''s Blank Slate?
I''m asking this question because I have written a DSL, and would like
to have the DSL class descend from BlankSlate so that methods like ==
are not available in the DSL itself (in production), but only while
Testing. Does any one have any insight on this?
I can provide code samples if anyone would
2007 Aug 13
0
decTOP - Centos install fails but DSL frugal install worked
I got 4 of those decTOPs
(http://www.dataevolution.com/dectop%20info%202.htm) and upgraded the
memory to 512Mb.
I cannot get Centos 5.0 to install.
I have the keyboard mouse attached to an ATEN USB-PS/2 adapter (probably
should try without this).
I have a USB DVD/CDRW drive.
The install CD boots just fine. But then the install says, "No CD" and
takes me to Askmethods.
So I use
2006 Apr 11
0
Trying to come up with a nice DSL, but having some problems
I have three models in this small game I''m working on - the Game,
Players, and Turns. A Player should be able to rescue another Player
on any given turn. So it looks like this:
class Game
has_many :players
has_many :turns
def rescue_player(p)
t = turns.last
t.rescued = p
t.save
end
end
class Turn
belongs_to :rescued, :foreign_key =>
2006 Sep 18
1
jdg-qos & DSL
hi all!
i have a dsl connection with 1280 kbps for downstream and 256 kbps for upstream, and i want to manage the bandwidth to give high priority to voip traffic and low priority to p2p traffic. i found the script jdg-qos. i readed on this forum (i have a dsl-g604t router with MCMCC firmware)
http://www.dslreports.com/forum/remark,16250220
that the two parameters of the jdg-qos script (DWIFLIMIT
2006 May 26
0
2 DSL providers, 1 GW IP and Vlans
Hi all, I''m trying to put a linux GW running with this seput:
Internet -> DSL Modem -> VLAN2
\
eth2.2
Linux > Lan
eth2.3
2005 Oct 06
0
Two linux routers with DSL
Hi all!
I''ve the following config:
[LAN] - [big router] - [dsl router] - [internet]
Big router is a dedicated computer running linux, dsl router is a
small device running linux embedded (busybox) and connected to the
internet via pppoa. Both routers are connected together via ethernet.
I want to reduce as much as possible the load in the dsl router, so
I''d like the big router
2005 Nov 28
0
Combining DSL lines
I am looking for a solution to take 4 or more ADSL lines with PPPoE and
a Static IP and then have my Local network behind them.
I was reviewing http://lartc.org/howto/lartc.rpdb.multiple-links.html
and it looks like a good solution.
How can the document be modified to do NAT from the local network? I
would need the local network to be NATed to the WAN.
How can I set it up so that the
2004 May 09
0
AW: Dual Multipath DSL Script Problem!
Hi,
> iptables v1.2.6a: Unknown arg `--to-source''
> Try `iptables -h'' or ''iptables --help'' for more information.
iptables v1.2.6a is way too old for --to-source. Use at least version
1.2.8. If your distribution doesn''t offer it, just get the newest stable
release from www.netfilter.org.
The other error messages should be verbose enough to
2005 Mar 18
1
Routing using DSL and T1
Hi,
I just got a DSL line and want to make shorewall to route some traffic
over the DSL and some over T1. Can I do it using shorewall?
Thanks,
Wahid Sharif
Systems Administrator
Placemark Investments
Phone: 972-404-8100 x2032
2004 Feb 09
0
Linux Router Two ISP (DSL router & Cable Modem)
Hi,
I am want to setup linux box as router with fallback
routing.
ISP 1 (Cable Modem, Static public IP)
ISP 2 (ADLS Router Dynamic IP SUA NAT on router)
ISP 1 ISP2
| |
| Dyn IP (SUA NAT)
| DLS router
Cable Modem |
(Static IP) | (192.168.1.1
| |
| |
eth1
2011 Apr 02
0
import in Ruby DSL
How does one do an import in the Ruby DSL?
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
2005 Sep 21
1
is there a possible solution to convert intel pro 2200 dsl winmodem to run under CentOS / linux?
greetings
the subject says it all and i asked this back in June and i still have not
found anything or useful direction in my searching... so i need to ask
again. where is big Bryan when you need him? :-)
ummm i am willing to "emulate" if i have to yet i would still just need some
pointers or directions... anything please.
these Intel Pro 2200 DSL modems are just so inexpensive that i
2005 Oct 20
0
German ISDN&DSL Card "AVM Fritz!Card DSL"
Hello everyone!
Has anyone had success in configuring the "Fritz!Card DSL" card, a
combination of an ISDN adapter and a DSL modem from the german AVM GmbH
(http://www.avm.de/) in a dom0 Domain (Xen 2.0.7)?
I had success in compiling the modules from
http://www.avm.de/de/Download/index.php3 and they load fine with
"modprobe fcdsl". But with the Xen dom0 Kernel they seem to