199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for happygeek

Another day, another breach. The latest to disclose that there had been some 'unauthorised access' to systems and internal company data' is music streaming service Spotify. The disclosure itself was something of an odd one, claiming that investigation suggested only a single user's data had been compromised following an issue …

Member Avatar for <M/>
1
309
Member Avatar for nikesh.yadav

Can anybody convert this code to php for me.. this is code is used to access a webservice but i only C# code they are not providing any documentation. Thanks in advance private CrmService CreateService() { cs = new CrmService(); string username = ConfigurationManager.AppSettings["Username"].ToString(); string password = ConfigurationManager.AppSettings["Password"].ToString(); string domain …

Member Avatar for BogdanCov
1
6K
Member Avatar for Tamara_1

Program For Standard Form def stnfrm(a,b,c): one = (b/(2.0*a)) two = c-((b**2.0)/(4.0*a)) axis = one/-1.0 x = -b/(2.0*a) y = a*(x**2.0)+(b*x)+c print x if a == 1: print "(x + %f)**2 + (%f)" % (one,two) elif a == -1: print "-(x + %f)**2 + (%d)" % (one,two) else: print "%d(x …

Member Avatar for ddanbe
1
540
Member Avatar for deceptikon

## Disclaimer ## Full disclosure, this is a problem I've recently encountered at work. I couldn't find a reasonable solution and ended up recommending a logistics approach rather than a full code approach to solve it. The code performs a subset of required functionality to give users more options, but …

Member Avatar for ddanbe
1
581
Member Avatar for TrustyTony

I did code for challenge that I saw posted for C# by deceptikon: http://www.daniweb.com/software-development/csharp/threads/479304/coding-challenge-string-to-date Here it is. Of course normally the code would be without prints and put in function, but this is enough for now for me. There could also be normalization from '/' separated form not producing ambiguous …

1
269
Member Avatar for nan01

