199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Sherwin_4

Good afternoon everyone, I'm currently working towards to provide the following output for my code: What number shall i start with? 7 The hailstone sequence starting at 7 is: 7 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2 1 The length of the …

Programming c++
Member Avatar for Sherwin_4
0
2K
Member Avatar for SimonIoa

Hello i want to do a count from 1 to 30 (1,2,3,4,5,6,7,8,9 etc) with javascript I did this var i = 1; if(i<=30) { i++; } '<span>#'+i+'</span>' all good but the count starts from 0 not 1 as wanted

Member Avatar for SimonIoa
0
201
Member Avatar for Adm666

So i've made a Node class : public class IntNode { private int _value; private IntNode _next; public IntNode(int v, IntNode n) { _value = v; _next = n; } public int getValue() { return _value; } public IntNode getNext() { return _next; } public void setValue(int v) { _value …

Member Avatar for JamesCherrill
0
930
Member Avatar for SimonIoa

Does anyone know what is the correct image size for Facebook. I mean if it is below some certain pixels it doesnt show the og:image. You may see what i mean here https://www.rovespier.com/uploads/Untitled-111.png

Member Avatar for cereal
0
288
Member Avatar for Stefce

Is it good idea/possible to encrypt everything in your database (Emails, User Input, Passwords :), everything.. )? Is there something which will shut down the current PHP script OR website entirely ? **EDIT: This is not sponsored queston i have not donated any money, why is `Sponsored` badge at my …

Member Avatar for Dani
0
191
Member Avatar for SimonIoa

Hello i am getting an error TypeError: data is null i can't find the error. js <script> $(document).ready(function() { username='<?php echo $_GET['public_username']; ?>'; apiBaseUrl='<?php echo $base_url; ?>'; singleArtist(apiBaseUrl,username); }); function singleArtist(apiBaseUrl,username) { var html =''; var encodedata=JSON.stringify({"username":username}); var url=apiBaseUrl+'api/singleArtist'; ajaxPost(url,encodedata, function(data) { if(data.length) { $.each(data, function(i,data) { html += 'dddddd'; …

Programming api javascript json php
Member Avatar for SimonIoa
0
364
Member Avatar for shany0786

I have scenario where one user can refer two codes to other one will become right and other left.Now this right can have two child left and right and so on same for left child user.... So this is binary tree like strucutre so i am selecting a user from …

Member Avatar for shany0786
0
350
Member Avatar for davy_yg

Hello, I am looking for browser simulator to create responsive website. Where to find it? How to create a quick responsive website? For PC, Handphone and Tablets.

Member Avatar for jkon
0
299
Member Avatar for Jeah_1

Help me create a code that will ask the user the guess the randomly generated integer by the computer using recursive function. Thanks!

Member Avatar for slate
0
177
Member Avatar for Monique_2

Modify the Week Two Java non-GUI console application using NetBeans IDE (or jGrasp) to meet these additional and changed business requirements: • The company has recently changed its total annual compensation policy to improve sales. • A salesperson will continue to earn a fixed salary of $35,000.00. The current sales …

Member Avatar for JamesCherrill
0
563
Member Avatar for Sukhdeep_1

i have just installed c builder and i was doing a simple program and when i set to run it is giving me this error: [Linker Fatal Error] Fatal: Could not open C:\Program Files (x86)\Borland\CBuilder6\Projects\Project1.exe (error code 5) . i read some comments and i saw that i have to …

Member Avatar for rproffitt
0
509
Member Avatar for Dorcas_1

I want multiply three numbers in VB many private sub cmdmult_click() multiplication=Val(text1.text) * Val(text2.text) please assist me

Member Avatar for ddanbe
0
196
Member Avatar for davy_yg

Hello, I am trying to create bar chart with html but how? Country Bar Chart 3D https://www.freshdesignweb.com/css-jquery-graph-bar-pie-chart/ I try to copy the bar chart but it does not work out well. Please help. Nothing appears after I copy. I wonder if I copy the code correctly. http://codepen.io/miyavibest/pen/Bfima

