Problem with creating program flow in java database application

I have created hardware shop database in SQL. Database needs to be connect to java, everything is done so far even the screen designs. However, there is problem I can’t picture/design how to application should work as program flow. There is login for employess, and employees use this application in their shop. When customer comes in and what to buy something. I realize that is very vague and weird question but how could do this?

Mailchimp Facebook integration not saving “Page to Use”

I have setup the Facebook integration in mailchimp. I successfully connected to Facebook and accepted all permissions. After connecting, under “Add a signup form to your Facebook Pages and auto-post campaigns,” I selected the page to use and the list to use. I added the signup tab/page and click “Save.”

The tab/page is created under the selected business page but when I return to the integrations page in Mailchimp the “page to use” shows a different page (the first one in the dropdown list). Is this how it’s supposed work?

Just concerned that the “Post to Facebook” option under a campaign will post to the wrong page. I can’t see a way to check which Facebook page the campaign will post to.

Many Thanks!

n3Servers – VPS Hosting and Hybrid Dedicated Servers in New York – 1GB VPS @ $9.49/yr & more!

Tim from n3Servers has submitted some pretty interesting offers for Cyber Week on LowEndBox! They are offering OpenVZ based VPS’s with ample disk space, as well as Dedicated KVM based hybrid servers with lots of resources out of New York!

Their WHOIS is public, and you can find their ToS/Legal Docs here. They accept Credit Cards, PayPal, Bitcoin, Litecoin and Alipay as payment methods.

Here’s what they had to say: 

“At n3Servers, we strive to be an indispensable hosting partner. We provide every hosting solution needed for you to achieve your goals. It’s the human element that makes n3Servers different in this technology-driven day and age that we live in. We offer an affordable way to take your business or idea online, in a swift manner, with personalized service & support.

Exclusive for the LowEndBox community during Cyber Week 2018, we are excited to present to you the following discounted packages on our VPS plans and Hybrid Dedicated Servers!”

Here’s the offers: 

1GB OpenVZ

  • 1GB RAM
  • 1GB vSWAP
  • 1 x CPU Core
  • 40GB HDD Space
  • 2.5TB Bandwidth
  • 100Mbps
  • 1 x IPv4
  • Instantly Setup
  • OpenVZ/SolusVM
  • $ 9.49/yr
  • [ORDER]

2GB OpenVZ

  • 2GB RAM
  • 2GB vSWAP
  • 2 x CPU Core
  • 80GB HDD Space
  • 5TB Bandwidth
  • 100Mbps
  • 1 x IPv4
  • Instantly Setup
  • OpenVZ/SolusVM
  • $ 12.79/yr
  • [ORDER]

4GB OpenVZ

  • 4GB RAM
  • 4GB vSWAP
  • 4 x CPU Core
  • 150GB HDD Space
  • 8TB Bandwidth
  • 100Mbps
  • 1 x IPv4
  • Instantly Setup
  • OpenVZ/SolusVM
  • $ 19/yr
  • [ORDER]

*Offers below are comparable to dedicated machines based on the dedicated resources provided and therefore meet our pricing guidelines*

8GB Hybrid

  • 4 x CPU Cores (2.10Ghz)
  • 8GB DDR3 RAM
  • 200GB Enterprise HDD Storage
  • 10TB Monthly Bandwidth
  • /29 IPv4 Allocation (5 IPs)
  • 1Gbps
  • Linux or Windows
  • KVM/SolusVM
  • OVER 50% OFF COMPARED TO WEBSITE PRICING
  • $ 199/yr
  • [ORDER]

16GB Hybrid

  • 8 x CPU Cores (2.10Ghz)
  • 16GB DDR3 RAM
  • 320GB Enterprise HDD Storage
  • 15TB Monthly Bandwidth
  • /29 IPv4 Allocation (5 IPs)
  • 1Gbps
  • Linux or Windows
  • KVM/SolusVM
  • OVER 50% OFF COMPARED TO WEBSITE PRICING
  • $ 348/yr
  • [ORDER]

