199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Varunkrishna

Hi all Please find the telegram android application's source code https://github.com/DrKLO/Telegram/ This is a working android application, and I want to use this application as a messenger in my web application, so with this same set of code can I be able to create a web application. Thanks Varun Krishna. …

Member Avatar for Varunkrishna
0
361
Member Avatar for lithium112

I am using Linq and keep getting a DBNull error since my datatable contains DBNulls. I have: var Sum = (from dt in dt1.AsEnumerable() where (dtCutOffDate.Subtract(dt.Field<DateTime>("Date")).Days) >= iStartRange && dtCutOffDate.Subtract(dt.Field<DateTime>("Date")).Days <= iEndRange && ((items == null) || (dt.Field<string>("AcctNo") == items)) && (dt.Field<string>("type").Contains("6") || dt.Field<string>("type").Contains("9")) select dt.Field<double>("amount")).Sum(); The date column is …

Member Avatar for lithium112
0
2K
Member Avatar for Lilgenski16

199 C:\Users\Gaming-PC\Desktop\C++ Files\Tic-Tac-Toe.cpp expected unqualified-id before "if" {//Tic Tac Toe //Plays the game of tic tac toe agaienst a human opponent #include <cstdlib> #include <iostream> #include <string> #include <vector> #include<algorithm> using namespace std; //global constants const char X = 'X'; const char O = 'O'; const char EMPTY = ' …

Member Avatar for NathanOliver
0
270
Member Avatar for sergio_pb

Hello, I have my database xampp mysql and i put values from visual studio 2012. I have the code for INSERT INTO mytable, but always i insert the value, this value appears like 0. I dont know the reason beacause if i'm conected to the database and i send the …

Member Avatar for sergio_pb
0
320
Member Avatar for Xiao_1

Dim conn As New System.Data.OleDb.OleDbConnection() conn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\temp\Database1.accdb" If conn.State = ConnectionState.Open Then conn.Close() conn.Open() Dim sql As String = "SHOW * From tbl_info Where AdminNo = '" & ListBoxassign.Items & "'" listboxassign.items.show(AdminNo)

Member Avatar for Santanu.Das
0
153
Member Avatar for nitin1

**{"title":"iamtitle","icon":"","urlHistory":["http://google.com"],"lastUsed":123}** I have tried in c++ and using json-glib. I have tried using this: g_type_init(); JsonParser *parser = json_parser_new(); json_parser_load_from_data(parser, temp.c_str(), -1, NULL); JsonReader *reader = json_reader_new(json_parser_get_root(parser)); json_reader_read_member(reader,"urlHistory"); JsonNode * value = json_reader_get_value(reader); JsonArray * value1 = json_node_get_array(value); const char * urlhistory = json_array_get_string_element(value1,0); tab.history = urlhistory; json_reader_end_element(reader); cout << …

0
324
Member Avatar for jmwalloh

Hi everyone, I'm a bit new to c programming but familiar with the buffer overflow concept in general terms. I just wanted someone to take me through a code sample i came over the web disccusing this topic. The URL to this article is:http://www.exploit-db.com/exploits/3154/. Any help will be appreciated. Thank …

Member Avatar for deceptikon
0
277
Member Avatar for amith_ami

hi all.. using .htaccess how to rewrite this http://mydomain/page-name/ to http://mydomain/page-name.html ? pls help me to solve this... tnx in advnc.

Member Avatar for amith_ami
0
138
Member Avatar for H

Hey there, My program works by having a blank form, then adding picturebox controls to the form. I need to reference these pictureboxes later on, and so I need to add each one to part of an array. But when I am adding my picturebox (The Object) to MyGrid (My …

Member Avatar for H
0
210
Member Avatar for Hakim_2

I manage to display data using below query that will show value for each month. How to calculate average value starting july onwards(based on user selection). Let say the value for element 'A' are Jul=66, Aug= 65, Sep=87. If user select Aug then the average is 65.5 and if user …

Member Avatar for broj1
0
187
Member Avatar for mark103

Hi all I have got a problem with the list of strings. I have got the full list of strings, but I can't be able to print for each string which I can only print for the full string. When I use this: programList = list() # set the channels …

Member Avatar for Gribouillis
0
279
Member Avatar for bbinais

I want to disable the user for 6hrs when he inputs the wrong password 3 times i'm using mysql... please help me... and this is my usercheck.php [code=php] <?php session_start(); include("config.php"); if (isset($_POST['sub'])) { $myusername = $_POST['txtusername']; $mypassword = $_POST['txtpassword']; $name = stripslashes($myusername); $password = stripslashes($mypassword); $myusername = mysql_real_escape_string($name); $mypassword …

Member Avatar for diafol
0
3K
Member Avatar for Ebroxy

Hello, I want to print a letter from a html page. But within the letter, I want it to contain the name of each student on the database. It is the same letter but I want to print/download it having each student's unique name.

Member Avatar for diafol
0
153
Member Avatar for fireballthor

I am needing to write a program for someone that needs it to count by any number they manually enter into the program. I have the menu code written and now just need help with the counnting code. I know i most likely need to use a "for" loop but …

Member Avatar for Slavi
0
340
Member Avatar for Papa_Don

Hello group! I need to scrape data from the screen of an open application. It will be used as text, so it will need to be converted into a string that I can parse. I've looked around and found scrapers that use the "picture" as a bitmap or jpeg. The …

Member Avatar for cgeier
0
3K
Member Avatar for arafath077
Member Avatar for Dinesh_9

Hi everyone,I am assigned with an task of writing an java code to create an Word-Frequency-Counter which needs to satisfy the following constraints: 1)It must prompt the user to enter an path from where the code will read all the contents of text files(.txt) present in that directory. 2)An property …

