199,112 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for David_66

// Primitive Power Ball C# Samples Generator - Global Lotomania in action:) // David Taran January 11, 2016 // For PowerBall as a answer type: 5, 69, 1, 26, -1, 10... using System; namespace Loto5p1 { class Program { static void Main(string[] args) { int iRegularBallsCount, iRegularBallsMaxNumber, iPowerBallsCount, iPowerBallsMaxNumber, iGenerationInitialNumber, …

Member Avatar for JOSheaIV
0
940
Member Avatar for ogsirus

Hi guys, I have a class which contains similar property names like: public class numbers() { public int Number1 Public int Number2 } I then have a method where I iterate through a collection and want to assign a particular property with a value based on the interation count. So …

Member Avatar for JOSheaIV
0
215
Member Avatar for Hamza_13

Hello , how to use Calendar control in C# for windows Application,im not Asking about "MonthCalendar". And I was watching some videos they use calendar control in the toolbox ,but in my visual studio 2013 in toolbox there' no calendar control .please help.

Programming visual-studio
Member Avatar for JOSheaIV
0
653
Member Avatar for checker

so here is my code [CODE]from math import sqrt class ageName: "class to represent a person" def _init_(self): self.name = "" self.age = 0.0 self.sqrtage = 0 g = ageName() g.name = raw_input("Enter a name, or stop to exit: ") g.age = int(raw_input("Enter an age: ")) g.sqrtage = sqrt(g.age) list1 …

Member Avatar for Gribouillis
0
2K
Member Avatar for vilastadoori

Dear Listers, I have create a project in java using netbeans. Have designed the user interface where I have a jtable and a button. When i created the interface it automatically populated the code and I have done nothing When i click the button it shoiuld call the class to …

Member Avatar for vilastadoori
0
1K
Member Avatar for ratonhnaketon

hello to everybody. i'm writing a knight tour program. in this code, you enter the dimension of the board and the frst place of the knight and then ask the user to what to do! n = next p = print (the other are not completed yet) here's the code …

Programming c
Member Avatar for tinstaafl
0
372
Member Avatar for FarrisFahad

I am trying to learn how to do cool CSS3 menues. I have a good understanding of CSS, but I can't seem to fix this problem. Here is my code so far: /* Menu 2 */ ul{ list-style:none; width:150px; height:auto; background-color:#FFF; padding:0px; } ul li{ padding:15px; list-style:none; color:#333; background-color:#09C; } …

Member Avatar for gentlemedia
0
274
Member Avatar for Chris920

Hey everyone. I have a couple of questions related to PHP. I realized I need to learn how to code in baby steps until I get the gist of it. This is how I learn best, knowing every detail so I can break it down in my head. Which is …

Programming php
Member Avatar for cereal
0
251
Member Avatar for prashant_savadi

Hi all, In my Java program I am launching batch script(.bat file). I am facing following error: FATAL: command execution failed java.io.IOException: Cannot run program "cmd" (in directory "C:\..\Project_Name"): CreateProcess error=87, The parameter is incorrect at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:815) at hudson.Launcher$ProcStarter.start(Launcher.java:381) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113) …

Member Avatar for JamesCherrill
0
1K
Member Avatar for can-mohan

