I have translated many numerical math programs from FORTRAN into C++ and JavaScript. The original FORTRAN source code listings are posted on the NETLIB site and have been in the public domain for 20, 30, years. The C++ and JavaScript translations that I write are hand-coded, line-by-line, and repeatedly tested and stepped through. The conversion tool f2c is *not* used. Sometimes I get emails from people asking if they can use my program, or the source code, or parts of it in their own work. I do not mind people using my code in their own work; I implicitly assume …

Member Avatar
Member Avatar
+1 forum 4

Hey everybody, Lately I have written the game Hangman in many different languages (C, JavaScript, Java and PHP so far). Here is the code snippet for C! It uses a words file, on the bottom of this post you will see a small example of a few words. You can adjust the default words file in the getWord() function (line 164). If the file does not exist, the script will ask for another words file. The words need to be separated by a |. Words files can be found can be found [URL="http://www.hangman.symbolwebdesign.nl/wordsfiles.php"]here[/URL]. ~G words.txt [CODE]abbey|abruptly|affix|askew|axiom|azure|bagpipes|bandwagon|banjo|bayou|bikini|blitz|bookworm|boxcar|boxful|buckaroo|buffalo|buffoon|cobweb|croquet|daiquiri|disavow|duplex|dwarves|equip|exodus[/CODE]

Member Avatar
Member Avatar
+0 forum 3

Source Tree - What is source tree for? I already try using this? One question that I am still doubting. Is it safe? ( I am still new user) Thanks in advance.

Member Avatar
Member Avatar
+0 forum 3

# Introduction # A recurring problem many newcomers face when tackling C++ is the compilation process, from sources to binaries. This tutorial will detail that process. It will be especially useful for people only familiar with higher-level languages (if any), but veterans of one or more native languages (C, Fortran, C++, D, etc.) might still learn a thing or two. And to that point, I would also mention that conceptually, most of this tutorial applies to any native, compiled language. For widest applicability, this tutorial will feature GNU tools (GCC) used in a Unix-like environment (POSIX). For Mac OSX, the …

Member Avatar
Member Avatar
+11 forum 2

Authors of PVS-Studio static code analyzers offer programmers to test their sight and to try finding errors in C/C++ code fragments: https://software.intel.com/en-us/blogs/2015/04/24/lets-play-a-game-find-bugs-in-popular-open-source-projects

Member Avatar
Member Avatar
+0 forum 1

Hello, guys. I wrote the code to a Quadratic Equations Solver and I'd like for you to run the program and read the source code and give me tips on what I can improve, what is good and what is bad, suggestions, etc. . #include <iostream> #include <locale.h> #include <math.h> #include <cmath> #include <complex> #include <windows.h> #include <conio.h> #include <limits> using namespace std; float a = 0; float b = 0; float c = 0;float x1 = 0; float x2 = 0; double Delta = 0; bool repetir = false; int i = 0; int Sim_ou_Nao = 0; void Instrucoes(bool); …

Member Avatar
Member Avatar
+0 forum 2

"Our investigation currently indicates that the attackers accessed Adobe customer IDs and encrypted passwords on our systems. We also believe the attackers removed from our systems certain information relating to 2.9 million Adobe customers, including customer names, encrypted credit or debit card numbers, expiration dates, and other information relating to customer orders. At this time, we do not believe the attackers removed decrypted credit or debit card numbers from our systems." These are the words of Brad Arkin, Chief Security Officer at Adobe as he reveals that one of the biggest names in the software business has fallen victim to …

Member Avatar
Member Avatar
+3 forum 10

This tutorial is meant to be a helpful guide in order to successfully **create a tripwire application in C# which can be used for security purposes.** At the beginning you can find the background information to be fully familiar of the subject of this implementation. After this, we will put the coding and the C# implementation in focus. I hope this tutorial will be useful to anyone who reads it, I tried to think everything when creating this document. So… ![let_the_game_begin.jpg](/attachments/large/4/463486d6f1cc092d8ea9c79a85081495.jpg "align-center") **Part I.** Introduction, basic knowledge about the technology behind the tripwire application- Computer Vision What is tripwire? **Part …

Member Avatar
+0 forum 0

I worked for 20 years in hardware and twenty odd now in software, so change is an old friend. I consult on UNIX/LINUX to a variety of industries, write lots of bits for my own needs, love to help others over their hurdles.

Member Avatar
Member Avatar
+0 forum 1

