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
#Install Azure CLI | |
Install MSI Installer from Microsoft, see the following URL | |
https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows?tabs=azure-cli#install-or-update | |
#Download the Nuget.exe | |
Go to https://www.nuget.org/downloads and download the latest "exe" under "Windows x86 Commandline" column. | |
#Download Microsoft Azure Artifacts Credential Provider | |
Go to https://github.com/microsoft/artifacts-credprovider and scroll down to the section "Manual installation on Windows" and get the latest | |
"Microsoft.NuGet.CredentialProvider.zip". Please make sure to get the compiled, if "Net6" is in the name then it is not compiled. |
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
IMvxAndroidCurrentTopActivity topActivity = Mvx.IoCProvider.Resolve<IMvxAndroidCurrentTopActivity>(); | |
ViewGroup viewGroup = topActivity.Activity.FindViewById<ViewGroup>(Android.Resource.Id.Content); | |
View view = LayoutInflater.From(topActivity.Activity.ApplicationContext) | |
.Inflate([Your layout id to inflate], viewGroup, false); |
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
admin account info" filetype:log | |
!Host=*.* intext:enc_UserPassword=* ext:pcf | |
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd | |
"AutoCreate=TRUE password=*" | |
"http://*:*@www” domainname | |
"index of/" "ws_ftp.ini" "parent directory" | |
"liveice configuration file" ext:cfg -site:sourceforge.net | |
"parent directory" +proftpdpasswd | |
Duclassified" -site:duware.com "DUware All Rights reserved" | |
duclassmate" -site:duware.com |
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
public View getViewByPosition(int pos, XListView listView) { | |
try { | |
final int firstListItemPosition = listView | |
.getFirstVisiblePosition(); | |
final int lastListItemPosition = firstListItemPosition | |
+ listView.getChildCount() - 1; | |
if (pos < firstListItemPosition || pos > lastListItemPosition) { | |
//This may occure using Android Monkey, else will work otherwise | |
return listView.getAdapter().getView(pos, null, listView); |
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
public static void expandViewTouchDelegate(final View view, final int top, | |
final int bottom, final int left, final int right) { | |
((View) view.getParent()).post(new Runnable() { | |
@Override | |
public void run() { | |
Rect bounds = new Rect(); | |
view.setEnabled(true); | |
view.getHitRect(bounds); |
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
Set up Apache with Volley | |
DefaultHttpClient mDefaultHttpClient = new DefaultHttpClient(); | |
final ClientConnectionManager mClientConnectionManager = mDefaultHttpClient | |
.getConnectionManager(); | |
final HttpParams mHttpParams = mDefaultHttpClient.getParams(); | |
final ThreadSafeClientConnManager mThreadSafeClientConnManager = new ThreadSafeClientConnManager( | |
mHttpParams, mClientConnectionManager.getSchemeRegistry()); |
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
package com.az.custom.request; | |
import java.io.ByteArrayOutputStream; | |
import java.io.File; | |
import java.io.FilterOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.UnsupportedEncodingException; | |
import java.util.HashMap; | |
import java.util.Map; |
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
public class MainActivity extends | |
private PopupWindow popWindow; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
} |
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
public static Bitmap getImageThumbnail(final String pPath, final int pWidth, final int pHeight) { | |
/* There isn't enough memory to open up more than a couple camera photos */ | |
/* So pre-scale the target bitmap into which the file is decoded */ | |
// First decode with inJustDecodeBounds=true to check dimensions | |
final BitmapFactory.Options options = new BitmapFactory.Options(); | |
options.inJustDecodeBounds = true; | |
BitmapFactory.decodeFile(pPath, options); |