action.CALL_DIAL set +1 on phone number - google-glass

Actualy with the new update, Im getting some troubles with this source code, cos' add a +1 on the phone number. Anyone get the same problem?
Intent localIntent = new Intent();
localIntent.putExtra("com.google.glass.extra.PHONE_NUMBER", callTo);
localIntent.setAction("com.google.glass.action.CALL_DIAL");
sendBroadcast(localIntent);

Yes, that happened to me too. I had to explicitly add the country code and that fixed the issue.
Intent localIntent = new Intent();
localIntent.putExtra("com.google.glass.extra.PHONE_NUMBER", "+61282294333");
localIntent.setAction("com.google.glass.action.CALL_DIAL");
Not sure it works on all countries but I've tried a couple countries and it worked fine.

Related

What is a working formula that can calculate to show if an appointment time has surpassed two hours by referencing the current time

I'm currently tying up a work project in Google Sheets, but I'm stuck on an addition that I would like to add. I had an idea to show whether an input appointment time had surpassed a 2 hour window while referencing the current time. I tried the code below but I keep getting N/A returns or #error. Any help would be appreciated.
"=IF(A2+TIME(2,0,0)<(TEXT(NOW()'HH:mm'), 'YES', 'NO')"
Basically if the input time in cell A2 plus two hours is less than the current time, it would state yes or no. I admit my knowledge although growing, is still a bit basic. Thanks for any advice or suggestions.
Try this:
=IF(A2+(2/24)<now(), "YES", "NO")

EXCEL How to iterate and add iterator to double entries

I have an Excel list which does contain a certain number of double entries.
eg.
enter image description here
What I want to do is to search each doublette and add an iterator to it. So that the result looks something like this:
enter image description here
I've absolutly no idea where to start with this.
Any ideas!?
Put this in B2:
=IF(A2=A1,A2&"."&COUNTIF($A$1:A2,A2)-1,A2)
And drag down. Let me know if it helps...
Thanks a lot to Black.Jack! You were right all along!
My own stupidity was in my way. ;) I am running a German version of Libre Office, which brings two subtle, but important changes. First conditions etc. must be named German!!! (as a colleague pointed out ;))
Secondly the parameters must be seperated by ; and not by , in Libreoffice...
So the working formula for a German Libre Office version is this one:
=WENN(A2=A1;A1&"."&ZĂ„HLENWENN($A$1:A2;A2)-1;A2)
again: Thank you very much Black.Jack. Wouldn't have figured it out without your help!!!

Exclude date via .exclude

I have been looking everywhere for documentation on excluding time and before and after. Ie My app for school is for appointments. They want me to make sure no one can sign up earlier than the current day. If someone could give me a format I have it so i can strip it down to just the day. But not only an solution to the problem but a link to some great detailed documentation as I need date and time for a lot on this project would be good.
'other' : Item.objects.exclude(time |date:"M d, Y"),
that is the current code it does not work. I get invalid syntax. If I take out the () of it my page loads so the () is the issue. Any help would be greatly appropriated.
Maybe try filtering a date range instead of excluding before and after
Item.objects.filter(date__range=["2017-01-01", "2017-01-31"])
To exclude before and after something like this should work with __lt for less than and __gt for greater than:
Item.objects.exclude(date__lt=datetime.date(2017, 1, 1)).exclude(date__gt=datetime.date(2017, 1, 31))

Crystal report if then help, how to return a string or variable with formula

Relatively new to crystal and I've hit a bit of a snag with a formula.
I'm trying to create a formula that will report out when an RMA was received and how many. If none of the items have been received, I want it to show a message stating such, but if items from the RMA have been received I want it to return the receipt number.
Since a picture is worth a thousands words...
Current report view
I tried using an if then but I don't think you can combine strings with BAQReportResult values.
if {BAQReportResult.RMARcpt.OurReceivedQty}>0 then {BAQReportResult.RMARcpt.RMAReceipt}
After that I tried a variety of else statements but stuck here I am...
Any help is greatly appreciated!
I think you must declare a string type and then assign the value in else part.
Create a Formula and place in the Report, what has to be written in formula will be like:
stringvar text:="";
if {BAQReportResult.RMARcpt.OurReceivedQty}>0 then
text="{BAQReportResult.RMARcpt.RMAReceipt}"
else
text="There are ..."

How to get current year in dotCMS?

How to get current year in dotCMS? I need to display it in footer copyright. I am try this $date.format('YYYY', $UtilMethods.getCurrentDate()) but not working.
$dateString = $date.format('yyyy',$UtilMethods.getCurrentDate())
Not sure entirely, looks right, maybe try lower case 'yyyy' is the only difference I found in research.
This will give the result 2012: $date.format('yyyy',$UtilMethods.getCurrentDate())
Here you can find alot more about dotCMS and Velocity http://dotcms.org/documentation/VelocityAndDotCMS