NETWORK INFO:

Buffalo, NY, USA
Test IPv4: 23.94.187.130


OpenVZ Nodes:
– Intel Xeon E3 Processors
– 32GB RAM
– 4x 2TB HDD’s
– Hardware RAID-10 with CVM
– 1Gbps Uplink

Hybrid Nodes:
– Dual Intel Xeon E5-2620v2 Processors
– 128GB RAM
– 4x 2TB HDD’s
– Hardware RAID-10 with CVM
– 1Gbps Uplink

Please let us know if you have any questions/comments and enjoy!

Feedback from Ecommerce Business Owners Wanted

Hi eCommerce business owners and entrepreneurs! I work at a tech company. My team is working to better understand how ecommerce business owners market & sell their products online. We're hosting a remote card sorting exercise. Sessions are 20 min, remote and paid $ 20. Available 11/26 – 12/7. If you're interested, please start here:

https://docs.google.com/forms/d/e/1FAIpQLSdBxjWu6JWXxSbcsshFNuEzCTDyqUj-7NAtWsLb8k5jNL9M5Q/viewform?usp=sf_link

returning error string or null for “no errors”

In my code I have several validation methods which have common part. I extracted common part into dedicated method and now code looks like this:

public String validate1() {   String common = validateCommon();   if (common != null) {     return common;   }   // do something   return something1; }  public String validate2() {   String common = validateCommon();   if (common != null) {     return common;   }   // do something   return something2; }   public String validateCommon() {   ... } 

I don’t like how null has special meaning of “no errors occured`. May be I can refactor to something like this:

public String validate1() {   return validateCommon().orElseGet(() -> {      // do something      return something1;   }); }  public Optional<String> validateCommon() {   ... } 

But this doesn’t look beautiful too, because “normal” code is under orElseGet, but error processing is at the beginning of the method, this looks odd.

Can I refactor it to something more readable?

How to use my .mo file in the child theme instead of file in a parent custom directory?

there is a Lang folder in my parent wordpress theme; I added my own .mo file in the child-theme using load_theme_textdomain. but there is another file located in /includes/builder/languages parent theme directory. how I can add another .mo file to my child to take effect on this part? thanks for your help.

Specified data directory does not exist – but it does…

anyone ever had a similar issue where the directory exists but bitcoin-cli isn’t recognizing it? Perhaps this is related to me setting the folder up as a symlink to my external HDD?

Thank you! aaronson

-Mac-mini:~ $   bitcoin-cli -regtest generate 1 Error reading configuration file: specified data directory "/Users/---/Library/Application\ Support/Bitcoin" does not exist. -Mac-mini:~ $   cd /Users/---/Library/Application\ Support/Bitcoin -Mac-mini:Bitcoin $   ls banlist.dat bitcoind.pid    chainstate  db.log      peers.dat bitcoin.conf    blocks      database    debug.log   wallet.dat 

SharePoint 2013 RestAPI retrieve Task and subtask Parent id undefined

I am trying to retrieve the sub-task of the parent task from a list. query:

../_api/web/lists/getbytitle(‘Tasks’)/items?$ select=Title,Status,ParentID/Id&$ expand=ParentID

Code:

function onQuerySucceeded(data) {     var mainTasks = [];     var subTasks = [];     for (var i = 0; i < data.length; i++) {         if (data[i].ParentID.Id) {             subTasks.push(data[i]);         } else {             mainTasks.push(data[i]);         }      }     $  .each(data.d.results, function (key, value) {         subTasks += '<strong>Title: </strong> ' + value.Title +             ' <strong>Status:</strong> ' + value.Status + ' <strong>Parent Id:</strong> ' + value.Id +             '<br />';     });      $  ("#divSubTaskItems").html(subTasks);  }; 

My results are:

undefined: “Title: Test rest Call Status: In Progress Parent Id: undefined”