[Q] Using the colon symbol as a separator inside an If, Then statement - Zooper Widget General

I am having a difficult time formatting an If, Then statement with a time format output:
Code:
$#C0Shmm#<#DPmm#?#C1Sh:mm#$
Expected output: 3:30
Actual output: #C1Sh
The problem is with the or operator ":"
How can I use the colon symbol as a separator inside an If, Then statement?

Related

BIG problem!!, Text message to contact's secondary number

I have this problem.
I have a contact. He has two mobile numbers. I add both numbers to this contact.
I cannot seem to be able to send a message to the secondary number . It just will not show up when I type the "Name" in the to: field when writing a new SMS.
It only displays numbers marked as "Mobile"
The secondary one is marked as "Home"
I have options for: home, company, work, car.. etc, none of them work.
I cannot send a message even from the contacts screen..,,
How do I resolve this???
I just checked. It totally works fine. Send a new sms. put your cursor where you would type the name and press enter. you get the contact list. select contact and number voila.
next time, it is already in your messages.
yes, saved my day, just checked myself, never thought of pressing enter with the "to:" field empty.
still it should have had an option for setting a secondary mobile.... maybe some registry hacking????
I also noticed this barf today. If you type in the beginning of a person's name to the "TO:" field, it autofills it nicely, but automatically assumes the "Mobile Phone" number field will be used and there's NO way to change it.
The alternative way (press ENTER in the empty TO:-field) works, but again is an extra step too far.
The Windows UI guys really need to get their act together (maybe a bit those TF3D guys too). I'd expect this from a designer temp for his summer job, but not in a mass-market v.6 release in 2009!
I always have this problem,
Pressing ENTER works fine I see. I usually started up a new SMS, then went to "Menu > Add Recipient" and then the contact list is openend too ...
I have the same problem with two persons with alike names:
For example:
Tom Vaan
and
Tom Vaander
In the To: field I type Tom and only get the "Tom Vaan", no way to change it to "Tom Vaander"
vasra said:
The alternative way (press ENTER in the empty TO:-field) works, but again is an extra step too far.
Click to expand...
Click to collapse
You can also tap on the "TO:" text.

Serious WM Bug (sending phone numbers in text messages)

