search for: short_name

Displaying 20 results from an estimated 68 matches for "short_name".

2002 Nov 14
0
WIN 3.1 App crashes.. Unhandled Exception
...lib/wine/drivec,L"Program Files\\Atwin\\Atwin.exe" 0820ac28:trace:dosfs:DOSFS_ToDosFCBFormat (L"Program Files\\Atwin\\Atwin.exe", 0x410d1e70) 0820ac28:trace:dosfs:DOSFS_OpenDir "/var/lib/wine/drivec" 0820ac28:trace:dosfs:DOSFS_ReadDir Read: long_name: L".", short_name: (null) 0820ac28:trace:dosfs:DOSFS_ReadDir Read: long_name: L"..", short_name: (null) 0820ac28:trace:dosfs:DOSFS_ReadDir Read: long_name: L"Program Files", short_name: (null) 0820ac28:trace:dosfs:DOSFS_FindUnixName (/var/lib/wine/drivec,L"Program Files\\Atwin\\Atwin.exe&q...
2006 Jul 05
5
Help with migrations and create
After creating a table in a create table migration, I''m then attempting to populate a couple of rows of data in the table using the create method. The first row gets inserted into the database, but any further calls generate a select against the database, but no insert. Am I doing something wrong, or is it inappropriate to create more than a single row of data in a table using
2006 Jul 23
4
Anything like with_scope for ActionController?
...are operated on by the actions. I currently have this working with routes, however I need to tack on an extra parameter to all the url generating functions (url_for, form_start_tag, named_route_url...) to get the mapping to pick up the custom URL parameter. Having to remember to append :short_name=>@my_object.short_name (with or without to_param magic), is getting annoying and the repetition is getting ugly. Is there anything like ActiveRecord''s with_scope function to "bind" this extra parameter once and make ActionController smart about propagating the extra par...
2014 Feb 06
0
Array Confusion
...ht as to how to reach into this array of hashes (that's what I can see) to get the location lat and lon? res = Geocoder.search(addy1) This is the res: [#<Geocoder::Result::Google:0x007fb46c345e18 @data={"address_components"=>[{"long_name"=>"1600", "short_name"=>"1600", "types"=>["street_number"]}, {"long_name"=>"Amphitheatre Parkway", "short_name"=>"Amphitheatre Pkwy", "types"=>["route"]}, {"long_name"=>"Mountain View", &q...
2006 Jan 19
5
script.aculos.us and the in_place_editor
Hi there, I''ve been trying incorporate the in_place_editor, but have had no luck so far. I read the Ajax.In Place editor wiki on script.aculos.us which was informing, but still left me wondering about a few things. Here''s what I''m trying to do. A user has a profile page which lists their name, age, homepage, etc... There is no form on this page... it''s just
2020 Mar 23
0
[PATCH nbdkit 2/3] server: Inject API functions for Windows
...,9 @@ main (int argc, char *argv[]) perror ("expecting stdin/stdout to be opened"); exit (EXIT_FAILURE); } +#ifdef WINDOWS_COMPAT + init_functions (); +#endif #if !ENABLE_LIBFUZZER threadlocal_init (); @@ -772,6 +819,7 @@ open_plugin_so (size_t i, const char *name, int short_name) bool free_filename = false; void *dl; struct nbdkit_plugin *(*plugin_init) (void); + void *(*functions_init) (struct nbdkit_functions *); char *error; if (short_name) { @@ -797,6 +845,18 @@ open_plugin_so (size_t i, const char *name, int short_name) /* Initialize the plugin....
2018 Jan 17
0
[PATCH 7/9] Implement filters.
...ct backend *next, size_t index, const char *filename, void *dl, struct nbdkit_filter *(*filter_init) (void)); /* locks.c */ extern void lock_connection (void); diff --git a/src/main.c b/src/main.c index 4790c46..38691c9 100644 --- a/src/main.c +++ b/src/main.c @@ -64,7 +64,8 @@ static int is_short_name (const char *); static char *make_random_fifo (void); -static struct backend *open_plugin_so (const char *filename, int short_name); +static struct backend *open_plugin_so (size_t i, const char *filename, int short_name); +static struct backend *open_filter_so (struct backend *next, size_t i, cons...
2006 Mar 07
13
Active Record - Can''t figure out relationship.
I have the following two tables: create table teams ( id int not null auto_increment, short_name varchar(12) not null, long_name varchar(50) not null, logo varchar(20) not null, primary key (id) ); create table rounds ( id int not null auto_increment, home_team_id int not null, away_team_id int not null,...
2006 Jun 04
0
A little confused about routes....
...outes and the _url helpers work. I''ve read through the AWDWR book (1st edition and current 2nd edition beta book) and I''m still not clear on what''s happening. I''ve been working with variations of the following route: map.competition ''competitions/:short_name/:controller/:action'', :action=>''show'', :requirements=>{:short_name => /([A-Z0-9][-A-Za-z0-9+ ]*)/} (One side question, is there a good way to avoid having to allow both ''+'' and '' '', in the route r...
2006 Jul 02
7
How can I intercept attribute calls?
Hi. I have two types of fields in my database, e.g. "name" and "name_ru". First one is a user''s name in english and the second one is in russian. I want to intercept calls like "c.name" and add "_ru" to it if current language is russian (I have my own Locale class like n Globalize). So I want such thing: -- Locale.set("en-US") c.name
2007 Nov 16
1
3.0.27a out monday.
Just spoke to Jerry, we'll be doing a 3.0.27a on Monday to fix a regression that broke smbfs mounts from Linux. Sorry for the problem. Jeremy.
2019 Nov 04
3
[PATCH nbdkit v2 0/2] Implement fuzzing using Clang's libFuzzer.
v1 was here: https://www.redhat.com/archives/libguestfs/2019-November/msg00003.html This version depends on: https://www.redhat.com/archives/libguestfs/2019-November/msg00004.html and this series: https://www.redhat.com/archives/libguestfs/2019-November/msg00009.html The delta has been reduced slightly because of changes made possible by cleaning up and fixing the quit path in nbdkit. It's
2019 Nov 02
2
[PATCH nbdkit 0/2] Implement fuzzing using Clang's libFuzzer.
libFuzzer is Clang's fuzzer, and alternative to using AFL: https://llvm.org/docs/LibFuzzer.html I implemented an alternative method of fuzzing for libnbd earlier today and it's pretty simple: https://github.com/libguestfs/libnbd/commit/c19a6fbae9a21a7d4693418706c59e81ed256875 However it's considerably more difficult to use libFuzzer with non-library code -- in this case nbdkit.
2019 Sep 01
11
[nbdkit PATCH 00/10] Avoid -Wshadow
While working on can_FOO caching, at one point I got confused by whether 'readonly' meant the global set by -r or a local passed to .open(). A quick attempt to compile with -Wshadow found several other confusing points; this series gets us to the point that we can add -Wshadow to builds with --enable-gcc-warnings. Eric Blake (10): server: Avoid -Wshadow warnings guestfs: Avoid
2012 Aug 23
1
[LLVMdev] Error: "Recursive compilation" when run lli
...Class { private: int fTotal; public: TestClass(); ~TestClass(); };///////////test.cpp/////////////////////////////////////////////////////////////////////////////#include "test.h" TestClass::TestClass() { fTotal = 2; } TestClass::~TestClass() { fTotal = 3; } int main() { TestClass short_name; return 0; } and I run: clang++ -c test.cpp -emit-llvm -o test.bc and lli test.bc, I get follow error: assert(!isAlreadyCodeGenerating && "Error: Recursive compilation detected!"); How can I fix it? Thank you. p.s I try on llvm 2.9/3.0/3.1 and they all get that error, by the...
2000 Dec 30
1
selecting driver for ao
...er than just asking them to enter the name of the driver. Here's the code I added to audio_out.c: const char * ao_get_driver_name(int idx) { int i = 0; driver_tree_t * driver = driver_head; while (driver) { if (idx == i) return driver->functions->get_driver_info()->short_name; ++i; driver = driver->next; } return NULL; } int ao_get_driver_count(void) { int i = 0; driver_tree_t * driver = driver_head; while (driver) { ++i; driver = driver->next; } return i; } Sorry if the API style is not right. I'm used to C++ and Qt. All...
2020 Aug 20
0
[PATCH nbdkit 12/13] wrapper: Port the wrapper to run on Windows.
..."'nbdkit /path/to/plugin.so --dump-plugin'\n", + "'nbdkit /path/to/plugin." SOEXT " --dump-plugin'\n", program_name); exit (EXIT_FAILURE); } @@ -819,7 +819,7 @@ open_plugin_so (size_t i, const char *name, int short_name) if (short_name) { /* Short names are rewritten relative to the plugindir. */ if (asprintf (&filename, - "%s/nbdkit-%s-plugin.so", plugindir, name) == -1) { + "%s/nbdkit-%s-plugin." SOEXT, plugindir, name) == -1) { perror...
2018 Jan 19
0
[PATCH nbdkit filters-v2 2/5] Introduce filters.
...end *next, size_t index, const char *filename, void *dl, struct nbdkit_filter *(*filter_init) (void)); /* locks.c */ extern void lock_init_thread_model (void); diff --git a/src/main.c b/src/main.c index 90d464a..29332c4 100644 --- a/src/main.c +++ b/src/main.c @@ -64,7 +64,8 @@ static int is_short_name (const char *); static char *make_random_fifo (void); -static struct backend *open_plugin_so (const char *filename, int short_name); +static struct backend *open_plugin_so (size_t i, const char *filename, int short_name); +static struct backend *open_filter_so (struct backend *next, size_t i, cons...
2018 Jan 19
0
[PATCH nbdkit filters-v3 3/7] Introduce filters.
...end *next, size_t index, const char *filename, void *dl, struct nbdkit_filter *(*filter_init) (void)); /* locks.c */ extern void lock_init_thread_model (void); diff --git a/src/main.c b/src/main.c index 90d464a..29332c4 100644 --- a/src/main.c +++ b/src/main.c @@ -64,7 +64,8 @@ static int is_short_name (const char *); static char *make_random_fifo (void); -static struct backend *open_plugin_so (const char *filename, int short_name); +static struct backend *open_plugin_so (size_t i, const char *filename, int short_name); +static struct backend *open_filter_so (struct backend *next, size_t i, cons...
2006 Apr 26
2
Retrieving :id without passing it
Ok, I have read most of Agile Web Dev... so I had a question about beautifying URLs using routes.rb. I''m trying to architect a content management system in which a user can create template pages. This way, when a user creates a template page nested within, it displays it as though it''s displaying a folder structure, much like a directory tree (using acts_as_tree). I have a