search for: jkl

Displaying 20 results from an estimated 48 matches for "jkl".

Did you mean: jk
2011 Jan 10
2
Calculating Portfolio Standard deviation
Dear R helpers I have following data stocks <- c("ABC", "DEF", "GHI", "JKL") prices_df <- data.frame(ABC = c(17,24,15,22,16,22,17,22,15,19),                                          DEF = c(22,28,20,20,28,26,29,18,24,21),                                           GHI = c(32,27,32,36,37,37,34,23,25,32),                                           JKL = c(47,60,6...
2005 May 30
4
Very simple traffic shaping script for H.323
...ll go thru my Firewall at Warp 9.9 regardless of other traffic from other users. Assumptions: (1) I don''t care about slowing down other traffic flows. H.323 packets should be serviced first no matter what. (2) Any traffic with source or destination public IP Address "abc.def.ghi.jkl" or private IP Address 192.168.16.4 is to/from from the videoconference device. After all the reading and studying, is it really this simple? Does anyone have ideas on how to test this? How do I watch packets to see which packets go into what PFIFO band? #!/bin/sh VTC1_PRIVATE="192...
2009 Nov 22
5
Removing "+" and "?" signs
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091123/36ef28cf/attachment-0001.pl>
2011 Oct 07
2
Data frame aggregation
Hello, Could anybody help me with this question? Example data frame NAME TICKER SHARES PERFORMANCE John ABC 100 0.05 John ABC 1000 1.5 Alice EFG 20 0.3 Paul HIJ 50 1.0 Paul JKL 60 2.0 Paul MNO 12 3.0 I would like to aggregate this dataframe by NAME, TICKER, and SHARES and to perform a weighted mean. I expect the output to be NAME TICKER SHARES PERFORMANCE John ABC 1000+100 ( (100 * 0.05) + (1000 * 1.5) ) / (1...
2016 Feb 08
2
StringSwitch class
...is caching the length of the string to compare and first checking the length before doing the actual comparison using memcmp. So the two constructs below it should be equivalent: > > int i = StringSwitch<int>("abc").case("de", 1).case("fghi", 2).case("jkl", 3).default(-1); > > and: > > int i; > const char *str = "abc"; > int len = strlen(str); > if(len == 2 && std::memcmp(str, "de", 2) { > i = 1; > } else if(len == 4 && std::memcmp(str, "fghi", 4) { > i = 2; >...
2016 Feb 10
2
StringSwitch class
...Chandrasekhar < anupama.lists at gmail.com> wrote: > The point I was wondering about is, say in the example, say the input > string is "de" > > int i = StringSwitch<int>("de") > .case("de", 1) > .case("fghi", 2) > .case("jkl", 3) > .default(-1); > > will cause the 3 function calls to "Case()" and 1 to "Default()", Even if > the functions were inlined I would perform an if(!Result) check though > Result has been found, however if I were to code the same as: > > int len = str...
2009 Sep 01
2
Is this a bug?
This programme for(T in 1:3){ for(j in 1:(5-1)){ for(k in (j+1):5){ for(l in (j+2):5){ print(paste("1 JKL:", j,k,l,sep=" ")) } } } } Prints out (among other things) [1] "1 JKL: 4 5 6" That is for(l in (j+2):5) sets l to 6 one more than the upper limit. cheers Worik [[alternative HTML version deleted]]
2014 Feb 03
1
[PATCH] hivex: python: value_value no longer generates Unicode strings
...(b, values) +h.node_set_values (B, values) value1 = { "key": "Key3", "t": 3, "value": "GHI" } -h.node_set_value (b, value1) +h.node_set_value (B, value1) value1 = { "key": "Key1", "t": 3, "value": "JKL" } -h.node_set_value (b, value1) +h.node_set_value (B, value1) -val = h.node_get_value (b, "Key1") +val = h.node_get_value (B, "Key1") t_data = h.value_value (val) assert t_data[0] == 3 -assert t_data[1] == "JKL" +assert t_data[1] == b("JKL") -val...
2016 Feb 05
4
StringSwitch class
Hi: I have a question about the llvm StringSwitch class. Why is this more efficient than comparing the hashes of the strings or just using a bunch of if statements. Anupama -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160205/9be0fcc8/attachment.html>
2011 Dec 01
2
Counting the occurences of a charater within a string
I am new to R but am experienced SAS user and I was hoping to get some help on counting the occurrences of a character within a string at a row level. My dataframe, x, is structured as below: Col1 abc/def ghi/jkl/mno I found this code on the board but it counts all occurrences of "/" in the dataframe. chr.pos <- which(unlist(strsplit(x,NULL))=='/') chr.count <- length(chr.pos) chr.count [1] 3 I'd like to append a column, say cnt, that has the count of "/" for each...
2009 Oct 02
3
break up a string into strings with a fixed length
dear all, I have some very long strings and would like to break up each long string into multiple strings with a fixed length, e.g. to break up abcdefghijkl into abc, def, ghi, jkl I tried a couple of commands but was not successful. Any help will be appreciated. Best, Jimmy -- View this message in context: http://www.nabble.com/break-up-a-string-into-strings-with-a-fixed-length-tp25712955p25712955.html Sent from the R help mailing list archive at...
2014 Jan 23
7
[PATCH 0/7] Various fixes for Ceph drives and parsing libvirt XML.
Miscellaneous fixes to: - Handling of Ceph drives now works end-to-end (RHBZ#1026688). - In particular, you can now use rbd:/// URIs in guestfish (and they work). - Parse Ceph & NBD network drives from libvirt XML correctly, so that existing domains with Ceph/NBD drives can be added (eg. using guestfish -d option). - Add more testing of the above.
2014 Jan 15
0
[PATCH 4/4] hivex: python: Get rid of to_string function in test script
...-) diff --git a/python/t/210-setvalue.py b/python/t/210-setvalue.py index 9d93519..2ee7ac5 100644 --- a/python/t/210-setvalue.py +++ b/python/t/210-setvalue.py @@ -47,20 +47,12 @@ h.node_set_value (b, value1) value1 = { "key": "Key1", "t": 3, "value": "JKL" } h.node_set_value (b, value1) -# In Python2, the data is returned as a string. In Python3, it is -# returned as bytes. Provide a function to convert either to a string. -def to_string (data): - if sys.version_info[0] == 2: - return data - else: - return str (data, &q...
2011 Feb 11
2
[Q] auth(default): plain(?, 11.111.206.99): Username contains disallowed character: 0x20
Dear all, A new user with Microsoft Express is trying to use IMAP SSL port 993. However they cannot log in. Its only with them. The logs details the following: Feb 11 18:56:03 logout dovecot: auth(default): plain(?,11.111.206.99): Username contains disallowed character: 0x20 Feb 11 18:58:07 logout dovecot: imap-login: Disconnected (auth failed, 1 attempts): method=PLAIN,
2013 Nov 18
3
Sending a matrix in an email
...nd this matrix using sendmailR. How can I convert this simple matrix to a format which can be used as the body variable in sendmailR? I see how I can create a file attachment using mime_part but I would like to send the matrix in the body of the email. The matrix looks like: ABD DEF GHI JKL MNO TOT [1,] 0.44 0.81 1.67 0.37 0.31 -1.18 All the conversions I have tried end up sending the matrix without the colnames. Thanks. [[alternative HTML version deleted]]
2012 Oct 14
3
Pivot Table "like" structure
...r"), State = structure(c(1L, 1L, 4L, 2L, 5L, 5L, 3L, 6L), .Label = c("A", "C", "K", "O", "S", "T"), class = "factor"), City = structure(c(1L, 8L, 7L, 2L, 3L, 6L, 5L, 4L), .Label = c("BEN", "HRD", "JKL", "KK", "KL", "KMM", "OKC", "TYU"), class = "factor"), Char1 = structure(c(1L, 2L, 1L, 3L, 4L, 2L, 3L, 5L), .Label = c("A", "B", "C", "D", "M"), class = "factor"), Cha...
2019 Jan 17
1
[hivex PATCH] ruby: improve test functions
...node_add_child(root, "B") b = h.node_get_child(root, "B") @@ -42,21 +42,21 @@ class TestSetValue < MiniTest::Unit::TestCase val = h.node_get_value(b, "Key1") hash = h.value_value(val) - assert (hash[:type] == 3) - assert (hash[:value] == "JKL") - assert (hash[:len] == 3) + assert_equal(3, hash[:type]) + assert_equal("JKL", hash[:value]) + assert_equal(3, hash[:len]) val = h.node_get_value(b, "Key2") hash = h.value_value(val) - assert (hash[:type] == 2) - assert (hash[:value] == &quo...
2008 Jun 12
2
Request for added functionality - tracking and blocking attacks
...isted account names. In the sshd_config file one or more lines like this would be placed: BLACKLIST_USER mysql BLACKLIST_ISER root BLACKLIST_USER cups etc. 2. sshd also loads a small number of whitelisted IP addresses, which are allowed to use the BLACKLIST user names: WHITELIST_IP abc.def.ghi.jkl WHITELIST_IP bca.fed.hig.klj/24 etc. 3. If a login attempt is made on a blacklisted account, but not from a whitelisted IP address, it would result in a sshd BLACKLISTED abc.def.ghi.jkl for account_name message to syslog. 4. Additionally, an entry would be placed in an sshd data structure...
2006 Apr 18
9
SQL Syntax Errors
...thusly: Quote.find(params[:id]).quote_items.create(params[:new_quote_item]) and I know that the record is being sent: (from the error page) Parameters: {"commit"=>"Add Item", "new_quote_item"=>{"name"=>"j", "body"=>"jkl;"}, "id"=>"1"} What could I be doing wrong? Thanks, Scott Quiring -- Posted via http://www.ruby-forum.com/.
2003 Jun 02
2
Very slow startup on Win32
...t the ODBC package is included in the Win32 release binary. My next step is to hook up R to our database and compare its performance to SAS's. Some of my colleagues had bad experiences with S some years ago, and are wary of using R for that reason. Thank you for your kind attention. --jkl ----------------------------------------- The information contained in this transmission may contain privileged and confidential information and is intended only for the use of the person(s) named above. If you are not the intended recipient, or an employee or agent responsible for delivering this...