199,114 Archived Topics
Remove Filter ![]() | |
I am using [PhoneGap Build](https://build.phonegap.com/) to build an iOS application and using [weinre](http://people.apache.org/~pmuellr/weinre-docs/latest/) to debug. So far so good. I am trying to use the *media-capture* and *file* APIs to capture a video and get its base64 representation. I can get the video recorder to open, take a video, and … | |
Define a function string sort(string s) that returns a string with the same characters as s, but arranged in ascending order, according to ascii value . For example sort("hello") will return the string "ehllo". Notice that the function returns a different string from the original argument, since s is not … | |
Hello to all, I am working on PHP, HTML, CSS and Joomla since 6 years, but now a days in INDIA many companies are looking for the Drupal Developers, I am lacking skills in Drupal, so can any one guide me to learn Drupal and start building websites using Drupal. … | |
i want to make a program written in vb.net which will take text file and a image file,after that the ouput will be the hidden text in a image so that no one can steal data from that image only sender can hide that data in a image and the … | |
Hello, I am trying to create an alternating table row color but it doesn't work. I wonder why? index2.php <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Transdmin Light</title> <!-- CSS --> <link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" /> <!--[if IE 6]><link rel="stylesheet" … | |
Hi! I am now facing a problem to sent a short message to a smart mobile device. There is no problem to sent a mail to a mail address by using SMTP. But, in my current project, I am in problem to re-set userid and user password through a message … | |
Hi all, I'm working on my python script as I'm pulling the data from the sqlite3 database. I'm trying to convert the string object to datetime object, but I have got a problem with the code as I get the error when I'm trying convert from the string object to … | |
Write a function int findLast(string words[], int numWords, string target) that returns the index of the last occurence of target in words or -1 if there is no occurrence. Remember: you can compare string objects using ==, these are NOT C-strings ! Here is my solution: int findLast(string words[], int … | |
So I'm trying to make a calculator. I'm doing it by parsing the strings of the operation the user inputted. im doing it by adding spaces next(both left and right) of the operator(like "+")and using istringstream to divide the string to divide it. for example, dividing "10+10" to '10', '+', … | |
I have to design a computerized based system for a pre-primary school on Access. What are the advantages of having a computer based system rather than a manual one? Could you please help me identify the tables necessary that needs to be created. ![]() | |
It seems it only executes the first line in which for example in uploading a .PNG photo it changes the format to Jpeg....I guess it has something to do with my if elseif else statement.....help :p <?php if (isset($_POST['submit'])) { $name= $_POST['name']; $album_id=$_POST['album']; $file=$_FILES['file']['name']; $file_type=$_FILES['file']['type']; $file_size=$_FILES['file']['size']; $file_tmp=$_FILES['file']['tmp_name']; $random_name=rand(); if(!empty($name) or … | |
I'll prelude this with I am a novice coder at best and this is mostly a hobby that I would like to do professionally one day, but that day may be 10+ years from now. So for now I tinker and learn here and there. Part of the reason I … | |
Hi guys, I'm working on my python script to create the button for tv programs. I know how to create the variable to get the program title for the programs which I have to pull the data from the sqlite database. I can also create the variable for the height … | |
Hello, Team. I am stuck here at the finish-line on this program, I am trying to create a Click event handler for the Confirm button to save the “txtSales”, “lblDiscountAmount”, and “lblTotalPrice” in session state. Once the Confirm button is clicked it will take the user to the Confirmation page … | |
hello :) I am new to PHP. I was going through the example on w3schools. i managed to retrive my data and display nicely. my problem is i don't know any code that i can use to paginate the data i am displaying. Please help me . the code from … ![]() | |
okay.. what I wanna do is, 1. upload an image into temp folder -- done 2. create a folder -- done 3. create an index.html in the new folder -- done 4. create thumbnail image in the new folder -- page dead without errors 5. copy(rename) the original image into … | |
I'm using python to try and talk to my Arduino with pyserial. The code should wait for an input from COM5, (the arduino), and then sends a 1 and waits for the response. import serial connected = False ser = serial.serial("COM5", 9600) while not connected: serin = ser.read() connected = … | |
Hi i am having an issue with my website. My friend wrote the codes using codeignitor. I am a beginer just to add up . now the index page is only visible and i cannot access any other page than that. Not the admin pages as well. The live codes … | |
The code simply captures your working window as jpeg image and stores it in the same directory as where your java class after compiling by javac is being stored | |
Hi, I am new to JavaScript and I was wondering if it was possible to assign two click actions for one button. | |
Okay so a few days ago I finished a tutorial of photo gallery...I'm having problems of putting images other than jpg format...the one who made the tutorial said that you can add formats to be uploaded but he didnt show it..here was his code in his upload.php...I tried experimenting on … | |
image is uploading in directory and in db also but when i refresh image disappear database.php // i know i should not to use mysql but i have the it into mysqli so no big issue in this <?php //Connection $con=mysql_connect("localhost","root",""); if(!$con) echo "Failed to connect with MySQL.".mysql_error()."<br />"; //Create … | |
Hello, I am trying to create a table with a checkbox for each row to delete the row that checked. Then after the user press the delete button the row that is checked must be deleted. This is the code that I have so far, but I do not think … | |
In a query say i have a image path that have multiple images stored as path=http://localhost/images/xyz.When i run the code: <?php //Retrieves data from MySQL mysql_connect("localhost", "root", "") or die ("Could not save image name Error: " . mysql_error()); mysql_select_db("dawat") or die("Could not select database"); $data = mysql_query("SELECT 'images_path' FROM … | |
Hello, I am generating batch qr codes using the qrcode 5.0.1 package and the following code: from qrcode import * import os,dateutil import pandas as pd from PIL import Image #Importar base de dades pathFile = ('E:\Usuarios\Daniel\Documents\APNAE\QR\Llistat_socis_alta.csv') socisAPNAE = pd.read_csv(pathFile, delimiter = ';', encoding='ISO-8859-1') #generar codi QR for i in … | |
Hello, I have a code which generates QR codes from a csv file: #Importar base de dades pathFile = ('E:\Usuarios\Daniel\Documents\APNAE\QR\Llistat_socis_alta.csv') socisAPNAE = pd.read_csv(pathFile, delimiter = ';', encoding='ISO-8859-1') #generar codi QR for i in range(0,len(socisAPNAE.index)): soci = socisAPNAE.iloc[i,1:6] nom = socisAPNAE.iloc[i,1] nom = nom.encode('latin-1') qr = QRCode(version=20, error_correction=ERROR_CORRECT_L) qr.add_data(soci) qr.make() im … | |
I am web designer and work for a company. I'm thinking to built something for my own. I want to know can i recored live football mateches and upload to a website .. is it legal or illegal ? | |
I have an array of seven numbers and I would like to sort the numbers from the smallest to the largest. How should I do it? | |
So I have like 20 errors in here can someone tell me what I did wrong or how I can fix them? I'm trying to write a program to get the area and perimeter of a triangle. import java.util.*; public class myTriangle3 { //Declarations static double area; static double perimeter; … | |
Sup peeps, hope you guys can give a mate a hand with this default constructor problem. I get this error when i instantiate a class: error LNK2019: unresolved external symbol... This is my LavaLand.h ... class LavaLand { highscore &h; public: LavaLand(); void setup(); }; ... LavaLand.cpp void LavaLand::setup() { … | |
Ok so first off, I've recently returned to C++, and I'm very new to both OpenGL, and Code::Blocks IDE (used to use Bloodshed Dev before) .. so please don't flame me if there's a basic solution to this I'm trying to read a ".asc" file which has the vertices of … | |
`while ($row = mysql_fetch_array($result))` Is nice command which iterates through every line, if `$result` is a MySQL query. It iterates every single line, one by one. See, I've got situation like: <tr> <td>Source 1</td> </tr> <tr> <td>Source 2</td> </tr> And it is kind of part of design, I can't really … | |
Please suggest alternate code for Traingular matrices. #include <iostream> using namespace std; int main(void) { int rows = 5, cols = 5; int **arr; // allocate and initialize the array arr = new int * [rows]; for (int r = 0; r < rows; r++) { arr[r] = new int[r … | |
$("#phone").blur(function () { alert('on blur'); }); form code: <form id="input_form" action=""> ... <td class="text_right">phone: </td> <td class="text_left"> <input id="phone" class="input" type="text" value="(123) 456-7890" name="phone" style="background-color: yellow" maxlength="15" size="15"> </td> | |
This is writen using vb.net and sqlCe. I'm interested how this could be written in SQL server 2008 and vb.net. Dim rs As SqlCeResultSet = cmd.ExecuteResultSet(ResultSetOptions.Updatable Or ResultSetOptions.Scrollable) | |
Hi I wrote a Singleton class but i got an error while controlling instantiation captain.h #ifndef CAPTAIN_H #define CAPTAIN_H #include <iostream> #include <string> class Captain { private: Captain(); Captain(const Captain&); Captain &operator=(const Captain&); std::string name; public: //Controll Instantiation static Captain &GetInstance(); //Set Name of the Captain std::string GetName(); //Get his/her … | |
i have few txt files in one folder. i need a program that will open that folder and read all files one by one to find a string and give me output. so far i got code to do this from only one particular txt file. but i cant make … | |
how can i count or merge same data from the database? here is my code but this wont work..help please.. <?php $result = mysql_query("SELECT category FROM inventory"); while($row = mysql_fetch_array($result)){ $cat_array = array($row['category']); foreach ($cat_array as $value){ if ($value<=1){ echo $value . "</br>"; }else{} } } ?> and my output … | |
Hi, I am currently writing a class that sends device diagnotic information to a server. My Android device will be installed somewhere else and it should send its status to the server. I did 1. current battery level 2. if the battery is charging Whatelse can I diagnose? Is there … | |
Hi, I have written an application that identifies if the fisrt number entered is a multiple of the second number. The application also displays the multiplication table of the second number. What I am now trying to do is to identify which postion the multiple is. For example, 5 * … | |
So I looked into other threads but didnt find a solution that worked for me. Here is my problem: the first page is supposed to get information from a form, look for it in a database, store it in a variable $_SESSION['$dataArray'] and send it to the second page. http://codepad.org/VhblM76K … | |
Am trying to build a function that will take string, sub_string that will be replaced, and new string that will replace that sub_string. Now before you all go with strstr, i dont want to use <string>. Anyway I got my code working to find a index of a char array … | |
I have a large database of tennis match reords played in the ATP and WTA tours over several years. I am going through these to generate a match history for each player in each year in each tour. I have 5 years of data and 4 tours (hence the dimensions … | |
What I want to do is add videos to a list available for rent. In the “main” form when I click “Add” then the frmAddVideo appears where I need to insert all the video’s information. (This works 100% but…) In the frmAddVideo form there is a comboBox with values “Yes” … | |
Doing some revision for a university exam being sat at the end of the week. Got my head around most of the BigO stuff I think apart from calculating the BigO equations like the below. T(n) = 1000040 T(n) = 45n^2 + 3n/1000 + 18(log n) Could anyone explain the … | |
Although i can upload mp3 files locally (wampserver), meaning that the path its been storaged on the database and the actual file is been saved on the folder i have chosen when i upload my site on the internet i can't longer do that. Although the photos i try go … | |
Hy how can insert in this echo function, return confirm ? echo "<input type='submit' name='submit' id='submit' class='btn btn-primary' value=Cancella onclick=window.location='delete_article.php?id=".$row['id']."'; /></p>"; i've already have onclick.... | |
In the program below what is the difference between rand and srand? My book says that rand returns an int between 0 and RAND_MAX, which is never smaller than 32,767. Yet this code returns a number from 1-6, how is that? I see the line `( rand() % 6 ) … | |
Hi I am using progress .GIF image when my web page is refresh or any postback is happen i show progress bar its working fine but when data is render that time .GIF images freezes in IE Browser. | |
Hi, I have a table `id - Product_Name - Price - image` Some value like : `1 - My Product A - 50 - mpa.jpg` `2 - My Product B - 10 - mpb.jpg` `3 - My Product A - 40 - mpc.jpg` `4 - My Product C - 20 … |
The End.