This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// before compiling the code please add the following library to your project references: | |
// Microsoft Word 15.0 Object Library | |
// in my case I'm using Office 2013 as well. | |
// then add following line to your program: | |
using Word = Microsoft.Office.Interop.Word; | |
// make sure Word was not opened | |
foreach (System.Diagnostics.Process item in System.Diagnostics.Process.GetProcesses()) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2015 Farbod Salamat-Zadeh | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PYTHON_PATH=$(which python) | |
PSQL_PATH=$(which psql) | |
MYSQL_SCRIPT='mysql2file.py' | |
MYSQL_SERVER= | |
MYSQL_PORT=3306 | |
MYSQL_DATABASE= | |
MYSQL_USER= | |
MYSQL_PASSWORD= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Problem: | |
The source file name(s) are larger than is supported by the file system. Try moving to a location which has a shorter path name, or try renaming to shorter name(s) before attempting this operation. | |
Solution: | |
1. Create a new empty folder, e.g. c:\empty | |
2. Then copy that empty folder onto the folder which contains the long filenames which you're trying to delete, e.g. c:\myannoyingfolder. Do this like so in the command prompt: | |
robocopy /MIR c:\empty c:\myannoyingfolder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Converts hex string to byte array. | |
* | |
* @param hex hex string. if invalid, return null. | |
* @return binary data. | |
*/ | |
private static byte[] hexStr2Bin(String hex) { | |
int sz = hex.length()/2; | |
byte[] b = new byte[hex.length()/2]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://material.io/color/#!/?view.left=0&view.right=0&primary.color=1976D2&primary.text.color=ffffff | |
https://material.uplabs.com/posts/trello-app-on-boarding-redesign | |
https://material.uplabs.com/posts/search-close-icon-transition-freebie | |
https://material.uplabs.com/posts/zeta-onboarding-gif | |
https://material.uplabs.com/posts/free-music-player-ui | |
https://material.uplabs.com/posts/vertical-onboarding | |
https://material.uplabs.com/posts/user-onboarding-ui | |
https://material.uplabs.com/posts/app-onboarding-0ae1167c-319a-424e-9f5e-fc5432d4c812 | |
https://material.uplabs.com/posts/my-contribution-to-uplabs-materialup-onboarding-ch | |
https://material.uplabs.com/posts/onboarding-or-walkthrough-screeen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://alvinalexander.com/java/jwarehouse/apps-for-android/RingsExtended/src/com/example/android/rings_extended/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TODO add <meta-data android:value="GlideModule" android:name="....OkHttpProgressGlideModule" /> | |
// TODO add <meta-data android:value="GlideModule" tools:node="remove" android:name="com.bumptech.glide.integration.okhttp.OkHttpGlideModule" /> | |
// or not use 'okhttp@aar' in Gradle depdendencies | |
public class OkHttpProgressGlideModule implements GlideModule { | |
@Override public void applyOptions(Context context, GlideBuilder builder) { } | |
@Override public void registerComponents(Context context, Glide glide) { | |
OkHttpClient client = new OkHttpClient(); | |
client.networkInterceptors().add(createInterceptor(new DispatchingProgressListener())); | |
glide.register(GlideUrl.class, InputStream.class, new OkHttpUrlLoader.Factory(client)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
''' | |
This script finds missing string translations in Android applicaitons. | |
Author: Kostya Vasilyev. License: Creative Commons Attribution. | |
The output format is, I believe, more suitable to working with external | |
translators than the output of Lint from the Android SDK. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
General Definitions | |
Visible Lifecycle: The part of the Lifecycle between onStart and onStop when the Activity is visible. | |
Focus: An Activity is said to have focus when it's the activity the user can interact with. | |
Foreground: When the activity is on screen. | |
Background: When the activity is fully off screen, it is considered in the background. | |
Lifecycle States |