progress

Eclispe does not show progress bar of user threads

家住魔仙堡 提交于 2019-12-06 16:57:04
I created some user jobs on start-up of eclipse, but after launching the workbench I am not able to see the progress bar. Is there anywhere I have to mention these threads other than making them user threads? protected IStatus run(IProgressMonitor monitor) { monitor.beginTask("Download", -1); for (ProxyBean network : ProxyBean.get()) { // do something } monitor.done(); return Status.OK_STATUS; } I initialize it in this way: job = new MyJob(); job.setUser(true); job.schedule();` Check whether you are applying it on correct shell, or the execution time of job is too low so that you can not see

How can I make a jquery/css progression bar that reflects step by step form progression?

无人久伴 提交于 2019-12-06 16:16:25
问题 I see a lot of example progress bars that show the progression bar being filled up. However, I would just like to know how I could make a progress reflect step by step form progress. A good example of what I would want can be seen Here. Any helpful code or examples/demos from other pages would be good to have. Thanks! 回答1: If you like the Buffalo one, just have a look at how they do it. First they define a div like this: <div id="progress"> <div id="complete" class="s1"> <div id="marker"><

Connecting via JDBC to OpenEdge in Talend

放肆的年华 提交于 2019-12-06 10:31:58
In "Talend Data Integration" I want to create a connection using JDBC to a Progress OpenEdge database. I have no experience whatsoever with this type of connection. My ODBC-connections to the same resources work fine, but Talend requires a JDBC connection to function properly. The connection settings in Talend I have at the moment are: DB Type: General JDBC JDBC URL: jdbc:sqlserver://db-name:port;databaseName= * * Driver jar: ??? (which jar-file do I need for OpenEdge?) Class name: ??? (which class name do I need for OpenEdge?) User name: * Password: * Schema: ??? (don't know what this means..

Android系统Recovery工作原理之使用update.zip升级过程分析(七)---R...

孤者浪人 提交于 2019-12-06 07:50:04
Android系统Recovery工作原理之使用update.zip升级过程分析(七)---Recovery服务的核心install_package函数 一、 Recovery服务的核心install_package(升级update.zip特有) 和Recovery服务中的wipe_data、wipe_cache不同,install_package()是升级update.zip特有的一部分,也是最核心的部分。在这一步才真正开始对我们的update.zip包进行处理。下面就开始分析这一部分。还是先看图例: 这一部分的源码文件位于:/gingerbread0919/bootable/recovery/install.c。这是一个没有main函数的源码文件,还是把源码先贴出来如下: /* * Copyright (C) 2007 The Android Open Source Project * * 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

php exec how to see progress

流过昼夜 提交于 2019-12-06 07:40:54
问题 I have a php script that run 2 exec. exec(".....", $output, $return1); echo $return1; exec(".....", $output, $return2); echo $return2; This 2 exec take 1 minute each to run. When I run this script, I'm waiting 2 minutes and it result "00". It's OK but I would like to see $return1 ; after 1 minute and see $return2 after 1 minute. I have to use Ajax / js ? In fact, I would make a progress bar, when first exec is done => 50% when second exec is done => 100% Thank a lot for your help! Start

Upload progress (with or w/o XMLHttpRequest 2) with Javascript

我的未来我决定 提交于 2019-12-06 06:24:38
问题 XMLHttpRequest 2 has a new thing. It can upload files. I got that working (it's super easy). Now I'm wondering if there's a way to get the upload progress of that file. I wouldn't be interested in this normally, but in Google Chrome (8) I saw that the onreadystatechange event is a XMLHttpRequestProgressEvent . Progress... There's nothing in there about upload progress (just request state), but it made me wondering. Google Chrome has a progress 'counter' when uploading big files natively. It's

jQuery AJAX upload progress for large text fields

别来无恙 提交于 2019-12-06 03:34:10
问题 Is it possible to get the upload-progress for a form with very large textfields using jQuery ajax? I think the client knows how much bytes have been sent, but when I Google I only find solutions for file-uploads using server-site code. This is my ajax-request: $.ajax({ type: "POST", url: "index.php?action=saveNewPost", data: {textbox1: textbox1,textbox2: textbox2}, contentType: "application/x-www-form-urlencoded;charset=UTF-8", success: function(){ // } }); I was hoping there would be

程序性能优化之APK大小优化(六)下篇

馋奶兔 提交于 2019-12-06 02:49:06
阿里P7移动互联网架构师进阶视频(每日更新中)免费学习请点击: https://space.bilibili.com/474380680 本篇文章将继续从微信资源混淆AndResGuard原理来介绍APK大小优化: 微信的AndResGuard工具是用于Android资源的混淆,作用有两点:一是通过混淆资源ID长度同时利用7z深度压缩,减小了apk包大小;二是混淆后在安全性方面有一点提升,提高了逆向破解难度。本文从源码角度,来探寻AndResGuard实现原理。 阅读本文需要前提知识:掌握Android应用程序打包编译过程,尤其是对资源的编译和打包过程;熟悉resource.arsc文件格式。 推荐罗升阳文章: http://blog.csdn.net/luoshengyang/article/details/8744683 微信资源混淆工具源码地址: https://github.com/shwenzhang/AndResGuard 附上来自网络神图: ​ 0、程序入口CliMain.main() 该函数处理命令行参数、并解析自定义配置文件,混淆工具可以根据配置项进行特定处理,具体参考config.xml内容,针对其中特定内容,我们会在后面提到。然后进入真正混淆的入口函数resourceProgurad() 特别说明一下解析Configuration中关键点

progress bar for reading lines in text file

痞子三分冷 提交于 2019-12-06 00:32:38
I'm reading lines form in a text file and then performing actions per line. Due to the size of the text file and the time of each action 500 => seconds. I would like to be able to view the progress but not sure where to start. Here is an example script I'm using, how would write that for this? import os tmp = "test.txt" f = open(tmp,'r') for i in f: ip = i.strip() os.system("ping " + ip + " -n 500") f.close() test.txt: 10.1.1.1 10.1.1.2 10.2.1.1 10.2.1.1 Here's a handy module: progress_bar . It's short and simple enough; read the source for ideas on implementing your own. Here's a very simple

Show progress of filling a DataSet from MySQL

别等时光非礼了梦想. 提交于 2019-12-06 00:19:52
I am currently developing an application using C# and a MySQL Database Backend. My program could end up loading a large amount of data from the database and adding into a dataset to be displayed in a DataGridView. I want to be able to show the progress of the filling of the DataSet but not sure how I can get a reference to where it is in the database. Below is the code that I currently have. DatabaseWork dbase = new DatabaseWork(); try { dbase.openConnection(); MySqlDataAdapter myDA = new MySqlDataAdapter(); myDA.SelectCommand = new MySqlCommand(query, dbase.conn); DataTable table = new