Member Avatar for diafol
0
368
Member Avatar for Violet_82

hi guys, I came across something rather interesting today. Basically at the moment I'm trying to add multiple spans with a background image to a horizontal div so that the final product looks something like a large ruler ( I use an image with a little black tick to simulate …

Member Avatar for Violet_82
0
277
Member Avatar for akrati

please , tell me how i should start making a simple search engine.......what are the things i will need to learn.And how should i proceed?

Member Avatar for Dani
0
310
Member Avatar for alina_3

I am writing a android and windows native app. The native app stores the login details as reated for mulitple other web apps, and logs them into this when browsing to them from the native app. one of the buttons in my app open a [prestashop](https://www.siteground.com/tutorials/prestashop/) site for a authenticated …

Member Avatar for rproffitt
0
659
Member Avatar for mpdph09

I am not expert. I am trying to delete the files from the directory at button click. I have windows application which have folders populated in combobox1 and files populated in combobox2. I need to delete the selected folder from combobox1 and files within the folder. I am getting error …

Programming c c# c++
Member Avatar for rproffitt
0
5K
Member Avatar for Tre Sivileo

I am coding a roman to arabic console program for class been having issue with it I am not sure how to get the next char after the the first char I have tried everything I am not allowed to use cin.peek(). Also my output loop generates p = 0 …

Member Avatar for tinstaafl
0
304
Member Avatar for RoDaGo

Hi, I've had a report that my website has an XSS vulnerability (specific details have not yet been provided). Can anyone recommend any software that I can use to test my site for weaknesses please? Thank you

Member Avatar for RoDaGo
0
141
Member Avatar for Adolf_1

I am building a system that will take about 20 million records. I am confused, if I should put all these records in one table or I should split it among severals tables to speed up the performance.

Member Avatar for Adolf_1
0
173
Member Avatar for gkumaravel

I want to Develop custom mail client using Asp.Net MVC and C# For my own mail domain (for ex:- myname@mydomain.com) I don't know Is this Possible or Not ? because I am very new to .Net Web Applications If it is Possible I want the following features **1. Send & …

Member Avatar for Dani
0
491
Member Avatar for monst3rworld

Hi Everyone, How are you all? Friends i m new on daniweb, and i just want to know that how can i make diamond with stars (*) using "For" Loop in PHP. My Teacher Gives me an assignment to make like this... [code] for ($a=1; $a<=5; $a++) { for($b=1; $b<=5; …

Member Avatar for Krishna_23
0
2K
Member Avatar for Dani

Why was `INSERT DELAYED` deprecated? https://dev.mysql.com/doc/refman/5.7/en/insert-delayed.html I used to use it and it was incredibly useful.

Member Avatar for rch1231
0
288
Member Avatar for Rehana_1

Hello could you help me win 12 slot keno...masslottery.com... I am trying so hard to understand your keno code online.. Could you please break it down for me...how do I beat the computer...

Member Avatar for ddanbe
0
185
Member Avatar for davy_yg

site/views/index.php <?php foreach($pic as $pic_item): ?> { <img src="<?php echo base_url('assets1/images/slider/'.$pic_item->pic_item );?>"> } <?php endforeach; ?> controllers/Cspages.php public function index() { $this->load->model('gallery_model'); $pic_unique_id = 18; // slider $data['pic'] = $this->gallery_model->get_picture($pic_unique_id); $this->load->view('index', $data); } models/Gallery_model.php public function get_picture($pic_unique_id) { $query = $this->db->get_where('galleries_pictures', array('picture_unique_id' => $pic_unique_id)); return $query->result(); } How to fix …

Member Avatar for Mark_k
0
306
Member Avatar for Jacob_10

HI Dani, I am working on a dissertation project, based on a library management systems. There are a number of features as admin, that needs to operate, which are as follows:- 1. Inserting new books' info 2. Issuing books 3. Fines 4. Editing books details 5. Return books 6. Multisession …

Member Avatar for diafol
0
246
Member Avatar for _1_14

I generate qr code for name and country and member qr code generated without any problem but i need to use memory stream and not use save file dialog my code as below using (SaveFileDialog sv = new SaveFileDialog() { Filter = "JPEG|.jpg", ValidateNames = true }) { if (sv.ShowDialog() …

Member Avatar for ddanbe
0
373
Member Avatar for bmanzana

i am building a pong like game and cant seem to figure out how to add in a pause feature everything else works i have movement and collision detection, sound, game over and restart options but cant figure out how to pause the game any help would be greatly appreciated …

Member Avatar for shubham_9
0
9K
Member Avatar for Siberian

I was able to produce what I want using Adobe Animate. I want to reduce the amount of [code](http://codepen.io/Sheep/pen/VPPyOJ), as Animate inserts extra code that from my perspective seems useless ?

Member Avatar for gentlemedia
0
337
Member Avatar for janicemurby

hi i have the following form where a member chooses how long they want to be be displayed on another page like example below <select name="hours"> <option value="1"<?php if(!empty($hours)) {?><?php if($_POST['hours']=="1") { echo "selected"; } ?><?php }?>>1</option> <option value="3"<?php if(!empty($hours)) {?><?php if($_POST['hours']=="3") { echo "selected"; } ?><?php }?>>3</option> <option value="6"<?php …

Member Avatar for diafol
0
229
Member Avatar for Himanshu Chawla

Here is my HTML Code: <div class="container"> <div class="row db-padding-btm db-attached"> <div class="col-xs-12 col-sm-3 col-md-3"> <div class="db-wrapper"> <div class="db-pricing-eleven db-bk-color-one"> <div class="price"> <sup>$</sup>99 <small>per quarter</small> </div> <div class="type"> BASIC PLAN </div> <ul> <li><i class="glyphicon glyphicon-print"></i>30+ Accounts </li> <li><i class="glyphicon glyphicon-time"></i>150+ Projects </li> <li><i class="glyphicon glyphicon-trash"></i>Lead Required</li> </ul> <div class="pricing-footer"> <a …

Member Avatar for diafol
0
468
Member Avatar for Jacob_10

Hi Dani, I have already posted for the first code, now i want to move on to the next which is issuing books. (due to the closeness of the deadline, i will be posting all areas where i'm having problems) The issue_book.php page is supposed to capture the ISBN, current …

Member Avatar for diafol
0
614
Member Avatar for Dani

I have an InnoDB table called `articles_read` with fewer than 20,000 rows in it. It consists of 3 columns: member_id article_id timestamp There are two indexes: A unique index on (member_id, article_id) and a regular index on (timestamp). It is read from fairly more than it is written to, and …

Member Avatar for pty
0
265
Member Avatar for Adm666

is there anyway to improve my code's time complexity or memory's complexity ? (without using advanced methods - im a beginner) its a method that gets an array filled with zeroes and other numbers, and it changes each number(which is not a zero) to the distance of the closest zero …

Member Avatar for JamesCherrill
0
413
Member Avatar for mark_62

I'm having problem using Thunderbird sence this issue from few weeks is there any solution or Mozilla just no more.

Member Avatar for Reverend Jim
0
191
Member Avatar for tofi

HI I have .csv file which contains 3 columns ( feature 1 , feature 2 , class ) I need to take 13 row each time from f1,f2 with "1" at the end and save it into another .csv file so if the file contains f1 f2 class 1 1 …

Member Avatar for tofi
0
344
Member Avatar for Adm666

i tend to make a method which compares between 2 strings, str1 and str2 and should return true in the terms: -every character in str1 must show up in str 2 at least once or more and in the same order -str2 must be the same length or longer than …

Member Avatar for Adm666
0
4K
Member Avatar for Alana_1

Hi every one :) I've been doing a project and it seems hard for me to finish it, because i dont have an idea with the code. i have a code for looping picturebox . several picture box during runtime had been done, but how do i can give them …

Member Avatar for Reverend Jim
0
218
Member Avatar for Akshay_5

I have a database with only one table which has around 2 Million rows and 60 columns. I created a php application with multiple search filters like name, country, state, surname, domain etc which will filter and display the result in HTML table. But the problem is, every text field …

Member Avatar for john_111
0
2K
Member Avatar for shany0786

Hello every one i am having one doubt i have a set of links[url].Now there is pave ackages like 6 links,25 links package. if two user select 6 link each day and both will have same links[url] .now i when user log in then on adversitment page he visit each …

Member Avatar for shany0786
0
726
Member Avatar for kes166

Hello, I've been working on learning VBScript to make a few useful scripts to work with WinNT and make a more user friendly interface when searching for users on a domain. While doing so, I discovered something interesting about arrays and I'm hoping someone could explain if it's just the …

Member Avatar for Reverend Jim
0
318
Member Avatar for Monique_2

I wrote the program up, but I'm getting all types of errors. Which I'm new to this whole Java Application class. I keep getting errors : Please help. 1. employee is not defined. 2. NewSalesPerson is not defined. 3. UtilnumFormat is not defined. 4. Variable declaration not allowed here. 5. …

Member Avatar for JamesCherrill
0
657
Member Avatar for Monique_2

Part 2 to Salesperson Java Application, still new to this. class SalesPerson { /** * Fixed Salary */ final double fixedSalary = 35000; /** * Current Commission Rate */ public double curCommissionRate = 0.15; /** * Accrued Commission */ public double curCommission = 0; /** * Total Compensation */ public …

0
229
Member Avatar for Arpita_1
Member Avatar for Arpita_1
0
321
Member Avatar for Jan_8

Dear, I'm really new in c# WPF and I need to develop a program that read a directory with sub-directories and files. For each directory I need to create a form and for each file a button. the directory structure is: c:\dir1 c:\dir2\subdir1\file.pdf c:\dir3\subdir1\file1.pdf c:\dir3\subdir1\file2.pdf C:\dir3\subdir2\file21.pdf If it's possible, how …

Member Avatar for Reverend Jim
0
164
Member Avatar for Valentine_1

Elevator Logic 1. You are an elevator control systems engineer for ElevatorCorp Pty (Ltd) 2. You have been receiving complaints from a specific customer about the performance of your elevators 3. They have 5 elevators installed that have to service 10 floors 4. There are 1500 people working in the …

Member Avatar for Reverend Jim
0
586
Member Avatar for Carlo_1

Hi this is my last try before I give up on Forums. I have been asking this question many times, searched the whole Internet and found no answer so far. Can somebody tell me how to insert data in a TablePress table from a form on a webpage(yes like a …

Member Avatar for rproffitt
0
838
Member Avatar for vedmack

Heya i want to use ShowWindow(hWnd, SW_HIDE); to hide some application, The problem is that the code i wrote works perfectly for any application except the one i need it for heres the code [CODE] HWND hWnd = FindWindow(NULL, sName); if(hWnd) { ShowWindow(hWnd, SW_HIDE); } [/CODE] it does execute the …

Member Avatar for Gustav_1
0
10K
Member Avatar for complete

I have my fresh Drupal 7 web site up and running. I am currently testing it. My first test is to try the functionality of creating a new user. I tested added myself (no, not my admin account -- a different one with a different email address). The new user's …

Member Avatar for complete
0
231
Member Avatar for ddanbe

Short snippet in C# to do this classic trick, I could not find one on the web. Little, (even none!) error checking is done here.

Member Avatar for ddanbe
0
886

The End.