199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
## 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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
![]() | 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' … ![]() |
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] … | |
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 … | |
how do you display image from a access database into a jtable in java | |
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 … | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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%' … | |
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! | |
` 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 | |
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. | |
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. | |
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. | |
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 … | |
/* 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']; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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?:) | |
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 … | |
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 … | |
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, … | |
![]() | Hello Since Ajax is a client side technology, why can not we see its source code by CTRL+U ? Regards |
![]() | 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 … |
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 … | |
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 | |
Here is simple text file example for beginners, using try..except for reading old content as it may not yet exist. | |
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 = … | |
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 … | |
IS IT POSSIBLE TO PASS AN ARRAY INTO A FUNCTION AND THEN CALCULATE THE PRIME NUMBERS OUT OF THE LIST? | |
**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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 { … | |
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 … |
The End.