Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - adarqui

Pages: 1 ... 987 988 [989] 990 991 ... 1504
14821
Progress Journals & Experimental Routines / Re: ADARQ's journal
« on: April 17, 2012, 05:10:52 am »
Spent a few hours debugging, trying to figure out why my bot would zombie, even though I had a SIGALRM hook & alarm() set, also waitpid'n etc.. it was blocking in write(), because it writes to a pipe that was getting full on certain tests.

Cleaned environ when passed to ^guile, was resulting in info leaks, need to protect LD_PRELOAD/LD_LIBRARY_PATH variables.

Added fake environment variable, bot_t { dlist_t *dl_environ; }

Added something to build "argv[]" for my ^alias trigger, for example:


"dns" alias example:
05:03 < n9> ^a(get) dns|^e
05:03 < vkx> ^e|^guile (display (gethost "$$2"))

using it:
05:03 < n9> ^a dns adarq.org
05:03 < vkx> #(adarq.org () 2 4 (3351378795))

$$0-$$9 = argv[0]=argv[9] .. argv[0] = ^a, argv[1] = dns, argv[2] = first argument

Tomorrow I need to make it parse strings properly, instead of just tokenizing everything into words based on spaces.. for eample
:

^a blah one two three four <-- it only works on this
^a blah one "two three" four <-- it doesn't work on this, $$3 would be "two, $$4 would be three".. need to parse it into one arg
v, ie, $$3 = two three

Finally I need to add $$@0-9, ie, $$@0 = every argument.. $$@1 = every argument except the 0th. and so on

im crazy tired today, but got alot done.. 1 week on 5 hours sleep per night, max.

pC

14822
Progress Journals & Experimental Routines / Re: ADARQ's journal
« on: April 16, 2012, 06:59:10 am »

oh one more thing, this is pretty cool.. using the "nop input module", I can turn an irc/live chat session into a guile session.
. ^nop causes the bot to "add stuff" to each line it receives, so normal chat text, can become processed using my triggers..

for example

^nop(ina) \|^e\|^guile <-- this causes guile to append \|^e\|^guile to each line received, then processes it.. so..

typing:

(display 1) turns into (display 1) |^e |^guile, which causes guile to parse (display 1) resulting in 1 being outputted..

here's an example:

04:40 <@z> (display (list "hey"))
04:40 < xdd> (hey)
04:41 <@z> (display (length (list "hey")))
04:41 < xdd> 1
04:41 <@z> (display (%global-site-dir))
04:41 < xdd> /usr/local/share/guile/site
04:43 <@z> (display (remainder 10 4))
04:43 < xdd> 2
04:47 <@z> (number->string (+ 1 2))
04:47 <@z> (display (number->string (+ 1 2)))
04:47 < xdd> 3
05:01 <@z> (procedure-documentation display)
05:01 <@z> (display (procedure-documentation display))
05:01 < xdd> #f
05:01 <@z> (display (procedure-documentation 'display))
05:01 <@z> (display (procedure-documentation sort))
05:01 < xdd> #f
05:02 <@z> (display (random))
05:02 <@z> (display (random 4))
05:02 < xdd> 3
05:02 <@z> (display (random 100000))
05:02 < xdd> 50621
05:02 <@z> (display (random 10000000000000))
05:02 < xdd> 6312491691827
05:02 <@z> (display (random 100000000000000000000000000000000000000000000))
05:02 < xdd> 78306622436512418053130718978773471728041129

pretty cool.. ^nop is real powerful.. ^modfiy will be insanely powerful once i code it.
~

14823
This.. I was actually serious about reading this post....
(while my office blocked youtube...)
so i sent this video to my iphone, hide my self in the toilet to watch this thread.... and...

lol.... :uhhhfacepalm:


BTW, if i am not mistaken.. Adarq re posted in the program review section stating that, BOINvert is actually legit now right?

All this making fun bointard post is messing with people mind...

i never said it was legit, i just said it had more potential now that shawn was on board.. i can't say something is legit or not unless i research it extensively, which i didnt with boingvert.. i havnt been following what happened with boingvert, so no clue how that turned out.. from what i've seen, it seems to be getting some lackluster feedback. please correct me if i'm wrong.

pC

14824
Progress Journals & Experimental Routines / Re: ADARQ's journal
« on: April 16, 2012, 06:44:56 am »
hmm.. so what did I do today.

I modded darqbot to run in a chroot jail, this actually took some work;
- chroot/setre[U,G]id etc
- modify a bunch of paths in darqbot
- chdir twice to clean envs (didn't want to have env variables null, but wanted to wash them a bit)
- mount binded fs's inside the chroot jail, read only, ie:
   mount -B /lib /darqbot/lib
   mount -o remount,ro /darqbot/lib

   had to do that with dev, usr, lib.. copied over etc manually, only a few files

   so this means, darqbot now has a little fs people can play with through whatever mechanism, most likely the ^guile interface (scheme lisp interpreter).. since that scheme code can modify files/do all sorts of stuff, it needs to be jailed for basic protection.

- modify guile source slightly, to get rid of (system*) & (kill), as well as fork/exec etc..
- lisp processing and my pipe processing now goes hand in hang, you can do things like:

  ^e |^guile (display (gethost "aol.com"))) |^caps|^fgcolor(pink)

  so lisp and my stuff can all be processed on the same line..

  next step is to integrated my modules INTO guile, that will be very nice.. then i can do things like:

  ^e |^guile (^fgcolor pink) (gethost "aol.com")

  plus it needs to understand my bot_t structure, so that power/admin users can actually use (system* ..) etc

  etc

- having a slight problem with zombie procs in guile.. reduced 99% of the zombies by redoing my sigchld/sigpipe/sigsegv signal handlers & set up an alarm to kill any guile modules after 5 seconds, but 1 scenario is still causing a problem...




here's an example loop being processed: (dko is the bot)

02:56 < n9> ^e|^guile  (let loop ((n 1)) (if (<= n 10) (begin (display n)(newline) (loop (+ n 1))))) |^multi
02:56 < dko> 1
02:56 < dko> 2
02:56 < dko> 3
02:56 < dko> 4
02:56 < dko> 5
...

without ^multi, it would print on the same line.. beast.

there's all sorts of limits and flood protection mechanisms in place, all of which can be set with the ^var trigger.




tomorrow i need to work on:

- adding arguments to my alias function

  my idea so far is, a very basic argument structure, shell-like:


^alias test ^e $1 | ^rot13 | | hi $3 | yo $2
^a test one two three
 -> xg hi three yo two
etc..


another example, incorporating a lisp func:
^a(add) dns ^e | ^guile (display (gethost "$1")) <-- set the alias
^a dns adarq.org <-- resolve adarq.org

the alias would expand to

^e | ^guile (display (gethost "adarq.org"))




really happy about implementing guile.. darqbot is now 1000000x more powerful.


damn this is my longest post in a while.. i write stuff like this down every day in my code-journal thing, so im going to move it into my actual journal..

;d

14825
Progress Journals & Experimental Routines / Re: ADARQ's journal
« on: April 15, 2012, 05:50:34 am »
darqbot now has an embedded scheme interpreter, stanford lexical parser (for english grammar etc), howie (alice bot, aiml, a.i. basic level crap, need to build a huge brain for it), alias's & stats hooked up to a mongodb, recursive input processing (aliases can call themselves etc)..

beast.

removed exec* from the scheme interpreter, oh and fork.. i think i'll allow everything else.. need to figure out how to run this bot in a jail without the modules being accessable for writing.

spent all night trying to parse a ton of weird movie script files, for input into the alicebot aiml brain.. no luck.. it's able to parse say, 50%, but other 50%, no.. i have a better approach for tomorrow, should work.

going to start blogging my daily exploits in the comp-prog spectrum.


14826
Progress Journals & Experimental Routines / Re: ADARQ's journal
« on: April 10, 2012, 04:57:10 am »
ya apparently it is allergies.. ive developed an allergy to something, dno what, probably chemicals at work..

im taking claritin too nightfly, seems to be helping.

14827
Pics, Videos, & Links / Re: progress pics
« on: April 10, 2012, 04:55:36 am »
nice, also im picturing a come at me bro with that last pic.

14828
Progress Journals & Experimental Routines / Re: ADARQ's journal
« on: April 06, 2012, 08:21:40 am »
<a href="http://www.youtube.com/watch?v=T3pbCM9kTH8" target="_blank">http://www.youtube.com/watch?v=T3pbCM9kTH8</a>

14829
Progress Journals & Experimental Routines / Re: ADARQ's journal
« on: April 06, 2012, 03:13:27 am »
ipv6b.

14830
Progress Journals & Experimental Routines / Re: ADARQ's journal
« on: April 05, 2012, 05:37:13 am »
ahhhhh, the only good thing to happen tonight was finally getting my dad's GUI comp back up, so i could listen to pandora, mostly brahms tonight, beastin.

set up a bridge between debian eth0/wlan0 and a freebsd computer, took a while actually, pci issues, crossover cable issues, wasn't into it.. was dreading doing this for the last week.

darqbot is 11,000 lines.

nice.

ill be happy when it's 100,000 lines of incredibleness.

14831
Pics, Videos, & Links / Re: is my 36.9 standing vert legit ??
« on: April 03, 2012, 01:49:49 pm »
props, nasty PRs still coming.

regardless of if or why it happened, jumping while reaching up for objects will lead to the highest jumps, more often than not. but ya changing the way you jump on the mat, will change the accuracy of your results slightly when comparing to other styles of jumps on the mat.

pC

14832
Program Review / Re: BOINGVERT
« on: April 03, 2012, 01:47:14 pm »
all bodyweight? :<

maybe BV2 will be all weights, a sensible progression.

weird why does this thread say topic is locked..

14833
Boxing / Re: Errric El Terrrible Morrrallees
« on: April 01, 2012, 04:00:57 am »
 i cant believe he lasted 12.. he looks damn good for how old/beaten up he is.. i guess that time off really helped him.. he landed some good stuff on garcia, and damn his chin held up, didnt think it would after some of those shots.

14834
Basketball / 2012 college slam dunk contest - james justice is a freak
« on: March 29, 2012, 11:16:40 pm »
great contest.. man that dude has serious hops.

14835
insane, apparently he was DQ'd ? or no? so fast my computer won't even show the video properly.. keeps gltiching lmao;.

6.08 55 in high school, nutty.. must be on them ldiso holds.

Pages: 1 ... 987 988 [989] 990 991 ... 1504