Hi All, Is GitHub the "gold standard" for finding open source scripts online for people to use in their own development? Where else do people look? Thanks, Tubs

Member Avatar
Member Avatar
+0 forum 1

How can I reach to source code of a web page with python ? I use these code block but it doesn't work perfectly. If I open the html file(site.html) on a web browser, some characters disapper. import urllib.request req = urllib.request.Request('https://www.google.com') response = urllib.request.urlopen(req) the_page = response.read() a = open('site.html', 'w+') a.write(str(the_page)) a.close()

Member Avatar
Member Avatar
+0 forum 2

#include<iostream.h> #include <stdlib.h> //FOR exit(1) struct Flight { char flightNo[5]; char date[12]; char time[6]; char gate[3]; }; Flight flight={"AB11","10-12-2008","20:30","RT"}; struct Seat { char name[40]; char booking_ID[3]; int seats; }; Seat choice[4][5]; void displaymenu(); void booking(); void seat(); void ticket(); void records(); void menu(); void exit(); //Variables int selection,i,j,password; int seats_num[20]={0}; int booking_ID=100; int seatsAvailable=20; int main(void) { displaymenu(); while(selection!=4) { menu(); } return 0; } void displaymenu() { cout<<"\n\t%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"; cout<<"\n\t% %\n"; cout<<"\t% Airline Booking System %\n"; cout<<"\t% ======================= %\n"; cout<<"\t% MENU %\n"; cout<<"\t% ======================= %\n"; cout<<"\t% 1.BOOKING %\n"; cout<<"\t% 2.SEAT %\n"; cout<<"\t% 3.RECORDS %\n"; cout<<"\t% 4.EXIT %\n"; cout<<"\t% %\n"; cout<<"\t%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n\t"; …

Member Avatar
Member Avatar
-1 forum 2

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

Member Avatar
Member Avatar
+1 forum 2

is there an open source GPS solution that i can integrate into a php website for a car rental firm

Member Avatar
Member Avatar
+0 forum 1

Hey guys, So many times I came across source code of open source technologies, like OpenOffice, Ditto, BigAnt Messenger. They provide their source code too for free, but unfortunately I dont know how can I edit and compile those source code. Can anyone please help in this? Thanks guys in Advance.

Member Avatar
Member Avatar
+0 forum 3

Hi, I want to build a web application for customers to run on their local servers on their computers offline. I want that my code logic be protected and no one can edit and use my code without my permission. Even administrator(client) of that application don't have permission to edit or redistribute it. Is there any way to protect the code without encoding software? Is there any solution in PHP or ASP.NET?

Member Avatar
Member Avatar
+0 forum 3

Hey everybody, Lately I have written the game Hangman in many different languages (C, JavaScript, Java and PHP so far). Here is the code snippet for Java! It uses a words file, on the bottom of this post you will see a small example of a few words. The source code for other languages can be found here on DaniWeb and on my new website: [URL="http://www.hangman.symbolwebdesign.nl/"]http://www.hangman.symbolwebdesign.nl/[/URL]. Due to the fact it is not possible (in web apllications) to open a words file using Java, it is required to directly put the words string separated by a | into the string …

Member Avatar
Member Avatar
+2 forum 16

Hello, I'm wondering if I can get help to understand the behaviour of a PHP function: `dns_get_record()`. This returns an array with DNS records for the given domain name, here is an example of the output: php > print_r(dns_get_record('php.net', DNS_TXT)); Array ( [0] => Array ( [host] => php.net [type] => TXT [txt] => v=spf1 ptr ?all [entries] => Array ( [0] => v=spf1 ptr ?all ) [class] => IN [ttl] => 272 ) ) Now, if the DNS server returns multiple **TXT** records I get *n keys* ([0], [1], ...). What I'm not sure about is if the `entries` …

Member Avatar
+1 forum 0

Hey! I am trying to learn some LWJGL, and wanted to know the best source to learn from, that could be a youtube channel or a text tutorial, but something with videos is much prefered.

Member Avatar
Member Avatar
+0 forum 4

Seems like there might be a problem with the editor not recognising code insertion when you're pasting code in the middle of a list. Below is a post displaying the problem http://www.daniweb.com/software-development/csharp/threads/458671/c-mysql-display#post1993030 I tried multiple ways to get that in there including: 1. Single Enter + Tab 2. Double Enter + Tab 3. The "Code" button on the editor window 4. Copy and pasting code from another article and then replacing it with mine If it's me doing something wrong, let me know :)

