freenode/#lisp - IRC Chatlog
Search
1:49:32
no-defun-allowed
Because then if you have a name like John Where, you now store John. That sucks.
1:50:31
no-defun-allowed
I think any SQL libraries in CL with a s-expression syntax (or most SQL libraries in any language with some special function) will escape for you though.
1:54:42
aeth
xkcd 327 is old enough (2007-10-10) that if anyone did name a kid that name, then that kid could turning 12 in a few days. https://www.explainxkcd.com/wiki/index.php/Little_Bobby_Tables
1:55:40
aeth
take a few years to develop your software and Bobby Tables could literally be using your forum software
2:01:13
aeth
The article for the comic at [1] recommends to use prepared statements [2]. [1] https://www.explainxkcd.com/wiki/index.php/327:_Exploits_of_a_Mom [2] https://en.wikipedia.org/wiki/Prepared_statement
9:57:51
phoe
I remember that some time ago I was working on some code that split paragraphs of text into chunks that are no more than N characters in length. I don't have that function anymore though.
10:03:13
flip214
phoe: so, basically, (POSITION #\Space string :from-end T :end line-len) and cut off there, rinse and repeat?
10:10:35
flip214
what should happen with multiple spaces at the line-end? continue the next line with spaces?
10:12:11
phoe
flip214: coalesce multiple whitespaces into one, and too-long words should be broken up as-is; if the line width is 80 and a word is 90, then we break that into 80 and let the 10 overflow to the next line.
10:42:41
phoe
Shinmera: I remember that this problem was solved before, maybe two or three years ago, and I was discussing it on #lisp. Does anyone remember it and/or have the code that was posted then?
10:45:27
Shinmera
Ah. I do not remember nor have the code. I have my own version of this primitive line breaking in Trial, and will be working on a Properâ„¢ solution sometime soon.
10:48:40
pjb
What about: (com.informatimago.common-lisp.cesarum.string:string-justify-left "abc de ghi jk lmno pq" 7) #| --> "abc de
10:50:29
p_l
trying to figure if there are any roadblocks in front of me, since well, it's starting to get problematic to just find info about installing Qt4
10:51:53
p_l
I don't have much time, and my volunteering time is pretty much negative now, but maybe some time in future
10:52:31
Shinmera
the qt+libs thing is a tie-in with that in commonqt (which qtools uses by default)
10:57:31
Shinmera
phoe: though you can improve the results drastically by just using something like: https://shinmera.github.io/uax-14/#How%20To instead
11:06:34
Shinmera
still need to do UAX 50 and 29 before I can get to the text layouting engine though
11:09:26
p_l
Shinmera: is there anything I can call out to get a quick test of qtools? Haven't touched GUI coding in years...
11:12:59
Shinmera
yeesh. I think it's just doing a drakma download and zip extract. Nothing too weird there except perphaps cl+ss-- ahh.
11:20:59
p_l
flip214: whatever is in current quicklisp - I literally just grabbed quicklisp.lisp on this machine
12:04:05
thijso
What are the options for Qt on Lisp? I'm currently working with EQL5 (well, the android port EQL5-Android), and just now saw CommonQt mentioned (which I remember trying a long time ago, but didn't manage to really get working). Is that it, or there more avenues?
12:06:01
thijso
As I'm working on an android thing now (and maybe in the future iOS), that would be a requirement. Does CommonQt run on android?
12:06:28
bitmapper
how would i convert a nested list like (1 ((2 3) 4 (5 (6 7 8)))) into (1 ((2 3) (4 (5 (6 (7 8))))))
12:07:09
bitmapper
basically take any sublist that is length > 2 and make it into a list with the next item
12:08:39
thijso
Heh... it's actually not that bad. Or, it wasn't until I thought to update some versions, and ended up in a broken state and unable to build any working apps anymore...
12:10:12
thijso
Actually, I ended up with EQL5-android because that gave me CL on android. The only Qt part I use now is a blank text field where I dump output... ;)
12:15:52
pjb
bitmapper: perhaps you would consider reading Common Lisp: A Gentle Introduction to Symbolic Computation http://www.cs.cmu.edu/~dst/LispBook/ http://www-cgi.cs.cmu.edu/afs/cs.cmu.edu/user/dst/www/LispBook/index.html
12:19:27
pjb
bitmapper: it teaches you how to write a function to convert a nested list like (1 ((2 3) 4 (5 (6 7 8)))) into (1 ((2 3) (4 (5 (6 (7 8)))))).
12:41:41
thijso
Shinmera: yeah, it is, but eventually I'll be using more of Qt to build a (minimal) UI for my app of course. I'm currently still working on underlying libraries that I need for my app to even function...
12:42:44
thijso
I've looked into some examples in ecl that show how to run CL on android, but it looked like it only did it by some byte-compiler stuff, not by actually creating cross-compiled libs and using those
12:43:24
thijso
I'd like to figure out how to do that, though. Just have an NDK shell that loads up a Lisp loop or whatever and runs CL code from cross-compiled libs
12:43:54
thijso
But, as I already have a system that works (or, at least, I *had* one), I'm focussing on that