Member Avatar

Once harm has been done, even a fool understands it. -- Homer

Member Avatar
13
3,229
Member Avatar

When it comes to driving traffic to your site, one of the easiest, and cheapest ways to do this is through social media. If you company is not on social media, I hate to break it to you, but you are behind. Marketing is all about chasing the consumer’s attention, and with 3.4 billion social media users around the world, it’s not hard to tell where to focus is. While it may seem easy that users who follow you on Facebook or Instagram will eventually land on your site, there has to be a quicker way to get them there …

Member Avatar
17
647
Member Avatar

As if Jeff Bezos isn't already rich enough. As someone who is at high risk because of a compromised immune system, I thought it might be a good idea to get a few N95 masks. Because local medical supply stores are out of stock I checked Amazon. While the prices are reasonable (pack of 20 for $99), they want $200 for shipping. I bought some luggage a couple of years ago and because my order was over $35 the shipping was free. So how is it that something that weighs less than a box of Kleenex costs $200? Could this …

Member Avatar
2
304
Member Avatar

As part of a project to manage my collection of photos, I wanted to add the capability of displaying a series of files as thumbnails. This posed me with three problems: 1. how to preserve the aspect ratio of the original images 1. how to generate the thumbnails without tying up the application 1. how to avoid running out of memory Because generating thumbnails of images is (I think) of reasonably wide interest I thought I'd write it up as a code snippet. To recreate the project, start with a blank form and add two buttons, btnDetails and btnThumbs. Add …

Member Avatar
3
104
Member Avatar

When working with TCP client sockets I often find myself frustrated with the lack of event-driven support. I usually end up writing a whole bunch of code to determine disconnects, reconnecting, etc and I figuired it's time to just write my own class for this stuff. I figuired I'd share it with all of you. The implementation is quite simple, I'll provide an example below. I have XML commented all the public properties and methods, the rest is up to you to figuire out if you want to make any changes! public partial class Form1 : Form { EventDrivenTCPClient client; …

Member Avatar
6
148
Member Avatar

It can often be tough to determine what direction the digital marketing world is going, considering how it is evolving in a time where technology is continually changing and evolving. However, many analysts and experts that can agree that there are methods that simply aren’t effective or might not be the smart strategy currently. There is nothing wrong with digital marketing that eschews a traditional approach. Many companies have succeeded because of innovative digital marketing campaigns that have changed the way that we think about advertising in general. However, here are some digital marketing mistakes that you should work to …

Member Avatar
3
214
Member Avatar
Reusable Code Snippet Make a given number odd or even

There are times when you need to make sure your counter starts at an odd or even number. Even is pretty simple - `counter = counter + modulus(counter)`. If counter is even it stays, if it's odd it gets incremented by 1. Odd is a bit more complicated - `counter = counter + modulus(counter + 1)`, If counter is odd it stays, if it's even it gets incremented by 1. if you're in danger of counter being the max value you can always subtract instead. These basic algorithms should work for any language that has a modulus operator/function. I've included …

Member Avatar
2
137
Member Avatar

# What Are Voronoi Diagrams? # Voronoi Diagrams are an essential visualization to have in your toolbox. The diagram’s structure is a data-driven [tessellation](https://en.wikipedia.org/wiki/Tessellation) of a plane and may be colored by random or to add additional information. ## Learn the Lingo ## The set of points that generate the Voronoi diagram are called “seeds” or “generators” for they generate the polygon shapes; in practice, the seeds are your cleaned data. Each seed generates its own polygon called a Voronoi “cell,” and all of 2-dimensional (2D) space is associated with only one cell. A Voronoi cell, or Voronoi “region” denotes …

Member Avatar
4
171
Member Avatar

