Skip to content

Instantly share code, notes, and snippets.

View AizazZaidee's full-sized avatar
🎯
Focusing

Aizaz AZ AizazZaidee

🎯
Focusing
View GitHub Profile
@AizazZaidee
AizazZaidee / How To - Windows tutorial.
Last active September 18, 2023 10:21
Push .nuget packages to the Azure Artifacts Feed
#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.
@AizazZaidee
AizazZaidee / IMvxAndroidCurrentTopActivity.cs
Created February 10, 2020 08:19
mvvmcross get root viewgroup of top activity's layout
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);
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&#8221; 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
@AizazZaidee
AizazZaidee / ListViewGetItemByPosition
Last active December 15, 2017 18:08
android - listview get item view by position, get listview item on which click is perfrmed, update listview without calling notifyDataSetChanged();
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);
@AizazZaidee
AizazZaidee / expandViewTouchDelegate
Created April 14, 2015 07:25
Expand Touch Delegates of ImateView, TextView, EditText ... any View.class
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);
@AizazZaidee
AizazZaidee / Android+Volley+Apache_Http_Client
Created January 26, 2015 04:17
Using Apache HTTP Client with Android Volley + Hurl Stack
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());
@AizazZaidee
AizazZaidee / Android Volley 2015-01-15 Multipart Request with Upload Progress
Last active July 9, 2018 03:11
Android Volley 2015-01-15 Multipart Request with Upload Progress
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;
public class MainActivity extends
private PopupWindow popWindow;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@AizazZaidee
AizazZaidee / Resize-Bitmap
Last active August 29, 2015 14:08
Resize a bitmap with given width and height code snippet.
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);