KX Technology
Using kdb+/q or any KX development tools? Discuss with our community of users and experts here!
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Protected Evaluation problem.

Content-Disposition: inline Sample:q) id: 5q) @[show; id; `error] / ok.5q) @[show; id; id:0] / strange!0q) id0Why?Citation from QforMortals books ( https://code.kx.com/trac/wiki/QforMortals/execution_control#Protected-Evaluation  @[fmon;a;exprfail] ...

How to compile parse tree into bytecode?

Letq) f1 : {r:(); do[1000000;r,:($[(m:(1?10)[0]) > 5;m;0])];r} / somefunctionq) p1 : parse "r:(); do[1000000;r,:($[(m:(1?10)[0]) > 5;m;0])];r" /conform to body f1 parse treeq) p1 (";";(:;`r;());(`do;1000000;(,:;`r;($;(>;(:;`m;((?;1;10);0));5);`m;0)))...

Re: [personal kdb+] Re: Variable scoping

A nested function can refer to globals and its own variables & args but not of any surrounding function's locals & args. Consider: q)f:{[x]{[y]x+y}} q)g:f 1 q)g {[y]x+y} g)g 2 'a // fails because global a is undefined q)a:3 q)g 2 5 q does not give yo...

KDB/Q position - NYC

Received: by 10.100.252.17 with SMTP id z17mr80611anh.15.1221071355375; Wed, 10 Sep 2008 11:29:15 -0700 (PDT)Date: Wed, 10 Sep 2008 11:29:15 -0700 (PDT)X-IP: 66.11.211.98User-Agent: G2/1.0X-Google-Token: sKvF7wwAAABVmHw8Ig09ANzfNmXCWUPjX-HTTP-UserAge...

How to save binary data to KDB table

Received: by 10.150.49.11 with SMTP id w11mr34326ybw.16.1221056700150; Wed, 10 Sep 2008 07:25:00 -0700 (PDT)Date: Wed, 10 Sep 2008 07:25:00 -0700 (PDT)X-IP: 148.106.2.6User-Agent: G2/1.0X-Google-Token: KZlheQwAAABwHMd8-K-d2lJvdTWmIEcGX-HTTP-UserAgent...

dbtouch by New Contributor
  • 281 Views
  • 2 replies
  • 0 kudos

Hash function.

Content-Disposition: inline It is possible create hash function from any Q object to long (8 byte integer)?I want like this:q1: (1; 2 3);q2: (1; 2 3);q3: (1j; 2 3);q4: (`a; 2 3);hf [q1;q2] / truehf [q1;q3] / false hf [q1;q4] / false

Recursive functions.

Content-Disposition: inline How to create recursive function without using explicit function naming? Is exist special word like "self" or "this"?

Timeout?

Content-Disposition: inline After some period inactivity (~1 hour) q console write this message and exit: q)going out in 60 seconds'timeoutWhat is it? How to disable timeout?

Q.dsftg example

I am interested in seeing an example of Q.dsftg being used to create asplayed, partitioned table from a large tab-delimited text file.Partitioning needs to be with respect to a symbol column. Thanks.

T10111 by New Contributor
  • 131 Views
  • 0 replies
  • 0 kudos

Complex Column Data

Can you create a table with a column that is a dictionary or a tableas its' type? It says in QforMortals that "there is no restrictionthat the column vectors must be lists of simple type". I couldn'tdeclare the column with a type (e.g. 99h$) but it d...

Language K and money.

I am beginner in K.I want get money over language K. Not now. Long-range outlook.How I may do it?My experience in K and english:) I shall be improving.I pro in other languages - finacial, data bases and other - in thistheme seven years.

victor79 by New Contributor
  • 233 Views
  • 1 replies
  • 0 kudos

Getting started - saving workspaces

Received: by 10.100.197.3 with SMTP id u3mr129991anf.6.1219421899540; Fri, 22 Aug 2008 09:18:19 -0700 (PDT)Date: Fri, 22 Aug 2008 09:18:19 -0700 (PDT)X-IP: 71.59.214.4User-Agent: G2/1.0X-Google-Token: 888w3wwAAAArzVU4gubrPhNVmHyT_5FNX-HTTP-UserAgent:...

Get Data from Web Services

Received: by 10.100.10.15 with SMTP id 15mr89765anj.0.1219353099060; Thu, 21 Aug 2008 14:11:39 -0700 (PDT)Date: Thu, 21 Aug 2008 14:11:39 -0700 (PDT)X-IP: 199.89.64.176User-Agent: G2/1.0X-Google-Token: dH4yqAwAAABI1HQl4x9IdlmJ_zyeSrg7X-HTTP-UserAgent...

redreset by New Contributor
  • 317 Views
  • 2 replies
  • 0 kudos

Question of begginer

Received: by 10.150.49.2 with SMTP id w2mr269426ybw.18.1219199040315; Tue, 19 Aug 2008 19:24:00 -0700 (PDT)Date: Tue, 19 Aug 2008 19:24:00 -0700 (PDT)X-IP: 92.100.95.75User-Agent: G2/1.0X-Google-Token: gQ5d8wwAAAB4gAt3--JHCNEpvU58DeI-X-HTTP-UserAgent...

victor79 by New Contributor
  • 249 Views
  • 1 replies
  • 0 kudos

Question of begginer

Received: by 10.100.231.16 with SMTP id d16mr69404anh.20.1219186650645; Tue, 19 Aug 2008 15:57:30 -0700 (PDT)Date: Tue, 19 Aug 2008 15:57:30 -0700 (PDT)X-IP: 92.100.95.75User-Agent: G2/1.0X-Google-Token: 0iIM3wwAAACvwUgMNHW6igc3nKhcOnSQX-HTTP-UserAge...

victor79 by New Contributor
  • 658 Views
  • 5 replies
  • 0 kudos

How to make GUI application on kbd+?

Received: by 10.90.101.17 with SMTP id y17mr143923agb.0.1219092809085; Mon, 18 Aug 2008 13:53:29 -0700 (PDT)Date: Mon, 18 Aug 2008 13:53:29 -0700 (PDT)X-IP: 92.100.121.244User-Agent: G2/1.0X-Google-Token: fqmk1QwAAAAEkqYaXQR21JKsV-A2kAdXX-HTTP-UserAg...

victor79 by New Contributor
  • 1335 Views
  • 12 replies
  • 0 kudos

.h.HOME

Received: by 10.151.38.11 with SMTP id q11mr9930ybj.13.1218655758466; Wed, 13 Aug 2008 12:29:18 -0700 (PDT)Date: Wed, 13 Aug 2008 12:29:18 -0700 (PDT)X-IP: 206.218.218.57User-Agent: G2/1.0X-Google-Token: ua5ZTwwAAAAOll21Pxkkhm-ID1BNnr0vX-HTTP-UserAge...

Dal_Mon by New Contributor
  • 318 Views
  • 2 replies
  • 0 kudos

partitioned and splayed table

I created a table that is partitioned (by date) and splayed and saved to disk using .Q.dpft . The documentation says the following: "The table cannot be keyed at present". Does this mean you can't add a the grouped attribute (`g#) to one or more of t...

hash and checksum functions

I am attempting to read results from command line output using thefsum executable(fsum is available: http://slavasoft.com/fsum/index.htm)I am unable to read results from the command line back to q, as in thefollowing command:a:system"fsum -sha1 -jnc ...

T10111 by New Contributor
  • 235 Views
  • 1 replies
  • 0 kudos

kdb+ on mac 10.4.11

Received: by 10.151.50.11 with SMTP id c11mr240215ybk.26.1218239105988; Fri, 08 Aug 2008 16:45:05 -0700 (PDT)Date: Fri, 8 Aug 2008 16:45:05 -0700 (PDT)X-IP: 75.22.50.37User-Agent: G2/1.0X-Google-Token: tIzi-AwAAADxxWm-nMyGbXmFOUMYoLHPX-HTTP-UserAgent...

Puritan by New Contributor
  • 235 Views
  • 1 replies
  • 0 kudos

ansi sql

Content-Disposition: inline i remember in the days before Q, kdb was a superset of standard SQL -- has this been abandoned?

effbiae by New Contributor
  • 273 Views
  • 2 replies
  • 0 kudos

Web Function and Data Parsing Question

I am trying to get this q code to workyahoo: {[offset;stocks] tbl:();i:0;zs:(ze:.z.d)-offset; parms:"&d=",(string -1+`mm$ze),"&e=",(string`dd$ze),"&f=",(string`year$ze),"&g=d&a=",(string -1+`mm$zs),"&b=",(string`dd$zs),"&c=",(string`year$zs),"&ignore...

bittorrent

thoughts on implementing a bittorrent client/tracker in k/q?

k_os_tao by New Contributor
  • 216 Views
  • 1 replies
  • 0 kudos

mvcc

Content-Disposition: inlinedoes kdb+ provide transactioning features like mvcc? http://en.wikipedia.org/wiki/Multiversion_concurrency_controlis there any reason why kdb+ couldn't be used for OLTP? (i know it'svery good for OLAP)ta, jack

effbiae by New Contributor
  • 204 Views
  • 1 replies
  • 0 kudos