search for: trickery

Displaying 20 results from an estimated 297 matches for "trickery".

2005 Jul 05
1
--backup trickery
...le the running process is using the file in the backup directory). Of course any new process using the 1/2-rsynced copy in the original location may die, but it's the already-running ones I'm far more concerned with. Some of our processes will run for weeks. In addition to this bit of trickery, after the rsync is complete, I delete the backup directory. Again, as most of you are likely aware, a deleted-but-still-open file in unix isn't really deleted until it is closed. Therefore, even though I delete the backup directory, the file still exists as far as any processes who have...
2011 Nov 02
3
[LLVMdev] [PATCH] LLVM 3.0 broken in lib/Support/Windows/DynamicLibrary.inc
I don't know since when, but this file has been changed to remove all the trickery (aka defines) needed for MinGW-w64 (and probably everything else that as forgotten) to succesfully compile it. Attached is a patch that reintroduces the compiler checking. I would like to see this in LLVM 3.0, otherwise (by the looks of the reintroduced code) anything newer than _MSC_VER_1500 will...
2011 Jan 31
1
[LLVMdev] Possible CellSPU Bug?
...unnoticed as there is only one type of vector register class (i.e. > VECREG) that is used for all vectors. > > Nice catch :) Are there more of these? I don't know. I stopped implementing the stricter typechecking when I saw this. I wanted to make sure there wasn't some official trickery going on. :) -Dave
2006 Feb 17
2
Last Resort Route...
...rwise. So basically, the idea I want is to have something like: map.connect "*", :controller => "page", :action => "redirect" and call it good. I''ve tried overriding a couple of methods, but there has to be a way to set this up. (none of my overriding trickery worked) My main problem is that I''ll have urls that will go any number of "/"''s deep, so its hard to configure/type all these in obviously. Any help is appreciated! -Nick
2015 Mar 21
3
[PATCH 1/1] Add virtio-input driver.
.... > > Please run checkpatch.pl > > > > > + if (cfg & (1 << (bit % 8))) > > > + set_bit(bit, bits); > > > > what if not set? does something clear the mask? > > kzalloc? So you are really just reading in array of bytes? All this set bit trickery is just to convert things from LE? > > > + } > > > > doesn't above just implement bitmap_copy or bitmap_or? > > Not fully sure how bitmaps are defined. virtio has a stream of bytes, > first byte carries bits 0-7, second 8-15 etc. linux kernel bitmaps ops >...
2015 Mar 21
3
[PATCH 1/1] Add virtio-input driver.
.... > > Please run checkpatch.pl > > > > > + if (cfg & (1 << (bit % 8))) > > > + set_bit(bit, bits); > > > > what if not set? does something clear the mask? > > kzalloc? So you are really just reading in array of bytes? All this set bit trickery is just to convert things from LE? > > > + } > > > > doesn't above just implement bitmap_copy or bitmap_or? > > Not fully sure how bitmaps are defined. virtio has a stream of bytes, > first byte carries bits 0-7, second 8-15 etc. linux kernel bitmaps ops >...
2018 Nov 07
2
Re: guestfs_launch() fails when C application is started as a systemd service
> That makes no sense because we are supposed to have just forked successfully I just realized libguestfs uses fork. Now we know why qemu-img worked - I launched it with popen. > So it must be something to do with collectd and how it runs programs. > Is it using LD_PRELOAD trickery, or replacing libc, or using seccomp? If I understand the question correctly - it's about how collectd loads its plugins? If so it uses: static int plugin_load_file(const char *file, _Bool global) { void (*reg_handle)(void); int flags = RTLD_NOW; if (global) flags |= RTLD_GLOBAL...
2018 May 30
2
[PATCH] virtio_pci: support enabling VFs
...VER_OK)) >> + return -EBUSY; >> + >> + if (!__virtio_test_bit(vdev, VIRTIO_F_SR_IOV)) >> + return -EINVAL; >> + >> + sriov_configure = pci_sriov_configure_simple; >> + if (sriov_configure == NULL) >> + return -ENOENT; > > BTW what is all this trickery in aid of? When SR-IOV support is not compiled into the kernel, pci_sriov_configure_simple is #defined as NULL. This allows it to compile in that case, even though there is utterly no way for it to be called in that case. It is an alternative to #ifs in the code. -- Mark Rustad, Networking...
2018 May 30
2
[PATCH] virtio_pci: support enabling VFs
...VER_OK)) >> + return -EBUSY; >> + >> + if (!__virtio_test_bit(vdev, VIRTIO_F_SR_IOV)) >> + return -EINVAL; >> + >> + sriov_configure = pci_sriov_configure_simple; >> + if (sriov_configure == NULL) >> + return -ENOENT; > > BTW what is all this trickery in aid of? When SR-IOV support is not compiled into the kernel, pci_sriov_configure_simple is #defined as NULL. This allows it to compile in that case, even though there is utterly no way for it to be called in that case. It is an alternative to #ifs in the code. -- Mark Rustad, Networking...
2013 Nov 13
3
syslinux.efi pxeboot across multiple subnets
>I played around with the udp4_cb function and it looked like it was coming back with token->Status == 512, which (if I read the spec right) isn't a valid value. I'm not sure what is coming through on that. I changed the if to if (token->Event) { cb_status = 0; } Looks like the same thing with tcp.c. After I changed that callback, everything went through and I go into the OS
2007 Jul 27
6
puppet-0.23.1 rpm''s
Hi, I''ve just built rpm''s for puppet-0.23.1 - since there were a few people who had trouble with the update for 0.23.0 (the change in config files requires a bit of rpm trickery), I decided to be a little more cautious in how I push the new packages. So far, new packages are (or, will be shortly) available in rawhide, Fedora 7 updates-testing, and in my yum repos for RHEL4/RHEL5 [1] Please give them a spin, especially when updating from older versions of puppet - in my t...
2016 Dec 31
2
Adobereader on Centos7 crashes
...view the full contents of this document, you need a later version of the PDF viewer. You can upgrade to the latest version of Adobe Reader from www.adobe.com/products/acrobat/readstep2.html I spent a lot of time trying to solve this with other pdf viewers, including google-chrome and Foxit, and trickery with ps2pdf and Pdfedit. Nothing works. I installed Adobereader following this: https://www.if-not-true-then-false.com/2010/install-adobe-acrobat-pdf-reader-on-fedora-centos-red-hat-rhel/ The signing of these forms is vital to my organization, so any help would be appreciated. Greetings, J.
2006 Apr 23
3
ANN: Polygons library + sweet demo
...aling with points and polygons, called Polygons. It really just implements some textbook algorithms w/ Prototype-style JavaScript classes. Check it out here: http://polygons.mdaines.com/ The demo on that page (Firefox/Safari only right now) uses the point- in-polygon function and a little trickery (nothing too involved, though) to make dragging non-rectangular objects way more natural. In the application I''m working on, I combine that with the rotation functions. I don''t plan to include anything for drawing, but hey, look at this: http://brevity.org/code/google/d...
2006 Jul 18
5
Right-click popup menu?
Hi, I have a partial frame on the side of a page which shows the current users logged in (as text). Now, I would like to be able to right-click on each user''s name, and get a menu containing links such as "View Profile", "Send Message", etc. These links could open in a new window. Is this possible? Any help would be greatly appreciated. Thanks, Aditya Rajgarhia
2007 Apr 05
3
Extending assigns in controller specs?
Hello, I am interested in enhancing assigns in controller specs to do things like the following assigns[:key1, :key2, :key3] #=> vals for keys Is there away to "break open" this construction to overload the :[] operator? Thanks. -Chris
2007 Nov 27
2
[LLVMdev] [Caml-list] Ocaml(opt) & llvm
.... load $sp <- 0(caml_exception_pointer) ; The stack now contains: ; ... rest of stack ... ; return address ; old caml_exception_pointer ; Restore caml_exception_pointer. pop 0(caml_exception_pointer) ; Jump straight to the nearest landing pad. ret The try-with expression is where the trickery lies. The expression try body with pattern1 -> catch1 | patternN -> catchN is compiled to: ; 'Call' a label within the function. call try_block ; This is the landing pad. The exception is in the return register. ; Try to match a handler. $r2 = $1 matches pattern1 branch to handle...
2011 Nov 02
0
[LLVMdev] [llvm-commits] [PATCH] LLVM 3.0 broken in lib/Support/Windows/DynamicLibrary.inc
Hi Ruben, > I don't know since when, but this file has been changed to remove all the > trickery (aka defines) needed for MinGW-w64 (and probably everything else > that as forgotten) to succesfully compile it. Will you please check which commit introduces the breakage? Thanks! -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
2006 Jan 17
3
DHTML Drop Menu Helpers with Rails?
Does RoR ship with, or have any add-in helpers used to construct a "drop menu" typically done with DHTML trickery and some libraries? I am referring to menus like the "File Edit View ... Help" menus with cascading drop-down navigation that you find at the top of most GUI applications. Allen
2000 Apr 11
2
LDFLAGS of the Makefile
I have compiled and installed OpenSSH 1.2.3 under AIX 4.3.3. The call to configure was: CFLAGS="-I/client/include -L/usr/ruf/lib" \ ./configure --with-egd-pool=/dev/urandom \ --with-afs=/usr/afsws \ --with-kerberos4=/client \ --with-tcp-wrappers \ --with-pid-dir=/etc \ --sysconfdir=/etc \ --with-ipv4-default \
2004 Apr 01
1
One samba, two interfaces
...nterfaces for different NETBIOS names specific to that interface? I have a samba listening to eth0 and eth1, which are two interfaces on the same network. Even when I use smbclient to the ip address of eth1, smb.conf's %h gives me the eth0 hostname, so it doesn't seem I can do any include trickery to make this work. Is it even possible? ~ Daniel ----------------------------------------------------------------------- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No ad...