Animate all the things. Transitions in Android – Medium:
'via Blog this'
This Blog is first of all memos for me!! From time to time I get exposed to new and cool stuff for developers and architects ,most of the time its a solution for a problem or tips or tricks, so, I would like to track my memos and share it with you, it can save your time and nervous, I hope you will enjoy it - by Yaniv Tzanany.
Search This Blog
Friday, December 16, 2016
Wednesday, December 14, 2016
Sunday, November 27, 2016
Query NodeChef MongoDB
Query NodeChef DB
Get the connection string from chef
E.g.
mongodb://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxx-xx
Download mongo client
E.g. for windows
Install it
In the connection copy the url to this windows in the application
Save your changes.
Click connect to this url after.
Edit the settings in case you need to - e.g. for max fetch size the default is 3 M - i changed it to 10M.
Save your changes.
In the left pane double click on the installation table.
A list of query type.
E.g. find --- to find rows
Count - to get the total.
To use query , you need to use special syntax - you can read on the syntax here
E.g to get count of codeVersion greater than 253
Selector = {codeVersion:{$gt:253}}
More option could be found here https://docs.mongodb.com/v3.2/tutorial/query-documents/
Wednesday, November 9, 2016
Sunday, October 9, 2016
Simple tool to export android strings resourses to excel and import them to project after translating
GitHub - hamsterksu/AndroidLangTool: Simple tool to export android strings resourses to excel and import them to project after translating: "LangTool"
this is better
https://github.com/TomasKypta/android-lang-tool also taking care with array.
this is better
https://github.com/TomasKypta/android-lang-tool also taking care with array.
Saturday, October 8, 2016
Wednesday, September 14, 2016
Monday, September 5, 2016
How to call C++ code from Managed, and vice versa
An Overview of Managed/Unmanaged Code Interoperability
How to call a managed DLL from native Visual C++ code in Visual Studio.NET or in Visual Studio 2005
Call C# code from C++ and read an array of struct which contains strings
http://www.codeproject.com/Articles/12673/Calling-Managed-NET-C-COM-Objects-from-Unmanaged-C
How to call C++ code from Managed, and vice versa (Interop) – deeptanshuv's WebLog:
How to call C++ code from Managed, and vice versa
An Overview of Managed/Unmanaged Code Interoperability
How to call a managed DLL from native Visual C++ code in Visual Studio.NET or in Visual Studio 2005
Call C# code from C++ and read an array of struct which contains strings
http://www.codeproject.com/Articles/12673/Calling-Managed-NET-C-COM-Objects-from-Unmanaged-C
How to call C++ code from Managed, and vice versa (Interop) – deeptanshuv's WebLog:
How to call C++ code from Managed, and vice versa
An Overview of Managed/Unmanaged Code Interoperability
How to call a managed DLL from native Visual C++ code in Visual Studio.NET or in Visual Studio 2005
Call C# code from C++ and read an array of struct which contains strings
http://www.codeproject.com/Articles/12673/Calling-Managed-NET-C-COM-Objects-from-Unmanaged-C
How to call C++ code from Managed, and vice versa (Interop) – deeptanshuv's WebLog:
5 Tips for Understanding Managed-Unmanaged Interoperability in .NET
Safearray and com c# dll from c++
Thursday, September 1, 2016
Monday, August 29, 2016
HOW to Redirect from batch file using START commnd
in case you want to redirect the output from batch file and you do use START command , and you want to redirect the output from the start command, here is the way
in YELLOW you can find the trick
start cmd /c myexe.exe -p1 param1 -p2 param2 ^> c:\temp\5.txt
enjoy
Yaniv Tzanany
in YELLOW you can find the trick
start cmd /c myexe.exe -p1 param1 -p2 param2 ^> c:\temp\5.txt
enjoy
Yaniv Tzanany
Wednesday, August 17, 2016
Utilising More Than 4GB of Memory in 32-bit Windows Process
The next switch on the EXE will let you to have more than 2G RAM and up to 4G RAM -
its worked !!!
/LARGEADDRESSAWARE (Handle Large Addresses)
reference
http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.languages.csharp/2008-05/msg00515.html
http://stackoverflow.com/questions/2927598/linking-to-a-large-address-aware-dll
http://stackoverflow.com/questions/3109543/what-to-do-to-make-application-large-address-aware
for VC++ 6 https://msdn.microsoft.com/en-us/library/aa699249(v=vs.60).aspx , http://www.wintellect.com/devcenter/jrobbins/link-32-bit-native-c-exes-with-largeaddressaware
its worked !!!
/LARGEADDRESSAWARE (Handle Large Addresses)
reference
http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.languages.csharp/2008-05/msg00515.html
http://stackoverflow.com/questions/2927598/linking-to-a-large-address-aware-dll
http://stackoverflow.com/questions/3109543/what-to-do-to-make-application-large-address-aware
for VC++ 6 https://msdn.microsoft.com/en-us/library/aa699249(v=vs.60).aspx , http://www.wintellect.com/devcenter/jrobbins/link-32-bit-native-c-exes-with-largeaddressaware
Friday, July 29, 2016
Tuesday, July 19, 2016
Sunday, June 5, 2016
Find out which keystore was used to sign an app
the simple answer is to compare the signature
here is how to compare APK signature with the keystore you have
android - How do I find out which keystore was used to sign an app? - Stack Overflow:
here is how to compare APK signature with the keystore you have
android - How do I find out which keystore was used to sign an app? - Stack Overflow:
Find out which keystore was used to sign an app
the simple answer is to compare the signature
here is how to compare APK signature with the keystore you have
android - How do I find out which keystore was used to sign an app? - Stack Overflow:
check out this thread as well
The apk must be signed with the same certificates as the previous version
here is how to compare APK signature with the keystore you have
android - How do I find out which keystore was used to sign an app? - Stack Overflow:
check out this thread as well
The apk must be signed with the same certificates as the previous version
Wednesday, May 25, 2016
Thursday, May 5, 2016
Oracle on linux configurtion
we find out huge differences when retrieving huge amount of data from oracle , when it was installed on linux and on windows ( the windows was allot faster)
DBA:
check the
next articles and compare/add/fix the values that suggested by oracle for Linux
- you might find there what we are looking for https://docs.oracle.com/database/121/LTDQI/toc.htm#BHCCADGD
Have a look at this article http://www.dba-oracle.com/art_builder_tns.htm
- there are some critical parameters to check (tcp.nodelay = yes ?????).
IT:
I suggest to improve the kernel
for all our application server RedHat + zLinux with the necessary changes for
best throughput , concentrate with the Network tuning
There are allot of resources how
to improve it if you didn’t (specially net.core.rmem_max ,
net.core.wmem_max)
enjoy
Yaniv
Sunday, April 24, 2016
Monday, April 18, 2016
Thursday, April 7, 2016
Wednesday, April 6, 2016
sqlcmd - command line to run sql scripts (batch mode)
sometimes the best option to get fast result is to use an exisitng queries tools, many option include formatting for csv files.
Use sqlcmd with Scripting Variables:
sqlcmd Utility
Use sqlcmd with Scripting Variables:
sqlcmd Utility
Monday, April 4, 2016
Sunday, April 3, 2016
Saturday, March 12, 2016
Android - access gmail account - less secure app
the app i devlop needed to access gmail account to send and read emails.
i need to set my gmail account to allow access to less secure app.
e.g. https://www.google.com/settings/security/lesssecureapps
google change the security issue as you can read here
https://security.googleblog.com/2014/04/new-security-measures-will-affect-older.html
to allow access to gmail account without any "less secure " prompt issue, you might need to use OAUTH2 access to imap & SMTP.
to do that use , javamail 1.5.5 from
https://java.net/projects/javamail/pages/Android.
sample code could be found here
https://github.com/darrenjl/EmailYourself/blob/master/android/EmailYourself/src/me/darrenlyons/emailyourself/email/GmailSender.java
and here OAuth flow using the AccountManager on Android
from Android SDK Authenticating to OAuth2 Services
NEW 03-2019
i need to set my gmail account to allow access to less secure app.
e.g. https://www.google.com/settings/security/lesssecureapps
google change the security issue as you can read here
https://security.googleblog.com/2014/04/new-security-measures-will-affect-older.html
to allow access to gmail account without any "less secure " prompt issue, you might need to use OAUTH2 access to imap & SMTP.
to do that use , javamail 1.5.5 from
https://java.net/projects/javamail/pages/Android.
sample code could be found here
https://github.com/darrenjl/EmailYourself/blob/master/android/EmailYourself/src/me/darrenlyons/emailyourself/email/GmailSender.java
and here OAuth flow using the AccountManager on Android
from Android SDK Authenticating to OAuth2 Services
NEW 03-2019
Java Mail API Using GMAIL OAuth API In Android
Wednesday, March 9, 2016
Sunday, March 6, 2016
Java WebSocket How-To
Apache Tomcat 7 (7.0.68) - WebSocket How-To: "g the WebSocket client to connect to secure server endpoints, the clien"
REST vs WebSocket Comparison and Benchmarks
REST vs WebSocket Comparison and Benchmarks
Building Web Applications with WebSocket, JavaScript and HTML5
Tuesday, March 1, 2016
Stack Overflow: The Architecture - 2016 Edition
Stack Overflow architecture - very nice !!
Nick Craver - Stack Overflow: The Architecture - 2016 Edition:
Nick Craver - Stack Overflow: The Architecture - 2016 Edition:
Sunday, February 28, 2016
Websphere SSL - invalid certificate, key identifier is missing from authority key identifier extension
when you tried to access to secured WebService from your Websphere application , and get such error ":org.apache.axis2.AxisFault:
javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.g:PKIX path building failed: java.security.cert.CertPathBuilderException: invalid certificate, key identifier is missing from authority key identifier extension"
you probably need to install the certificate in your web sphere
javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.g:PKIX path building failed: java.security.cert.CertPathBuilderException: invalid certificate, key identifier is missing from authority key identifier extension"
you probably need to install the certificate in your web sphere
To establish trusted server-to-server communication for IBM Connections, import signer certificates from IBM HTTP Server into the WebSphere Application Server default trust store.
There are different types of certificates that you can use. This procedure describes how to import a self-signed certificate. You can also import a certificate that you purchased from a third-party Certificate Authority. To help decide a key file strategy for your environment, go the IBM HTTP Server knowledge center.
To import a public certificate from IBM HTTP Server to the default trust store in IBM WebSphere Application Server, complete the following steps:
Procedure
- Log into the IBM WebSphere Application Server Integrated Solutions Console and select Security > SSL Certificate and key management > Key stores and certificates.
- Click CellDefaultTrustStore.
- Click Signer Certificates.
- Click Retrieve from port.
- Enter the Host name, SSL Port, and Alias of the web server. The Alias is typically an arbitrary string that will become the name of the credentials.
- Click Retrieve Signer Information and then click OK. The root certificate is added to the list of signer certificates.
- If using Tivoli® Access Manager or other proxies, also repeat steps 4-6 for your Tivoli Access Manager or other proxy servers.
- restart server.
the above is from Adding certificates to the WebSphere trust store
there is another way :
Procedure
export the certificate :
navigate to the url via browser , in the browser click on the certificate , and export it in DER format or base64 format.
save it in accessible path.
- Log into the IBM WebSphere Application Server Integrated Solutions Console and select Security > SSL Certificate and key management > Key stores and certificates.
- Click NodeDefaultTrustStore.
- Click Signer Certificates.
- Click Add.
- Enter the Alias of the web server. The Alias is typically an arbitrary string that will become the name of the credentials, and the exported certificate location- described above, choose the right dataType (DER format or Base64).
- Then click OK. The root certificate is added to the list of signer certificates.
- restart server.
Saturday, February 27, 2016
Parse alternative backend service providers + Push issue
GitHub - relatedcode/ParseAlternatives: A collaborative list of Parse alternative backend service providers.:
Migrate from Parse to NodeChef’s Managed Parse Server
and boom the push is working
Migrate from Parse to NodeChef’s Managed Parse Server
Azure welcomes Parse developers - i could not migarate my db :(
i choose NodeChef - very easy to migrate and all is working.
the steps i did:
- upgrade my app to the latest parse SDK.
- Create in google api console server key + enabled GCM
- i used this article to change my manifast to enabled other services to send push.https://onesignal.com/blog/important-note-for-android-parse-push-users/ - but dont changed the code just add the meta data section into the manifast also described here - at Parse SDK: https://parse.com/docs/android/guide#push-notifications-setting-up-push
enjoy
Yaniv Tzanany
Wednesday, February 17, 2016
OData Services - CodeProject
OData Services - CodeProject:
OData URL sample
http://hldt-yanivt/YanivTZServices/AlisDataService.svc
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/$metadata
//all data
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/t_countries?$format=json
//all id and name
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/t_countries?$select=country_id,country_name&$format=json
//name and id for pk=1
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/t_countries(1)?$select=country_id,country_name&$format=json
//Filter by name
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/t_countries?$select=country_id,country_name&$format=json&$filter=(country_name eq 'Israel')
//Filter by id
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/t_countries?$select=country_id,country_name&$format=json&$filter=(country_id eq 1)
//count
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/t_countries/$count
//order by
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/t_countries?$select=country_id,country_name&$format=json&$orderby=country_name desc
//Insert recort
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/t_countries?$format=json
POST
{
"_id": 997,
"_name": "Unknown997",
"_abbreviation": null,
"_cee": 0,
"ent": 0,
"iban_length": null
}
OData URL sample
http://hldt-yanivt/YanivTZServices/AlisDataService.svc
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/$metadata
//all data
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/t_countries?$format=json
//all id and name
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/t_countries?$select=country_id,country_name&$format=json
//name and id for pk=1
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/t_countries(1)?$select=country_id,country_name&$format=json
//Filter by name
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/t_countries?$select=country_id,country_name&$format=json&$filter=(country_name eq 'Israel')
//Filter by id
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/t_countries?$select=country_id,country_name&$format=json&$filter=(country_id eq 1)
//count
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/t_countries/$count
//order by
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/t_countries?$select=country_id,country_name&$format=json&$orderby=country_name desc
//Insert recort
http://hldt-yanivt/YanivTZServices/AlisDataService.svc/t_countries?$format=json
POST
{
"_id": 997,
"_name": "Unknown997",
"_abbreviation": null,
"_cee": 0,
"ent": 0,
"iban_length": null
}
Saturday, February 13, 2016
gmail smtp access from shared hosting
i get error in my code
"The SMTP server requires a secure connection or the client was not authenticated"
i used valid uid and password for gmail account + SSL enabled but still get it.
so i figure out that there is two secire links i needed to use:
enable Less Secure app
and accout access enebled
and its worked.
enjoy
yaniv tzanany
"The SMTP server requires a secure connection or the client was not authenticated"
i used valid uid and password for gmail account + SSL enabled but still get it.
so i figure out that there is two secire links i needed to use:
enable Less Secure app
and accout access enebled
and its worked.
enjoy
yaniv tzanany
Wednesday, February 3, 2016
Tuesday, January 26, 2016
Wednesday, January 13, 2016
Bootswatch: Free themes for Bootstrap
Bootswatch: Free themes for Bootstrap:
From MS acdemy building-responsive-ui-with-bootstrap or full video
bootstrap with MVC - good tutorial , the code sample are here BootstrapMVA
must code snippets - add it via NUGET
Html Bootstrap many code sample @ bootsnipp
Tools for VS2013
SideWaffle - Templates for Visual Studio 2012/2013/2015
Bootstrap Bundle - to create new bootstrap site many templates
enjoy
Yaniv Tzanany
From MS acdemy building-responsive-ui-with-bootstrap or full video
bootstrap with MVC - good tutorial , the code sample are here BootstrapMVA
must code snippets - add it via NUGET
bootstrap-snippets-visual-studio
Html Bootstrap many code sample @ bootsnipp
Tools for VS2013
SideWaffle - Templates for Visual Studio 2012/2013/2015
Bootstrap Bundle - to create new bootstrap site many templates
enjoy
Yaniv Tzanany
Thursday, January 7, 2016
Monday, January 4, 2016
Subscribe to:
Posts (Atom)