In the modern world, it’s easy to understand that data is absolutely essential to many corporations and organizations. There is an ever-growing need to understand the needs and desires of your customer base, so that you may tailor your products/services/platform as much as possible to meet these particular needs. However, we also are coming to a point where human beings are beginning to realize that the way that their data is being used can be quite harmful. One of the most obvious examples is the [Facebook-Cambridge Analytica scandal](https://www.nytimes.com/2018/03/19/technology/facebook-cambridge-analytica-explained.html), in which data from Facebook’s user base was used to influence a …

Member Avatar
3
76
Member Avatar

hi everyone, i am very new in java. can anyone help me to solve the following problem: A school conducts a 100 mark exam for its student and grades them as follows: Grade: Grade A: Marks>75 Grade B: 75>Marks>60 Grade C: 60>Marks>50 Grade D: 50>Marks>40 Write ajava program to calculate the grades for a student, using if..else statement. use some given value to test the code. thank you, regards, shantuli

Member Avatar
-6
542
Member Avatar

What is the best game in 2018

Member Avatar
3
262
Member Avatar

Is it even possible? If yes, than how to do it?

Member Avatar
1
49
Member Avatar

I want to order a website for my online shop, but I have a question: who is better to hire, a freelancer or a company? I can't make the site I want alone because I don't have much experience in creating sites. I think hiring companies is expensive. I don't even know if it makes sense to overpay. I don't need a fancy website. Simple, but beautiful site which will be information about my business. So what do you recommend?

Member Avatar
3
58
Member Avatar

How many have websites here or own websites here?

Member Avatar
1
28
Member Avatar

I have a download section in my index.php that I'd like to add a download counter to but have no idea how to accomplish this. The existing code works perfectly but I'd like to know how many times the file is downloaded. Would prefer not to use a database. <!-- DOWNLOAD --> <div id="download" class="stylized"> <div "myform"> <div class="container"> <div class="row"> <div class="download"> <br /><br> <h1><center>FoxClone Download Page</center></h1> <?php $files = glob('download/*.iso'); $file = $files[count($files) -1]; $info = pathinfo($file); $filename = basename($file); $filename = ltrim($filename,'/'); $md5file = md5_file($file); ?> <div class="container"> <div class="divL"> <h3>Get the "<?php echo "{$filename}";?>" file (approx. …

Member Avatar
1
34
Member Avatar

In an earlier Discussion post, I complained about MS changing my preference settings with each update. Since, I have found many more changes. One was, I had gone to CMD Properties and set CMD to always open with elevated privileges. You guesses it. It was switched back. With the 1909 Cumulative Update we lost our ability to search within folders. After trying eleven 'fixes' touted on the Internet, I had to uninstall these latest updates to get my search option back. I do wish MS would spend more time correcting errors such as this rather than on inventing witty and …

Member Avatar
1
24
Member Avatar

mysqli_real_escape_string() expects parameter 1 to be mysqli, null $idbilik = " ' ". mysqli_real_escape_string($idbilik, $samb) . " ' "; $result = mysqli_query($samb,"SELECT * FROM bilik WHERE idbilik=$idbilik"); while($res = mysqli_fetch_array($result)) i did as u say so madam...add the line u gave before $result..but i am getting the error stated above...

Member Avatar
1
16
Member Avatar

Anyone see any fun april fools pranks on the web today? I think most companies (I know Google has) have decided not to do it this year.

Member Avatar
0
11
Member Avatar

My code has a query that looks like: INSERT INTO table VALUES (...) ON DUPLICATE KEY UPDATE id = LAST_INSERT_ID(id), ... id is a PRIMARY KEY. My question is that I can't for anything remember why I have id = LAST_INSERT_ID(id). I wrote it years ago and it's not commented. Can anyone think of a reason why I was doing this?

0
9
Member Avatar

Write a function that takes as argument a string containing multiple words and returns a string containing the same words in reverse order. Eg., input = 'India is a democracy'; output = 'democracy a is India'

Member Avatar
0
13
Member Avatar

What is the difference between setting a cookie domain to `www.site.com` vs `.www.site.com` when I want to limit a cookie to the www subdomain?

Member Avatar
0
29
Member Avatar

My contact form starts with: <form id="form1" method="POST" action="mail.php"> I'd like to replace the last line in my contact form: <button type="submit" value="Send" style="margin-top:15px; margin-left: 500px; text-align: center;">Send Email</button> with one that contains <img src="images/button_send-email.png" alt="Email"> but have no idea what it should look like. I tried <a href="mail.php"><img src="images/button_read-the-file.png" alt=""></a> but the button doesn't even show. Please teach me how this should be done. Thanks in advance, Larry

Member Avatar
0
22
Member Avatar

The validation section of my contact.php page is sending the user back to my index.php instead of staying on the contacts.php page so the user can correct the reported error. How can I fix this? My contact.php code follows: <?php if(isset($_POST['submit'])) { $name = $_POST['name']; $visitor_email = $_POST['email']; $message = $_POST['message']; $type = $_POST['type']; //Validate first if(empty($name)||empty($visitor_email)||empty($type)||empty($message)) { echo "All fields are mandatory!"; /* exit; */ } if(IsInjected($visitor_email)) { echo "Bad email value!"; /* exit; */ } $subject = $_POST['type']; $subject2 = "Copy of email sent to foxclone.com"; $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $formcontent="From: $name\r\nEmail: $email\r\nMessage: …

Member Avatar
0
31
Member Avatar

My code executes as follow - 1) a Search page is loaded where session was already started, var-dump() shows the correct session info like username etc. 2) User enters a search value in a 3rd party script search box that forms part of my search page, I have no control over this script. 3) User presses the enter button, my javascript listens for the press event - key13. 4) The search criteria is then passed to a PHP page that adds values to the current session, which is then returned to the search page. 5)This is where the problem arises, …

