Web Development

74K

Solutions

49K

Contributors

Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.

Share tech news, updates, or what's on your mind.

Sign up to Post

How do I get the actual TOTAL byte size of the HTTP header being sent to a server? Is there any way in Chrome to see the size of the complete request?
1
CompTIA Cloud+
LVL 12
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Is there a way to monitor and then kill a server request for an image (preferably in JavaScript) if it is taking too long? The image comes from a 3rd party server so I'd have to kill it on the request side. I'm asking due to us firing 3rd party marketing pixels on our web app. Sometimes they take extreme amounts of time to respond.
1
I am using the script below to verify that the user enters the correct information on a registration page. Everything works FINE per individual field, and it displays an error message if there was an error entering the field information. The problem is that there are 5 different INPUT FIELDS, and the user might enter 3 correct and 2 incorrect, BUT IF THE USER GOES BACK AND CORRECT 1 FIELD (OF THE PREVIOUSLY 2 INCORRECT), and then submit the form THE FORM IS SUBMITTED WITH 1 FIELD ERROR.  How can I solve this issue NOT TO BE ABLE TO SUBMIT FORM IF AN ERROR ON FORM

Tnx, I have been trying to figure this for 5 days already :-(
I thought of a hidden field with value 0 for correct or 1 for incorrect, but that wouldn't solve the problem according to my previous example

I am using HTML and an external PHP to verify values

<script type="text/javascript">
    function ajaxFunction(disp_div) {
        var httpxml;
        try {
            // Firefox, Opera 8.0+, Safari
            httpxml = new XMLHttpRequest();
        } catch (e) {
            // Internet Explorer
            try {
                httpxml = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    httpxml = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {
                    alert("Your browser does not support AJAX!");
                    return false;
                }
            }
        }

        function stateChanged() {
    

Open in new window

0
Spring Boot and Angular: Serving static content

Hi Experts,

I have a springboot backend application and an angular front end. I have built the angular front-end copied the contents of dist directory to /src/main/resource/static.  The index.html in the static directory is served when I go to https://localhost:8443 and the links are working.  However, when I refresh the page, it goes to the whitelabel error page.  I have found a proposed solution to this from StackOverflow.  It too doesn't work.
@Controller
public class ForwardController {

    @RequestMapping(value = "/**/{[path:[^\\.]*}")
    public String redirect() {
        // Forward to home page so that route is preserved.
        return "forward:/";
    }
} 

Open in new window

However, using this just prints forward:/ on the refreshed browser.   Also, this too does not look like the solution I want.  I want to just refresh the page.
Any help would be appreciated.  Thank you
0
I can across a website called https://gtmetrix.com/. It measures the overall performance of my website. My question is that how trust worthy is GTMetrix thing? I tried some website such as google, amazon, cnn, yahoo, and some other well known pages just to tested out. Not all those websites have a high score. Does it mean that it is bad? Is GTMetrix used as a reference only which there are other factors that need to be considered also? Thanks
0
Need to posiionate a web page with low budget

Please I need tips for posicionate a web site, I have Addwords but i heard about some free posicioning methods
could you guys help me out?
0
HI,
The problem is to design a solution for finding the number of users who are watching a particular video eg. on youtube etc.
Here is what i thought about solving it.
If the video is playing than every 5th minute from GMT it will send a play event
I will maintain a table containing  (userId, movieId, timeStamp)
So to count how many viewers playing a video i will simply have to count the number of entries in the table with the movieID and timeStamp not later than 5 minutes. Because if a play event is not recieved for 6 minutes than the video must not be playing...
And each time a play event is received the timeStamp will be updated to the current time.

Also i will run a cronJob that will be clearing entries that are not getting updated.
Will maintain a cache containing the count for each movie and will update it at a regular interval from the table.

Each video that is being played will send a https request for the number of current viewers every 6th minute and the number of viewers will be updated.
Please suggest if there is any flaw in this approach. or any better approach ?
Any pros and cons ?
Thanks
0
Hi,
I am opening a website in Microsoft Visual web developer 2010 express, which worked before but now I'm getting an error

Compilation Error
  Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

 Compiler Error Message: BC30451: 'SiteCode' is not declared. It may be inaccessible due to its protection level.

Source Error:

it highlights the following code
Line 8:          aDb = SiteCode.openDBConnection(aDb)

Open in new window

which is in a file named openDB.vb

I tested the connection and it seems to be working fine....any guidance appreciated. Thanks
0
hi friends,

i have been trying to send email via localhost using phpmailer and base on research, i was ask to first install composer and set the environment variable. i downloaded and composer from https://laravel.com/docs/5.4  and set the environment variable. the problem is when i try to run (composer require phpmailer/phpmailer) again,

i am still getting this error

[RuntimeException]
  Failed to clone https://github.com/PHPMailer/PHPMailer.git via https, ssh protocols, aborting.

  - https://github.com/PHPMailer/PHPMailer.git
    Cloning into 'C:\xampp\htdocs\vendor\phpmailer\phpmailer'...
    fatal: unable to access 'https://github.com/PHPMailer/PHPMailer.git/': Could not resolve host: github.com

  - git@github.com:PHPMailer/PHPMailer.git
    Cloning into 'C:\xampp\htdocs\vendor\phpmailer\phpmailer'...
    ssh: Could not resolve hostname github.com: Name or service not known
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.


require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...

i have install git but it still not working. please help! i am new to …
0
Coming Soon! I am working on this right now.  I will be back.
0
Introduction to Web Design
LVL 12
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

BBpress is squishing the replies from an SMF import.  Which seems to be confined to the initial questions in a thread only - Here is a screenshot

https://gyazo.com/6931713e036a97cad6fac7f29a8689ba

Please help me to un-squish the initial question and still be able to see this on a tablet and a smartphone.

Thanks
0
Hi,

firstly - thank you for taking a look at my question.

Given the code below (which works perfectly for me). I was wondering how to do 2 things.

1 - make it so that it is a file browse rather than a hard coded file name and location.

2 - an alternate version where instead of a file - if I had a variable (for example var X = "123,4,6,7\r\n124,6,7,8") but wanted to post it as if it was a file? ie set the file name etc etc.

is it possible someone could help me with that?

<?php
$filePath = 'C:\xampp\htdocs\demo\XXXXX.csv';
// 3rd parameter is filename with extension
$cfile = new CURLFile($filePath, 'text/csv', 'XXXXX.csv');
$postFields = [
  'file' => $cfile,
  'name' => $nameofcampaign,
  'template' => $template
];
?>

Open in new window


many thanks
0
how does the IP targeting work technically?

I understand the concept of IP targeting, Geo targeting .  Many companies are providing this services, all of those website say the same words-----get the IP address first, then push the banner ad to consumer.  but I just don't understand how to actually push the banner ad to the specific IP address? with the help of Google? ISP? How can I do a test to push an image to my personal Ip address? can I setup an account with google to try it ?
0
I have checkboxes that i want to align properly as you can see in pic attached i have 2 checkboxes not lining up the "DDS" & "RDH", I would like them to line up even when screen changes size.
Capture3.PNG
checkbox_css.txt
checkboxes.txt
0
Hi guys,

I start having an issue yesterday with a website, https://sundrelle.ie so what I ended up doing was uploading a backup copy of the public_html folder and i am still receiving the same issue.

So far i have tried, renaming the theme folder, deleting .htaccess, and disabling the plugins. I am still not getting anywhere, any help would be greatly appreciated.

Jonathan
0
Hi,

I have created a web project using PHP and c++. In brief what it does is connects to an remote Exchange server and gets the data from it. The website functions properly, but it requires some changes to be made to the PHP.ini file (enabling LDAP, COM, etc). I am using XAMPP.
The issue I'm facing is that the changes made to the php.ini file is not taking effect. I have created a c++ console application which runs in hidden mode and modifies the php.ini file. When I open and check the ini, the changes are there in it but when I run the website trough XAMPP it does not pick up the changes made to ini. I have tried restarting the Apache service, restarting XAMPP, restarting machine as well, nothing worked.

Though the problem is not concerning exchange server, any help would be greatly appreciated.
Thanks.
0
Website Developer/ Designer with Python Experience Needed!

Looking for a Website Developer/ Designer to use as needed for updating/ editing website created using Python. I need to person to be available regularly as needed over the next 6-12 months. Hourly pay will be negotiated once I know you can do the job.
0
Hello,
I would like to convert HTTP streaming HLS  to UDP or RTP, I  have tried VLC  and it works only in windows 10, does anyone  have any other software example that is validated  and is working properly?

Thanks
0
Can you please guide me on creating a video on the home page just like the one in the link below . I have a joomla website. It would be nice for a plug in to do this. I have some video that I can use, but I don't know what has to be done. I am not a web guy myself, but work with someone that works with joomla , but  he is not sure how to get this done. It looks like it's on some type of slider but it does not move. Also, not sure how they got the video to be dark blue. I now days  see a lot of this on websites home pages. An extension would be nice.

1. https://www.dataprise.com/
This is right under where it says, Discover how we can help you......"

2. Here is another one , https://www.connectwise.com/
0
Learn Ruby Fundamentals
LVL 12
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

I'm looking for search application which uses solr search

one i found is Nutch but i am not very much attracted with the UI

Can you please let me know the applications which uses solar search for indexing local documents and peform search and navigate easily ?
0
I am getting a 404 error on my website after I click on a product.  I was told to change the permalink to Custom Structure
http://essmen.com 
/%category%/%postname%/

I created the permalink.  I still get the same error.  I also change the httpaccess file to
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

I still have the same error.

Can someone help me? I am using the Aliplugin.
It also tried the sitemap.  Google has not crawled the page yet.
404-Error.png
Sitemap.png
0
Unable to install Angular on mac I got this error:
npm ERR! path /usr/local/bin/ng
npm ERR! code EEXIST
npm ERR! Refusing to delete /usr/local/bin/ng: ../lib/node_modules/angular-cli/bin/ng symlink target is not controlled by npm /usr/local/lib/node_modules/@angular/cli
npm ERR! File exists: /usr/local/bin/ng
npm ERR! Move it away, and try again.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/saudalsahli/.npm/_logs/2018-09-02T09_31_09_443Z-debug.log
sauds-MacBook-Pro:~ saudalsahli$ sudo npm install -g @angular/cli
npm ERR! path /usr/local/bin/ng
npm ERR! code EEXIST
npm ERR! Refusing to delete /usr/local/bin/ng: ../lib/node_modules/angular-cli/bin/ng symlink target is not controlled by npm /usr/local/lib/node_modules/@angular/cli
npm ERR! File exists: /usr/local/bin/ng
npm ERR! Move it away, and try again.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/saudalsahli/.npm/_logs/2018-09-02T09_33_27_509Z-debug.log
0
Hi All,

I need a theme for my new website, which allows users to upload, download and stream videos on my website.

I have domain and cloud hosting.

for example : https://mybb.com/ 

This is the forum website which is open source I can download and upload these file to my hosting.
like same I need a website for videos.

thanks
0
I am working to create a login prompt and I do not want the browser to offer the remember username and password option for the user. I am using a text box for the username field and a password box for the password field. Anytime I use a password box the browser prompts the option whether to remember username and password or not. I would like my users to type in those information each time they login. Is there any way I could use a text box to accept password and mask the characters in that textbox as a password character so that the browser does not prompt the remember username and password option?
0
Hello Experts,

Our website currently tracks visitors to our website. Everybody who comes into the site with a UTM_source gets put in a cookie and tracks it across the site. IF somebody applies for a job, it will append the UTM string to the url, so the source gets credit. The code is below, and on our website

<?php
	
/*------------------------------------*\
   Add UTM Cookies
   -- This sets Tracking Cookies. 
/*------------------------------------*/
function set_ad_cookies() {
	$vars = array('utm_source', 'utm_campaign', 'utm_medium');
  //$parsed = array();
  	foreach ($vars as $k) {
    	if (isset($_GET[$k]) && !isset($_COOKIE['orig_'.$k])) {
        	setcookie('orig_'.$k, $_GET[$k], 0, '/', $domains['cookie_domain']);
    	}
   	}
  
   	if (!isset($_COOKIE['orig_utmsource'])) {
	 	setcookie('orig_utmsource', $_GET['utm_source'], 0, '/', $domains['cookie_domain']);
	}
}
add_action('init', 'set_ad_cookies');
/*------------------------------------*\
  Append UTMs to links.
  - IF you have form submissions, or similar,
  - This will append the UTM string to
  - the end of the URL, so you can see which
  - ADD the user came from. Add your URL below. 
/*------------------------------------*/
function replace_links($text) {
	$url = explode('?', 'https://'.$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
	$addCookiesToLink = "";
	if (strlen($url[1]) > 1) {
		$text = str_replace('yourwebsiteurl', 'yourwebsiteurl?' . $url[1], 

Open in new window

0

Web Development

74K

Solutions

49K

Contributors

Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.