search for: needle

Displaying 20 results from an estimated 171 matches for "needle".

2006 Apr 08
6
Deploy with Capistrano Win32 -> Linux
.../ssh/transport/services.rb:1 21:in `new'' c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.0.8/lib/net/ssh/transport/services.rb:1 21:in `register_services'' c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.0.8/lib/net/ssh/transport/services.rb:1 15:in `call'' c:/ruby/lib/ruby/gems/1.8/gems/needle-1.3.0/lib/needle/lifecycle/singleton.rb:42 :in `call'' c:/ruby/lib/ruby/gems/1.8/gems/needle-1.3.0/lib/needle/lifecycle/singleton.rb:40 :in `synchronize'' c:/ruby/lib/ruby/gems/1.8/gems/needle-1.3.0/lib/needle/lifecycle/singleton.rb:40 :in `call'' c:/ruby/lib/ruby/gems/1.8/g...
2006 Mar 27
2
Capistrano deployment issues under Ubuntu Dapper
...n `require__'': no such file to load -- openssl (LoadError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' from /usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.8/lib/net/ssh/transport/ossl/services.rb:17 from /usr/lib/ruby/gems/1.8/gems/needle-1.3.0/lib/needle/container.rb:354:in `require'' from /usr/lib/ruby/gems/1.8/gems/needle-1.3.0/lib/needle/definition-context.rb:77:in `require'' from /usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.8/lib/net/ssh/transport/services.rb:137:in `register_services''...
2006 May 07
3
Needle + Rails - IoC
Hi, I''m looking for past efforts to integrate Rails and Needle. I am thinking of doing it myself but would be interested in seeing what others have done before. If there are examples of other IoC frameworks being used with Ruby I''d be interested in hearing about them too. I find IoC to be a helpful concept in general and, having glanced at a few...
2005 Dec 22
4
Switchtower problem - `sysread'': bignum too big to convert into `long'' (RangeError)
...:in `get'' from /usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.3/lib/net/ssh/transport/packet-stream.rb:147:in `synchronize'' from /usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.3/lib/net/ssh/transport/packet-stream.rb:147:in `get'' from /usr/lib/ruby/gems/1.8/gems/needle-1.2.1/lib/needle/lifecycle/proxy.rb:60:in `__send__'' from /usr/lib/ruby/gems/1.8/gems/needle-1.2.1/lib/needle/lifecycle/proxy.rb:60:in `method_missing'' from /usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.3/lib/net/ssh/transport/session.rb:245:in `wait_for_message''...
2007 Jan 19
7
Prototype.js: Is there an "in_array"-like function?
Hi i was wondering if there is a quick way to search for a item within an array. Here is my approach for this functionality. It''s an prototype for an Array method called "has": Array.prototype.has = function(needle) { for (var i=0;i<this.length;i++) { if(this[i] == needle){ return true; } } return false; } var someArray = [''jim'', ''marge'', ''timmeh'', ''bob'']; if( someArray.has(''bob'') ) { alert(''found...
2005 Feb 16
1
memmem broken?
We have a bad bug in udev if compiled with klibc. I seems that the needle string can't have a strlen of 1. This test case illustrates it: #include <stdio.h> #include <string.h> int main(int argc, char *argv[], char *envp[]) { char *hay = "a/b"; char *needle = "/"; if (memmem(hay, strlen(hay), needle, strlen(needle)) == NULL) pr...
2006 May 17
3
Capistrano: Skipping require of dynamic string
...uspect Capistrano installation if I run into issues further down. :-) binil$ gem install -r capistrano Attempting remote installation of ''capistrano'' Updating Gem source index for: http://gems.rubyforge.org Install required dependency net-ssh? [Yn] Y Install required dependency needle? [Yn] Y Install required dependency net-sftp? [Yn] Y Successfully installed capistrano-1.1.0 Successfully installed net-ssh-1.0.9 Successfully installed needle-1.3.0 Successfully installed net-sftp-1.1.0 Installing RDoc documentation for net-ssh-1.0.9... lib/net/ssh/transport/ossl/hmac/services....
2009 Apr 18
2
[LLVMdev] [patch] vmkit compiled using gcc
I have tested compiling vmkit using gcc3.4 and gcc4.4 Some vmkit files required that I added some explicit typecasts and #includes in order to compile. I have attached my changes against the vmkit svn trunk rev 69439 Using this patch both versions of gcc managed to compiled vmkit on my machine. Cheers Xerxes -------------- next part -------------- An embedded and charset-unspecified text was
2009 Apr 18
0
[LLVMdev] [patch] vmkit compiled using gcc
Applied thanks! http://lists.cs.uiuc.edu/pipermail/vmkit-commits/2009-April/000815.html Btw, what are the error messages for these? > - char * res = strstr(haystack, needle); > + char * res = (char *)strstr(haystack, needle); > - char* ptr = strrchr(name, '/'); > + char* ptr = (char*)strrchr(name, '/'); Nicolas Xerxes Rånby wrote: > I have tested compiling vmkit using gcc3.4 and gcc4.4 > Some vmkit files required that I added some...
2010 Sep 01
0
[LLVMdev] "Cannot fine DIE"
...rmation that I've emitted into > my module > is correct or even sensible. The only way to test it is to try and > debug it > with gdb, but all that will tell you is that *something* failed - it > won't > tell you where or what. It's not so much like looking for a needle > in a > haystack - more like looking for a particular needle in a needlestack. You can also try running "dwarfdump --verify" on your dsymutil file (not on the dSYM bundle, but on the file inside the bundle). It sometimes gives a bit more information. Also simply using &quot...
2009 Jul 16
1
axis label config mgp
...e used mgp=c(title, label and line), but mgp moves both the x and y titles. The following puts the y axis title way way out to the left. Anyone know how to move just the x axis. X11() conif<-c("Control", "Switched Wires", "Salt", "Conductive Board", "Needle Size", "Needle Depth") par(family="serif", cex=1.2) par(mfrow=c(1,2),lab=c(length(conif),4,4),mar=c(16.1,10.1,4.1,2.1), mgp=c(10,1,0)) boxplotR<-boxplot(R ~ Trt, xlab="Configuration",ylab="Resistance (Ohms)", xaxt='n', cex.axis=1.6,cex.lab=1.6...
2010 Sep 01
2
[LLVMdev] "Cannot fine DIE"
...verify that the DWARF debugging information that I've emitted into my module is correct or even sensible. The only way to test it is to try and debug it with gdb, but all that will tell you is that *something* failed - it won't tell you where or what. It's not so much like looking for a needle in a haystack - more like looking for a particular needle in a needlestack. -- -- Talin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100831/08f76ed0/attachment.html>
2010 Sep 01
2
[LLVMdev] "Cannot fine DIE"
...itted into > > my module > > is correct or even sensible. The only way to test it is to try and > > debug it > > with gdb, but all that will tell you is that *something* failed - it > > won't > > tell you where or what. It's not so much like looking for a needle > > in a > > haystack - more like looking for a particular needle in a needlestack. > > You can also try running "dwarfdump --verify" on your dsymutil file > (not on the dSYM bundle, but on the file inside the bundle). It > sometimes gives a bit more information....
2018 Jan 23
0
Now playing (PHP example)
...aying a now playing title on your station's website. It is not an auto refreshing script so the page would have to be refreshed manually by the visitor when the song changes. Script follows: <?php function getMp3StreamTitle($streamingUrl, $interval, $offset = 0, $headers = true) { $needle = 'StreamTitle='; $ua = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36'; $opts = [ 'http' => [ 'method' => 'GET', 'header' => 'Icy-MetaData: 1', '...
2016 May 12
1
Samba clients to windows AD server - DDNS problem
Hi, Our team has spent several days trying to resolve this and digging through hundreds of documentation pages. There is an overwhelming amount of documentation for building AD servers with samba which makes finding relevant documentation for our situation a case of finding a needle in a haystack (when the needle is made of hay). So I'm hoping the users on this list can help with our problem. This company was a pure windows shop a few years ago, in the intervening time Linux has become a key component running many servers. Until recently we used a custom home-grown tool to...
2019 Oct 11
7
New matrix function
...rs/194708-index-a-small-matrix-in-a-larger-matrix I couldn't find anything. The above function can be seen as a "generalisation" of the "which" function as well as the function described in the following post: https://coolbutuseless.github.io/2018/04/03/finding-a-length-n-needle-in-a-haystack/ Would be possible to add such a function to base R? I am happy to work with someone from the R core team (if you wish) and suggest an implementation in C. Thank you Best regards, Morgan [[alternative HTML version deleted]]
2020 Jun 02
0
[PATCH nbdkit 2/5] vddk: Move reexec code to a new file.
...); + nbdkit_debug ("failure to execvp: %m"); +} + +/* See if prepend is already in LD_LIBRARY_PATH; if not, re-exec. */ +void +reexec_if_needed (const char *prepend) +{ + const char *env = getenv ("LD_LIBRARY_PATH"); + CLEANUP_FREE char *haystack = NULL; + CLEANUP_FREE char *needle = NULL; + + if (reexeced) + return; + if (env && asprintf (&haystack, ":%s:", env) >= 0 && + asprintf (&needle, ":%s:", prepend) >= 0 && + strstr (haystack, needle) != NULL) + return; + + perform_reexec (env, prepend); +}...
2018 Jan 23
2
Now playing (PHP example)
Wow, thank you so much! I completely forgot about the status-json.xsl file... :D 2018-01-23 15:38 GMT+01:00, unosonic <un at aporee.org>: > Danijela Popović: >> Hi all, >> Basically there's my question in the subject. I need a simple example >> of now playing artist, song, and listeners. Can somebody write it down >> for me? > > no time, sorry >
2014 Nov 21
2
Building IceS 0.4
I've been through this once before, and passing the proverbial camel through the eye of the proverbial needle seemed easier. $ ./configure ... configure:20721: checking for pkg-config configure:20739: found /usr/bin/pkg-config configure:20752: result: /usr/bin/pkg-config configure:20768: /usr/bin/pkg-config couldn't find libshout. Try adjusting PKG_CONFIG_PATH. configure:20774: checking for shout-conf...
2019 Oct 11
3
New matrix function
...couldn't find anything. > > > > The above function can be seen as a "generalisation" of the "which" > > function as well as the function described in the following post: > > > > > https://coolbutuseless.github.io/2018/04/03/finding-a-length-n-needle-in-a-haystack/ > > > > Would be possible to add such a function to base R? > > > > I am happy to work with someone from the R core team (if you wish) and > > suggest an implementation in C. > > That seems like it would sometimes be a useful function, and maybe &g...