Hi. I am creating a database where a user can store up to 50 names of their family members. I have two table structures in mind and curious which one is the more efficient structure for using with php. ==================================================================================================== TABLE A: userid-firstfamilymemberid-firstfamilymembername-secondfamilymemberid-secondfamilymembername Note:(the columns would repeated until the fiftiethfamilymemberid …

Member Avatar for nan01
1
272
Member Avatar for dhani09

I'm trying to do a username availability check on my website, i.e during registration, it checks if a username is taken or still available. However when i execute i get no result at all,nothing happens. My code: **Registration page** ***register.php**: * //this form posts to the same script. //In this …

Member Avatar for iamthwee
1
492
Member Avatar for Ahmed_51

Hey guys, I've been writing a program that will take user jumbled input, find it in a given file, and print the unjumbled word. I've written most the code up to this point but I haven't been able to finish it and am stuck at how to fix it. I've …

Member Avatar for L7Sqr
1
561
Member Avatar for eburlea

I am new in Wordpress. I have installed a plugin "Infinite Scroll". When I scroll down the page to load new articles into the page, a message appear "Loading...". I have tried to translate the message in admin panel, but that was not a translation, just a replacement of the …

Member Avatar for mattster
1
242
Member Avatar for roxanne.martos

Hi i am reworking on my password security on the register page so far it is okay apart from the fact that im getting this error: Fatal error: Call to a member function create() on a non-object ` $bcrypt = new Bcrypt; try { $email1->create(array( ` 'username' => Input::get('username'),` 'password1' …

Member Avatar for roxanne.martos
1
236
Member Avatar for joshl_1995

Hello Community, I'm trying to use dynamic subdomains which works but I'm only wanting .htaccess to to send subdomains without letters, numbers and underscores (_) to the 404 page. Here is my code. Options +FollowSymLinks -MultiViews RewriteEngine On RewriteBase / #Remove www. RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [QSA,NC,L] …

1
166
Member Avatar for crazyboy

hi frds ... I want to notify my application whenver user open any file. i just want to notify the name of that file, which is opend by user. how can achive this. FileSystemWatcher class is not giving this facilities. I want only notification for opening any file.. please reply …

Member Avatar for aryan123
1
393
Member Avatar for bonzie1923
Member Avatar for JamesCherrill
1
156
Member Avatar for Gribouillis

This script computes the formal series expansion of a mathematical function on the command line using the python module swiginac, an interface to the CAS Ginac. Typical invocation in a linux terminal looks like $ serexp.py -n 7 "log(1+x)*(1+x+x**2)**(-1)" 1*x+(-3/2)*x**2+5/6*x**3+5/12*x**4+(-21/20)*x**5+7/15*x**6+Order(x**7) As far as I know, swiginac does not work in …

1
487
Member Avatar for lexaeterna

hello everyone! im using ozeki sms gateway for my website. but for some reason (which i dont know) when i use and implement the script i have on my uploaded website it doesnt work. i get an error message as follows: Request: http://192.168.254.103:9501/api?username=php1&password=12151989&action=sendmessage&messagetype=SMS:TEXT&recipient=%2B639355537225&messagedata=dddd Warning: fsockopen(): unable to connect to 192.168.254.103:9501 …

Member Avatar for Tom87
1
186
Member Avatar for zegarnek

Hi, I am just playing with C code in the console under Linux. In the old times a fair bit of code was written for a console; programs were operating in text mode, creating menues was quite a fun. I coded very simple c routine to print a strings of …

Member Avatar for N1GHTS
1
3K
Member Avatar for M_I_K_E_911

I am new to programming and picked up the following book by microsoft. I am taking Computer Science in college and would love to know if this is the correct step. I am very interested in how computer language works and wantto get into this a lot more. I've read …

Member Avatar for M_I_K_E_911
1
353
Member Avatar for cjohnweb

I have a PHP script that opens a port and asks the server if it is running, with PHP I echo a "Server Running" or an error - I want to access this script with JQuery/AJAX. Then on the website, I have a little box on the side of the …

Member Avatar for LaxLoafer
1
202
Member Avatar for carllagerfeld

This is a function that I wrote and have re-used many times. I share it with you DaniWebers to use, laud or destroy! In a nutshell, this takes a user's search box input phrase and generates a series of LIKE clauses for your SELECT statement. Looks like "col1 LIKE '%s_term1%' …

1
477
Member Avatar for William Hemsworth

Saw [this](http://www.daniweb.com/software-development/cpp/code/216430/add-a-little-graphics-to-your-console) and decided to make a little spinoff with some physics of mine. Enjoy!

Member Avatar for YassinTAH
1
448
Member Avatar for Richa_2

` Hey can u solve my prob. I was running an Applet program(.html file) with java Browser but it showing error = "your security settings have blocked a local application from running" So can u say ... which application is this

Member Avatar for Richa_2
1
233
Member Avatar for davy_yg

Hello, I am assign to create an SMS Gateway webbased. Any idea how to do so? I only find this typology for an SMS Gateway: [SMS Gateway](http://www.ozekisms.com/index.php?owpn=510) Yet, still do not have any clue how to create the web based script for it in order to work.

Member Avatar for szurcsii
1
245
Member Avatar for bumsfeld

A simple program to show you how to create a table of Fahrenheit and Celsius values using a for loop. You may be able to learn from this code.

Member Avatar for rubberman
1
280
Member Avatar for Siberian

var one = getElementsByClassName("orange")[0]; one.style.color = "orange"; The code above gives me the following error, why ? Error: 'getElementsByClassName' was used before it was defined.

Member Avatar for Siberian
1
191
Member Avatar for SQLpower

Hello, So I basically created SQL Server Database and I got it working with displaying my images and drop downlist and everything, however, I want to make it to display an image only if a continent is selected. So if I select Europe, I would like to receive a picture …

1
124
Member Avatar for KOMKOKO

/* Inlude [JQUERY](code.jquery.com/jquery-1.11.0.min.js) External SOurce Scrit *? /* SAVE AS Dynamic_State_LGA.js */ // JavaScript Document /*<![CDATA[*/ var Abia = ['Select item...', 'Aba North', 'Aba South', 'Arochukwu', 'Bende', 'Ikwuano', 'Isiala Ngwa North', 'Isiala Ngwa South', 'Isuikwuato', 'Obi Ngwa', 'Ohafia', 'Osisioma', 'Ugwunagbo', 'Ukwa East', 'Ukwa West', 'Umuahia North', 'muahia South', 'Umu Nneochi']; …

Member Avatar for JorgeM
1
3K
Member Avatar for agrbinoo.albaker

Write a program that uses a for statement to sum a sequence of integers. Assume that the first integer read specifies the number of values remaining to be entered. Your program should read only one value per input statement. A typical input sequence might be 5 100 200 300 400 …

Member Avatar for agrbinoo.albaker
1
981
Member Avatar for newbiewwcode

Can you guys please help me understand when to use const? For example, if I have the following functions: viod add (int* array) { int total = array[1] + array[2]; } viod subtract (int* array); viod times (int* array); viod divide (int* array); viod printArray(int* array); and I only intend …

Member Avatar for newbiewwcode
1
209
Member Avatar for softwaretime

Well this is quite a large program so there is a lot of information to sort through, but when I compile it now it comes up with this: /Users/Adam/Adam's Work/Programming/C++/Code/OS2.cpp: In member function ‘virtual int dbase::todo()’: /Users/Adam/Adam's Work/Programming/C++/Code/OS2.cpp:393: error: invalid conversion from ‘const char*’ to ‘int’ /Users/Adam/Adam's Work/Programming/C++/Code/OS2.cpp:394: error: invalid …

Member Avatar for frank.dekievit.50
1
13K
Member Avatar for priyanka raj

Would you please help me in writing a c code to read data from a file and perform 1)numeric sort, 2)alphabetical sort. the file may contain data of any kind.Like it may contain only numbers,only names or a database of employees of a company.(which contains their employee id,name,designation and salary,....in …

Member Avatar for aaaymen
1
7K
Member Avatar for seankleyn

I want to start programming PC Games that use lots of graphics. Which Programming language or languages are best suited for computer graphics programming and WHY?:)

Member Avatar for keyboard_me
1
2K
Member Avatar for stupidenator

