Just a question to seasoned PHPers, who have been working with 5- for a while. Has 7 made any difference to the way you code? Are you using any of the new features, and if so, which ones? Are they massive time savers (coding-wise or run-wise) or is it all a bit superficial? Would really like to know. Thanks.

Member Avatar
Member Avatar
+1 forum 4

There are many examples of compressing files in VB.Net. So many of these examples are using third party libraries which is just not neccesarry. People were saying that files and archives exceeding 4Gb couldn't be used... I hate restrictions and decided to "Stick it to Microsoft" To get a better understanding of Zip files and their contents I set about writing my own Zip file generator from the ground up (Still using Phil Katz's Zip algorythem). Eventually I successfully built my own Zip and ZIP64 archives byte by byte. I then looked at my work and thought, now I have …

Member Avatar
Member Avatar
+1 forum 3

I have this function: function (Blobs) { console.log(JSON.stringify(Blobs)); // Make the progress bar here Blobs.forEach(function(Blob) { console.log(Blob); $.post(window.location.href + '/add', Blob); // Increment the progress bar by the correct amount, once above request has completed }); } (This function is passed as an argument, hence no name) I want a progress bar to be shown, showing how many of the 'n' requests have returned. The page the request is POSTing to may take some time (5ish seconds) to respond, and the loop may need to run multiple tens of times. Once all the requests have completed, I need to redirect …

Member Avatar
Member Avatar
+0 forum 2

I've searched extensively for this, but failing to arrive at a proper solution, I had to proceed with this question. I have just recently started learning JavaFX/Java and I am trying to build a table which, along with some other columns, would have a single ProgressIndicator column. This means that a ProgressIndicator needs to be displayed within a table cell. Work I've done so far: http://pastebin.com/raw.php?i=QxSmsJCT @Override // This method is called by the FXMLLoader when initialization is complete public void initialize(URL fxmlFileLocation, ResourceBundle resources) { fileName.setCellValueFactory(new PropertyValueFactory<Table, String>("fileName")); transferSpeed.setCellValueFactory(new PropertyValueFactory<Table, Double>("transferSpeed")); piColumn.setCellValueFactory(new PropertyValueFactory<Table, Double>("piColumn")); ProgressIndicatorTableCell pitc = new ProgressIndicatorTableCell(); …

Member Avatar
Member Avatar
+0 forum 2

Group, Today I learned with `Me.Cursor = Cursors.WaitCursor` and `Me.Cursor = Cursors.Default` do. I've seen other programs, when running, a "message box" comes up and let's the user know what in the routine is happening. If it's possible to do in VB.net, I'd like to do the same thing. However I know I don't want to use a true MessageBox as I don't want the user to have to click OK each time. But it would be nice for them to see each "stage" of the progress being made. Is that possible? If so, how is this done. Can you …

Member Avatar
Member Avatar
+0 forum 5

I was just mucking around with a progress feature for some software, and thought I'd just put this wee demo up of a clocky type progress thing =0) Just Copy and paste the form code and watch it run. (p.s it's in degrees, note minutes and seconds) ![55f1addda67a729e91ae90c980c39deb](/attachments/small/4/55f1addda67a729e91ae90c980c39deb.png)

Member Avatar
Member Avatar
+0 forum 2

Progressbar not updating :'( please help. Private Sub ftpupload() Dim ext As String = Path.GetExtension(NsTextBox1.Text) Dim fname As String = Path.GetFileNameWithoutExtension(NsTextBox1.Text) Dim request As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create("ftp://xxx@xxx.org/" & fname & ext), System.Net.FtpWebRequest) request.Credentials = New System.Net.NetworkCredential("xxx@xxx.org", "xxxxxxx") request.Method = System.Net.WebRequestMethods.Ftp.UploadFile Dim file() As Byte = System.IO.File.ReadAllBytes(NsTextBox1.Text) Dim strr As System.IO.Stream = request.GetRequestStream() Do While i <= 100 strr.Write(file, 0, file.Length) progress = strr.Length * i / 100 BackgroundWorker1.ReportProgress(progress) Loop End Sub Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load BackgroundWorker1.WorkerReportsProgress = True loadauthors() End Sub Private Sub xButton1_Click(sender As Object, e As EventArgs) Handles NsButton1.Click BackgroundWorker1.RunWorkerAsync() End Sub …

