Code Snippets Logos

Short texts Logos 🧑‍💻 Code snippets Logos ✍️ Reading lists Logos 👀

metastore-site.xm

metastore.thrift.uris thrift://localhost:9083 Thrift URI for the remote metastore. Used by metastore client to connect to remote metastore. metastore.task.threads.always org.apache.hadoop.hive.metastore.events.EventCleanerTask,org.apache.hadoop.hive.metastore.MaterializationsCacheCleanerTask metastore.expression.proxy org.apache.hadoop.hive.metastore.DefaultPartitionExpressionProxy javax.jdo.option.ConnectionURL jdbc:mysql://localhost:3306/hmsdb javax.jdo.option.ConnectionDriverName com.mysql.cj.jdbc.Driver javax.jdo.option.ConnectionUserName hms javax.jdo.option.ConnectionPassword hms fs.s3a.server-side-encryption-algorithm AES256 fs.s3n.awsAccessKeyId fs.s3n.awsSecretAccessKey

Read the entitlements of iOS application at run-time

#import #import typedef struct __CFRuntimeBase { uintptr_t _cfisa; uint8_t _cfinfo[4]; #ifdef __LP64__ uint32_t _rc; #endif } CFRuntimeBase; struct __SecTask { CFRuntimeBase base; audit_token_t token; Boolean entitlementsLoaded; CFDictionaryRef entitlements; int lastFailure; }; typedef struct __SecTask *SecTaskRef; extern SecTaskRef SecTaskCreateFromSelf(CFAllocatorRef); %ctor { MSImageRef ref = MSGetImageByName(“/System/Library/Frameworks/Security.framework/Security”); bool (*SecTaskLoadEntitlements)(SecTaskRef, CFErrorRef *) = MSFindSymbol(ref, “_SecTaskLoadEntitlements”); SecTaskRef secTask = SecTaskCreateFromSelf(NULL); […]

Android-L: A little example of the new Toolbar view.

Toolbar toolbar = (Toolbar)findViewById(R.id.toolbar); //Title and subtitle toolbar.setTitle(“MY toolbar”); toolbar.setSubtitle(“Subtitle”); //Menu toolbar.inflateMenu(R.menu.toolbar_menu); toolbar.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener() { @Override public boolean onMenuItemClick(MenuItem menuItem) { switch (menuItem.getItemId()){ case R.id.action_share: Toast.makeText(ToolbarActivity.this,”Share”,Toast.LENGTH_SHORT).show(); return true; } return false; } }); //Navigation Icon toolbar.setNavigationIcon(R.drawable.ic_launcher); toolbar.setNavigationOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Toast.makeText(ToolbarActivity.this,”Navigation”,Toast.LENGTH_SHORT).show(); } });