199,114 Archived Topics
Remove Filter ![]() | |
Hello, friends. I did the fourth challenge on Project Euler and I'd like to know what I can do to improve the efficiency of my code. Right now it takes 1.562s to run and the source code is as follows: #include <iostream> #include <string.h> using namespace std; int Number = … | |
In this examle in writer.c I am trying to generate symbols from a to z and then print them in uppercase in reader.c. **writer.c:** // C Program for Message Queue (Writer Process) #include <stdio.h> #include <sys/ipc.h> #include <sys/msg.h> #include <string.h> // structure for message queue struct mesg_buffer { long mesg_type; … | |
Why the part will not have add() and remove() ways whereas Jcomponent Have add() And Remove() ways? | |
Hello php community, Could you help me in my research? I just cannot find what I am looking for. I am working on a website with PHP and MySQL. I am trying to get a filter option on my website to fetch the information from database. Here are the filter … | |
![]() | I have one table with questions and another table with correct answer If any user attempt question then I need result with marks.  I want result:-  Thanks in advance! |
Hello all, I am relatively new to Visual Basic and have managed to muttle my way through creating a 2013 Word document that has some ActiveX controls. The final control I put in place is a Command Button that, when clicked, it sends the form off to an email. That … Programming vb.net visual-basic | |
I realize that this question has been asked many times, but I've yet to find a flatfile version. I'm looking for a way to achieve this: **Scenario:** A person submits their email address via a form. The email is then stored in flatfile database (.txt) The person then gets an … | |
i want to display this number pattern in python, help me! 9 89 789 6789 56789 456789 3456789 23456789 123456789 Programming python | |
![]() | Hello there, > colud you please tell me that how can i generate html into csv, actually it display all tr and td into csv file, here i have share my code <?php /*include("wp-config.php"); include("wp-app.php"); include("wp-active.php"); include("wp-settings.php");*/ //include("index.php"); include("wp-load.php"); include("wp-includes/template-loader.php"); header ("Expires: Mon, 12 Aug 1988 23:30:00 GMT"); header ("Last-Modified: … |
Laravel App checks redis database for data pushed by 3rd Party. Laravel Scheduler runs artisan command `php artisan check:redis` every 10 mins. I am expecting about 20k records to be checked every hour at peak times. Please also suggest me if my whole approach as a whole is flawed. 1. … | |
#include <iostream> #include <cstdlib> #include <fstream> #include <ctime> using namespace std; void array(int arr[], int arrSize); void add(int arr[], int arrSize, int newElem); bool edit(int arr[], int arrSize, int index, int newVal); bool delEm(int arr[], int arrSize, int elem); bool search(int arr[], int arrSize, int elem); bool PunoNa(int arr[], int … | |
I am trying to replace a string in a function with double pointers. I would like to see this change back in main. What am I doing wrong? These are the warnings my compiler gave me. $ gcc *.c -Wall main.c: In function ‘replacevalue’: main.c:10:12: warning: passing argument 1 of … | |
Hello all, I am currently trying to add a button, that when I click it - a list of questions appear (with textareas), every textarea has his own ID and I'm trying to get all of the answers printed into one form. <h5>QUESTION BULK 1/h5> <div id="question1"> <h4">#1</h4> <p>Relative name?: … | |
I have a function that returns an array of photos and videos from an iOS device's camera roll. The info is returned correctly, however, I'm also needing to return the path to the photo and video which I've been unable to do so far. Here is the code I'm using. … | |
I develop a website who is using https://github.com/sindresorhus/screenfull.js/ for full-screen mode. On Chrome, Firefox, Open, and Safari the plugin it works properly. But when I go to Internet Explorer 10+ the plugin doesn't work properly. So when I'm in full-screen mode I can not scroll the content even with the … | |
Hi, I have a C++ program : // ConsoleApplication14.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <list> #include <queue> #include <vector> #include <string> using namespace std; class RectangularVectors { public: static std::vector<std::vector<int>> ReturnRectangularIntVector(int size1, int size2) { std::vector<std::vector<int>> newVector(size1); for (int vector1 … | |
Hello, This is PHP. Help me understand this code: if($selectDB == true){ $query = "INSERT INTO recruitment (ID, nama, jenis_kelamin, tanggal_lahir, nohp, email, alamat, provinsi, kota, zip, status_nikah, jumlah_tanggungan, agama, file_attachment, cover_letter) VALUES (NULL, '$nama', '$jenis_kelamin', '$tanggal_lahir', '$nohp', '$email', '$alamat', '$provinsi', '$kota', '$zip', '$status_nikah','$jumlah_tanggungan','$agama','$file_attachment', '$cover_letter');"; // "INSERT INTO Customers (CustomerName, … | |
What's the difference between LCASE() and LOWER() in MySQL? I found places on the web that said they're similar but not a synonym for each other, so I'm not sure what the differences are? | |
Can anyone help me with the process of making an executable python script in Unix? | |
Hi, i have a textfile with a string in it. The string is built like this: test =""" [ "this is a text and its supposed to contain every possible char." ], [ "like *.;#]§< and many more." ], [ "plus there are even newlines in it." ]""" I want … | |
Hello, I am have been struggling with this and need some help. I am reading and excel sheet and getting the data and trying to search sql server to get the record. IN excel the length is 12 characters and in sql its 30. I am trying a like query … | |
I have neither a perfect monitor nor do I have perfect eyes. More often than not, I run into web sites that are just too dim/faded that I cannot read the text or see text boxes. I have seen this referred to as "The Grey Plague". Since I can use … | |
Hi guys. I'm about to embark a new journey of learning how to create a android game. So, I don't have to publish it yet. I want to do self-learning. I also want to learn animation along the way. Maybe 2d if 3d is too time-consuming? I've read animation takes … | |
Hi I am trying to get windows positioned in specific order as show below  but I am unable to get and get always this  the code below is shown HDWP cmdWnds; cmdWnds = BeginDeferWindowPos(col.size()); for (int i = 0; i < col.size(); i++) { if (i == 0) … | |
What function should I use to convert JSON into Python data? | |
Previously used winXP operating system running normally (very good) when switching to win7 operating system, this error, read errors from the SQL Server data, what is the error ? http://www.mediafire.com/view/4q5ux6e66ds4avb/ErrorOpenSQL.jpg/file | |
i am new to c programming and i wanna ask for help. at the end of the coding part, how can i print out the orderlist, the quantity and the total price for the food? I personally think that it is similar as print out a reciept but i have … Programming c | |
I know an AVL Tree guarantees a time of log(n), but what is the time cost of the actual re balancing of the tree and why is this ignored? | |
I am traying to filter Datagrid view based on user type in TbxGlCode (TextBox) Initialy Datatable is populated from SQL table to TempTable (DataTable) getting error at **runtime** at below line Dim Rows As DataRow() = TempTable.[Select]("Code like '%" & VerCode & "%'") Exception Unhandled **System.Data.EvaluateException: 'Cannot perform 'Like' operation … | |
#!/bin/bash v="test" result=`grep 'Dir=' /home/xtend/Videos/file.ini | cut -d'=' -f 2`; foo="$result" foo+="$v" echo $foo answer expecting(/home/file/test) answer getting(teste/file) (In "/home/xtend/Videos/file.ini" "Dir=/home/file/") ... how it is outputing like this? Programming shell-scripting | |
I am a beginner in C++ coding. Now I am making a little text based game and i need to do a loading screen. I've kind of made one but i want to fill it with this shape ■. What i know is that the ascii code for it is … | |
I'm working on the employee management system where i want to calculate employee late hour after after employee punch in? **For Example** ABC Employee Shift Start At : 01:00:00 PM Shift End At : 09:00:00 PM Employee Punch Timing At: 02:30 PM Now how i calculate employee late hour ? … | |
I create a project on vb.net 2010 and SQL server 2008r2 I showing a report in listview report am show fine and error free. But now I want to add a sub total column every end of the category. How it is possible please help me sir Please see the … | |
When I try to display the address of a char type variable, I don't get the normal hexidecimal address, but some strange symbols. I don't have the same problem with int or string, etc.. Example: char x='#'; cout << &x; The output of this is: #( ( What's the explanation? | |
Hello Daniweb Family, I am trying to create something like a "Earthnull" look alike. I am not good in coding and try to find something that can help me to start on. I found something very similar on what will be the target output. HTML: <!DOCTYPE html> <html lang="en"> <head> … | |
Pretty neat text-based RPG that I made. Currently my first game. ![]() | |
Hi, i'm using ***lenovo b570e Intel Core i3 (2nd Gen) 2330M / 2.2 GHz and 4GB ram***. But i can't run android studio on it as it is not only slow but its too slow. Currently i don't have budget to buy higher specs laptop i just want to ask … | |
Guys this question is continual. however i found the answer virtually however still cant compass. i dont shrewdness to resolve it. thats why i announce it as new question iam operating with a project. iam exploitation native-validations-master downloaded it from internet. this is the link for that: https://www.cssscript.com/custom-html5-form-validator-native-validations/ It conjointly … | |
I have a JSON array that has multidimensions to it: { "@id": "a", "@label": "A", "drecord": [ { "@id": "aaliyah", "@rdate": "2001-08-25", "@lease": "bh05", "name": { "surname": "Aaliyah" }, "job": "hip hop singer/actress", "dead": { "@value": "y" }, "cause": "Burned to death in a plane crash", "ddate": { "date": "2001-08-25" … | |
I'm doing both SELECT and UPDATE queries using named placeholders. But course data from the database doesn't populate form, as expected. The database table row records don't populate, each time I try to edit a course in the browser. I connect to the database usining PDO. And I do SELECT … | |
I have a form that uploads a news article with it's picture and then stores all the info correctly. I am using codeigniter with Active Record and would like to know how to display the image with the post it was uploaded with. here is my upload script: public function … | |
I trying to write a code that reads a set of integers and then finds and prints the sum of the even and odd integers. The numbers will be read in from the user via the cin statement. You do not know how many numbers the user may enter. When … | |
Ok I have a a list of about 392 items that needs to be put into an excel form. I manage to get Column A (which is the inserted worksheet names) to name the worksheets that is automatically inserted. I have attached an example of my table When the code … Programming microsoft-office | |
i am using zk sdk to connect to fingerprint i tried Connect_Com(1, 1, 38400) BaudRate is the same in the application and the fingerprint i am using com1 the deviceid =1 but the connection between fingerprint and pc failed do u have an idea about configurations needed to the serial … | |
Hello, I want help in scrapy i want scrap this page full source code as Inspect Element mode https://www.contechlighting.com/en/products/recessed-lighting/led when i use this code import scrapy class TEST(scrapy.Spider): name = "quotes" start_urls = [ 'https://www.contechlighting.com/en/products/recessed-lighting/led#t=Products&sort=%40wcs_site_tree_rank ascending&layout=card', ] def parse(self, response): filename = 'contechlighting.html' with open(filename, 'wb') as f: f.write(response.body) get … Programming open-source python | |
*Hello** This has been a question for a long time / Request for help for a PHP script. A year ago I created a homepage for a friend (online tutoring website) and installed a finished script for an occupancy calendar and did not consider / knew that the server will … | |
I'm trying to upgrade my script from PHP 5.5 to PHP 7.2. And that came with the script not able to modify a selected table row as before. The records don't even populate whenever I try to edit a course in the browser. Please, note that I'm connecting to the … | |
I'm using Gambas as my language.. :-) Now I have a problem getting some values from an XML document. I'm using xml.gb as my "plugin". The XML document is: "<ns1:Event> <ns1:Number>1</ns1:Number> <ns1:Name>Home Team - Away Team</ns1:Name> <ns1:Status Id="100">End</ns1:Status> <ns1:Results> <ns1:Result Id="0" Name="Result">2</ns1:Result> <ns1:Result Id="1" Name="Fulltime">2</ns1:Result> <ns1:Result Id="2" Name="Halftime">0</ns1:Result> </ns1:Results> </ns1:Event>" … | |
I need to create a class that represents one crayon of a particular color and height(length). Then, I need to design an applet that lets me draw a box of different colored crayons. This is what I have so far: **CLASS:** import java.awt.*; public class Crayon { private final int … | |
hi, i am trying to read from a text file and store the data in an array but i don't know how to get started with my code. can someone please get me started here. i have start with the code for locating the file, but i am having difficulty … |
The End.