199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for RudyM

Hi all, This is a very elementary question, but I'm a couple of days into this. Which web.config file should one store keys in? Keys to use within a Model/Controller? I see four different ones: Project > Views > Web.config Project > Web.config Project > Web.config > Web.Debug.config Project > …

Member Avatar for RudyM
0
303
Member Avatar for influx

I am using this code to get all synonyms from the text in document named "answer_tokens.txt" it is only listing the words in the document without the synonyms. can someone check it out? from nltk.corpus import wordnet with open('answer_tokens.txt') as a: #opening the tokenised answer file wn_tokens = (a.read()) #printing …

Programming python
Member Avatar for influx
0
413
Member Avatar for Hari_13

I am unabe to send email. The page is hanging and it is not displaying any error. Please help me fix the issue thank you in advance.

Member Avatar for JamesCherrill
0
118
Member Avatar for Abhi_6

I am getting the longitude and latitude from AJAX and giving me more 120 on every page load. Marking the result locations into google map and using browser key. It was working fine, but suddenly it stopped working and getting '**This site has exceeded its daily quota for maps. If …

Programming api google google-api json
0
198
Member Avatar for Vikash_7

include("conn.php"); $studid=$_POST['studid']; $reg=$_POST['reg']; $sname=$_POST['sname']; $fname=$_POST['fname']; $dob=$_POST['dob']; $course=$_POST['course']; $contact=$_POST['contact']; $address=$_POST['address']; $img=$_POST['img']; //Image Upload $name=time(); $uploaddir = "../img/"; $uploadfile = $uploaddir .$name. basename($_FILES['userfile']['name']); move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile); $fpath=$_FILES['userfile']['name']; if($fpath=="") { $fpath=$img; } if($img=="") { $img="default.gif"; } mysql_query("update student set sname='$sname', fname='$fname', dob='$dob', contact='$contact', address='$address', simg='$fpath' where studid=$studid");

Member Avatar for broj1
0
166
Member Avatar for AntonyRayan

How to add new languages in this example? <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script type="text/javascript" src="https://www.google.com/jsapi"> </script> <script type="text/javascript"> // Load the Google Transliterate API google.load("elements", "1", { packages: "transliteration" }); var transliterationControl; function onLoad() { var options = { sourceLanguage: 'en', destinationLanguage: ['ar','hi','kn','ml','ta','te'], transliterationEnabled: true, shortcutKey: 'ctrl+g' }; …

0
133
Member Avatar for Michael_56

I am fairly new to java using Spring boot and maven. I was assigned a task to get the revision number and timestamp for the current revision from the project and put them into an app.properties file . Most of the demonstrations I have found displayed the templates as such, …

Programming java
Member Avatar for stultuske
0
341
Member Avatar for Violet_82

Hi guys, I have a question about error handling. Still working on the addition application and now that I've learned what are the correct exceptions to handle I'm not sure what to do when I've established that the my inputs are all valid and print my result. Let's have a …

Member Avatar for Gribouillis
0
418
Member Avatar for phphp

Dear Experts I use datepicker as <input style="background-color:#FFC;" type="text" size="9" name="date" id="datepicker-13" value="<?php echo date('d-m-Y', strtotime($date));?>"> <script> var j = jQuery.noConflict(); j(document).ready(function(){ j("#datepicker-13"). datepicker({dateFormat:'dd-mm-yy'}); <!-- j( "#datepicker-13" ).datepicker("show"); --> }); </script> This datepicker pick any date but I want it to select date between this ranges $date1='2016-07-01' $date2='2017-06-30' Suppose If …

Member Avatar for rproffitt
0
171
Member Avatar for Oxley_1

I am banging my head again, and appologise if such a qestion has been posted and answered - i searched and could not see any results matching my question. I have a datagridview1 full of data, one column has a date and another a qty. datagridview1 Date Qty 2015-11-05 | …

Member Avatar for rproffitt
0
275
Member Avatar for AntonyRayan
Member Avatar for Abraham_7
Member Avatar for ikel

