Category: Programação
-
Show site name in Google search results page
If you have noticed that your website appears on Google’s search results page without the site name, don’t worry, you’re not alone. It happened to me with my cocktails website: One of the ways to solve this problem is by using Open Graph site_name and the WebSite Schema. Open Graph site_name is a meta tag…
-
Django PostgreSQL used session on Github Actions test error
If you’re using the PostgreSQL service on Github Actions as a backend database for your Django tests, you might encounter the following error on any particular test: And the following at the end of your test run: The problem is that Django reuses the database connection, and while locally my tests were passing, on Github…
-
Custom Protractor Flake shard parser
PR #45 on Protractor Flake added the ability to specify custom parsers. On my project we’re sharding (running multiple instances of) Protractor and using the following parser to re-run only the failing spec files. You’ll want to replace the /test/functional/specs/ and the browser name (chrome) below with your actual values.
-
Download file using WinJS.xhr
Snippet to download a file using WinJS.xhr and save it. The file variable below is a StorageFile, result of pickSaveFileAsync. Note the usage of responseType: “blob” as an option to xhr, and how it is copied to the file stream with msDetachStream. I tried to use replaceWithStreamedFileFromUriAsync and writeBufferAsync, but never managed to make it…
-
PCH file built from a different branch ((clang-425.0.24)) than the compiler ((clang-425.0.27))
Atualizei o XCode da versão 4.6.0 para 4.6.01 e de repente meus projetos não construÃam mais, dando o erro: PCH file built from a different branch ((clang-425.0.24)) than the compiler ((clang-425.0.27)) A solução foi simplesmente limpar o projeto. Vá ao menu “Product” e selecione “Clean”.
-
Powershell script to snap an app in Windows 8
You can not, from inside a Windows 8 application, snap it. That doesn’t mean there is no other way 🙂 At work, we have to test our app in a snapped state, so we need a way to programmatically make it happen. We discovered that there are two keyboard shortcuts for this action. Windows Key…
-
Get current session id on Ruby Selenium WebDriver
-
Javascript function to find background task by name on Windows 8
-
MD5 in YQL in hexadecimal form using Javascript
Undocumented YQL crypto method to return a hexadecimal representation of the MD5 encoding of a string: y.crypto.encodeMd5Hex(‘some string’);
-
Leiningen, ClojureScript e REPL no navegador
REPL do Clojure no navegador http://nakkaya.com/2011/12/04/leiningen-clojurescript-and-browser-repl/