Hi.
I've been experiencing an annoying bug with Windows Mobile 6.1/6.5:
Whenever an incoming call was answered by my mailbox, a text message is send.
This is how it should more or less look like (translated from German):
Code:
From: Mailbox. You have 1 new message. To listen to your messages call 333.
The weird thing is that WM incorrectly matches the number with one of my contacts. I have a contact (let's name him Adam) with a number like +49176000333. Now all these mailbox notifications are incorrectly tagged as coming from Adam and the message reads
Code:
From: Mailbox. You have 1 new message. To listen to your messages call "Adam, h (+4917600033)".
Please notice: Whereas the message says "From Mailbox" (which is simply part of the text message) the actual sender is said to be Adam!
Why does WM incorrectly match this number (it looks as if any number ending with 333 is incorrectly matched)?
I've tried several things:
First, I created a 'Mailbox' contact with the number 333. Unfortunately this didn't do anything.
Second, I've sent myself text messages including different phone numbers, however I've never managed to get the same result as with the provider-messages above. If I merely send a single number like 333, it is displayed as simple text. If I include a '+' sign and the national prefix number +49333, it is displayed as link and if I click on it, a menu pops up "Verify the number is correct:...".
When I use the number of one of my contacts, the matching is done correctly, let's say I have a contact named Briand with the mobile number +491761234567, and I send myself the text message
Code:
call +491761234567
I get the message
Code:
call Brian, m (+491761234567)
However if I add a 'Mailbox' contact with either the number "+49333" or just "333", it doesn't match the name, I simply get
Code:
call +49333
where +49333 is a clickable link.
What I didn't manage to reproduce is the behavior of the provider messages where the contact matching is wrong (333 matching the number +49176000333 and also (and more important) the sender is incorrectly matched!).
This looks like a both annoying and also very serious WM bug, because this could be used to fake text messages!
Windows mobile does by itself (up to WM6 at least) no number-to-name match for incoming SMS in the SMS itself. There is a software called "intruders SMS fix" that may be in your cooked ROM which is doing this.
Mind that the SENDER of the SMS would be (correctly) matched in the address field of the messages list. It is the text inside the message that is treated as above.
If the Sender is correctly matched in the list, you can:
- either press the "green button" in the SMS list to call the sender
- or when the SMS is open (the sender is already highlighted) press enter to access its contacts record
Thanks for your reply.
tobbbie said:
Windows mobile does by itself (up to WM6 at least) no number-to-name match for incoming SMS in the SMS itself. There is a software called "intruders SMS fix" that may be in your cooked ROM which is doing this.
Click to expand...
Click to collapse
Well, I'm using 3VO's latest 6.5 ROM and this software is not listed. I had been using Rickywatt's 6.1 ROM before and had exactly the same problem.
Please notice, that it obviously matches 333 to ANY number ending with 333.
Is there any quick and easy way to get the source of a text message? So I could have a look at the provider messages. This problems reminds me of a typical flaw when comparing database entries with a 'LIKE' parameter.
I guess (just a guess), that the matching works like that:
Code:
input: number n from the text message
output: contact from address book
algorithm:
for each contact c in address book:
if c's number ends with n:
return c
return null
The reason for that matching is obviously that the matching should work, even if no country code or regional code is provided with the number.
Mind that the SENDER of the SMS would be (correctly) matched in the address field of the messages list. It is the text inside the message that is treated as above.
Click to expand...
Click to collapse
It SHOULD be like that, but with the above-mentioned provider messages, the SENDER is also matched incorrectly!
Simple but sad - seems like from WM6.1 onwards WM is doing this match by itself (consistently wrong). Try to search the more general fora at XDA to learn about number to name matching in Windows Mobile. Good luck

[Q] WP7 Service Reference Async Calls Buffer Size

I am completely new to the WP7 API calls which involve adding the asmx file as service reference. But, i am having a problem with the API calls that are called asynchronously via this method (SOAP requests).
I referenced a ASMX file that's in the cloud and called an async API. I got the below error message.
========
The HTTP request to '.....asmx' has exceeded the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---> System.Net.WebException: The operation has timed out.
========
When googled this message, many were pointing to timeout value set in the ServiceReferences.ClientConfig file that gets created when adding a service reference. So, i modified the file to increase the timeout to 10 min from 1 min.
So now, the API calls take 252 seconds to complete. That's too long, even if its async. If i call the same API synchronously via HTTP, it is instant.
So i dug deep and did a wireshark trace. What i found was the async calls uses the UDP protocol and it starts receving the response right away. But it receives in 60 bytes increment. So to receive the full data, it takes 252 seconds.
Now my question to you folks is, is there a way to increase the data buffer size for the UDP. Or is this a limitation or feature of WP7/VS.net?
Note: I cannot the call the API synchronously due to the vendor exposing the API's only as asmx reference.
Found the problem. The problem is IPV6 and SOAP using asmx doesn't go well. Interestingly, the code works in WP7 Device without the timeout. It doesn't work in the Emulator in PC's that have IPV6 enabled.
In case you folks run into the same problem, disable Teredo in your PC.
Open Command Prompt and type the following:
netsh
interface
teredo
set state disabled
To set it back to default again use:
set state default

Different input format for the same phone numer are not matched to a contact

I got a minor but annoying problem running AOKP JellyBean that probably can be fixed easily and is just me being stupid:
The ROM is a bit daft when it comes to "intelligent" matching of phone numbers. In Germany (as, I believe, in most other countries), you can either use the national format to store a phone number, with an area code starting with "0", "040" for Hamburg, for example. Or you can store it with the international prefix, which replaces the leading zero (+49-40). Sadly, the way numbers are transmitted on incoming calls and text messages is inconsistent, which means that it's vital that the phone recognizes that 0800-330 1000 and +49-800-330 1000 refer to the same contact.
If I got a contact stored in the national format, with a leading "0", and a text comes in with the number transmitted with the +49 in front the MMS app, for example, does only match the contact correctly if you open the contact and select "new text message" (i.e. then the phone realizes that the "unknown number" thread it has belongs to the contact and displays it accordingly).
This is quite annoying. Can it be a result of an US SIM card being in the phone when I first installed AOKP and me now being back in Germany? I remember the phone automatically displaying numbers in the +1-AREA CODE-Number format and even resolving the area code, displaying to which city it refers while I was in the US.

Retrieve video and audio from whatsapp db

I write little application for design message history from whatsapp app. The whatsapp app is stored data into sqlite db.
First of all I decrypt the db.
Secondly, I see that the DB have a table for messages, with those columns:
Code:
TABLE messages
(
_id INTEGER PRIMARY KEY AUTOINCREMENT,
key_remote_jid TEXT NOT NULL,
key_from_me INTEGER,
key_id TEXT NOT NULL,
status INTEGER,
needs_push INTEGER,
data TEXT,
timestamp INTEGER,
media_url TEXT,
media_mime_type TEXT,
media_wa_type TEXT,
media_size INTEGER,
media_name TEXT,
media_hash TEXT,
media_duration INTEGER,
origin INTEGER,
latitude REAL,
longitude REAL,
thumb_image TEXT,
remote_resource TEXT,
received_timestamp INTEGER,
send_timestamp INTEGER,
receipt_server_timestamp INTEGER,
receipt_device_timestamp INTEGER,
raw_data BLOB,
recipient_count INTEGER
)
So, there have a records for images, video, audio and etc. (they are stored on raw_data column)
Now, for every record I try to save to local directory on my pc, as follows:
First way:
Code:
File.WriteAllBytes(Path.Combine(directoryPath, msg.Media.MediaName)), msg.Media.RAW_DATA);
But I see, that it working only for image files, not for audio and video files..
Second way:
Code:
using (FileStream fs = new FileStream(Path.Combine(directoryPath, msg.Media.MediaName), FileMode.Create))
{
using (BinaryWriter writer = new BinaryWriter(fs))
{
writer.Write(msg.Media.RAW_DATA);
}
}
but I get same results
the audio and the video are not stored on the db?

Categories

Resources