Member Avatar
Member Avatar
+0 forum 4

Hi guys, thanks in advance for any help. I'm using this tutorial [Click Here](https://www.youtube.com/playlist?list=PL7C25B2F18F68F3EF) To make a multi-file upload. the actual upload works just fine, however the % progress and final file list of uploaded files that is supposed to show at the end is not working. Here is the upload page itself <?php if (!empty($_FILES['file'])){ foreach($_FILES['file']['name'] as $key => $name){ if ($_FILES['file']['error'][$key] == 0 && move_uploaded_file($_FILES['file']['tmp_name'][$key], "files/{$name}")){ $uploaded[] = $name; } } if (!empty($_POST['ajax'])){ die(json_encode($uploaded)); } } ?> <html> <head> <title>Multi-file Upload</title> <script type="text/javascript" src="upload.js"></script> <style> #upload_progress {display: none;} </style> </head> <body> <div id="uploaded"> <?php if (!empty($uplaoded)){ foreach ($uploaded …

Member Avatar
+0 forum 0

Hello Everyone, A few months Ago I was introduced to Linux operating system...Ubuntu...Some of you are probably wondering where the hell have I been...Let's just say I was stuck in a Window....Needless to say I love The change....Unfortunately for me I didn't know what I was up against....After updating Ubuntu 12.04 And restarting my system ...I am greeted with an error That says the system is running in low graphics mode :your screen , graphics card and input device settings could not Be detected Correctly.You will need to configure these yourself..Nothing I try works...Needless to say I am lost as …

Member Avatar
Member Avatar
+0 forum 3

this is just a nifty feature I can't seem to find on google... (I've found 1 src "Windows7ProgressBar", but I can't get it working with the bad instructions provided) ^ I'm guessing they expect you to know C# when they say "drag the control over the form" - the "control" is a dll file, I think... and I have no idea what the "form" is (it's not the included exe) everyone's been working on transforming XP into the looks of 7, and they've done a remarkable job... but I don't want the full look of 7, I only want a …

Member Avatar
Member Avatar
+0 forum 1

Dear All , I am looking for a .net control to act as progressBar. it shoule have many empty boxes , and which progress , it gets filled. as in Free Download manager. Please refer to attached screen shot. Thanks, Waleed

Member Avatar
Member Avatar
+0 forum 10

Hi I have data to upload to a Mysql database and I need to get the time taken for each row to be inserted so that I can pass that number through to a progress bar. I have alreay tried accomplishing this by determining the number of rows affetced by the insertion then find the percentage of that number which is not the correct manner to do this. here is the code $result3=mysql_query("INSERT INTO dest_table.create_info SELECT * from Profusion.source_cdr") or die(mysql_error()); $progress=mysql_affected_rows(); // Total processes $total = $progress; // Loop through process for($i=1; $i<=$total; $i++){ // Calculate the percentage $percent …

Member Avatar
Member Avatar
+0 forum 3

Can anyone pls help me with how to create a Progress Bar by using JavaScript methods like setInterval() ?

Member Avatar
Member Avatar
+0 forum 3

after press submit button to upload the image, the information will display at new window, i need the information will be display below submit button. my code: <?php if($_GET['action'] == "upload") { ?> <div id="upload"> <br/><br/> <form action="upload_image.php?action=upload" method="post" enctype="multipart/form-data"> <label for="file">Gambar yang ingin dimuat naik:</label> <input type="file" name="file" id="file"><br><br/> <input type="submit" name="submit" value="Submit" id="submit_upload"><br/><br/> </form> </div> <?php $allowedExts = array("gif", "jpeg", "jpg", "png"); $value = explode(".", $_FILES["file"]["name"]); $extension = end($value); if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "image/jpg") || ($_FILES["file"]["type"] == "image/pjpeg") || ($_FILES["file"]["type"] == "image/x-png") || ($_FILES["file"]["type"] == "image/png")) //&& ($_FILES["file"]["size"] < 20000) && …

Member Avatar
Member Avatar
+0 forum 1

I wanyt to create a progress bar for my website in which a user can skip registration steps and fill them afterwards. Like supposeuser has to compulsorily foll step 1 & 2 of the reg process but can skip the 3rd and do it later. On his dashboard after he logs in the prgress bar shows up beneath his profile pic with percentage complated.now forexample a userhas filled the first two steps so 66% of the reg is done. and a LINK complete profile should appear below which redirct sto the third stepof the reg. how do i accomplsih this? …