Member Avatar for vighnesh.anap
0
6K
Member Avatar for bro_1

how to make php security in the url with the get method for example as media.php?hal=detail&id=1

Member Avatar for veedeoo
0
513
Member Avatar for rory.starkweather.7

I recently bought a legacy Borland C++ package, Version 4.5, on EBay, and it apparently includes Object Vision. I don't know whether to be happy or depressed, The only descriptions I have found of Object Vision say it is a 'form based' programming language. I'm not sure what that means. …

Member Avatar for drianhodgson
0
444
Member Avatar for kww228

I am working on a shell script that takes a single command line parameter, a file path (might be relative or absolute). The script should examine that file and print a single line consisting of the phrase: Windows ASCII if the files is an ASCII text file with CR/LF line …

Member Avatar for chriswelborn
0
862
Member Avatar for jarmouz

Hello, I want to get checkbox depending on choice dropdown list. this is my code <html> <head> <link rel="stylesheet" type="text/css" href="style.css" media="all" charset="utf-8"/> <title>APPLICATION</title> <script type="text/javascript"> function changerub(rubrique){ var divIds= new array('agent'); for(var i=0; i<divIds.length;i++){ document.getElementById(divIds[i]).style.display = (i==rubrique)?'block':'none'; } } </script> </head> <body> <?php $cnx=mysql_connect('localhost','root','') or die ("Erreur de connexion"); …

Member Avatar for diafol
0
120
Member Avatar for ckide

What are the areas (uses) of the use of the language of C/C++? i want advanced uses of c/c++ to choose the best for me and for the future.

Member Avatar for Maritimo
0
470
Member Avatar for connoisseur2010

Hi ... I wrote a script to send a feedback form to an email. Here's the script below; //PHP CODE: <?php session_start(); $submitted = FALSE; ini_set("SMTP","mail.sitecghana.com"); if (isset($_POST['send_message_button'])) { $submitted = TRUE; // The form has been submitted and everything is ok so far… $name = htmlspecialchars($_POST['name'], ENT_QUOTES); $email = …

Member Avatar for cereal
0
418
Member Avatar for nipur23

Hi guys, I'm almost finished my assignment. It's purpose is to translate english words to pirate language. For example, when some enters "hello", "ahoy" is returned. But when I enter two words like "pardon me", "null" is returned even though I have assigned "avast" to it. I'm thinking this is …

Member Avatar for stultuske
0
2K
Member Avatar for harry.suren

Logout functionality does not working properly in "Production Environment". The logout Function is called in Production Environment by Started GET "/logout" for 127.0.0.1 at 2014-11-11 14:48:52 +0530 instead of Started DELETE "/logout". Note: I don't use Devise Gem in my application. routes.rb root 'welcome#home' get 'signup' => 'users#new' get 'login' …

