Hangfire - log processing history - hangfire

I cant find a way to log to the processing history =(. Im sure its possible! Im missing something here right?
I want to do something like this:
Does someone know how to do this?

I found a solution for this:
JobHistoryRenderer.Register(SucceededState.StateName, MySucceededRenderer);
Check SucceededRenderer in Github if you want to know about the implementation.

Related

Apache pig: How to use the ignoreBadFiles tag with the load function?

I see there's a tag called ignoreBadFiles for the load function of Apache pig. I am wondering if someone can show me an example how to use it.
Here's the link for the jira tickets:
https://issues.apache.org/jira/browse/PIG-3404
It discusses the use cases for this tag but does not have an example.
For something like:
LOAD '$inpath' USING AvroStorage();
It would be great if someone can show me how to use this tag with the load function. Thanks a lot for your help!
In addition to getting your AvroStorage('ignore_bad_files') working, you may want to look at setting mapreduce.map.failures.maxpercent. This would give similar results by allowing the job continue with certain % of mappers (readers) failing.

How would I write a script that will fetch a site's table to embed in your site?

Ok, here is what I want to do. Given the name of a baseball player, I would like to automatically import his stats from baseball-reference.com and embed in my site.
They already allow you to do this manually by providing you with a 'share' button that will give you the html of the stats table. I would just like to automate this process.
I have no idea on where to start on something like this. Your advice is appreciated.
Thanks for the help. I never thought about this being against their EULA since they were letting you do it manually. Oh well.

How do I get hold of my access logs from CloudControl

This may seem like a stupid question, but:
If I have an app deployed to CloudControl, how can I download the access logs directly.
Of course I can cctrlapp myapphere/default log access to 'tail' them.
... but I want to download them for off line analysis.
I checked the documentation, but it there is an obvious way I missed it -= can anyone help ?
Thanks
There is no way to "download" the logs. We only store the last 500 messages.

Is there a way to load a LaunchAgent plist programmatically?

I am looking for an alternative way asides using NSTask/system() to run "launchctl load (plist)". Is there an API for this? Something like CFLaunchdHelper or NSLaunchd. I tried searching but didn't find any and TN2083 doesn't have any info about this.
Have a look at /usr/include/launch.h. A quick search revealed this link, seems useful.

Grails: How to get information about the currently logged in user?

I am actually feeling a bit dumb for asking this but I tried for half a day now and can't find a way to get information on the currently logged in user in my controllers as well as my views.
I tried several suggestions I found on the web like "authenticateService" etc.
Now, it is possible that I have a misconception about the basics of Grails there. I come from other frameworks where a task like this is a matter of {{ request.user }} and I am done with it.
My exact need is to be able to access the ID of the currently logged in user in order to serve a custom navigation.
Thx in advance for your help.
def user = springSecurityService.currentUser
always good to try the docs:
http://burtbeckwith.github.com/grails-spring-security-core/docs/manual/index.html
In gsps, there is a specific tag, which we use like
<sec:loggedInUserInfo field='firstName'/>
again, its in the docs posted above.
Nowadays, I think the way to do it is:
def user = getAuthenticatedUser()