Member Avatar
Member Avatar
+0 forum 2

Dear Friends i want to add a progrress bar in this uploader please help me ... Imports System.IO Imports System.Net Public Class Form1 Private Sub btnUpload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpload.Click Dim request As System.Net.FtpWebRequest = DirectCast(System.Net.FtpWebRequest.Create("ftp://ftp.uibonline.com/uibsat/saleem.jpg"), System.Net.FtpWebRequest) request.Credentials = New System.Net.NetworkCredential("ksauib@uibonline.com", "123456") request.Method = System.Net.WebRequestMethods.Ftp.UploadFile Dim file() As Byte = IO.File.ReadAllBytes("C:\saleem.jpg") Dim strs As IO.Stream = request.GetRequestStream() strs.Write(file, 0, file.Length) MsgBox("File Uploaded", MsgBoxStyle.Information) strs.Close() strs.Dispose() End Sub End Class

Member Avatar
Member Avatar
+0 forum 1

Hello everyone Is there any way to kill the python.exe in Task Managaer "On Windows" using visual basic The Problem is that i do open more than 1 python file at the same, But on task manager it's hows me something like this Python.exe python.exe python.exe python.exe I have got the code to kill any progress in the task manager using Visual basic, But It doesn't work with python, Because i can't tell which one i opened first or which one was the second or the last Code: Dim p() As System.Diagnostics.Process = Process.GetProcessesByName("python") If p.Length = 1 Then p(0).Kill() …

Member Avatar
Member Avatar
+0 forum 3

So i've found this HTTP downloader in python, and I wanted to modify it. I've been trying to add a ttk progressbar, to no avail, but I have no idea why it isn't working! Here is my code: import urllib2 import Tkinter import ttk url = 'http://kharg.czystybeton.pl/pendulum%20-%20%5B2005%5D%20hold%20your%20colour/05.%20through%20the%20loop.mp3' file_name = url.split('/')[-1] u = urllib2.urlopen(url) f = open(file_name, 'wb') meta = u.info() file_size = int(meta.getheaders("Content-Length")[0]) print "Downloading: %s Bytes: %s" % (file_name, file_size) global file_size_dl file_size_dl = 0 block_sz = 8192 while True: buffer = u.read(block_sz) if not buffer: break file_size_dl += len(buffer) f.write(buffer) f.close() root = Tk() root.title('Downloading... ' + file_name) …

Member Avatar
Member Avatar
+0 forum 3

I have a Java program, which launches a app, but before starting, it checks for the version.txt file, and if it doesn't exist, or there is a newer version available off my site, it downloads it. Well, not quite. I've got the part that checks for updates, and file existence, but not the updating part. I'm hoping I could make a launcher similar to the Minecraft game updater. So, I'll check for newer versions, and if one is available, it downloads the required files, and with a progress bar. Thanks, Matthew.

Member Avatar
Member Avatar
+0 forum 3

I have created an application which has a crystal report viewer embedded in it. But the *.rpt files that are going to be opened in the viewer are too big, and it waits for minutes while opening. How can I put a progress bar or something to indicate that the program is still working while the file loads?

Member Avatar
Member Avatar
+0 forum 1

Hi all . . i need to develop an uploader for my website . . i done it . but the progress bar not working . . plz do help me .. thanks in advance . . --Karthik this is my code . aspx page : [CODE]<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>File Upload page</title> <style type="text/css"> #container { background-color:silver; } </style> </head> <body> <form id="form1" runat="server"> <div id="container"> <asp:FileUpload ID="FileUpload1" runat="server" /> <br/> <asp:FileUpload ID="FileUpload2" runat="server" /> <p> <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="upload" Width="83px" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; …

Member Avatar
Member Avatar
+0 forum 2

Hi All, I have a ASP.net web application developed using C#. It has got a button on click of which an excel file is shown to the user. User can save or open the file. But this operation takes about a minute to complete. I wish to implement Ajax in the web page so that the status of excel generation is provided to the user.I wish to put a label control in the web page and update it using Ajax... Please help Thanks Aravind

Member Avatar
Member Avatar
+0 forum 1

The End.