64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Esmerelda

One of the questions given to us for the lab exam was to generate the first 10 armstrong numbers. I could generate upto 5 numbers correctly..the rest are wrong. [code] #include<stdio.h> #include<conio.h> void main() { int n=1,a,b,i=1,r; clrscr(); while(i<=10) { a=0; b=n; do { r=b%10; a=a+r*r*r; b=b/10; }while(b>0); if(a==n) { …

Member Avatar for Tushar_4
0
2K
Member Avatar for eniacpx

I keep getting "List index out of range" when trying to execute this code, but for the life of me I cannot figure out why, If anyone has any experience coding linux gDesklets this would help. File: StockWatcher.display [code] ... parser.dataSet = stockInfo.html ... [/code] stockInfo.html is an object containing …

Member Avatar for Gribouillis
0
5K
Member Avatar for Angelito_1

how to comute the total value I input in textbox then after that I will going to add another value and the total of both sum will display in textbox for example num1 = Val(btn.Price) * num2 = Val(btn.Quantity) then total amount display the value of num1 is 60 then …

Programming vb.net
Member Avatar for Santanu.Das
0
224
Member Avatar for rpv_sen

Hi I am trying to create a service in c#, if i click start in service it has to execute the run.bat file. if i click stop in service it has to execute the stop.bat file can any one please help me to fix the code. using System; using System.Collections.Generic; …

Member Avatar for tobyITguy
0
331
Member Avatar for AkshatGupta

MAke a quiz in gui which shows the player the time left for a particular question and automatically proceeds to the next question when time limit exceeds. time left to be shown in a jlabel

Member Avatar for Ammar_7
0
5K
Member Avatar for mario90

hello great community, i hope my question is clear .... i use banner rotator for my site but i want to see which banner get better ctr (click through rate) . also to not confuse the vistor with the other links i would need to hide the <a href target> …

Member Avatar for mario90
0
430
Member Avatar for Papa_Don

Group, I'm using VB.net 2010 and would like to convert a text file into a PDF file. In reading through the internet, it appears that I need to download a 3rd party .dll file. But is that needed? I see multiple PDF library references by right clicking the project name, …

Member Avatar for Sblogger
0
2K
Member Avatar for rouse