Hi, I am developing a mobile app for a health care institution. I'd like to get a suggestion on how to approach my database design. There are many user types of this app; residents, nurse, and general-staff. The "resident" has many information that other types don't have; unit_number, food_allergy, emergency_contact, …

Member Avatar for ikel
0
387
Member Avatar for Dani

I currently have a binary string that has been encoded with base64_encode(). However, I need to represent this string only with 0-9a-zA-Z characters. I am currently wrapping the string in bin2hex() to represent it with 0-9a-f. However, for transport reasons, I would like to compress the string by representing it …

Programming php
Member Avatar for rubberman
0
575
Member Avatar for phphp

Sir I have this variable $date="2016-07-18" I want to get DATA from 2016-07-01 to 2016-07-17. In other words I want to get DATA of month given in $date (July) but excluding current date (18) How to write query $query = "select * from arrival where ........; Please help

Member Avatar for cereal
0
196
Member Avatar for Krishna_20

Hi All, Can some one please assist me. How to get rid of this error. concurrency violation the update command I have been struggling from the last couple of days. Tried many solutions from the internet but unable to resolve this issue. May be, I am completely rookie. Imports Microsoft.Office …

Member Avatar for rproffitt
0
286
Member Avatar for Joseph_24

I need to develop aa database to store stock taking information and sales. I was going to use MS Access to strructure and make all the logistics for my database since im quite friendly with access and i find it easy to use. MY problem is, i want this database …

Member Avatar for cereal
0
374
Member Avatar for AntonyRayan

How to set a image as default as fixed like background and remaining images will have to change dynamically? in HTML, CSS

Member Avatar for princejav786
0
134
Member Avatar for davy_yg

Hello, I am looking for a way to looks for small business owners in Jakarta that does not have any website yet or have ugly website/ cheap website. I would like to offers much better websites for them? Like sending them proposal to create website. Any idea how to do …

Member Avatar for cereal
0
92
Member Avatar for davy_yg

I find there are several google analytics alternative on the internet. Now, I wonder if I can create my own google analytics? How to?

Member Avatar for cereal
0
197
Member Avatar for Violet_82

HI guys, I'm really new to SVN and today I've installed tortoise as I'm working in windows at the moment and I'm following this tutorial https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-qs-guide.html. So, I have a java project in Eclipse: I have created a local repository folder on my machine and imported a project in it. …

Member Avatar for Violet_82
0
290
Member Avatar for will_9

hi guys thanks for viewing and helping me out!! here are the example what the things will looks like Enter problems per set: 3 Set #1 ---------- What is the maximum number for this set? 100 45 + 21 = 66 correct 0 + 100 = 100 correct 54 + …

Member Avatar for rubberman
0
359
Member Avatar for Goddy_1

Customers pick When finished If on the book, such as the selection of Van Dyke VT01 from 1/07/59 - 2/07/59-day period, you will not be able to book your car again. It is based on the availability of the vehicle. I made a separate table Storage booking Van table separately …

Member Avatar for cereal
0
176
Member Avatar for Abhi_6