Member Avatar
Member Avatar
+0 forum 4

Hi i have a friend which he gave a php file that is link to their company website which he work with. but when i view source the company website i cannot find the php location. He said its not visible because they encrpt the php code into the server???? I really don't know what he is talking about? I'm a very curious how they do that? I'm very noob at web developing.. Can you guys tell me how they do that? I mean you upload your file to hosting server and then it hides your php files?

Member Avatar
Member Avatar
+0 forum 4

Hi, I work in PHP language for the past 2.5 yrs. I'm interested in making a career shift from PHP to Java/EE. So, I would like to start contributing to some open source software developed using Java EE, Spring, Hibernate. By that way I would like to develop my skills in few months in those Java framework. I'm okay with the core java and jsp,servlets. I have understanding of MVC architecture and ORM. I've worked with Symfony2, Doctrine in PHP. So, I would like to know about the project I can start working with in GitHub to learn and develop …

Member Avatar
Member Avatar
+0 forum 2

hi, i add [standart](https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiEcommerce) google ecommerce code to my page. Everything works fine, just source value always is my plain domain. How to get the normal sources, or set it? In short, how to get a reference to my purchase of the script, from where people came to shop. Thanks

Member Avatar
Member Avatar
+0 forum 2

Hi I am Mohammad Fazle Rabbi a new blogger. I am always try to make some unique design on my blog but every time others are copying my design by viewing blog source code through Firefox. So is there any way to disable source code in Firefox browser only. Because by this visitors can easily can see any selected section code. If anyone know kindly reply me. I will be grateful to you. Best Regards Mohammad Fazle Rabbi

Member Avatar
Member Avatar
+0 forum 9

Friends, Kindly suggest me best PHP Open Source for Social Networking website. Looking forward your best suggestions. Thanks in advance...

Member Avatar
Member Avatar
+0 forum 6

Hi, My question goes as follows : I need to replace an existing image, with another one, but without using jquery ie using javascript and using the id of the image as it is <asp:Image> tag and hence does not support name. The image supports the functionality of toggling the text as menu but image replacement is not happening. Kindly help.. Please !! My code in user control is : <tr> <td nowrap="nowrap"> <div id='h<%# DataBinder.Eval(Container, "ItemIndex") %>' onclick='visible(<%# DataBinder.Eval(Container, "ItemIndex") %>);'> <asp:Image ID="ArrowImageButton" runat="server" ImageUrl="~/images/downarrow.png"/> <%# DataBinder.Eval(Container.DataItem, "Header") %> </td> </tr> and the javascript I am trying is : …

Member Avatar
Member Avatar
+0 forum 2

##TASK Step One The DNA molecule is a double-helix. You can think of this double helix as two parallel sequences of DNA with nucleotides or bases (A,C,G,Ts) on one strand matched with their associated nucleotide on the other strand according to the following rules: A matched with T C matched with G For example, imagine we have removed the double-helix and show the two strands in parallel; notice that every base ‘A’ on one strand matches a ‘T’ on the other strand and that every ‘C’ on one strand is matched with a ‘G’ on the other strand: Strand 1: …

Member Avatar
Member Avatar
+0 forum 2

How come when i update my database using access(I forgot to add something) I need to add another data source to my program to make it show. It floods my Data Sources window. Is there an alternative way to do this?

Member Avatar
Member Avatar
+0 forum 2

Hello Daniweb Univere, I am looking for a good program to use to store several dozen text documents, make them searchable, and ideally, allow me to link to specific lines of the document. I imagine there are programs like this, I have just been unable to find them. Any suggestions and help going on the right direction would be much appreciated. Thanks!

Member Avatar
Member Avatar
+0 forum 7

Basically I have a wrote a program which downloads a webpage's source but now I want to search the source for a particular link I know the link is written like this: <a href="/internet/A2/"> <b>Geographical Survey Work</b> </a> Is there anyway of using "Geographical Survey Work" as criteria to retrieve the link? The code I am using to download the source to a string is this: Dim sourcecode As String = ((New Net.WebClient).DownloadString("http://examplesite.com")) So just to clarify I want to type into an input box "Geographical Survey Work" for instance and "/internet/A2" to popup in a messagebox? I think it …

Member Avatar
Member Avatar
+0 forum 3

The End.