Member Avatar
0
30
Member Avatar

In light of the current world we live in, and an age of social distancing, what can DaniWeb do to do a better job of connecting its members? It was always my goal of Dazah / DaniWeb Connect that it be used to connect people who work from home or are solo-preneurs and miss the social aspects of being in an office environment. What can we do to be doing a better job of that?

Member Avatar
0
31
Member Avatar

I am making an adroid application. I am saving sales data on firebase with current date. I have formatted the System.currentTimeMillis() into SimpleDateFormat. The date is successfully stored on firebase . Now I want to retrieve sales between two dates. I made two demo sales, one on (30-5-2019) and second on (31-5-2019). For retrieving the sales data I have just put two above mentioned static dates in my Query and ran it . The problem is that it only gives me one sale record between two dates. It should give me 2 sale records. Below is my source code. // …

Member Avatar
0
34
Member Avatar

A survey of attendees at Infosecurity Europe earlier this month showed 70 percent in favour of the dictionary definition (in this case the Cambridge Dictionary) of a hacker being amended. The amendment in question being to remove 'illegality' from the definition. The current definition of a hacker is "a person who is skilled in the use of computer systems, often one who illegally obtains access to private computer systems". So what do you reckon, DaniWebbers? Is it time that hacker was reclaimed entirely (rather than relying upon black and white labels) and if so what word should replace it as …

Member Avatar
0
144
Member Avatar

Hi good people of Danniweb, I've looked at a lot of examples on line and I cannot figure out what is going wrong. My program has to transfer a simple delimited text file from the local machine up to a specified directory on a FTP server. After I have run the routine, I can see the file in the correct directory in the FTP server BUT it is empty i.e. no text. I tried copying the same file to the same directory via windows explorer and it copied up so I don't think there is an issue with rights or …

Member Avatar
0
21
Member Avatar

I Have **"user_chat"** table name his 4 columns "msg_id" Auto Increament "chat_from_id" "chat_to_id" "chat_msgs" SELECT `chat_msgs` from `user_chat` where chat_from_id='2'AND chat_to_id='10' LIMIT 0,10 Also I have used **DESC** using above queary but not worked I want to fetch last **5 recent records** from **"chat_msgs" columns** Suggest me. Thank you

Member Avatar
0
33
Member Avatar

hi all iam working as software developer i wish to create my blog website using asp.net and C# so any one have idea so please help me in this Please thak you in advance

Member Avatar
0
36

The End.