Playwright sign an electronic signature - playwright

I have a question in regards to Playwright and whether there is a way to sign an electronic signature into a canvas element using the mouse(hold and move the mouse around to simulate a signature) and of course it should be a way longer signature than a dot or a couple of dots but more like a real signature as the application does not allow me to continue with only having a dot or two as a signature.
Also I am not able to do this through codegen as I thought it would work.
Would be thankful for any ideas regarding this issue if any had similar, thanks!

Related

Oauth library for iOS (in particular Yelp)

I want to add Yelp search into my application.
To do this I need to use Yelps Oauth authentication. This sounded easy as I've made some server applications before.
However, I keep getting an INVALID_SIGNATURE with the code I have created to make and retrieve data from a constructed URL.
I have checked the signature output by my app and it is exactly the same as the one they provide at http://api.yelp.com (I've even checked the two strings (before the hashing) at http://www.textdiff.com and they said they were the same)
It seems I hit a dead end and cannot get around this error.
Can anyone point me in the right direction with why my signature might not work
and/or
Can someone point me to a good iOS Oauth tutorial and library (any library I have found has poor documentation on how to use it)
Thanks

Only have to enter first word with Recaptcha

I'm using Google's Recaptcha control, using MVC Recaptcha. The MVC Recaptcha component wraps the Google Recaptcha control. For some reason, the control allows the first word to be entered only, but the second word can be missing and incorrect, and this works fine. Not in all cases, but I have noticed it in one area of the application.
Any idea why this might be happening?
From http://www.google.com/recaptcha/learnmore
"The user is then asked to read both words. If they solve the one for
which the answer is known, the system assumes their answer is correct
for the new one. The system then gives the new image to a number of
other people to determine, with higher confidence, whether the
original answer was correct."
"Currently, we are helping to digitize old editions of the New York Times and books from Google Books."
This is normal operation for recaptcha.
It uses one word that it knows for sure what it is and one word which it wants you to translate for it.
The most "everyday" word is normally the one you have to get correct and the weird word you can pretty much type anything in there.
Its looking to build a pool of answers and then out of all the translations given it will pick the most common answer to go in its official translation dictionary.
If you read up on the website you will see that it is part of a digitization project to convert books into electronic versions.

Is there a way to disable email engines from automatically hyperlinking a URL?

One of my clients wants to disable the URL to be shown as a hyperlinked URL, it has to be recognized as plain text, this is what I have tried:
ur<!comments>l
I have also tried to remove the <a></a> tag, as well as remove "http://" of the URL, none of them worked in Outlook. Outlook still recognized it as a hyperlink.
Anybody have any workaround here?
There is a zero-width non-breaking space that I like to use: 
I place it in strategic places so that the URL does not get recognized as a URL, like so: http://wwwdomain.com.
This strategy has worked for me across platforms and rendering clients. Its advantages are twofold: 1) it prevents the client from auto-rendering text as a link, and 2) unlike other "non-breaking" zero-width space ascii codes (ie ), it wraps the entire URL if your URL happens to need it (instead of just the parts after the zero-width space).
Try it out.
Credit belongs to my coworker, actually. Seems to work in all clients that we tested.
www.websitename.<img src="" width="0" height="0">com
An empty image tag with 0 width and 0 height. Insert it between the dot and the following text (in this case "com").
After we tried several things, he somehow suffered from a moment of inspiration/brilliance.
No visible spacing between the characters. Not sure what will happen if you copy/paste the string into a browser directly, though. It served my purpose of not allowing email clients to automatically make it a hyperlink, though.
This one worked for me. It is a combination of Scott's answer and David K. Hess's comment.
Break your url using <span>. However, you need to break it in a way that they are not matched as url when the mail client scans it.
eg: http<span>://</span><span>google.</span>com
You can turn off auto-hyperlinking in general. Here is a tutorial for Outlook 2007:
Turn automatic hyperlinking on or off
I have a similar issue with words like "chequed.com" and "interviewing.com" that are creating a hyperlink in my messages when I do not want it to.
The first step I took was to edit the HTML link tags.. but there weren't any.
After that, I went to the text in the email and added a very small space by using a fount of 8pt (im using an ESP, otherwise I would have gone with 1px)
This may help if you're having the same issue.
My solution for this is
http://...
I contacted Gmail's support and spoke with a department manager for Apple Care. This is expected behavior and cannot be prevented. These hacks no longer work, and if implemented could result in your IP being listed as a phishing operation. You're dancing around security issues here. I would suggest revising your content strategy.
The only thing you can do currently is wrap all email addresses in mailto links and phone numbers in tel links. There are no other options available as of 2017.
I had success with janusoo's solution for years until for some reason it began to introduce line breaks on some clients. I found that I could proceed with ​
www.websitename.​com
You might try using CSS to re-flow the text.
<p>www.example.<span style="float:left">http://</span>com/</p>
If the part with "http://" still gets marked as a URL, try breaking things up in different places.
One other trick would be to replace the periods with some other Unicode character that LOOKS like a period but actually isn't. For example, "⠄" (U-2840) is a Braille single-dot.
Alas (!) I don't have any Microsoft applications I can test this with, but good luck with it. :)
If you use . to replace your '.' in your hyperlinks you'll solve Outlook 2007 Hyperlinking the URL.

