199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for 21334929

How do you validate checkbox/radiobutton lists? will it be like normal validation?

Member Avatar for 21310051
1
299
Member Avatar for leonel68

i have a windows forms with 7 texboxes, i would like to save the input into a sqwl databse , but i am having a bit of problem, this is my code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con As New SqlConnection("server = …

Member Avatar for Dany12345
1
3K
Member Avatar for Yogesh_9

#include<iostream> using namespace std; int main() { int test; cin>>test; while(test--) { int start,end,m; cin>>start; cin>>end; bool arr[end]; for(int i=0;i<end;i++) arr[i]=true; for(int i=2;(i*i)<=end;i++) { for(int p=2;(p*i)<=end;p++) { m=(p*i-1); arr[m]=false; } } for(int i=start-1;i<=end;i++) { if(arr[i]!=0&&i!=0) cout<<i+1<<endl; } } return 0; }

Member Avatar for StuXYZ
1
376
Member Avatar for Ghost

Hi, i'm new 2 C#, so my question may seem stupid... but, what is the code to exit an application. I know in java it is: [CODE]System.exit(0);[/CODE] Thanx in advanced, C++

Member Avatar for vasanthmc2
1
10K
Member Avatar for Pravesh_1

I want url like www.abc.com/pagename but when I wrote RewriteRule ^(.*)$ page-detail.php?url=$1 but it will show www.abc.com/pagename not www.abc.com/index.php or www.abc.com I want to run both pages www.abc.com/index.php and www.abc.com/pagename. How I can ?

Member Avatar for sikander123
1
566
Member Avatar for GUIPaPa

Guys why is my image not loading on my JFrame?? BTW I am using eclipse on my mac. Code for Board : package ourgame; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Board extends JPanel implements ActionListener { Dude p; public Image img; Timer time; public Board() { p = …

Member Avatar for GUIPaPa
1
504
Member Avatar for harshchandra

This program just demonstrate how a node can be added,deleted,searched,counted,and printed using Singly Linked List. An easy code to understand :)[code]////////////////////////////////////////////////////////////// ////////// -: Singly Link list :- ///////// //////////////////////////////////////////////////////////// /* reference : Understandng pointer though c - Y karnetkar. */ ////////////////////////////////////////////////////////// ////////// Programmer : Harsh chandra /////////// //////////////////////////////////////////////////////// # include<stdio.h> …

Member Avatar for hanumant113
1
823
Member Avatar for chubbyy.putto

cout << "Enter size of array: " << endl; cin >> size; cout << "Enter elements: "; for(i=0;i<size;i++) { cin >> array[i]; }

Member Avatar for Learner010
1
163
Member Avatar for chubbyy.putto

for (int index = 0; index < 200; index++) { if(find_array[index] < minimums[0]) { minimums[0] = find_array[index]; //Lowest number cout <<"The index is " << index << endl; // trying to find an index } } for (int index = 0; index < 200; index++) { if(find_array[index] < minimums[1] && …

Member Avatar for chubbyy.putto
1
107
Member Avatar for jkon

Some weeks ago I posted this and I realized from the referrals that it may help to be as a code snippet. This is an example of getting products details from categories – subcategories using ajax call. I am fond of OOP and this is not , but I believe …

Member Avatar for pritaeas
1
3K
Member Avatar for supra

I am a #rd yr. B.Tech student & want to do projects on C & Linux Shell Programming.It will be of great help if I can be supplied with some project titles for freshers with industry relevence. Thanking you, Supra

Member Avatar for stultuske
1
422
Member Avatar for mixelplik

I have no clue why this search isn't working. Two majors problems (1) As is it always returns false (2) It would recognize valid IDs if instead of setting found to true, I just returned true, but I don't want to do it like that, and if there was an …

Member Avatar for rubberman
1
125
Member Avatar for glamiex

Hi guys, my assignment is to create a program that sets up a menu for a user to choose from. The menu should consist of an addition, subtraction, multiplication and division problem. It seems to work well, but the only thing that's not working is the division problem. Whenever I …

Member Avatar for rubberman
1
160
Member Avatar for patk570

Hi guys, I am trying to get the last_insert_id() from the table above, that way when it sends the query and is successful, it then updates the events table with timestamp, id , asset type and asset id from the insert code. I am currently using the max(id) but its …

Member Avatar for patk570
1
2K
Member Avatar for Rahul47

Here is my code along with question in it. #include<stdio.h> int main(){ int i,a[2][3]={{1,2,3},{4,5,6}},*p=&a; printf("%d",p); // Printing the base value. printf("\n%d",p[4]); // Q) Does this means *(p + 4) ? printf("\n%d",p[5]); // Q) Does this means *(p + 5) ? getch(); return 0; }

Member Avatar for Rahul47
1
206
Member Avatar for Chair

Hi, can someone pls help me. I'm trying to pass the name of the user who logs in from a login form and display his/her name on a Main form. I'm using get{} and set{}. My problem is with the function I'm trying to create to return the name of …

Member Avatar for pritaeas
1
9K
Member Avatar for Violet_82

Hello guys, I hope you can clarify something for me please. I was looking into carousels, found an excellent one and replicated in my code (for reference this is the one I looked at, it’s really good and easy to understand https://tutsplus.com/lesson/the-obligatory-slider/). Anyway, I have implemented that and I thought …

Member Avatar for Violet_82
1
1K
Member Avatar for lauren.vitiello.12

I am trying to get the highest value in my rows. I have been at this awhile trying to figure it out. I assume it is suppose to return 3 values but honestly i really suck at this. Here is what I have public static int getHighestInRow(int[][] numbers, int row) …

Member Avatar for scudzilla
1
335
Member Avatar for dagi125125125

Write a float function rectangle() that computes and returns the area of a rectangle using its two float formal parameters h and w, where h is the height and w is the width of the rectangle

Member Avatar for userasad
1
284
Member Avatar for NardCake

Hello! This is mainly a curiousity question, I may apply it to something in the near future though just as an added twist... :D So essentially I want to figure out how a progress indicator is created in the shell. For example with wget or something you may see a …

Member Avatar for L7Sqr
1
196
Member Avatar for maurice.waka

listname = ['bartian', 'lenana', 'kilimanjaro', 'uhuru', 'elgon', 'everest'] while True: if listname[:-1] == everest: print(listname[:-1]+=) I need a way to loop over this list and print the items in the list. I dont know whether this is pythonic since am having trouble printing the items. I want it to print …

Member Avatar for Lucaci Andrew
1
230
Member Avatar for Paladine

Just got to playing around, and felt that the VB forum on here could use some posts. What I was playing around with forms in VB.NET and wanted to hard code centering a form. Here is what I found...and if anyone has an easier or slicker way...let me know. -in …

Member Avatar for dinesh.panjwani.98
1
7K
Member Avatar for KushMishra

Hi, I want to create a dependency property for both Command and CommandParameter so that I can use these in controls that don't support Command and CommandParameter like textblock etc. I have written and taken help from someone to create DP(dependency property) for Command and its working fine but for …

Member Avatar for KushMishra
1
4K
Member Avatar for matthew.l.diefenbacher

*Hello. I am not new to the wonderful site - Just lost login credentials* I am resuming work via Python and must make some installs into my Lib. I am having trouble with this - I have not used Python in 2-3 years. Many syntax errors. This is from install …

Member Avatar for HatGuy
1
341
Member Avatar for KushMishra

Hello All, I went through many websites and did not find any converter that could purely convert C# syntax to VB syntax. However there are many converters available on the Internet but personally I don't think they are pure converters. Requesting all to please suggest some online tools/converters to achieve …

Member Avatar for JOSheaIV
1
454
Member Avatar for Schol-R-LEA

In most modern languages, there are two fundamental approaches to repeating an action: either *iteration*, in which an action is placed inside a special-purpose structure which causes the action to be repeated, or *recursion*, in which a general-purpose function calls itself (or another function which in turn calls the earlier …

Member Avatar for Ancient Dragon
1
2K
Member Avatar for KushMishra

Hi all, I have a resource dictionary which is already added to the App.xaml however when I add the particular style to my Grid, it doesn't gets reflected while debugging. Can anyone please help me on this ? My codes are as follow :- MainPage.xaml <Grid x:Name="myGrid_MainPage" Style="{StaticResource myGridStyle}"> myRD_Main.xaml …

Member Avatar for aatish2327
1
212
Member Avatar for bops

I've been having tonnes of issues with Mod Security. I am busy writing a CMS for a project at work and while developing a page to edit a certain database record I kept getting 403 errors. After hours of banging my head against my desk, adjusting bits of code I …

Member Avatar for bops
1
1K
Member Avatar for Adeel Rahat
Member Avatar for jacob21

Hi, I stored hindi data in my my sql table through Php form. While fetching,it is not coming in hindi but some unusual symbols like गिरधर गोपाल रायतानॠis coming. using below code also [CODE]mysql_query('SET character_set_results=utf8'); mysql_query('SET names=utf8'); mysql_query('SET character_set_client=utf8'); mysql_query('SET character_set_connection=utf8'); mysql_query('SET character_set_results=utf8'); mysql_query('SET collation_connection=utf8_general_ci'); [/CODE] Need help..

Member Avatar for diafol
1
7K
Member Avatar for CJMW

So i'm making an rpg game with c# and xna. How can I create a simple camera that follows the player as they move? I only wish for the camera to move as the player reaches the middle of the screen. I dont require it to rotate, zoom in/out like …

Member Avatar for KushMishra
1
349
Member Avatar for ddanbe

Many site can ask you to make an account in order to get more services etc. Most of the time a password is asked also. I understand there is a need to make a password of a certain length, say at least 6 chars or longer. What I don't understand …

Member Avatar for JOSheaIV
1
215
Member Avatar for WILLIAM_5

Hi everyone, I recently installed Python on Windows. I wanted to develop a gui program using Tkinter. The problem is that when I try to import Tkinter module. It gives me a 'module not found' error. But I thought Tkinter was preintalled within Python's installation. It is even more confusing …

Member Avatar for nichom
1
632
Member Avatar for momonq1990

hi! good day sir. how can i add a link <a> to body <body> with a function <onclick=""> that change the center of google map. HTML <a href="" onClick="myFunction()">location 1</a> FUNCTION function myFunction() { ??????? }

Member Avatar for jparkton
1
308
Member Avatar for KushMishra

Hi all, I am a naive programmer to VB and VB.Net, I have mostly used C# and now I am stuck at a simple point as follows :- CollectionView.CollectionChanged += Function(sender, e) RebuildSearchIndex() I don't have any idea how to replace "+=" as its showing some error. Requesting you all …

Member Avatar for KushMishra
1
497
Member Avatar for KushMishra

Hello All, I am populating my frame from different pages and showing the output as a grid. Following is my xaml code :- <Frame x:Name="mainFrame" Grid.Row="1" JournalOwnership="UsesParentJournal" /> and xaml.cs :- mainFrame.Source = New Uri("Views/ProductsPage.xaml", UriKind.Relative); But I want to change the selected/unselected (focused/non-focused) row colors in this frame and …

Member Avatar for KushMishra
1
278
Member Avatar for SaRa Ahmad

hi every one , i have this Question and i hope if i find an answer about it , can i convert a pdf file to image using vb6 ??

Member Avatar for LozeeS
1
3K
Member Avatar for vegaseat

This is an example of a singly linked list allowing you to enter a number of names and associated ages. The twist is that the names are inserted into the list in ascending order. When the list is displayed, it is already sorted by name. Note: This is not an …

Member Avatar for Ancient Dragon
1
470
Member Avatar for kent.johnstone_1

What does -> mean in the following line of code? bulk_in=end_point->bEndpointAddress; My books show - and > but neither of them seem to apply. The books don't seem to show both together. This is part of a USB driver that I'm trying to convert from Linux to C for the …

Member Avatar for kent.johnstone_1
1
246
Member Avatar for vegaseat
Member Avatar for KushMishra

Hello All, I just wrote some code in C# and tried converting to VB.Net. I am getting 3 kinds of errors in my code :- 1. Class 'XXX' must implement 'Function XXX(abc,pqr,...)' for interface 'XX.XX.XX'. 2. 'RaiseEvent' definition missing for event 'XXX'. 3. 'XXX(abc,pqr,...)' is an event and cannot be …

Member Avatar for ryanjayson
1
675
Member Avatar for tqmd1

Sir I am using these codes to clear all textboxes in form <script type="text/javascript" src="jquery-1.7.1.min.js"> function clearboxes() { document.getElementById("my_name").value=""; document.getElementById("my_moba").value=""; document.getElementById("my_mobb").value=""; document.getElementById("my_add").value=""; document.getElementById("my_email").value=""; document.getElementById("my_myfax").value=""; document.form1.my_name.focus() ; } </script> Is there any way to run loop to clear all textboxes rather then writinng separte line for every textbox?

Member Avatar for Troy III
1
348
Member Avatar for vegaseat

PySide's QWebView can load a given url and display the web page associated with it with just a few lines of code.

1
1K
Member Avatar for hiren_1

i have two exrcise jsfiddle.net/Er2Ef/10 jsfiddle.net/Er2Ef/11 and i have common js file for above two exrcise and i am going to run this exrcise on one html page that is seems like this fiddle jsfiddle.net/Er2Ef/9 so how can i run this two ercise in one page and my real problem …

1
122
Member Avatar for Sanjay_6

I am sending data from index.php fiel to another exec.php file using $.ajax method and executing the data on that file now when i am sending back output data using jsonp callback i am getting incorrect data on index.php. I am also writing same output data into a txt file …

Member Avatar for pritaeas
1
233
Member Avatar for minitauros

Just curious about your thoughts on this subject. **Example:** www.site.com/?id=1 or www.site.com/?id=8adyfa8df614812yasdf (which is also "1", but encrypted) What would you recommend? What do you use? Anyone with pros and/or cons on if you should encrypt your URL data? **My thoughts:** Pros (to encrypting URL data): - Makes it harder …

Member Avatar for pritaeas
1
218
Member Avatar for vegaseat

If you decorate a function, then some of the information is lost during the debugging process. Python supplies another decorator @wraps to help out. A decorator for a decorator, very interesting.

1
435
Member Avatar for Schol-R-LEA

I am currently working on a new language design in the Lisp family, which I am calling 'Thelema'. It is intended to be a multi-paradigm language which is related loosely to Scheme and, to a lesser extent, Common Lisp, but with modern concepts such as package management, support for object …

1
287
Member Avatar for Raadha

<?php $con=mysqli_connect("localhost","root","","trial"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } if(isset($_POST['submit'])) { $billno=$_POST['billno']; $doa=$_POST['doa']; $dod=$_POST['dod']; $dbcd=$_POST['dbcd']; $acno=$_POST['acno']; $dosub=$_POST['dosub']; $suby=$_POST['suby']; $dop=$_POST['dop']; $credate=$_POST['credate']; $paytype=$_POST['paytype']; $sql="UPDATE cust SET doa ='$doa', dod = '$dod', dbcd='$dbcd', acno='$acno', dosub='$dosub', suby='$suby', dop='$dop', credate='$credate' ** WHERE billno = '$billno'";** print $sql; if (!mysqli_query($con,$sql)) …

Member Avatar for cereal
1
218
Member Avatar for Raadha

<?php $con=mysqli_connect("localhost","root","","trial"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } echo "<table border='1' style='border-collapse: collapse;border-color: silver;'>"; echo "<tr style='font-weight: bold;'>"; echo "<td width='200' align='center'>Customer</td><td width='200' align='center'>Amount</td>"; echo "</tr>"; if(isset($_POST['submit'])) { $custype = $_POST['custype']; $from = $_POST['from']; $to = $_POST['to']; echo "<br><br>"; echo " <h2> Grand …

Member Avatar for minitauros
1
160

The End.