- 浏览: 162149 次
- 性别:
- 来自: 大连
最新评论
-
撒旦的堕落:
引用引用引用引用引用引用引用引用引用引用引用引用引用引用引用引 ...
★Struts2中的Ajax实现 <s:a> Ⅱ -
撒旦的堕落:
引用引用引用引用引用引用引用引用引用引用引用引用引用引用引用引 ...
★Struts2中的Ajax实现 <s:a> Ⅱ -
crazyj2ee:
[img][/img]
flex 3 从页面url中取参数取值的完美解决方案 -
suixinsuoyu12519:
你好,请问 “Update的系统内部执行情况可以参照附文:对u ...
Update优化小结 -
04023129:
试下 把wc.preSharedKey = "pa ...
设置 Android wifi连接 samples【转】
文章列表
如何在Mac OS中安装 wget
- 博客分类:
- 学习笔记
刚入手Macbook pro。说实话日本的比国内的真的便宜好的,I5 4G 500G的 花了7.5W 约合 6Krmb。。。。
正题,现在Macos 里面的命令行工具不是很多,这就需要我们自己安装了。今天想安装Wget命令。
首先 安装make 命令
https://developer.apple.com/downloads/index.action?name=for%20Xcode%20-
下载 https://developer.apple.com/downloads/index.action?name=for%20Xcode%20-#
command_line_tool ...
/** Called when the activity is first created. */
WebView mWebView;
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
mWebView = (WebView) findViewById(R.id.webView);
mWebView.getSettings().setJavaScriptEnab ...
本文使用的是office软件自带的Save as 功能 自动存储为Html网页以便在线查看Ofiice文档
代码保留
Excel
static public void excelToHtml(string inputFile, string outputFile)
{
try
{
string fileName = System.IO.Path.GetFileName(inputFile);
//string outputFile = Server.MapPath(Reque ...
TimePicker
tp.setIs24HourView(true);
tp.setCurrentHour(8);
tp.setCurrentMinute(30);
tp.setOnTimeChangedListener(new OnTimeChangedListener() {
public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {
...
java
package com.zzh.PackageReceiver;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;
public class PackageReceiver extends BroadcastRecei ...
Android AM命令行启动程序的方法
usage: am [subcommand] [options] start an Activity: am start [-D] <INTENT> -D: enable debugging send a broadcast Intent: am broadcast <INTENT> start an Instrumentation: am instrument [flags] <COMPONENT> -r: print raw results (otherwise ...
for (PackageInfo pack : getPackageManager().getInstalledPackages(0)) {
ApplicationInfo info = pack.applicationInfo;
String pkgName = info.packageName;
Log.d("Example", "packageName: " + pkgName);
Log.d("Example", "manageSpaceActi ...
/*
* シェルスクリプトを運行
*/
public String exec(String command) {
StringBuffer output = new StringBuffer();
Log.d("exec", command);
try {
Process process = Runtime.getRuntime().exec(command);
DataInputStream stdout = new DataInputStream(
process.getInputStream());
...
public static String post(String actionUrl, Map<String, String> params,
Map<String, File> files) throws IOException {
StringBuilder sb2 = new StringBuilder();
String BOUNDARY = java.util.UUID.randomUUID().toString();
String PREFIX = "--" , LINEND = " ...
public static void setMaxVolumn(Context context){
AudioManager audioManager = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
//audioManager.setStreamVolume(AudioManager.STREAM_SYSTEM , 12, 0);
audioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
Log.d(&quo ...
初始化相机
private void initCamera() {
setContentView(R.layout.main);
btnTake = (Button) this.findViewById(R.id.take);
btnTake.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
camera.autoFocus(new AutoFocusCallback());
}
});
Display d ...
NotificationManager mn =( NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
notification = new Notification(iconImage,statusBarText, System.currentTimeMillis());
notification.defaults |= Notification.DEFAULT_LIGHTS;
notification.sound = Uri.parse("android.re ...
设置
AlarmManager alarmManager = (AlarmManager)getSystemService(ALARM_SERVICE);
try {
js = new JSONArray(timeArray);
String str = "";
for(int i=0;i<js.length();i++) {
str = js.get(i).toString().replaceAll("T", " ");
try {
date = forma ...
Intent i = new Intent(PushService.this, XmppPushActivity.class);
Bundle bundle = new Bundle();
bundle.putString("from", from);
bundle.putString("message", message);
i.putExtras(bundle);
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(i);
XmppPushActivity 里面在onCreate()里面写 ...