Does google adwords de-dupe conversions?

I'm using AdWords to track conversions on an ajax site. It works well for single conversions that have a unique label and value.
The Problem:
On the site I have a use case where a user can fire multiple very similar looking conversions in short succession. Sometimes these conversions are unique, sometimes they could match one or more of the other conversion values and labels.
When I submit these conversions, it tracks some of them, and not others.
At first, I was adding the conversion snippet to the page, so I figured it was including conversions.js only once, and not firing the others. So, to fix that, I moved the conversion snippet to an iFrame and put that on the page. That had the same problem, but was definitely including conversions.js. I was worried that the problem may have to do with the fact that they're fired in quick succession, so I made them wait before firing the next. I tried intervals of 1,2, and 4 seconds, none of which solved the issue.
In an attempt to figure out what was going wrong, I beautified conversions.js, and found a debug option. I turned it on, and it was warning on all conversions about a missing conversion_id - I tried adding google_conversion_id, and just set it to a timestamp, so it would always be unique. This didn't solve the problem either.
I finally tried just ditching the iFrames, and adding the tracking pixel to the page. The tracking pixel still fires the conversions just fine, and seems to add an iFrame to the page, then delete it. Unfortunately, the conversions still are missing.
The Question:
In light of this not working in any of many different ways, I'm wondering if google is de-duping my similar conversions. The docs have no information that shed light on this, but they also don't document the google_conversion_id, so there's plenty going on that isn't documented.
If they are, why wouldn't google_conversion_id fix this? It seems that should unique each lead. I can't append to the label or value, and I'm making all my requests with a cachebuster appended to the end to make sure it's not on the browser end. I can verify that it's working, as either conversions.js gets included or the iFrame shows up.
Any ideas? Anyone know where I can ask a googler about this? It's driving me CRAZY.
The variable google_conversion_id is your account number. Do not change it, or things just won't work.
As far as I can tell there is no way to pass a unique transaction ID, nor to sign the conversion parameters to prevent duplicates and request forgeries.
Google has no way to differentiate the following scenarios, because they result in exactly the same set of calls to the current Google adWords conversion script:
A customer buying two widgets at $50 in quick succession
A customer buying one widget at $50 and refreshing or returning to your receipt page
An evil adSense user triggering your conversion pixel to log himself two $50 sales
This was merely annoying when they only supported CPC, but with CPA it has become a vulnerability in the Google adWords system.

How do I validate OAuth requests?

I'm trying to use OAuth with Twitter, and I have my head wrapped around the pieces that need to be put in place to get a request token. But, it's not working. And the error message that I'm getting back isn't terribly helpful.
Luckily I found a tester but again, the error message there isn't terribly helpful. "Invalid signature." Ok, great. But since there are several steps involved (truth be told, all of which confuse the hell out of me) in generating the signature, I'm at a loss.
Is there another tool out there that might be more helpful? Maybe one where I can see what the data should be at each step (check that the request concatenation is right, check that the initial signing is right - i'm using HMAC-SHA1, check that the base 64 is right, etc).
Yes. Run, do not walk, to Hueniverse - one of the neatest pieces of Javascript you'll see!

Resources