H4ck3rm1k3's Blog

exploration of free/libre open source software and things

UPS store overcharges you to print from internet — March 27, 2016

UPS store overcharges you to print from internet

Yesterday at around 4pm, we went to the UPS Store at 957 NJ-33 #12, Trenton, NJ 08690 to print a few pages and notarize them. The refused to type in a url to print for us and gave us no other option except to email them or use the computer at a minimum charge of $2.50. After we got home I found out I can print 6 pages for $0.12 via HP eprint and have it printed at the UPS store,  http://compass.ups.com/print-from-your-mobile-device-at-the-ups-store/ They did not offer me this or tell me about it. I feel ripped off.


Sparql Queries against the gcc tree graphs —

Sparql Queries against the gcc tree graphs

Here is one of the first nice looking outputs of my work on the gcc introspector in a long time. I am using the semantic web stack to processs gcc compiler graphs. My new take on this is to parse the tree dump outputs of the compiler as it’s own language using a python lex/yacc. Then I convert the tree graphs into RDF graphs and load them into a sparql database server and visualize them using d3/sparql.

The d3forcegraph graph looks like this :


Source of graph https://gist.github.com/h4ck3rm1k3/f8ca2cb3b9643e83200b

This query collects the edges of OP0,..OP3 args and it shows how there is a great graph of interconnections in the code.

SELECT ?on ?bn WHERE {
bind(replace(str(?o),’http://introspector.xyz/projects/bash/build/eval.c.001t.tu#’,”) as ?on)
bind(replace(str(?b),’http://introspector.xyz/projects/bash/build/eval.c.001t.tu#’,”) as ?bn){
?o <http://introspector.xyz/gcc/field_types.owl#OP0&gt; ?b.
}union {
?o <http://introspector.xyz/gcc/field_types.owl#OP1&gt; ?b.
}union {
?o <http://introspector.xyz/gcc/field_types.owl#OP2&gt; ?b.
}union {
?o <http://introspector.xyz/gcc/field_types.owl#OP3&gt; ?b.

I have a patched version of the d3 sparql system :

It is talking to the blazegraph server:

That has this graph loaded (rdf) :

That was produced by my python code parsing the tu files:

Reading the compiler graph data from bash, collected here

bambam mods for kids — March 20, 2016

bambam mods for kids

Bambam is a great game for kids  but it only contains a few pictures


my son likes a particular tv show, and I found a way to download images from those characters into bambam.

here are the steps,

  1. get the images with the wikiteam tool https://github.com/WikiTeam/wikiteam

    ./dumpgenerator.py –images http://paw-patrol.wikia.com/wiki/PAW_Patrol_Wiki

  2. convert them into gif

    for file in *; do convert $file “$file.gif”; done

  3. resize them (or buy lots of ram), because bambam loads them all

    mogrify -resize 256×256 *.gif

  4. move them to the data directory of bambam
  5. run!
Yahoo, why cannot I post a question — March 14, 2016

Yahoo, why cannot I post a question

Dear yahoo,

you used to be great. I used to use you all the time, now you are a source of spam. I am working on removing thousands of spam posts on a wiki originating from your system.

I cannot even write a question to you on your own system because it says :

Screenshot-Yahoo Products | Yahoo Answers1

Here is the text I wrote :

How can I quickly determine if a given yahoo account is valid and not a spammer?

I am working on removing spam from a wiki, we have thousands of yahoo accounts that might be spam. I am trying to send them test mails but getting blocked by the mail system. Is there any api to quickly check if a given account is active and in good standing?

It really makes me frustrated that companies try so hard to block people from writing to them.