199,114 Archived Topics
Remove Filter ![]() | |
I want to make a form application that upload torrent file in bytebx.com using my username and password Could any one help me? Torrent uploading header request like : http://bytebx.com/storage POST /storage HTTP/1.1 Host: bytebx.com User-Agent: Mozilla/5.0 (Windows NT 6.3; rv:34.0) Gecko/20100101 Firefox/34.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate … | |
i am missing something <?php $target = "images/dars/"; $target = $target . basename( $_FILES['uploaded']['name']) ; $ok=1; if (file_exists($_FILES['uploaded']['tmp_name'])) { echo "Sorry, file already exists."; $Ok = 0;} //This is our limit file type condition if ($target!=="image/jpg") { echo "You may only upload jpg files.<br>"; $ok=0; } //Here we check that … | |
Hello I have one field on a Web form for a user to type in his email address. If I leave the field blank and press submit, I get this error: Server Error in '/' Application. -------------------------------------------------------------------------------- System.NullReferenceException: Object reference not set to an instance of an object. The error … | |
I'm using a WPF Textbox in Winforms using elementhost to get the SpellChecker feature. I loaded a large text file with at least 100,000 + characters and over 2,000 lines. It opens the file and adds the text to the wpf textbox normally and I can easily scroll through the … | |
My company is using Legacy ASP with VB script. The code I am testing to try and count the rows in a stored procedure is as follows: If Not isNull(dblOrderMasterID) then Set cmdAttachCount = Server.CreateObject("ADODB.Command") cmdAttachCount.ActiveConnection = cnn 'cmdAttachCount.CommandText = "SP_OrderGetAttchID" 'cmdAttachCount.CommandType = adCmdStoredProc 'prm.Append cmdAttachCount.CreateParameter("@u_order_master_id", adNumeric, adParamInput,,dblOrderMasterID) 'Set rstAttchCount … | |
it it is me again. I am know guys are probably thinking am bothersome here is my question. it is about the java game am building no I havent finish it yet, still having some trouble i have declare this syntax, I know that I have asked this question before … | |
hello please find and try to help me about this problem> at this file ( Global.asax ) and you can check my website: http://www.almusairiey.com Compiler Error Message: BC30205: End of statement expected. Source Error: Line 16: Line 17: Function GetParentDir() As String Line 18: Dim PD String = Server.MapPath("db\") Line … | |
Hi I need to disable the export excel in report viewer in asp.ne I have debugged , shows "Object reference not set to an instance of an object" in this line *"Dim ListRenderingExtensions As System.Reflection.MethodInfo = m_previewService.FieldType.GetMethod("ListRenderingExtensions", Flags)"* pls help me maideen Protected Sub DisableFormat(ByRef viewer As ReportViewer, ByVal formatName … | |
I have a datagrid with checkboxes that lets the user to multiple delete. How do I store the deleted records into a text file? I am using Access to store my data My code for delete is Try con.Open() For Each row As DataGridViewRow In DataGridView1.Rows If row.Cells(0).FormattedValue = True … | |
Hello I am getting a bit mixed up with my code: Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click Dim validFileTypes As String() = {"bmp", "gif", "png", "jpg", "jpeg", "doc", "docx", "txt", "xls"} Dim ext As String = System.IO.Path.GetExtension(FileUpload1.PostedFile.FileName) Dim isValidFile As Boolean = False For … | |
hi, i'm working with a travels project i have two tables(vehicle_entry and booking).. when i try to book on some particular date only available vehicle names should be shown in the combo box... it shold show all the names from vehicle_entry table except that vehicle is registered in booking table … | |
Hi, The sqrt function does not accept integers of type `unsigned long long int`. Is there a pre-exisiting C++/C standard function that can compute square roots of integers of that size? Thanks in advance, Caelan. | |
Is there a way to connect wordpress and dreamweaver together, in an easy way? I have been getting frustrated with templates that I use and now i want to completely modify them so that they fit my needs. I want to be able to make a change on dreamweaver and … | |
So I am kinda new to developing client and server sockets (protocols), and am developing something just for fun on my own network. This program basically will send all files from a specific folder to a client. So I am wondering if I wanted to send multiple files over one … | |
This is the first time I have felt a smidgen of fear when learning C++. I am doing an exercise in *Accelerated C++* and the fear is that I'm not appropriately handling memory. I'll list my code below but I figured I would give some specific questions first: 1. Is … | |
Hello Group! I am in need of converting a "text" file created by a UNIX based program (it is only semi-formatted) and put it into a more-formatted text (.txt) file. Put a different way, this needs to be converted such that it can be opened in Notepad and it be … | |
I've been having a hard time for quite a while now trying to read files. These files include English text, pictures music and so on. After hurting in the jungles of Africa or the internet I found something that worked. `string str((istreambuf_iterator<char>(fileIn)), istreambuf_iterator<char>());` This made it possible to do all … | |
i want to populate jtable from database upon clicking on jbutton...how could i do this?? | |
i have a php methode that checks if a passed in parameter is a date. Here's it: public function is_Date($str){ if (is_numeric($str) || preg_match('^[0-9]^', $str)){ $stamp = strtotime($str); $month = date( 'm', $stamp ); $day = date( 'd', $stamp ); $year = date( 'Y', $stamp ); return checkdate($month, $day, $year); … | |
Hi I wanted to draw a field like this photo which I have attached. I would appreciate your help. I have wrote so much now: for (int x = 2; x < 12; x++) { for (int y = 2; y <= 12; y++) { g.drawRect(40*x, 40*y, 40, 40); } … | |
What is the main Difference between var $name and var name? | |
it is a simple program but the beuty lies in its shortness it is written in least line as possible By :- Anurag Pareek | |
Hello, please help segmentation of a picture in color using Builder C++ -Level set or - Growing region or - Watershead. | |
(1)You have a PHP 1 dimensional array. Please write a PHP function that takes 1 array as its parameter and returns an array. The function must delete values in the input array that shows up 3 times or more? For example, if you give the function array(1, 3, 5, 2, … ![]() | |
Hi. I'm looking for a social networking or dating script/software with the following features: > Standalone script/software to be used on my own server (no hosted solutions). > Supports mobile devices. Users can view my website, edit their profile and upload photos from their mobile phone. Can anyone recommend a … | |
Which class structure is better for what purposes. This one: class Text: def __init__(self, passage): self.s = passage def read_text(self): return self.s def grow(self, sentence): self.s = self.s + sentence.s class Sentence(Text): def __init__(self, sentence): Text.__init__(self, sentence) self.s = sentence def format(self): self.s = self.s[:1].title() + self.s[1:len(self.s)-1] + ". " … | |
I'n trying to convert a dbf file to a csv file(or anything else really). I found this on the interwebs but I get an error import csv from dbfpy import dbf import sys dbf_fn = 'in.dbf' csv_fn = 'out.csv' in_db = dbf.Dbf(dbf_fn) out_csv = csv.writer(open(csv_fn, 'wb')) names = [] for … | |
Create a two & three -Dimensional Shapes Mini-system that consists of 6 shapes, Square, Rectangle, Triangle, Circle, Cube and Sphere and then calculate area, perimeter, volume , or draw the shape. After that, it does the following tasks: 1. The code ask the user to enter the required values should … | |
i have programe in c but i need to use function and i have no idea how do it can any one help me please and one more thing i cant use loop inside case so it must be out #include<stdio.h> #include<stdlib.h> int main() { int row ,n,c,temp,k,count=1; int input … | |
![]() | Is there a good pratice for naming form controls which are purely cosmetic? If not, any suggestions for variable names for these controls? E.g A label (which never changes) above a text box. ![]() |
#include<iostream.h> #include<stdio.h> char A[3][3]={1,2,3, 4,5,6, 7,8,9}; void printmaze(); void makemove(int,int); void checkmove1(int,int); void checkmove(); void checkrow(); void checkcol(); void checkdiag1(); void checkdiag2(); void makealtmove(); void result(); int main() { int m11,m12,m21,m22,m31,m32,m41,m42,m51,m52; char ch; do { cout<<"Welcome to tic-tac-toe"<<endl; printmaze(); cout<<"for choosing 1--> input 0 0, 2-->0 1, 3-->0 2 \n … | |
Hi, I wrote this implementation of Sieve of Eratosthenes, is there any way I could eek some more performance out of it. As in opitmising data types, calculations etc. #include <iostream> // cout #include <math.h> // sqrt #include <time.h> // clock/CLOCKS_PER_SEC #include <stdlib.h> // malloc/free using namespace std; int main(int … | |
Hello Guys, its my first few months on progamming, love the course but things are abit confusing at the moment, i have this assignment below, pls i will appreciate if anyone can help me out. Write a program to accept a number of scores from a user. Use floating point … | |
HI guys, I'm having a problem with hiding and showing a panel that contains a text box. Basically the panel is hidden and whenever a radio box is selected the panel should show but it won't work. Here is the code: <div class="expensesForm"> <div class="control-group"> <label class="control-label" for="rent">Rent</label> <div class="controls"> … | |
Hi all, I just came across something odd. I'm just building a simple form, like this in visual studio <div class="control-group"> <label class="control-label" for="rent">Rent</label> <div class="controls"> <asp:RadioButton ID="rent" runat="server" GroupName="expenses" /> </div> </div> and when I viewed it, I expected to be able to click on the label and get … | |
product between 2 arrays of 2 dimensions and be the score is stored in another array using ecplise and gridsim for exemple: mat3[i][j]= mat1[i][j]* mat2[i][j] | |
I have two datagrid's in one form,so when i click by using cellclick event it shows the selected row of first datagrid in the second datagrid,so my question is how to increment it with the previous selected row of first datagrid,as i select other row the first selected row disappears?? | |
![]() | Hi guys, This one has got me completely stumped. Here are my trouble shooting notes. My upload script works absolutely fine without any changes on localhost. However, on the live production server my files do not get uploaded. My view is: <?php echo form_open_multipart('upload/do_upload');?> <input type="file" name="userfile" size="20" /> <br/> … ![]() |
I have some errors while trying to fix the following codes: update_image2.php <?php //LOAD IMAGE TABLE if (!empty($_GET['image_id'])){ $result = mysql_query("SELECT * FROM image_upload WHERE image_id='".$_GET['image_id']."'") or die(mysql_error()); $data = mysql_fetch_array($result); $image_id = $_GET['image_id']; $newfilename = $data['newfilename']; $class = $data['class']; $location = $data['location']; $minwidth = $data['minwidth']; $maxwidth = $data['maxwidth']; $minheight … | |
I have datagridview in form1 and i can add rows in it... now on button click i want to show the same datagridview in another form with same rows which i have added already in form1 datagridview...can someone help me with this?? | |
Hi guys, I'm working on my python script to get the list of elements in the arrays. I'm using the variable `position_x = elem.getX()` to get the list of pixel size for the elements. Here is the output: 18:32:12 T:4060 NOTICE: 375 18:32:12 T:4060 NOTICE: 724 18:32:12 T:4060 NOTICE: 1073 … | |
Hi everyone. I want to ask a question on how to show pictures (jpg files) from access database to a form I have a database called DataBase, i have some fields there. One is called picture, and the data type is attachment. and i have the following code Dim ds … | |
Hi All, I am very new to C Programming. I am writing a C Program to run in an UNIX machine which is used to Archive Log files if it exceeds a particular Size. The thing is the program has to get the details of the file like file name, … | |
Hello, I need a little help with trigger, I have been doing database development for a long time now but this is my first go around at a trigger. It is not working, can someone please look at this and let me know what I am doing wrong: ALTER TRIGGER … | |
Hello, I am trying to page an RSS page from asp maker. I keep getting the following error: This page contains the following errors: error on line 18 at column 102: Opening and ending tag mismatch: font line 0 and description Below is a rendering of the page up to … | |
Hi..i m new here..i want to ask some little help..how can i save the listbox items into binary file? The items should write at specific location which is offset 0x2E (item1), 0x9A (item2) and 0x106 (item3)..each offset separate by 108 length.. | |
I tried to save rows in listview control in database but i am not able to loop through each row. My listview is multicolumn, it have 4 column. I tried for loop: for (int i = 0; i < listview.Items.Count; i++) { String abc = listview.Items[i].Subitem[i].Text; //other varables } But … | |
I have a requirement to update a configuration file content at a specific lines location. How to do this in python. For example, I have a configuration file which is having below 5 lines now: define host{ name kiki-server; XXXX XXXX; XXXX XXXX; } I am interested have my python … | |
Hello fellow coders, I am currently taking a C++ class and have a final project due very soon. We are recreating the game Othello/Reversi using the console. So far I haven't run into really any problems and it hasn't been too bad. I have almost all of it complete except … |
The End.