Anyone familiar with Compass to help solve a problem with sprites loading. The markup in the compile CSS points to the wrong address for the loading of the sprites. Here is the generated CSS /* ===================================================== */ /* Sprites /* ===================================================== */ .spr-sprite, header h1 { background-image: url('/images/spr-sf52e1e883c.png'); background-repeat: no-repeat; …

Member Avatar for rouse
0
186
Member Avatar for alvoryx

Hi, I fail removing some carriage return, (\n\r i guess) from a god file which brings that the software where i'm exporting to is crying.. if i manually remove the CR from notepad, no problem i'm googling around for nearly 3 hours now on every possible way i can imagine …

Member Avatar for Ahmad_13
0
9K
Member Avatar for James_43

Hi all, I just have a question about how PHP works. Say I have several classes that I call but don't `unset()` once I've finished with them, how long will the server hang onto that data. Is it completely dependant on the client connection to the server? Similarly, I understand …

Member Avatar for jkon
0
206
Member Avatar for Stefce

I have host on 000webhost when i will try to connect it gives me this error i cannot figure out whats the problem ? `Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/1130): Host '31.170.161.176' is not allowed to connect to this MySQL server in /home/a2548020/public_html/includes/connection.php on line 6` here is my connection script <?php …

Member Avatar for Stefce
0
348
Member Avatar for lukemaister

So i have been searching all the net but haven't exactly found what I'm looking for and I'm starting to believe that it is impossible. The problem is that I have a local MS SQL Server stored on my notebook. What I would like to do is an android application …

Member Avatar for Kamran_10
0
2K
Member Avatar for pezzinae

Hello again Please your support with the next statement in vb.net and access database this is part of the code can you help me the error code is missing operator in query expression str = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\MXDTBTZ3XC1\Users\MXDTBTZ3XC1\Desktop\refacciones web\surtido.accdb" con = New OleDbConnection(str) sql = "select * from material where IDDOS …

Member Avatar for pezzinae
0
591
Member Avatar for pezzinae

Hi all can you help me I really don´t know why my web app is being deformed when a message is shown I Been trying the update panel but it just does nothing when try to retrieve information from a database in access

Member Avatar for pezzinae
0
150
Member Avatar for RudyM

Hi again, So I finally get a live site set up locally for development and it's mostly ok. What I just noticed is that the links do not seem to work. So I go to the permalink settings through the dashboard, just to view, and suddenly Voila! All links work …

Member Avatar for RudyM
0
290
Member Avatar for rpv_sen

Hi I am trying to update the ON / OFF status through the below code. If i change the OFF status to ON, its getting a value is OFF. can any one please help to fix the issue. **toggle.php** <div id="setQuickVar1"> <input type="checkbox" data-switchery <?php if($SCYQ64EV01=='Y') echo 'checked'; ?> /> …

Member Avatar for rpv_sen
0
9K
Member Avatar for fallout4player

the game unturned is running with low fps. I have a late 2011 MacBook pro. 2.4ghz cpu i5. intel hd 3000, 512mb. with bloom and light shafts I'm getting about 29fps. when I turn up the detail distance it drops to 6fps. clearly 2.4ghz is fast enough not to do …

Member Avatar for rproffitt
0
390
Member Avatar for negru

Write a program that will print all highly prime numbers from the input interval <a,b>. Prime number is highly prime if deletion of every digit from right is a prime. Example: 239 is highly prime because 239,23,2 are primes. Could someone point out what are logic errors in the following …

Programming c c# c++
Member Avatar for negru
0
337
Member Avatar for cambalinho

using: char username[255+1]; DWORD username_len = 255+1; GetUserName(username, &username_len); i get the actual user name. but how can i get the program folder name for execute a program? the '%ProgramFiles(x86)%' on folder name string is ignored :(

Member Avatar for cambalinho
0
1K
Member Avatar for James_43

Hi all, just a quick question. I believed that `$('#value')` was a jQuery function equivalent to `document.getElementById('value')` however, in the code below, only the second function gives the desired result. Can someone explain why this is? $('#value').value = "1"; document.getElementById("value").value = "1";

Member Avatar for AleMonteiro
0
223
Member Avatar for nic56208

Develop a program that examines a sentence that hasn’t got any punctuation and finds and identifies the positions of each word that occurs in the sentence. With that the system shouldn’t be case sensitive: text, Text, TEXT should be treated as the same word. The program must be able create …

Member Avatar for JamesCherrill
0
133
Member Avatar for Ghast

Hello. I need some help with manipulating a file. For example, I want to add 2 lines of text like this. 1 2 I know I need to use the StreamWriter but how ? Also, thanks for trying to help me :)

Member Avatar for Ghast
0
126
Member Avatar for Parth_3

how can i get the value ...which code write in button click event that get my id.. USE DATATABLE Public Function inst() As DataTable Dim tb2 As New DataTable Dim st As String Dim dfsty As DataSet Dim df As New SqlClient.SqlDataAdapter Try cn.Open() st = "SELECT EmMaster_EmploId FROM(EmMaster) WHERE …

Programming dataset gui vb.net
Member Avatar for Parth_3
0
310
Member Avatar for androidz

good day is there a way in storing image and retrieving images using ms access and display in picture box randomly or just like a slideshow?which slides form left to right?or vice versa..i have some codes here but i does not display...hope you could help me and correct me..thanks more …

Member Avatar for rhea jane
-1
899
Member Avatar for James_43

I'm having some real trouble running some basic queries that I should be able to run easily. I have a table called settings. When I query `SELECT * FROM settings` I get the output: +----+-----------------+--------------------------------+ | ID | key | value | +----+-----------------+--------------------------------+ | 1 | view | default | …

Member Avatar for James_43
0
397
Member Avatar for James_43

Hi all, I'm having some serious issues with AJAX forms. I'm currently using jQuery 2.2.0 and the jQuery Form plugin. I have a simple php file: <?php if(isset($_POST)): print_r(json_encode($_POST)); endif; ?> I have a simple html form: <form method="post" id="regform"> <input id="login_name" name="login_name" type="text" > <input id="login_password" name="login_password" type="text" > …

Member Avatar for James_43
0
235
Member Avatar for NightOwl93

I need some help in getting the table headers to sort the data populated to a table in MVC. I have implemented search functionality in which the user can filter whatever results by typing a name, but I need to also get the table headers to sort the information as …

0
393
Member Avatar for prakash2813

I have working struts1 dispatch action and a form having two submit buttons which have parameter and value which calls method name with value. Well there is no problem. But when clicking on delete button, I want to confirm with bootstrap dialog. $('.btnDelete').on('click', function(e){ var $form=$(this).closest('form'); e.preventDefault(); $('#confirm').modal({ backdrop: 'static', …

Member Avatar for prakash2813
0
453
Member Avatar for James_43

Hi all, I have two square <div> containers one under the other. When I click a button, I would like the second <div> to fade on top. Because the top <div> is transparent, the bottom <div> needs to be hidden first. I have given the second div a Z-index of …

Member Avatar for James_43
0
510
Member Avatar for jared.geli

Good day guys I need help for adding rows in datagrid where the rows to be added are equal to the number of rows copied from excel. I can copy the data but it displays only the first row from excel on the last row of datagrid but if I …

Member Avatar for richardsonka
0
2K
Member Avatar for iPoor

Hi Guys, i want to open .tiff and .tga images in my program's PictureBox but i am not able to open them, any Solution??

Member Avatar for iPoor
0
2K
Member Avatar for JOSheaIV

Alright this one is bugging the heck out of. I am developing some software that can auto generate a solution and projects within. I have the project templates already created (done by another co-worker), and zipped up. I have then added these as an embedded resource into my project. However, …

Member Avatar for JOSheaIV
0
261
Member Avatar for Niloofar24

Hello. With running this command: `python manage.py validate` I faced with this error: `Unknown command: 'validate'` What should I do now? For more explanations: - Linux - Virtualenv - Python 3.4.3+ - Django (1, 9, 2, 'final', 0)

Member Avatar for Niloofar24
0
327
Member Avatar for lielee

Hello. My VB.Net project is connected with MS Access. Whenever input in VB, it will save in Access. I don't have any problem with textbox but I don't know what to do with checkbox and radiobutton. I want, when checkbox or radiobutton is checked in VB, it will checked also …

Member Avatar for mars12345
0
2K
Member Avatar for vivek.vivek

I have written a code to automate my webpage to do a search and download a report. Till selection of the report everything works fine. But download click is not working after clicking checkbox. It works well if i keep the download click bust before checkbox select. But I need …

0
311
Member Avatar for සශික

I'm making money lending system. On that I use mysql database. I want to find customer's who skipped their daily instalment. I try this code. But It has error. ***Prveious code:*** SELECT l.loan_id, l.custormer_id,custormer_name FROM loan l JOIN income i ON l.loan_id = l.loan_id WHERE l.loan_id NOT IN (SELECT loan_id …

Member Avatar for සශික
0
361
Member Avatar for tig2810

Hello, Please could someone help me with the syntax to add orderlines to an order in the below? I just cant figure out the syntax for it. many thanks using System; using System.Collections.Generic; namespace ParentChild { class Program { static void Main(string[] args) { var Order = new Order { …

Member Avatar for tig2810
0
170
Member Avatar for RudyM

Hi all, I'm having an issue with a local copy of a live WordPress site. The local site itself "http://localhost/mywordpress/" works, but when I try to access the wp-login.php page, it redirects me to the production site. I do the following under a local XAMPP setup: copy the production WP …

Member Avatar for RudyM
0
399
Member Avatar for adikimicky

Hi everyone, I am trying to make a user login page. The user is required to fill username and password in textFields and when he clicks the Submit button, all details are needed to be written in the database. import javax.swing.*; import java.sql.*; import java.awt.*; import java.awt.event.*; public class register …

Member Avatar for Lakhveer
0
7K
Member Avatar for Tamir09

Ok, I know about how to check for the end of a file, but what I need to know, is if you create a new file, thats empty, how do you check if it really is empty, and if its the same as EOF, then what am I doing wrong …

Member Avatar for ddanbe
0
2K
Member Avatar for Sneaky Pete

Hello everyone, I have a txt file with data which I want to import to an excel file, by button click. The first couple of lines of the txt file contains general information which I don't want to export. The program should only read the lines which contains a word …

Member Avatar for Raul Perez
0
474
Member Avatar for Papa_Don

Group, I've created and published a VB.net program. I've also installed this onto my computer. I want to set it up now to run via the Window Task Scheduler. However I need to locate the executable file to start the run. However I'm unable to find it using the name …

Member Avatar for Minimalist
0
5K
Member Avatar for isla.rose.3

Here is the original task: * The Fast Freight Shipping Company charges the following rates: Weight of Package Rate per Pound 2 pounds or less $1.10 Over 2 pounds but not more than 6 pounds $2.20 Over 6 pounds but not more than 10 pounds $3.70 Over 10 pounds $3.80 …

Member Avatar for ashaa
0
3K
Member Avatar for Mr.M

Hi Dw. I have a project that uses Process to marge some files, now because the merging can take quite sometime I've used BackgroundWork. The main problem I'm facing is to know when the Process is done because I want to delete the files that it was merging with so …

Member Avatar for Reverend Jim
0
3K
Member Avatar for ALosh99

I am trying to define the archimedean spiral: when im trying to define the inclination angle (incl) of the tangent vector to the orbit ( i.e: tan(incl)) im getting an error :"'numpy.ufunc' object does not support item assignment". the same error when I want to calculate cos(incl), and sin(incl). Any …

Programming python
Member Avatar for Gribouillis
0
4K
Member Avatar for ztdep

Dear friends: I need to use a data structure which can start the first index of an array from a nagtive value. I have searched the MTL library, and bltiz lib, but it seems that they doesn't support this kind of vecotr. Could you please give me some suggestions. Regards

Member Avatar for tinstaafl
0
250
Member Avatar for rouse

I need help in referencing the name of each individual database attached to a MongoDB instance. I just want to connect to a database with PHP and list the names of all the databases. In the code below I can connect to MongoDB instance and find all the databases. I …

Member Avatar for na3eem
0
317
Member Avatar for janicemurby

hi all i have got a problem with my profile photo upload script after converting to mysqli everytime i go to upload a image i get the following error: Strict Standards: Only variables should be passed by reference in /home/matureco/public_html/registration2.php on line 11 and the code for that section is …

Member Avatar for janicemurby
0
279
Member Avatar for cool_intentions

Hello everyone, I need help with VisualState.StateTriggers. The message I’m getting in my xaml code is: The member “State Triggers” is not recognised or is not accessible. I have try to use Blend to generate xaml code for triggers but the small button for that doesn’t exists. My project is …

Member Avatar for cool_intentions
0
168
Member Avatar for squeak24

Hey Everyone. I am having issues with a responsive SVG and wondering if any of you can help. Bascially, I have an SVG image. I have tried to add it into an object: <object type="image/svg+xml" data="svgfile.svg" width="99%"> Your Browser does not support SVG</object> But the problem with this, I have …

Member Avatar for squeak24
0
307

The End.