Member Avatar for Taywin
0
275
Member Avatar for john jr

Hello my friend out there i realy need help .i'm working on one of my class labs but things is not that write to me...could one out there assist me thanks you. here is the quz<<<<<< Write a program in HTML and JavaScript for the following tasks: Find the maximum …

Member Avatar for Taywin
0
201
Member Avatar for rela

I need to have the same following format of dadat, which are read in a text fil, in output. "Mainnumber" is the first number of each matrix (1,2,3) and for each "mainnumber" (i), the number of rows are determined for each (i) by ("nof_row_per_mainnumber[i]"= numberof_rows;). For every "Mainnumber" (matrix) it …

Member Avatar for tinstaafl
0
265
Member Avatar for Abraham_3

In my project I have got a "back button" that is calling a javaScript function that remembers the previous url when called. //back button function function goBack() { $window.history.back(); } the url being remembered or being called when the back button is clicked contains an ID and this is ID …

Member Avatar for Taywin
0
230
Member Avatar for redtribal23

I'm trying to make a program that reads in numbers and commands and prints the list of numbers. I am trying to solve one problem at a time and this is about exception handling. I am still not familiar with the whole exception handling that is why I get confused. …

Member Avatar for Taywin
0
216
Member Avatar for david.nicely.393

• Need help with writing an algorithm: • Department Store Sale! Prompt the user to enter the sticker price of each of the clothing items they’re purchasing (make sure all input prices are positive). The user should be allowed to purchase as many items as he or she would like. …

Member Avatar for sneekula
0
142
Member Avatar for TheGuy831

Hi i Been Trying all night to get **Flash Player** to occupy **All** Browser Control using the height="100%" and width="100%" ![0e4a025266d1fe1c72d867596476e7d3](/attachments/small/4/0e4a025266d1fe1c72d867596476e7d3.png "align-left") ![d5a44ac00709c049b7c89b808cf2a4b0](/attachments/small/4/d5a44ac00709c049b7c89b808cf2a4b0.png "align-left") Making **Flash Player** Full screen in Browser Control.. Please!! Help!! Thank you..

Member Avatar for TheGuy831
0
247
Member Avatar for burhanahmed92

I worked on ASP.NET and i use sqldatasource control to add binding in my DataGrid. But now i am making app in WPF C# and there is no sqldatasource in Toolbar. I am using VS2013. I searched online and most of the sites tell to add connection manually in c# …

Member Avatar for gerhard_1
0
172
Member Avatar for SimonIoa

I want to put a remember me button on my website in the login page... Any good example?

Member Avatar for SimonIoa
0
144
Member Avatar for HuePig

Hi, I have a rock class, I use that class to generate multiple rock objects that are then put in a vector. The problem I'm having is that when a rock is generated the whole game slows down making it laggy/choppy. Right now my rock is loaded from file: `rock.loadFromFile("image/rock.png")`; …

Member Avatar for JasonHippy
0
167
Member Avatar for Silvainius

I am trying to make a memory game using labels and command buttons, and I have run across an issue in which when I try to set up a timer with a loop within a Sub function. My current code for this: Private Sub Form_Load() tmrStart.Interval = "1" End Sub …

Member Avatar for Silvainius
0
171
Member Avatar for Deep Modi

Hello I want to create the program for teaching program. In this I want to add the Topics which is almost of 50-60 now the things is that I am not using the Tabs. I use the Menu bar in which i add the object as "TOPIC" and under this …

Member Avatar for Mr.M
0
190
Member Avatar for Mr.M

Hi Dw I'm currently doing my research on card development and processing. I've found out that this card has three tracks but only track 1 and two are encoded and by the look at these data I then wandered that is there a way to decrypt the info stored in …

Member Avatar for Mr.M
0
212
Member Avatar for Adrossii

Can you help me please? I don't know how to do this. How can I declare an array with an unsigned value? The only way I know is to specify the size first then the user can input his values. How to do this? Please.

Member Avatar for sunktugg
0
309
Member Avatar for saurav_panda

hi every one. i want some help in writing the code to find out shortest word in a string. i am posting a code on longest word. can somebody help me in writing this code? this is the code for longest word in a string without any built in function …

Member Avatar for sunktugg
0
201
Member Avatar for samson.dadson.3_1

