I'm using a google custom search engine on my website.
I have two refinements on this custom search
Refinement 1: searches on my blog
Refinement 2: searches on a blog of my friend
but I need a third refinement which searches for newest results of both websites, or the results of last 24 hours.
Can I add some operator to the refinement which can do this?
Or is there some other way to achieve it?
Multi-site Refinement
There are two ways to create a refinement that searches both sites.
In the new refinement dialog, select the "Search only select sites" radio button. Then, make sure you assign this new label to your website and your friend's blog (Control Panel > Sites ...).
You could also perform the same filter by using the or operator to include both sites with the new label. In the last text field enter: site:yourURL.com OR site:friendsURL.com. This will cause any search to be performed on only those two sites.
Both methods were tested and work correctly.
Results from the last 24 hours
Also, you can search posts in the last 24 hours. However, it's not immediatly clear how to integrate this into custom search since this can only be use via the query URL.
5.1.3. tbs=qdr: Limit Results by Time Period
With Google's release of Search options you can now limit your search
results by time period. The format is as follows:
&tbs=rltm:1 [real time results]
&tbs=qdr:s [past second]
&tbs=qdr:n [past minute]
&tbs=qdr:h [past hour]
&tbs=qdr:d [past 24 hours (day)]
&tbs=qdr:w [past week]
&tbs=qdr:m [past month]
&tbs=qdr:y [past year]
Related
I admit this is a strange request. Essentially myself and another person who speaks Mandarin need to work on scheduling asynchronously through a spreadsheet. If either of us enters something in, in our respective sections, it should update the other person's section to match. So If I changed Order 1 on Day 1 from Apple to Butter, it should look at the translated text for Butter in Chinese and update the dropdown list entry for Order 1 on Day 1 from Apple to Butter
Unfortunately it doesn't seem like there's anyway to add formulas to dropdown lists. Any advice here?
I created a super simplified spreadsheet of what I'm looking for Spreadsheet
there is a GOOGLETRANSLATE formula:
also, you have DETECTLANGUAGE that outputs the language code:
both of them (DETECTLANGUAGE is able to work with vertical arrays only) are not supported under ARRAYFORMULA so you will need to drag them around. also, it's worth mentioning that formulae are always 1-directional so you can have a dropdown to be translated but that translated output can't be used directly as the input for back-translation creating a paradox. with a scripted solution, you may have more flexibility tho.
I am running the following query:
https://graph.microsoft.com/v1.0/me/calendars('sharedcalendarid')/events?$filter=start/dateTime ge '2018-10-14T06:00:00.000Z' and end/dateTime le '2018-10-21T05:59:59.999Z'&$orderby=Start/DateTime&$top=50&$count=true
What I'm seeing is that this query returns only 24 results, even though there are at least double that number of events in the week when I look at my calendar (which only has events from this one shared calendar on it).
Is there a bug with filtering events from a shared calendar? I've compared an event that doesn't show up with one that does and can't find any differences (tentative vs not, recurring versus not, etc.).
So I am in charge of office hours for a class at my University. I have to send out a google form every week for the students to sign up. The way the form is sent back, the data is grouped by Name, and the times they are available are grouped by days.
To make it easier on myself, I want to group it by times. Basically, I want it so that each day/time will have its own row, and the names of the people who want the time slot would be grouped together in the adjacent column.
I already separated the groups of times so that each time has its own cell, but I cannot figure out how to regroup the data by time.
I should also mention that each session of OH is 30 minutes and that each student can only receive one session of office hours a week because of limited availability. I also need to group the sessions into blocks so that the teachers won't have idle time (basically a teacher will have office hours from 5:00-6:30 PM on Tuesday, instead of 5:00-5:30 PM and 6:00-6:30 PM on Tuesday and 8:00-8:30 PM on Thursday). Grouping the names of the people who want office hours by the times that they are available would make it a lot easier to set up that week's office hours schedule.
Here's a link to an example:
https://docs.google.com/spreadsheets/d/1fRYYNUoEcgynU9cDMoXzsyjtIir4hsRlfFYJau36a78/edit?usp=sharing
have a look at this sheet ( i have only turned on sharing temporarily, co copy this to your own drive)
Look at the "matrix choices" sheet.
I created a Matrix of students and times (which I think is better), but there is also a list of names for each timeslot on the end too.
have a play changing some of the 1's (sessions applied for) to "G" (short for Granted). Ive set up some conditional formatting and data validation.
I am building a social analytics app. I need to find the number of tweets containing a certain word in the past one hour (time range may vary).
How do I do this?
I tried these:
1. using until param - But it doesnt support time and heard its unreliable
2. Fetching max possible tweets and filtering by date and time - computationally intensive
how should I proceed?
Assuming you are using an sql database and that the title of the tweet should contain a certain word, this should do the trick.
Tweet.where('created_at >= ? AND title LIKE ?', 1.hour.ago, '%some_word%')
I'm trying to find all WorkItems that were assigned to a person X in the last 30 days.
The big problem I have is the "in the last 30 days"-part.
I thought about using the "ever" or "asof" keywords, but couldn't find a good answer yet.. something like WHERE [Assigned To] = 'X' AND (([Assigned To] != 'X') asof '<30daysago>').
But this is still not a bulletproof solution.
Any better ideas?
Thanks & kind regards
Simon
It appears that this is not possible using just WIQL, but you can get close.
The keyword #Today will give you today's date, then just subtract your range from it. The EVER keyword applied to [Status]='AssignedTo' and a comparison against a date 30 days in the past to [StateChangeDate] is what you'll need to accomplish this.
As close as you can get with WIQL and existing fields:
This says, from all revisions (status changes) return records where the user 'X' has ever been AssignedTo and the State has changed in the last 30 days. This will basically give you a slightly fuzzy picture of what your User has been working on in the last month.
WHERE [Microsoft.VSTS.Common.StateChangeDate] >= #today - 30
AND [System.AssignedTo] EVER 'Bennett Aaron'
ORDER BY [System.State]
Add the missing field:
You could add a custom field called AssignedDate that is captured during the New->AssignedTo workflow transition that you create in the Work Item Definition XML. You can accomplish this using the Team Foundation Server Power Tools extension to Visual Studio. This would give you exactly what you need as well as additional reporting options going forward.
TFS API
I cannot help you with this one, but I believe you could query using the TFS API.
A couple of quick gotchas I've experienced to save you time on ASOF and EVER:
AsOf won't help you by itself with this as it does not support a range of dates. It allows you to query as if it were another date. In other words, if you forgot to capture the results of a query yesterday, you can use an AsOf query to get the results that you would have gotten had it run yesterday. What I understand is that you want to query a basic date range.
EVER might not work as you expect against dates as I believe it uses the exact value of the field (timestamp portion of the date field would be included) it tests with. Just make sure the EVER keyword is used against the status field rather than a date.