I have an Array containing arrays with 8 values, I want to group **date** element having same **teacher_name**, **school_name** and **month_year**. Below is my array: Array ( [0] => Array ( [teacher_name] => CF [school_name] => School 1 [month_year] => Jun 16 [starttime] => 04:04 PM [endtime] => 05:04 PM …

Member Avatar for diafol
0
296
Member Avatar for James_43

Hi all, I'm using the Laravel framework to create an application, and have a database question. I have a table called `posts`. I have been pulling the 10 most recent rows from here and making use of an offset variable for pagaination. Now however I also have a table `media` …

Member Avatar for James_43
0
162
Member Avatar for Lloyd_4

Hi everyone, I have a submit form on my website that display's to the user once is has been submitted, The problem I have is the text is being displayed as Chris &amp; Amy\&amp;#39;s 30th It should be displayed as Chris & Amy's 30th What is the best way to …

Member Avatar for rproffitt
0
183
Member Avatar for Suzie999

I'm having trouble calling unmanaged dll function from the windows win32 apis. I've tried many ways, but the following was my first and what I think should work. using System.Diagnostics; using System.Runtime.InteropServices; namespace Win32DllImports { class Program { [DllImport("Urlmon", EntryPoint = "ObtainUserAgentString", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)] private static …

Member Avatar for Suzie999
0
386
Member Avatar for Samantha Joy

how to use php variable as a html variable? <?php $num=array(); for($i=0;$i<5;$i++) echo '<input type="number" name="$num[$i]">'; ?> i need to display the inputted number in the array. it's not working. please help

Member Avatar for Avinash_8
0
240
Member Avatar for Nether_1

I'm writing a simple server allowing me and my friends to send information to each other. Currently I've got the client down easy enough, it's all set up and I can communicate with servers. The problem is I can't get the server to work for some reason, I use working …

Member Avatar for Nether_1
0
351
Member Avatar for pramod_8

#include<iostream> using namespace std; int main() { int a,d; cout<<"Enter a integer to check it is prime or not :"; cin>>a; d=2; while(a%d!=0) { d++; } if(a==d) { cout<<"\n the given number id prime "; } else cout<<"\n the given number is not a prime number ;" return 0; }

Programming c++
Member Avatar for AssertNull
0
445
Member Avatar for zachattack05

Hi everyone! I am in major need of some help here and before I go off and write a SP to handle this for me, I though I would ask here for advice first. I am writing a report to display on our asp.net site using the ReportViewer component and …

Member Avatar for zachattack05
0
337
Member Avatar for Jim_11

Hello, I am doing an application in C# but I have a problem. I need to show the volume status of the computer. I created two pictures to show if the volume is muted or not. I found this code but I get errors: MMDeviceEnumerator devEnum = new MMDeviceEnumerator(); MMDevice …

Member Avatar for rproffitt
0
465
Member Avatar for Papa_Don

Hi group, I've looked all over the internet to find my solution without luck. Hopefully you can help. I need to add an Oracle server to my data sources in Visual Studio (if it matters, I'm using VB.net). Per the best instructions I've found so far, I've selected "Data Sources" …

Member Avatar for Papa_Don
0
468
Member Avatar for gahhon

In JS i tried something like this, window.onbeforeunload = function() { window.open('http://www.msn.com','_self'); return 'close?'; } but it doesn't redirect the page, but the return statement is displayed. how can i do to archieve redirect a specify page without any alert?

Member Avatar for sunil_17
0
2K
Member Avatar for M_6

I'm doing bachelor's in computer science, i want to develop a game on my fyp. My question is how big it should be to accepted . And gauge me some sample game which student created in their bachelor's level.. and your opinion which type of game etc...

Member Avatar for AssertNull
0
450
Member Avatar for will_9

hi, guys i'm in colleage trying to do some homework with cs10 and got stuck with this combination of functions please help me out!!!! T^T spent 8hours today still couldn't figure it out #include<iostream> using namespace std; void getProbsPerSet(); void doOneset(char Func); void doOneproblem(int &Answer); void getMaxnumber(int &MAX); void printHeader(int …

Programming c c++
Member Avatar for rubberman
0
405
Member Avatar for Josh_2

Hello all I have a chat room application where clients connect to server and can chat between each other, I am also trying to add a feature where a client can request a file from the server sucha s an image sound file or video I am trying to convert …

Member Avatar for Josh_2
0
1K
Member Avatar for Altjen_1

I am designing a software and want to save data in a txt file. but dont want the user to open them as txt file, only the app should do it. Is this possible? if yes, how? I've searched in google, but not any good reason to help me out.

Member Avatar for tinstaafl
0
1K
Member Avatar for Violet_82

Hi guys, I have a simple application which allows users to input a divisor, a divident and then calculates the quotient. I'm using vaadin as framework but I don't think that matters. So I've been thinking about the exceptions that can occurr and these are the ones i have identified: …

Member Avatar for JamesCherrill
0
406
Member Avatar for Saurabh_13

THE CODE BELOW IS FOR SAVING FORM DATA FROM HTML FORM TO A TEXT FILE IN THE LOCAL COMPUTER. BUT, THE TEXT I AM GETTING IN THE TEXT FILE IS ALWAYS IN A SINGLE LINE AND I CAN'T ORGANIZE IT. THE CODE BEING USED IS AS BELOW. <!DOCTYPE html> <html> …

Member Avatar for stultuske
0
488
Member Avatar for Joe_10

I have a simple form that I want the user to input their name and submit a picture. The name user name and photoname will goto the database. The form submits to the database, and fileuploads and renames correctly. My issue is how to I return the renamed filename to …

Member Avatar for Joe_10
0
250
Member Avatar for Adarsh_2

Hi,I am new to android programming In my app I am launching an another app(whats app,calculator,etc) I can launch any app successfully by using this code: Intent i=getPackageManager().getLaunchIntentForPackage("your package name"); i.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); startActivity(i); But it always created new instance/restarted of the app.I want it to launch and resume it from where …

Member Avatar for Adarsh_2
0
308
Member Avatar for AssertNull

Okay, I am trying to learn Windows programming and there are all sorts of new data types that I am running into and need to learn. I'm trying to understand the point of it all and failing. If there is no point and it's just Microsoft making things difficult for …

Member Avatar for rproffitt
0
369
Member Avatar for Peter_32

I am writing a HTML application for an Arduino-based web server using only C and C++ on the Arduino webserver and HTML only on the client web browser. The index page is a simple form containg two radio buttons and a 'Submit' button BUT at the top of the page …

Member Avatar for rproffitt
0
210
Member Avatar for SimonIoa

Hello this is going to be a long post so thanks in advance for just reading it. I think it will help many users. I want to store additional data and to add new rows to a table. I know about mysql and php but i am not familiar with …

Member Avatar for SimonIoa
0
382
Member Avatar for Cave_1

The example in this post is from** C++ Primer Plus (6th Edition)** by *Stephen Prata* **My question:** Why cin.ignore( ) is not used in his example? Shouldn't we discard the buffer with a line similliar to this: `std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');` Example from the book: int fill_array(double ar[], int limit) { using …

Programming c++
Member Avatar for Cave_1
0
851
Member Avatar for Altjen_1

Hi daniweb community, this sounds really weird question but I'm having a problem finding a page/portal. has been about 2 days and I've been searching literally for more than 30 hours. From the desperation I am asking any of u if they know it. Inside microsoft page, or microsoft azure. …

Member Avatar for AssertNull
0
203
Member Avatar for catastrophe2

hi So ive deployed a small website i worked on, and before deployemnt on Amazon web services, i was of course testing everything on localhost. after seeing that things are working on localhost, i changed the localhost to the deployment link provided on AWS and things looked fine and all …

Member Avatar for catastrophe2
0
494
Member Avatar for rahulrevolution

Hello guys .Plz help I am stucking in my first android program. IDE is Android Studio 1.0.1. "R.layout.activity_main" when i move pointer on 'R' it shows "cannot resolve symbol 'R' ". I have done "restart" android studio. I have done" clean project and rebuild project".

Member Avatar for rproffitt
0
212
Member Avatar for Ivan_10

I have this: <div class="to_remove"> <div class="widget widget-list"> <div class="panel panel-default"> <div class="panel-heading bold">Menu</div> <div class="panel-body"> content </div> </div> </div> </div> I need preg_replace to edit like this: <div class="widget widget-list"> <div class="panel panel-default"> <div class="panel-heading bold">Menu</div> <div class="panel-body"> content </div> </div> </div> I need to remove <div class="to_remove"></div> but …

Member Avatar for Ivan_10
0
334

The End.