I have a question on how to display a specific value within a string inside a column:
Bin
Message
Sent
X343
Message is 333-Yes
No
VFG33
Content Value on 155-Yes
Yes
JH789
Bring to Dock33 at 045-Yes
Yes
1255
Message is 768-Yes
No
As you can see, I have a table as above that shows a BIN, a message from an external system and if the message is sent. What I was wondering is if there is anyway to say, if the Sent column says "Yes", then ONLY display the numerical value in the Message Column. Hopefully this makes sense, I apologize for any confusion.
Edit:
So then my outcome would look like this:
155, 045
According to GSA's documentation:
PDF or XPS documents typically have metadata such as:
<MT N="CreationDate" V="D:20040107111105Z"/>
<MT N="ModDate" V="D:20040209162220+01'00'"/>
The search appliance can automatically pick up these formats without any special formatting configuration.
But unfortunately this does not seem to be working. We have PDFs, DOCs and other files in our site, and the last modified dates are appearing in the corresponding <MT> entries in the GSA search results. But <FS NAME="date"> has a blank value, which indicates that GSA could not extract the date. Even specifying the date format in "Document Dates" page in the GSA console does not help.
So how to make GSA "see" the documents' last modified dates? Please note: we cannot use web server's last-modified HTTP header values since they are not correct in our case (AEM dispatcher/caching interference).
GSA can extract metadata from Document Properties but I am not sure if GSA can use that ModDate/CreationDate to populate <FS NAME="date"> without "Document Dates" configuration.
You have mentioned that "you cannot use web server's last-modified HTTP header values since they are not correct in our case." Does it mean your web server is returning last-modified header with incorrect values?
Last-Modified response header takes precedence over all other metadata in GSA. So if your server cannot return correct values then you have to remove the Last-Modified header from response.
I have come across many people using java Simpledateformat (yy-MM-dd) while specifying the format under Document Dates but GSA can only understands strptime format.This is one of the prime reason why GSA fails to populate <FS NAME="date">. So make sure to use date format in strptime else leave it blank as it is not a mandatory field.
I'm working on building a block on my site that contains the top 5 most shared urls on my domain via the sharethis api, I've been testing it and have gotten some unexpected results...
when I check the domain statistics api, I get the expected results:
request:
http://rest.sharethis.com/analytics/V2/getDomainStats.php?domain={my-domain}&pub_key={my-publisher-key}&access_key={my-secret-key}
response:
{"status":"SUCCESS","from_date":"20120620","to_date":"20120627","data":
{"domain_summary":[{"clicks":1092,"shares":134,"traffic":1393,"date":"06\/20","channel_stats":
[{"shares":86,"clicks":404,"traffic":412,"channel":"facebook"},
{"shares":25,"clicks":617,"traffic":898,"channel":"email"},
{"shares":12,"clicks":0,"traffic":0,"channel":"fblike"},
{"shares":7,"clicks":42,"traffic":31,"channel":"twitter"},
{"shares":3,"clicks":0,"traffic":0,"channel":"plusone"},
{"shares":1,"clicks":0,"traffic":0,"channel":"pinterest"},
{"shares":0,"clicks":17,"traffic":19,"channel":"blogger"},
{"shares":0,"clicks":12,"traffic":33,"channel":"google_bmarks"}]}.....
I've truncated those results obviously since they go back for a week...
when I try to find out what urls are the most active from my domain:
request:
http://rest.sharethis.com/analytics/V2/getTopUrlStats.php?domain={my-domain}&from_date=2012-06-27&to_date=2012-01-01&pub_key={my-publisher-key}&access_key={my-secret-key}
response:
{"status":"SUCCESS","from_date":"20120627","to_date":"20120101","last_batch_date":"20120626","data":{"top_urls_summary":[]},"today":""}
Obviously this is not what I'm looking for, I have the clicks and on the sharethis site I can go to my metrics and view the info I'm looking for with no problem, but the api is not answering with any data. I have tried changing the date range or omitting it completely (which for some reason returns an empty data set) to no avail. Has anyone else run into a similar problem?
Ok Sharethis support finally got back to me about the problem:
According to sharethis api :
To Date End date for data. Note: date must be in yyyy-mm-dd format. Default is 7 days ago.
From Date Start date for data. Note: date must be in yyyy-mm-dd format. Default is 'today'.
These are backwards, that's 1 reason why my call wasn't working, "To date" should be the more recent date when defining the date range... the "defaults" don't work so you must enter both values, and when you enter todays date as the "To Date" it may return "collection failed", so best to start with yesterday
I've got a page with DateTimeField.
When i'm filling only date field (leaving hours and minutes fields empty) and have a validation error (page get's reloaded, feedback panel is shown), time fields got filled in with 0:00. But the thing is, that I want to have 00:00.
As I inspected, minutes field got ZeroPaddingIntegerConverter(2), so I just simply add it to hours field. But the thing is I cannot add anything to hours field as it is private.
So is there a way to add a ZeroPaddingIntegerConverter(2) to a hours field in DateTimeField of Apache Wicket ?
I use the DateTextField provided in the org.apache.wicket.extensions.markup.html.form package
DateTextField myDateTextField = DateTextField("endTime", "HH:mm");
You can define a date pattern that will be used for formatting the date. The time will be displayed with two digits for the hour and a leading zero if necessary.
I have some questions about 4sq's API.
Chceckin object obtained by checkins/add endpoint's response sometimes has mayorship field and at other times not.
And mayorship's checkins count field seems not reliable (often appears count 0, but actual count is 2).
Is it so?
thanks.
The notification only contains mayor information if the user is somewhat close to being able to claim the mayorship.
As for incorrect checkin counts, you'll need to provide an example response for us to be able to debug.