Hi, In below design a big problem is whenever DoSomething() signature is changed to introduce new functionality caller class (return m.DoSomething()) also needs to be changed which might not be aware of this change. kindly suggest good design to get rid of this flaw. class MyOtherClass { int m; public: …

Member Avatar for can-mohan
0
233
Member Avatar for can-mohan

Hi, In below function i am not able to figure out why predicate function cmp_str can't be used with for_each algoritham while using this algoritham with map. #include <iostream> #include <map> #include <utility> using namespace std; struct cmp_str { bool operator()(string a, string b) { return a.compare(b)<0; } }; int …

Member Avatar for can-mohan
0
3K
Member Avatar for JaJavaBuddy

Hi, I need to complete this assignment. Everything seems to work except I need to output "T" and "H" along the dashed lines (respectively) everytime either the Tortoise or the Hare moves. Here is my code, thank you in advance. import javax.swing.JOptionPane; public class Tort { public static void main(String[] …

Member Avatar for raeee
0
2K
Member Avatar for jasminee

The objective of this program is to create a drawing program that allows the user to select colors to use and objects to draw. The user will select a colored object to indicate which colors to use for drawing. A second set of objects will display objects the program will …

Member Avatar for ddanbe
0
290
Member Avatar for NONONO123

Hi all, I'm facing this error while following a tutorial. Warning: mysqli_result::fetch_array() expects parameter 1 to be integer, string given in C:\xampp\htdocs\client\login.php on line 12 [] Here is my php <?PHP include_once("connection.php"); if( isset($_GET['format']) && $_GET['format'] == "json" ) { $query = "SELECT * FROM tbl_client " ; $result = …

Member Avatar for cereal
0
4K
Member Avatar for Amr.Mohammad87

Greetings, I am developing a backend website using ASP.NET. I had a 3 GridView controls within the page. I am using the jQuery to add a CSS class to third column of the 3 GridViews when the page in ready as I tried to add this class by setting the …

Member Avatar for Amr.Mohammad87
0
213
Member Avatar for ibthevivin

This program challenge was given to me by my Professor for extra credit. He said it includes some programming that we haven't learned yet in our C++ class. Messed up... Ideally I would love if someone would do this for me, but we all know that's not happening. lol Anyways...could …

Member Avatar for ddanbe
0
3K
Member Avatar for SagarK95

I have basic knowledge about python. I am looking for help with this code: how is the snake moving? How does it length increases on colliding with the object? And, how does it detect when it touches itself or when it collides with the wall? It also has semicolon in …

Member Avatar for BustACode
0
443
Member Avatar for geoamins2

Could you answer? I've a table in mysql database the structure is like: table name: img_tbl (id, image, size, format, etc..) image defined as blob datatype inside the table. i can retrieve single image from mysql database by using the following code. [CODE] $sql = "SELECT image,size,format FROM img_tbl"; // …

Member Avatar for Pallavi_1
0
1K
Member Avatar for Mar. Na.

Hi, in this code how can I calculate coupling between objects CBO in java after parsing java file using registerCoupling method and retrieve any coupling between classes through argument, class name,type and so on .....

Programming api ide java oop
Member Avatar for rproffitt
0
2K
Member Avatar for Mike_H

In a site I am working on two of the pages have an iframe being loaded. [code] <IFRAME id="someid" src="http://www.trailblz.info/barkleydean/signup.aspx?rd=http://www.senatorbarkley.com/signup-thank-you.htm" width="700" height="1400" frameborder="0" scrolling="No" style="position: relative; width: 700px; height: 1400px" target="_blank"> </IFRAME> [/code] This works fine but the "Thank you" page loads at the top of the frame but the …

Member Avatar for Anders_3
0
7K
Member Avatar for janicemurby

hi all i have duplicated a script i had created and adapted it to something else i want and now im getting a Fatal error: Call to undefined function get_interests_data_from_post() in /home/jktempla/public_html/checkboxes/check.php on line 8 can someone help with this heres the coding for that section <?php include("connection.php"); $interests = …

Programming mysql php
Member Avatar for rubberman
0
399
Member Avatar for AntonyRayan

Hi In a form, I have two divs like in left and right but only one submit button . I don`t know how to save in submit action. Submit button has to come in center. Here I included my code . Check and tell me <form action="usersave.php"> <!-- class="form-horizontal form-label-left"--> …

Member Avatar for drjohn
0
372
Member Avatar for Paul7

Hey my People, I'm brand new in C++ that i cherish so much to learn. Please can you help...What do i need to install as system environment so that i could work with my computer having just Windows Pofessional? i need you to give me the element to install like …

Member Avatar for rubberman
0
146
Member Avatar for hell hansen

Hi Guys, Happy new year for everybody. Look i'm trying to achive a goal to load iframe on bootstrap modal dinamical. Like i just want the iframe src be called just when modal is opened. Because the src url is coming from database, and in some page there more than …

Programming javascript mysql php
0
111
Member Avatar for abhi10kumar

How I can send emails to gmail, yahoo, etc. from localhost. I am using XAMPP in windows. What are the necessary changes in php.ini ??

Member Avatar for Muhsin Mohamed
0
8K
Member Avatar for Evans_1

Am creating application and l need to fill a combo box list. However, l was able to do all and is working but whenever l filling the last combobox, l get an exception as below. First-chance exception at 0x7789dba9 in Unical PTUME.exe: 0xC0000005: Access violation reading location 0x00000001. Unhandled exception …

0
139
Member Avatar for Mr.M

Hi Dw. I'm new to C++ nor Win32 app dev. I want my app to stay open or running even if I'm not interacting with it. And how to write a close call. In VB to close it you just right: Close() How can I achieve these two? Also how …

Member Avatar for tinstaafl
0
246
Member Avatar for Onion13

Studying python and in the lesson it says to modify anc change the program. I thought I'd make the game more interactive. I know it requires the program to use inheritance and I've read everything and Ive tried everything. Ive run out of ideas and would appreciate any and all …

Programming python
Member Avatar for Onion13
0
293
Member Avatar for JOSheaIV

Hello everyone, I am posting this more generically in the software development section to see what might be available and to increase a possible success rate. But enough of that let's get to the question at hand. Recently, in C#, I started back up a project of mine to do …

Member Avatar for rubberman
0
438
Member Avatar for Violet_82

Hi guys, so I'm starting with JavaFX using eclipse. I had a look at a few tutorials and the syntax seems quite different from other java projects I've done. Specifically, I'm a bit confused when it comes to add my code to the Eclipse project. I've just started very soft, …

Member Avatar for Violet_82
0
345
Member Avatar for Sophia_1

Hi everyone, tried to display next and previous records from the coding below but unable to do so.It suppose to display next records for the current user with the when user click "Next" but currently it doesn't display "Next" but only display "Random". When i clicked "Random", it displays next …

Member Avatar for Sophia_1
0
395
Member Avatar for wolfgang1983

I have a rss feed project that I am working on Question: I would like to know if there is a way of only displaying 5 result at a time. Currently it displays over 10 [Codepen Example](http://codepen.io/riwakawebsitedesigns/pen/mVMEmO) $(document).ready(function() { url = 'http://codepen.io/riwakawebsitedesigns/public/feed/'; $.ajax({ type: "GET", url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=1000&callback=?&q=' + …

Member Avatar for diafol
0
322
Member Avatar for Siberian

Can a else if, or else statment contain a condition ? If the condition is not meet then, nothing happens other wise one of the else if or if statements is read ?

Member Avatar for Siberian
0
539
Member Avatar for Stefce

Hello i want to make like button so i need to `INSERT`, `SELECT` and check does already exists the record i have this code: **likes.php** <?php require 'connect.php'; require 'core.php'; require_once 'functions.php'; $user = getUserData('users', 'UserUsername'); if(isset($_GET['type'], $_GET['id'])){ $type = $_GET['type']; $id = (int)$_GET['id']; switch($type) { case 'ticket': $sql = …

Member Avatar for ryantroop
0
286
Member Avatar for Üzåír

.MODEL SMALL .STACK 50H .DATA NL DB 0DH, 0AH, '$' .CODE MAIN PROC MOV AX, @DATA MOV DS, AX MOV CX, 5 MOV BX, 1 FOR_1: PUSH CX MOV DL, 20H MOV AH, 2 FOR_2: INT 21H LOOP FOR_2 MOV CX, BX FOR_3: MOV DL, '*' MOV AH, 2 INT …

0
679
Member Avatar for fuyulight

*how program to display this triangle??? >_<* > ***** > **** > *** > ** > * > * > ** > *** > **** > ***** (just the triangle..)

Member Avatar for Üzåír
0
22K
Member Avatar for .millz.

Is it possible that when writing this: Dim ds As New DataSet Dim dt As New DataTable ds.Tables.Add(dt) Dim da As New OleDbDataAdapter da = New OleDbDataAdapter("SELECT * FROM [Football Questions]", con) da.Fill(dt) lblQuestion.Text = dt.Rows(0).Item(1) lblAnswer1.Text = dt.Rows(0).Item(2) lblAnswer2.Text = dt.Rows(0).Item(3) lblAnswer3.Text = dt.Rows(0).Item(4) lblAnswer4.Text = dt.Rows(0).Item(5) lblCorrectAnswer.Tag = …

Member Avatar for tinstaafl
0
187
Member Avatar for Mr.M

I'm getting "error C2039: 'AllocSysString' : is not a member of 'System::Char' error. I'm trying to assign the result to a string variable. wchar_t str; return str.AllocSysString(); But I'm getting the above error.

Member Avatar for tinstaafl
0
213
Member Avatar for Hamza_13

My tables are PURCHASE and SALES... In PURCHASE table, fields are CODE(primary key), PRICE, DATE, TOTAL, QTY... when I'm entering datas in form and when i click submit, the datas stored... but when i enter same DATA(CODE), it is showing error... i don't want to show the DEFAULT ERROR message... …

Programming c c# c++
Member Avatar for JOSheaIV
0
225
Member Avatar for Gautam_2

<h2><i>Top Rated</i></h2> <center> <table> <tr> <? foreach($top_ratings as $key => $image) : ?> <td valign="top"><img src="images/<?=$image->filename?>" width="70" /></td> <? endforeach ?> </tr> <? <tr> <? foreach($top_ratings as $key => $image) : ?> <td valign="top">Score: <?=$image->score?></td> <? endforeach ?> </tr> <tr> <? foreach($top_ratings as $key => $image) : ?> <td valign="top">Performance: …

Member Avatar for pritaeas
0
328
Member Avatar for Mr.M

Hi Dw I have created a program to lock files and by default when a file is locked the file changes from being a folder to a lock. So what I want to do is to change the lock to my own image, just like how VLC do, it changes …

Member Avatar for Mr.M
0
342
Member Avatar for benard16
Member Avatar for aksikan

Hi, I have doubt on my answer in regards to the example for the coding part. I know my definition part should be okay, but I have doubt on my example part to show the difference between the Macro and the procedure. Can you please take a look at my …

Member Avatar for ludike23
0
4K
Member Avatar for negru

I don't understand how to debug the following code "on paper" (without a compiler): #include <stdio.h> #define SUB(T,x,y) {T x=y++; {T x=y++;}} int x; static int y; void f(int n) { if (n) { SUB(int,x,y) f(n-1); } } main() { extern int x,y; int i=0; for ( ; ++i<3; ) …

Programming c c# c++
Member Avatar for negru
0
188
Member Avatar for janicemurby

i have followed a tutorial for a working checkbox group after failed attempts with others. On test file it was working but when i add it to my site i dont get any results after submitting form. First of all here is the file from tutorial. Sorry in advance for …

Member Avatar for ryantroop
0
247
Member Avatar for Valentin_2

This code work for one selectbox and when find value he stop even if exist more column with same value. I need to work for many select box, and to populate table with all rows with same column value (value.that the user chooses with select boxes) <?php require('includes/config.php'); require('layout/header.php'); function …

0
119
Member Avatar for squashsparky

Hi I need help I have some XML files which have more children and grandchildren, than I am used to playing with. (Link to xml file below) https://intecprinters.iweb-storage.com/s/IjU2OTNlNjVkNmExODkyMDlmNjU5N2MyNiI.jaEay6nxR-v-gaiJwcVNiP113QI I need to be able to read the xml, determine the name Root node ,<JOBS_Jan_2016> and obtain the list of names of …

Member Avatar for LaxLoafer
0
368
Member Avatar for Michael_48

I am having a hard time comparing my if else statements and getting it right. I want to ask for male or female, and if male then I can respond "Hello, Mr...." and if it is female then I can respond "Hello, Mrs...." #include <stdio.h> int main (void){ int firstNum; …

Member Avatar for David W
0
312
Member Avatar for .millz.

I am creating a multiple choice quiz but I am not sure how to check if the answer selected is the correct one. I have If radAnswer1.Checked = True Then End If But do not know what to put after the "then". I am trying to compare the value in …

Member Avatar for Reverend Jim
0
303
Member Avatar for Stefce

How can i get the end of the month or the beggining of the month to create a new table for records ? i have this code but it gets the current month... <?php $user = getUserData('users', 'UserUsername'); $sql = "SELECT `ticket_id`, `Uplata`, `Dobivka`, `Date` FROM `kladilnica` WHERE `Username`='$user'"; $result …

Member Avatar for Stefce
0
312

The End.