the problem I have here is: when I input an integer it works fine, but when i input any other thing, it doesn't give me a chance to input again when the loop iterates, it just keeps printing "error type the right thing" to the screen even though "cin var" …

Member Avatar for samson.dadson.3_1
0
2K
Member Avatar for razar63

Hi All I have a simple add to shortlist function using php and would like to add a success Alert message so that users know that the item was added to the shortlist. Ive tried the following code without success. // check if the item is in the array, if …

Member Avatar for broj1
0
1K
Member Avatar for nitin1

Does C++ consider \/ as an escape character? And does Java consider it? I am talking about forward and backslashes. Please tell. How does Java and C++ considers them differently? I mean : in C++: this '/' works fine without escape. in Java: this '\/' will result in '/'. Is …

Member Avatar for nitin1
0
238
Member Avatar for bradly.spicer

Hey guys, <?php $url = "https://api.twitch.tv/kraken/streams/greatbritishbg"; $json = file_get_contents($url); $json = json_decode($json); var_dump($json); foreach($json->streams as $stream) { echo $stream->channel->stream . '<br />'; echo $stream->channel->display_name . ' is playing ' . $stream->channel->game . '.<br />'; echo '<a href="http://www.twitch.tv/' . $stream->channel->name . '">Watch Live</a>'; echo '<hr />'; $status = $stream->channel->stream; } //PSUEDO …

Member Avatar for bradly.spicer
0
576
Member Avatar for jorwill.harion

Can you help me with this program?. I am trying to insert data into two mysql tables at once. I have two tables: property and personal. <?php define('DB_NAME', 'purchase'); define('DB_USER', 'root'); define('DB_PASSWORD', 'root'); define('DB_HOST', 'localhost'); $connection = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$connection) { die('Could not connect: ' . mysql_error()); } …

Member Avatar for jorwill.harion
0
424
Member Avatar for malatamil

mail is not getting to my inbox. while submit the form am getting message as mail has been sent, but after sending i checked my mail am getting mail in spam,how can i get the mail into inbox. index.html <form method="post" name="sentMessage" action="mail/contact_me.php" id="contactfrm" role="form" enctype="multipart/form-data"> <div class="col-sm-4"> <div class="form-group"> …

Member Avatar for malatamil
0
312
Member Avatar for Violet_82

Hello guys, I wonder if you can help. I've got an existing site that I want to "convert" to an ASP.NET one and I gave a good read at the master template tutorial suggested in another thread, but I'm having a few problems deciding what goes in the master page …

Member Avatar for Violet_82
0
401
Member Avatar for davy_yg

Hello, I am trying to create a form, yet I wonder why the form does not works like usually: index.php <form action="login.php" method="POST"> <input type="text" class="form" name="email"><br> <div style="margin: -60px 0 0 165px;"><input type="password" class="form" name="password"></div> <div style="margin: 235px 0 0 -125px;"><input type="button" name="submit"></input></div> <div style="margin: -170px 0 0 350px;"><input …

Member Avatar for broj1
0
258
Member Avatar for nitin1

I am creating one json array using Json-glib using c++. Here is the data: title="Daniweb" (string) last= 1234 (long) icon="icons" (string) url = "[\"dani.com\"]" (json array) After making one json array using exsiting APIs of json-glib library, I got this: {"id":"Nitin1","clientName":"Gourav_first_task","tabs":"[{\"title\":\"Daniweb\",\"icon\":\"icons\",\"urlHistory\":\"[\\\"Dani.com\\\"]\",\"lastUsed\":1234}]"} Is it the correct json string made? It has …

Member Avatar for mike_2000_17
0
180
Member Avatar for Xiao_1

in combobox how do can i select the user as student not other e.g. if the user is student not Manager Private Sub loginform_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim conn As New System.Data.OleDb.OleDbConnection() conn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\temp\Database1.accdb" Try Dim sqlcmd As String = "SELECT * …

Member Avatar for Minimalist
0
134
Member Avatar for AQWst

Hello-- I am not sure where I should post this. I have an Excel spreadsheet with some cells I would like to concatenate into one resulting cell. I can get the cells concatinated, but I would like to concatenate one cell to the degrees symbol, followed by a space, followed …

Member Avatar for ddanbe
0
274

The End.