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

I am running wordpress 5.1.1 and WooCommerce 3.6.1 on a LInux 2 Amazon instance and I had a message that my db needed to be updated for WooCommerce. I opted to begin the process and this message popped up.

WooCommerce database update – WooCommerce is updating the database in the background. The database update process may take a little while, so please be patient. 

Open in new window


This message has been up for 24 hours now and I have a small store of 1400 sku's.

I have attempted the following:
1. restarted maria
2.  deactivated and activated woocommerce
3. checked the memory in wp-config which is set at 1024 MB
4. restarted Apache

How can I get rid of this message?  If the message isn't a problem how can I be assured the db integrity is intact?

Thanks,
0
PMI ACP® Project Management
LVL 13
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

what are some of the things, that are important in web development.

things like -
- choosing a particular platform / technologies or language  like Node js , which is very popular in modern day, for rapid development
- what  security vulnerabilities, that absolutely needs to be addressed. what are some techniques  to address those.
-  what other techniques should one keep in mind - caching techniques, load balancing etc.
0
I am developing my first application with Apache Cordova and I need some assistanstance with the Open Street Map object. I am sending a request to the Open Street Map to get Lat/Lng of a location. I chose Manchester UK and I received the following JSON back:

ManchesterUK.PNG
In order to do this, I set to share a taxi (it's a taxi sharing app) first and then I click on Update Map.
This is the code for UpdateMap:

snipping.PNG
     function updateMap(address){
        var onSuccess = function(position) {
          var div = document.getElementById("map_canvas");
          div.width = window.innerWidth - 20;
          div.height = window.innerHeight * 0.8 - 40;
          // change the zoomin level
          map.setZoom(15);
          if (address != undefined) {
            // TODO 2(a) FR2.2
            var endPoint = "https://nominatim.openstreetmap.org/search/" + address + "?format=json&countrycode=gb"
            $.get(endPoint,function(e) {[embed=file 1418190][embed=file 1418191][embed=file 1418192]
              var location = e;
              map.setCenter({
                lng: location.lng,
                lat: location.lat
              });
            })


          } else {
            map.setCenter({
              lng: position.coords.longitude,
              lat: position.coords.latitude
            });
          }
        };
        var onError = function(error) {
          alert(
            "code: " + error.code + "\n" + "message:

Open in new window

0
I have a chart control in asp.net that I am trying to display annotation in the chart area - topcenter of 'ChartArea1'.  It does not display on the chart.

Why?

Below is my asp.net code

<Annotations>
                                        
                                            <asp:TextAnnotation Alignment="TopCenter" Font="Arial, 10pt" ForeColor="#00FFCC"
                                                Name="Chart1Annotation" Text="Nominal" TextStyle="Default" ClipToChartArea="ChartArea1">
                                            </asp:TextAnnotation>
                                        </Annotations>

Open in new window

0
We use Symfony 2.8 as the framework for our website. The people who set it up years ago probably didn't do it right, and we have about 10 different bundles which comprise all the different areas of our site (Cart, MyAccount, Products, Pages, etc).

Two questions:

Should the entire website be under just one bundle, so we dont have duplicated code in multiple bundles?

and

If a bundle needs a bit of code to get a piece of data, should that be written as a service so we can call it from anywhere, without having multiple lines of code duplicated all over the place wherever we need that piece of data?
0
Hi, I have a new laptop running windows 10. On the old one, I used gulp styles to run SASS and compile my CSS stylesheet.

I used npm to install gulp globally, I have gulp and gulp cli   installed, If I search for those in the windows search bar, they both appear.

Then I tried to manually set the path using: C:\Users\myusername>gulp gulpfile -f C:\Users\myusername\OneDrive\Documents\DEV-NEW\dev\gulp\gulpfile.js with this result:

C:\Users\myusername>gulp gulpfile -f C:\Users\myusername\OneDrive\Documents\DEV-NEW\dev\gulp\gulpfile.js
[12:03:29] Working directory changed to ~\OneDrive\Documents\DEV-NEW\dev\gulp
gulp gulpfile -f C:\Users\myusername\OneDrive\Documents\DEV-NEW\dev\gulp\gulpfile.js[10308]: c:\ws\src\node_contextify.cc:626: Assertion `args[1]->IsString()' failed.
 1: 00007FF68851F04A v8::internal::GCIdleTimeHandler::GCIdleTimeHandler+5114
 2: 00007FF6884FA0C6 node::MakeCallback+4518
 3: 00007FF6884FA17F node::MakeCallback+4703
 4: 00007FF6884CF630 node::DecodeWrite+13024
 5: 00007FF688CFC122 v8::internal::OptimizingCompileDispatcher::Unblock+59890
 6: 00007FF688CFD289 v8::internal::OptimizingCompileDispatcher::Unblock+64345
 7: 00007FF688CFC5CC v8::internal::OptimizingCompileDispatcher::Unblock+61084
 8: 00007FF688CFC4EB v8::internal::OptimizingCompileDispatcher::Unblock+60859
 9: 000003324B4DC5C1

Open in new window


How can I get this to use the gulpfile? I have a gulpfile.js for my dev site and one for my live site. I'd like gulp to be able to access both gulpfiles.

Thanks.
0
I need to write down automated tests for a website.

There are countless tools / frameworks but before even starting I need to understand how to tackle the authentication challenge.

The website has automatic authentication using Windows Domain (Kerberos) but I don't know how I can use a test tool and allow a specific domain user to be the one running the test (and, therefore, the browser).

Can you maybe provide a solution or point me in the right direction?

Thanks for your help and patience.
0
this is a follow-on to this question
https://www.experts-exchange.com/questions/29142368/Need-Help-With-WooCommerce-Custom-Sort.html

Open in new window

I need to have a multiple layer sort.  I now have it sorting on Parent ID but then I need within the the Parent ID for it to be alphabetical.  For example, I have a $2 Off, Buy 4 and a Buy 9.  They need to be in that order but now they are Buy 9, Buy 4 and $2.  I know I can do menu order but that is another tedious task.

If someone can show me how in the code below to do a sort on Alphabetical within Parent ID that would be great.

[code]unction jk_add_custom_sku() {
$args = array(
'label' => __( 'Parent ID', 'woocommerce' ),
'placeholder' => __( 'Enter custom SKU here', 'woocommerce' ),
'id' => 'jk_sku',
'desc_tip' => true,
'description' => __( 'This SKU is for internal use only.', 'woocommerce' ),
);
woocommerce_wp_text_input( $args );
}
add_action( "woocommerce_product_options_sku", "jk_add_custom_sku" );

function jk_save_custom_sku( $post_id ) {
// grab the custom SKU from $_POST
$custom_sku = isset( $_POST[ 'jk_sku' ] ) ? sanitize_text_field( $_POST[ 'jk_sku' ] ) : '';

// grab the product
$product = wc_get_product( $post_id );

// save the custom SKU using WooCommerce built-in functions
$product->update_meta_data( 'jk_sku', $custom_sku );
$product->save();
}

add_action( "woocommerce_process_product_meta", "jk_save_custom_sku" );
//add_action( "save_post_product", "jk_save_custom_sku" );

####### Custom Sort Option

Open in new window

0
I try an  Https  POST  but the response  is empty . i'm with indy  10.5. It was working with indy 9,  after upgrading to indy 10  a response  is empty '';

   
      TSideStream = class(TIdMultiPartFormDataStream)
  public
    property RequestContentType: string read FRequestContentType write FRequestContentType;
  end;
      
      DataStream := TSideStream.create;
      
      IdHTTP.ProxyParams.ProxyServer          := '';
    IdHTTP.ProxyParams.ProxyPort            := 0;
    IdHTTP.ProxyParams.BasicAuthentication  := False;
    IdHTTP.ProxyParams.ProxyUsername        := '';
    IdHTTP.ProxyParams.ProxyPassword        := '';

  IdHTTP.Request.ContentLength := -1;
  IdHTTP.Request.ContentRangeEnd := 0;
  IdHTTP.Request.ContentRangeStart := 0;
  IdHTTP.Request.ContentType := 'text/xml';
  IdHTTP.Request.Accept := 'text/xml, */*';
  IdHTTP.Request.BasicAuthentication := false;
  IdHTTP.Request.UserAgent :=  'Mozilla/3.0 (compatible; Indy Library)';
  IdHTTP.HTTPOptions := [hoForceEncodeParams];
  
        DataStream.AddFormField('WUA_VERSION', '1.0');
        DataStream.AddFormField('MODEWUA', 'ACTION');
        Horodatage := FormatDateTime('yyyy-mm-dd hh:nn:ss', Now);
        DataStream.AddFormField('DATE_LOCAL', Horodatage);
        t1 := '01-63-0100-999999-999-54';
        DataStream.AddFormField( 'AGREMENT', t1);
        DataStream.AddFormField('REMOTE_ID', 'A0-9999-9999-710001-71');
       t2 := 'FR5375009P';
        DataStream.AddFormField('ITR_ID', T2);
      

Open in new window

0
This code in Java works perfectly:

    URL url = new URL(PREREQ_URL);
    HttpURLConnection con = (HttpURLConnection) url.openConnection();
    con.setRequestMethod("POST");
    con.setRequestProperty("Authorization", authorization);
    System.out.println(authorization);

    InputStream is = (InputStream) con.getInputStream();
    BufferedReader in
            = new BufferedReader(new InputStreamReader(is));

    String line;
    while ((line = in.readLine()) != null) {
        System.out.println(line);
    }
    in.close();

Open in new window


I am trying to convert it into C# and I am getting
System.Net.WebException: 'The underlying connection was closed: An unexpected error occurred on a send.'

This is what I have:

    Uri prereqUri = new Uri(PREREQ_URL);
    HttpWebRequest request = (HttpWebRequest)WebRequest.Create(prereqUri);
    //request.Headers["Authorization"] = authorization;
    request.Headers.Add("Authorization", authorization);
    //request.PreAuthenticate = true;
    request.Method = "POST";
    //var postData = "Authorization=" + authorization;
    //var data = Encoding.ASCII.GetBytes(postData);
    //request.ContentLength = data.Length;

    //using (var stream = request.GetRequestStream())
    //{
    //   stream.Write(data, 0, data.Length);
    //}

    var response = (HttpWebResponse)request.GetResponse();

Open in new window


I have also tried the commented out code with the same problem. Any ideas, please.
0
Introduction to Web Design
LVL 13
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.

Can you make a Asynchronous call from a asp page without AJAX?
0
I want to access my raw data  email event opens connected to google analytics

I have embedded the event tag in the email with a cid=customerdatabase_id

Is this possible using Google Analytics API.... if so how?
0
I need to build a aspx page that collects data.
On the page I have a dropdown for the number of people attending the event.
I want a dynamic  form that requests attendees information, but only for the number of attendees.
This has to live in the .net world
0
Using a script or some other method, or shortcut, I would like to access a specific website, which then enters the username and password automatically, without having the need for a user to input the username and password.
This would be used for frequently visited sites....
Thank you.
0
How do you create a link on a website which opens a mobile app ?
0
Ok all the Google heads, dev guys, etc out there, Im looking for better ways to group my tabs.  I usually have around 80 tabs open in Chrome at work.  We're a Google shop.  Ive noticed that I have several groups that could go together, e.g. 8 Google docs, 7 of our portal, bunch of Google Sheets, etc.  Is there a better way to stay organized?  Thank you techs, Mark88tabs
0
Hi Team,

This is working fine in the development machine but it is not working when we deployed the changes in the server.

Kindly assist.

Protected Sub Button1_Click(sender As Object, e As System.EventArgs) Handles Button1.Click
        printdocument()
    End Sub
    Sub printdocument()
        Dim Printer As New PowerPacks.Printing.Compatibility.VB6.Printer

        For Each prn As PowerPacks.Printing.Compatibility.VB6.Printer In PowerPacks.Printing.Compatibility.VB6.Printers
            If prn.DeviceName = "Microsoft XPS Document Writer" Then
                Printer = prn
                Exit For
            End If
        Next prn
        Printer.Print()
        Printer.Print("yrdy")
        Printer.EndDoc()
    End Sub

Open in new window


We are getting exception like below:
Exception Details: System.Exception: Printer error.
Line 9:      Sub printdocument()
Line 10:         Dim Printer As New PowerPacks.Printing.Compatibility.VB6.Printer

[Exception: Printer error.]
   Microsoft.VisualBasic.ErrObject.Raise(Int32 Number, Object Source, Object Description, Object HelpFile, Object HelpContext) +487
   Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6.PrinterObject.GetDefaultPrinterName() +92
   Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6.PrinterObject..ctor() +14
   Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6.Printer..ctor() +26
   PrintCheck.printdocument() in C:\inetpub\wwwroot\page.aspx.vb:10…
0
Hi E's,
In a part of my project, I have to check if certain images are loaded, different images, but all with the same class, like you can see in this example:
<!DOCTYPE html>
  <html>
    <head>
<meta charset="UTF-8">
      <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
      <link rel="stylesheet" href="materialize/materialize.css"/>
      <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    </head>
    <body> 
    <div class="container">
    
    <div class="row center-align">
    <img src="imagem/bw/bw_0200.jpg" alt="visible image">
    </div>
    
    <img class="0" src="imagem/bw/bw_0183.jpg" style="display: none;">
    <img class="0" src="imagem/bw/bw_0272.jpg" style="display: none;">
    <img class="0" src="imagem/bw/bw_0211.jpg" style="display: none;">
    
    </div>
      <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
      <script src="materialize/materialize.js"></script>     
    </body>
  </html>

Open in new window

To proceed to another stage of the project, I need to know when the images are fully loaded.
I already searched the Internet for a solution and I did not find it, so I've come to ask for help here.
In jQuery or JavaScript, how can I know if images with class "0" have been fully loaded?

The best regards,
JC
0
Hi guys,

For some reason i noticed that my site went down iradio.ie now the site behind cloudfare, when i disable http on cloudfare the site starts working again, i have absolutely no idea why its dong this as it working fine for the last two years.
0
OWASP: Avoiding Hacker Tricks
LVL 13
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

Hi,

We developed a website for our customer.

Our customer wants this website hosted.

The person who usually sets up the hosting is on leave.

I have to do the hosting but am not sure of the steps.

The hosting is for the domain eurospan.ie.

How would I go about setting this hosting up?

Thanks,
Robbie
0
I want to pass username and password to a website login screen instead of the user entering the data.  Can this be done?
0
Hello

I was just wondering if there is a specific title for someone that plans/designs a web application/development System Architecture? What are they called in the industry and how would you go about hiring one? I need someone to help guide us in the right direction when it comes to both the hardware and software architecture in a consultancy capacity but what is that job title, is it the simple the web developer or engineer that does that or is it an entirely different role?

Thanks
0
I have tried to install Django and I have written the following command in Power Shell:

PS C:\project\firstproject> virtualenv venv-first-project

but the below error is raised :

virtualenv : The term 'virtualenv' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ virtualenv venv-first-project
+ ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (virtualenv:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

how can I solve this error?
0
Are there any tools that can make a copy of all PDF docs referenced by a webpage, where the links are generated by JavaScript?

I am trying to build an offline library of AWS documentation and I need to download all PDF documents published at https://docs.aws.amazon.com/index.html#lang/en_us
Neither WGET not HTTRack tools appear to work. The problem is likely the fact that the links on the page are generated by Java script, rather than hardcoded into the HTML.
0
Hi

I was wondering if anyone could help me with what I hope is not a stupid question. If you are developing applications that are need to run a website and some of the applications can be run as microservices and some as serverless applications but some must be run on monolithic architecture styles, so basically a hybrid approach, can you develop all applications on the same technologies within containers and then deploy across Microservices, Serverless and Monolithic as needed?

Mick
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.