Denotational semantics tutorials. It s the new monad tutorials!
apt-get install kcachegrind valgrind
valgrind --tool=callgrind programname
kcachegrind callgrind.out.nnnnn
You can see in what functions the program spent its time, for every function in
the program how much time it spent in every of the called functions and all
other sort of cool analysis. And it's graphical, interactive, useful, cool.
It helps to compile without libtool (otherwise you're valgrinding a shellscript
unless you do something like valgrind --tool=callgrind .libs/lt-programname.
It also helps to compile with debugging symbols.
Consider the set equation S = … S …, in which the set S is alone on the left-hand side and occurs at least once on the right-hand side. This equation is a recursive definition of the smallest set S satisfying this equation, and a corecursive definition of the largest set S satisfying this equation.Thus, a definition like
data IntList = Nil Cons Int IntListThis can be read as a set equation as follows:
E
ڿ
ᛯ ℇ ✈
ㄝ ಅ ΐ ʐ 𝍇
Щ অ ℻ ⌬ ⌨ ⌣
₰ ⠝ ‱ ‽ ח ֆ ∜
⨀ IJ
Ⴊ ⇠ ਐ ῼ இ ╁ ଠ
୭ ⅙ ㈣
⧒ ₔ ⅷ ﭗ ゛ 〃 ・
ↂ ﻩ ✞ ℼ ⌧
LATIN CAPITAL LETTER E
THAT DAMN UNICODE BOX WITH F'S IN, ARABIC LETTER TCHEH WITH DOT ABOVE
RUNIC TVIMADUR SYMBOL, EULER CONSTANT, AIRPLANE
BOPOMOFO LETTER EH, KANNADA LETTER A, GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS, LATIN SMALL LETTER Z WITH RETROFLEX HOOK, TETRAGRAM FOR DEPARTURE
CYRILLIC CAPITAL LETTER SHCHA, BENGALI LETTER A, FACSIMILE SIGN, BENZENE RING, KEYBOARD, SMILE
GERMAN PENNY SYMBOL, BRAILLE PATTERN DOTS-1345 (or GLIDER), PER TEN THOUSAND SIGN, INTERROBANG, HEBREW LETTER HET, ARMENIAN SMALL LETTER FEH, FOURTH ROOT, N-ARY CIRCLED DOT OPERATOR, LATIN CAPITAL LIGATURE IJ
GEORGIAN CAPITAL LETTER LAS, LEFTWARDS DASHED ARROW, GURMUKHI LETTER AI, GREEK CAPITAL LETTER OMEGA WITH PROSGEGRAMMENI, TAMIL LETTER I, BOX DRAWINGS DOWN HEAVY AND UP HORIZONTAL LIGHT, ORIYA LETTER TTHA, ORIYA DIGIT SEVEN (or INVERTED DEBIAN LOGO), VULGAR FRACTION ONE SIXTH, PARENTHESIZED IDEOGRAPH FOUR
BOWTIE WITH RIGHT HALF BLACK, LATIN SUBSCRIPT SMALL LETTER SCHWA, SMALL ROMAN NUMERAL EIGHT, ARABIC LETTER PEH FINAL FORM, KATAKANA-HIRAGANA VOICED SOUND MARK, DITTO MARK, KATAKANA MIDDLE DOT, ROMAN NUMERAL TEN THOUSAND, ARABIC LETTER HEH ISOLATED FORM, SHADOWED WHITE LATIN CROSS, DOUBLE-STRUCK SMALL PI, X IN A RECTANGLE BOX
Package: libept-dev
Description: High-level library for managing Debian package information
The library defines a very minimal framework in which many sources of data
about Debian packages can be implemented and queried together.
.
The library includes four data sources:
.
* APT: access the APT database
* Debtags: access the Debtags tag information
* Popcon: access Popcon package scores
* TextSearch: fast Xapian-based full text search on package description
.
This is the development library.
Package: ept-cache
Description: Commandline tool to search the package archive
ept-cache is a simple commandline interface to the functions of libept.
.
It can currently search and display data from four sources:
.
* The APT database
* The Debtags tag information
* Popcon package scores
* A fast Xapian-based full text index on package descriptions
Yes, this finally brings lots of very cool data sources about packages
together.
Try this one:
# Check if all data providers are active and give instructions on how
# to activate those that aren't
ept-cache info
# Follow the instructions to activate everything
# Show all GUI image editors, sorted by popularity, in reverse order
ept-cache search image editor -t gui -s p-
If you have the Xapian data provider enabled, the
results of a search are given in relevance order, the most relevant first.
And also, searches are done with proper stemming, so if you look for image
editor it will also find image editing, although it would score image
editor higher.
It's also quite lovely to work with it in C++. I'll improvise here a few
examples:
Print name and short description of every package
#include <ept/apt/apt.h>
#include <ept/apt/packagerecord.h>
using namsepace std;
using namespace ept::apt;
void playWithApt()
// Apt data source
Apt apt;
// Parser of package records
PackageRecord rec;
// Iterate all package records
for (Apt::record_iterator i = apt.recordBegin();
i != apt.recordEnd(); ++i)
rec.scan(*i);
cout << rec.pakcage() << " - " << rec.shortDescription() << endl;
Show all image editors
#include <ept/debtags/debtags.h>
#include <set>
using namespace ept::debtags;
void playWithDebtags()
// Apt data source
Apt apt;
// Parser of package records
PackageRecord rec;
// Debtags data source
Debtags debtags;
if (!debtags.hasData())
return;
set<Tag> tags;
tags.insert(debtags.vocabulary().tagByName("works-with::image:raster"));
tags.insert(debtags.vocabulary().tagByName("use::editing"));
tags.insert(debtags.vocabulary().tagByName("role::program"));
set<string> results = debtags.getItemsHavingTags(tags);
for (set<string>::const_iterator i = results.begin();
i != results.end(); ++i)
rec.scan(apt.rawRecord(*i));
cout << rec.pakcage() << " - " << rec.shortDescription() << endl;
Print all package names, sorted by popularity
#include <ept/popcon/popcon.h>
#include <algorithm>
using namespace ept::popcon;
// STL comparator
struct PopconCompare
Popcon& popcon;
bool operator<(const std::string& pkg1, const std::string& pkg2) const
return popcon[pkg1] < popocon[pkg2];
;
void playWithPopcon()
// Apt data source
Apt apt;
// Popcon data source
Popcon popcon;
vector<string> sorted;
if (!popcon.hasData())
return;
// Get all package names in the vector
copy(apt.begin(), apt.end(), back_inserter(sorted));
// Sort it by popularity
sort(sorted.begin(), sorted.end(), PopconCompare(popcon));
// Print it out
for (vector<string>::const_iterator i = sorted.begin();
i != sorted.end(); ++i)
cout << *i << endl;
Search for image viewer, but we don't want to view kernel images
#include <xapian.h>
using namespace ept::textsearch;
void playWithXapian()
TextSearch textsearch;
vector<string> wanted;
vector<string> notwanted;
Xapian::Enquire enq(textsearch.db());
// This will tokenise the search query into terms, stem them
// and OR them together in a query. Xapian will score higher
// those results in which more ORed terms match, which is what
// we want.
Xapian::Query want = textSearch.makeOrQuery("image viewer");
Xapian::Query dontWant = textSearch.makeOrQuery("linux kernel");
enq.set_query(Xapian::Query(Xapian::Query::OP_AND_NOT, want, dontWant));
// Print the top 20 results, with their relevance percentage
Xapian::MSet matches = enq.get_mset(0, 20);
for (Xapian::MSetIterator i = matches.begin(); i != matches.end(); ++i)
// The get_data() of a document is the package name
cout << i.get_document().get_data() << " ("
<< i.get_percent() << "%)" << endl;
Blue DistinctionSM is the Blue Cross and Blue Shield companies’ nationwide program that will create an unprecedented level of transparency with two goals: engaging consumers to enable more informed healthcare decisions and collaborating with providers to improve quality outcomes and affordability.The contrast of my service before and after having the Public Relations director contact me speaks volumes to the actual nature of Blue Distinction as it pertains to BCBS of NJ. For most of my interactions with Blue Cross Blue Shield, I encountered an unprecedented level of opaqueness and frustration until there was intervention from high-above. I actually appreciated the service I received and saw it as a laudable move. Unfortunately, the outcome has been far from my liking. I recently got word they are not paying up for any of the dermatological services. So perhaps the fact that a PR person contacted me was significant because in the end, it has panned out as a typical PR move: all gloss and lacking substance. What now? I am moving to an internal BCBS appeal process and if that does not work, I will move on to small claims court in NYC and perhaps a more organized web campaign. In the mean time I have basically have decided to blog about the process so look out for future updates!
"They are violating Google's Adsense policies by inviting people to click on their ads on their front page ("If you dont want to enter, at least go to one of our Advertisers below"). You could, at the very least, have this line of their income terminated by reporting them here "Works for me. It said they'll respond within 24 hours. Brandon Holtsclaw suggested:
"Or set something to look for the referer pulling the feed and redirect just that nixforce domain to a 404 or some nasty pr0n feed :) just a thought."I would, but I think most things will fail to pull if I send a 40x and I can't think how to do a redirect or proxy neatly without messing with RewriteRule or similar - nixforce aren't worth messing with RewriteRules. I also suspect they're pulling from Planet Debian, rather than my web host, so if I made a mistake, I'd be very unpopular. Also: Russell Coker and Antti-Juhani Kaijanaho
apt-get install darcs gtk2hs libghc6-cairo-dev libghc6-gtk-dev libghc6-mtl-dev happy darcs get http://darcs.nomeata.de/anapres make ./anapres examples/RolandHochzeit.anapresI can also provide pre-compiled binaries, if you want.There is a very simple text file format that describes the sequence of words and special effects, but so far it is only tested with the one example file (the one from the wedding).If you want to try this and have any kind of trouble, do not hesitate to contact me. I m also interested in bug reports and patches, of course.
recursion see recursionNon-geeks can stop reading here: if you didn’t understand the joke, you won’t understand what’s coming next either. I mean, sure it’s a funny joke, but it doesn’t quite work. Technically, it’s not even an example of recursion, as the base case is missing. Perhaps it’s co-recursion? — but it isn’t, as it’s not progressing. Why can’t we say instead,
recursion if you do not understand it, see recursionIt would still be funny, and it might actually work.
…Please remember that health care is not like other industries, in which companies are rewarded in the marketplace for being the high-quality, low-cost provider. That situation does not yet exist in the health care system. So, am I better off being a industry leader with regard to that approach, or am I better off biding my time and continuing to follow the traditional path until there is a real sign of change in the marketplace?As I’ve written before, this kind of openness is refreshing and potentially a brilliant business strategy. (It may continue to be so even once every one is doing it.) Paul’s comments and receptivity to feedback remind me of my numerous concerns about Children’s Hospital Boston, which, as far as I know, has no analogous public forum. I’ve sent in comment cards, but they may just drop into a black hole. Two principal complaints about Children’s Hospital: television and food. There are TVs everywhere, including in the waiting rooms. They are always on, even if no one is watching them. On one occasion, we were the only ones in the waiting room. When we attempted to turn the TV off, the staff told us we couldn’t. When we went in examination rooms and our daughter was unhappy, the first response by the medical staff was often to turn on a TV. Our daughter (just over two years old) has never watched TV, and doesn’t find it comforting. Research indicates that TV is not good for young kids, and especially not infants:
Babies are glued to television sets these days, with 40 percent of 3-month- olds and 90 percent of 2-year-olds regularly watching TV, according to a University of Washington study released Monday. …”While appropriate television viewing at the right age can be helpful for both children and parents, excessive viewing before age 3 has been shown to be associated with problems of attention control, aggressive behavior and poor cognitive development,” Frederick Zimmerman, the UW study’s lead author, said in a news release…. The American Academy of Pediatrics recommends no television for children younger than 2, and only one to two hours a day of quality programming for older children.Recently, we had to stay over in the hospital for a night. There were no private rooms available, so we requested at least not to be stuck in a room where the TV would always be on. They looked at us like we were from Mars. (In the end, our roommate’s TV was always on. The three month old patient didn’t care, but his private nurse wanted to watch TV.) Why is a pediatric healthcare facility encouraging TV for infants? The food complaint is similar: so much of the hospital food provided for children is high in fat, refined sugar, white flour, and artificial ingredients. I was looking for a fruit-juice popsicle for our daughter (what she eats at home), and the only options the hospital could offer had high glucose corn syrup as the first ingredient after water. Again, this is not rocket science — these are not appropriate foods for one- and two-year old children. I realize in both cases (TV and food), the hospital is just mirroring popular culture in an attempt to provide familiarity for most kids, but I wish they would at least provide an option for those families whose kids don’t watch TV and eat a high-sugar diet.
|
|
|
Last message was posted nearly three years ago. Considering abandoned and closing.
Next.