Hey Everyone, This is my first post. Recently, I have been working on an instant messenger program in java. I have created the networking part of the client, and I have almost finished the server side. I know the program works and I am allowed to send messages, but now …

Member Avatar for stultuske
1
2K
Member Avatar for burt.munn

I need to write a script that allows a user to enter a numeric grade and then determine the letter grade. Use a PHP document and a HTML document containing a form with 5 text boxes to enter the numeric grades. Print a message to the user stating whether or …

Member Avatar for burt.munn
1
8K
Member Avatar for coreyavis

This is a function I created to facilitate the sending of PHP emails. Just give it the name and email of who your sending it to, and your name and email. A subject and a message. These options are required. The type, cc and bcc options are optional. By default, …

Member Avatar for Airshow
1
846
Member Avatar for begueradj

Hello Since Ajax is a client side technology, why can not we see its source code by CTRL+U ? Regards

Member Avatar for JivanAmara
1
167
Member Avatar for iamthwee

So I read somewhere that your views should not contain any logic in them. But let's say you pull back a query from your model which displays four boxes two of them need to be checked in the view. I'd pass this as an array into the view but in …

Member Avatar for veedeoo
1
340
Member Avatar for pooja_4

hey can any one try out this problem.... 1)Write a program to read a sequence of N integers and print the number that appears the maximum number of times in the sequence. INPUT Input contains two lines. First line in the input indicates N, the number of integers in the …

Member Avatar for Faizal Shariff
1
297
Member Avatar for kumar.rupesh

Hi Friends, Please share your's experience about best supporting programming language for BigData & Hadoop. I'm also doing some research about this topic plz contribute your idea & experience for this topic. Regards, Rupesh

Member Avatar for kumar.rupesh
1
232
Member Avatar for TrustyTony

Here is simple text file example for beginners, using try..except for reading old content as it may not yet exist.

Member Avatar for TrustyTony
1
473
Member Avatar for yousafc#

Hello Experts Here is my connection string [CODE] string con = "Data source =YS-8462BA359936;Initial Catalog = Schooldata;Integrated Security = True";[/CODE] and my store procedure is [CODE] SqlConnection objCon = new SqlConnection(con); objCon.Open(); SqlCommand cmd = new SqlCommand("Studentinsertadmission", objCon); cmd.Parameters.Add(new SqlParameter("@Studentid",Convert.ToInt32( studentid.Text))); cmd.Parameters.Add(new SqlParameter("@StudentName", firstname.Text)); cmd.Parameters.Add(new SqlParameter("@Image", image.image )); cmd.CommandType = …

Member Avatar for mostafarafi
1
5K
Member Avatar for sabin_silwal
Member Avatar for ajanah.ibrahim

Write a function to remove all trailing blanks from the right end of a string. Assume the prototype is void trimRight(char a[]); Write a function to remove all leading blanks from the left end of a string. Assume the prototype is void trimLeft(char a[]); Write a function to add extra …

Member Avatar for Ancient Dragon
1
164
Member Avatar for ajanah.ibrahim

IS IT POSSIBLE TO PASS AN ARRAY INTO A FUNCTION AND THEN CALCULATE THE PRIME NUMBERS OUT OF THE LIST?

Member Avatar for David W
1
208
Member Avatar for Alhussaini.Eng

**Hello Every body.** My toturial today how to make token input in the send data by form to the database by using php mysql it's so easily and useful . most people why use it or what's token take me to more secure. i answer : Did you ever think …

1
273
Member Avatar for Labdabeta

Hello, Looking at the standard streams provided by the stl libraries, it seems as though it is impossible to have 1 stream to use for both standard console IO and file/string IO. However, before I give up I would like to ask, is this possible: generic_stream stream; stream=cin; //now I …

Member Avatar for Labdabeta
1
575
Member Avatar for Reverend Jim

If your Excel spreadsheet is laid out as regular columns and rows with a header row that identifies the columns then this code will allow you to read the data using ADODB the same way you would read records from a database table. To try this code 1. Create a …

Member Avatar for Reverend Jim
1
4K
Member Avatar for Krokcy

Hey! So I am having trouble with this [problem](projecteuler.net/problem=18)! Basically you have to find the path that gives the largest sum down this tree: 75 95 64 17 47 82 18 35 87 10 20 04 82 47 65 19 01 23 75 03 34 88 02 77 73 07 …

Member Avatar for Krokcy
1
300
Member Avatar for codefinger

So frustrating...I've been Googling all over, posted at various developer forums, but so far I can't find an answer: The goal -- use VB.Net to write a windows forms application that responds to a limited set of voice commands after the user says a keyword, (such as "Wake Up"). I …

Member Avatar for rizwanakhalid
1
547
Member Avatar for fliponymous

hello everyone i have wrote a code but i have problem compiling it ( making it run ) it's running but there are no any text's that i'm typing in Writeline here's the code! using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication5 { class Program { …

Member Avatar for castajiz_2
1
138
Member Avatar for 21345570

Hi, I would like to find out how you would go about using your database online, as if you were to do online shopping or online banking. Where all the details of the users can be accessed from the internet and the database doesnt have to be on the particular …

Member Avatar for 21345570
1
169

The End.