mustafadalci

mustafadalci's Tags
api
rss
mustafadalci is Following
Filter:    All Videos Images Text
mustafadalci is following his friends snips
Try now

mustafadalci uses Snipd to discover interesting content Snipd by his friends.
train your dog to stop barking
Train Your Dog to Stop Barking 
First of all, your dog must learn that barking for your attention doesn't work. If he is unhappy outdoors and barking eventually makes you bring him in, he learns that barking gets results. If barking makes you yell at him, well, that's better than nothing. "I'm bored. Maybe I can get them to yell at me again." Although yelling doesn't work, negative reinforcement can still be useful.
Barking while you are away
More often than not, the problem barker has never learned to be alone. He is accustomed to lavish attention without having to earn it. He thinks he is the center of the world and upon finding himself abandoned he is distraught and he barks, what did you expect?
Stop praising and petting your dog for doing nothing.
Practice being out of touch.

Because you aren't petting and stroking and fondling him all the time, your dog should be learning now that it's ok to be "out of touch" for short periods. Get some good chew toys. Nylabones and Kongs are excellent.  Let your dog become distracted with a chew toy, then calmly and quietly leave the room, closing the door behind you. Within a few minutes, preferably before your dog has become distraught about your absence, come back in and resume what you were doing. Move calmly, say nothing.

snipd by Alex S 1 month ago
8 snippets reply
 
 
Alex: great vid
But you really learn when you’re confronted with failure. And that I think is the primary root of constructive failure and why this Valley is so successful with failures. I think you can learn from those failures. I think, ultimately, the only way to really get your money’s worth out of failure, better be your own, right? And that’s largely because that hollowness in your stomach, the disappointment of 250 people whose lives and families depend on you, the chagrin of your board members, you’ve got to feel it. You got to feel it if you’re going learn it. And I think some people are lucky enough to go through life failing a little, or not at all. I don’t think they’re probably as wise as the guys who have actually failed.
snipd by Alex S 3 months ago
3 snippets reply
 
sexy - 
snipd by Alex S 3 months ago
3 snippets reply
 
snipd by Alex S 4 months ago
1 snippet reply
 
snipd by Alex S 4 months ago
1 snippet reply
 
snipd by Alex S 4 months ago
2 snippets 1 reply
 
snipd by Alex S 4 months ago
2 snippets 1 reply
 
Paddy Doyle, Marie Collins, Cardinal Brady
"It's a struggle but I'm trying to hang on," she said. "I need something more to hang on to. I need a sense of morality."
snipd by Alex S 4 months ago
3 snippets 1 reply
 
BeautifulSoup 3.0.7a
Beautiful Soup parses arbitrarily invalid SGML and provides a variety of methods and Pythonic idioms for iterating and searching the parse tree.
snipd by Alex S 4 months ago
3 snippets reply
 

Ingredients

Orange Sauce for Stir Fry

snipd by Alex S 1 year ago
2 snippets reply
 
Speaker: Michael Granger

Michael’s talk was full of excellend pre-recorded video demos, and thus was difficult to note-take.Instead, here are links to most of the pieces of software he discussed for your perusal:

snipd by Alex S 1 year ago
4 snippets reply
 
I’m working on a project that aggregates a bunch of community calendars, plus a lot of calendar info that’s just written out free-form. Some examples of the latter, in ascending order of resistance to mechanical parsing:

Tue, 4/1/08

2Apr - Wed 10:00AM-10:45AM

Weekdays 8:30am-4:30pm

Thu, 11/15/07 - Fri, 4/11/08

Every Tuesday of the month from 10:00-11:00 a.m

Sat., Apr. 05, 9:00 AM Registration/Preview, 10:00 AM Live Auction

2nd Saturday of every other month, 10:00 am-12:00 pm

In looking around for a recognizer, I came across the script that Jamie Zawinski uses to manage the calendar for his DNA Lounge . It looks like it can handle many of these formats, but it’s a 6500-line Perl behemoth that does a bunch of different things.
That’s the sort of thing that REXX did really well, as I recall. But’s that going back a ‘fer piece’.

Python parsedatetime does some of what you’re looking for, but not all:

http://code.google.com/p/parsedatetime/

Not sure if it’s what you’re after, but I’ve used a JS library called Date.js (www.datejs.com) which works really well. And they have a cool website to test it out.
John Udell raises the challenge of translating the human formats of a calendar entry into a machine format. Google Calendars quick add feature does make a fair effort and responds as the human intended in most cases.
From the examples given by John
Tue, 4/1/08 ok
2 Apr - Wed 10:00AM-10:45AM Gets date wrong (time of day ok)
Weekdays 8:30am-4:30pm ok
Thu, 11/15/07 - Fri, 4/11/08 ok

Every Tuesday of the month from 10:00-11:00 a.m
ok
Sat., Apr. 05, 9:00 AM Registration/Preview, 10:00 AM Live Auction ok
2nd Saturday of every other month, 10:00 am-12:00 pm ok
The API seems to provide a neat packaging of the requirement as a service which could be used in many ways. Problems that are encountered, like the example above, might eventually be dealt with by the team at Google but seem tractable through pre-processing.

I know you know if you can’t find a library or if customization is needed, a parser-generator such as ANTLR is the way to go. Heck! Write a Popfly component!

You might be interested in the paper “From Dirt to Shovels: Fully Automatic Tool Generation from Ad Hoc Data”:

http://www.cs.princeton.edu/~dpw/papers/padslearning-0707.pdf

“The API seems to provide a neat packaging of the requirement as a service which could be used in many ways.”

Yes, Google Calendar’s recognizer does seem like a promising approach.

You might get some higher level ideas from talking to the folks at ReQall and Tripit who are doing nice parsing of information including ‘human friendly’ dates and times
Stephen Says:

GATE will do that
http://gate.ac.uk/

There’s a module in CPAN called Date::Manip that does this.It has a method called ParseDate() that does its best to figure out what a given input means.Then, once parsed, the rest of the module lets you work with dates in more computer-friendly ways.

Looks like Parand above has already mentioned my library: parsedatetime for Python.

I would be extremely interested in any feedback for items it cannot handle.

One item it already handles is adjusting to different Locale’s day/month/year order.

snipd by Alex S 1 year ago
15 snippets reply
 
Close
What do you think? How do you feel?
Feedback can mold Snipd. Make Snipd your baby!