Dev Shed Forums http://forums.devshed.com/ Dev Shed - Open Source web development forums. Topics covered include PHP, Apache, mySQL, Zope, Jserv, Java, Python, Zend, XML, DHTML, Javascript and more. en Sat, 21 Oct 2017 15:36:49 GMT vBulletin 60 http://forums.devshed.com/images/misc/rss.png Dev Shed Forums http://forums.devshed.com/ Recommend Me A Proxy Hosting Service! http://forums.devshed.com/web-hosting-requests/979298-recommend-proxy-hosting-service-new-post.html Sat, 21 Oct 2017 01:13:21 GMT Folks,

I am in search of a proxy host free/paid.
They must allow me to use port 3306 so that my .exe bots can dump data to my website's mysql database.
Shared hosting. ]]>
Web Hosting Requests UniqueIdeaMan http://forums.devshed.com/web-hosting-requests-101/recommend-proxy-hosting-service-979298.html
first sets http://forums.devshed.com/python-programming/979297-sets-new-post.html Sat, 21 Oct 2017 00:04:57 GMT p.py && chmod +x p.py && ./p.py < latexp2clean.y ''' This program produces `first' sets from a...]]> I've found a few online programs to generate first and follow sets from Backus-Naur form expressed as yacc (bison) grammars. They haven't worked for any but tiny examples. This program generates the first sets for bigger grammars.
Code:

#! /usr/bin/python3
# expand first.py > p.py && chmod +x p.py && ./p.py < latexp2clean.y

'''
    This program produces `first' sets from a yacc grammar definition.
    Prepare the input from a yacc grammar
    1) change empty productions to EPSILON
    2) remove c source from the rules section.
    3) rules start following the %% line as one would expect.

    bash use:

        $ chmod +x first.py
        $ ./first.py grammar.yacc

    Sample input (taken from my test suite, not included)
   
FIRST(S)={a,b,c}
FIRST(A)={a,EPSILON}
FIRST(B)={b,EPSILON}
FIRST(C)={c}
FIRST(D)={d,EPSILON}
FIRST(E)={e,EPSILON}
%%
S : A B C D E ;
A : a | EPSILON ;
B : b | EPSILON ;
C : c ;
D : d | EPSILON ;
E : e | EPSILON ;
%%
FOLLOW(S)={$}
FOLLOW(A)={b,c}
FOLLOW(B)={c}
FOLLOW(C)={d,e,$}
FOLLOW(D)={e,$}
FOLLOW(E)={$}

'''

import sys, collections, pprint, re, pdb

EPSILON = 'EPSILON'
epsilon = [EPSILON]
sepsilon = set(epsilon)

class Rule:

    def __init__(self, s, split = re.compile(' *[:|] *')):
        self.str = s
        fields = split.split(s)
        self.name = fields[0]
        self.productions = [production.split() for production in fields[1:]]

    def __getitem__(self, n):
        return self.productions[n]

    def __len__(self):
        return len(self.productions)

    def __str__(self):
        return self.str

class Graph(collections.OrderedDict):

    def __init__(self, rules):
        for rule in rules:
            self[rule.name] = rule.productions
        for rule in rules: # terminals
            for production in rule.productions:
                if production != epsilon:
                    for word in production:
                        if word not in self:
                            self[word] = None

#    @memoize...
    def first(self, key):
#        pdb.set_trace()
        return self._first(key, set(), 0)

    def _first(self, key, traced, depth):
        if key in traced:
            return set()
        traced.add(key)
        productions = self[key]
        if productions is None:  # terminal
            s = {key}
        else:
#            print(depth, key, productions)
            s = set()
            emptyok = False
            for production in productions:
                if production != epsilon:
                    for rule in production:
                        firsty = self._first(rule, traced, depth + 1)
#                        print(depth, key, productions, production, rule, firsty)
                        s = s.union(firsty)
                        if EPSILON not in firsty:
                            break
                    else:
                        emptyok = True
            s = s - sepsilon
            if (epsilon in productions) or emptyok:
                s.add(EPSILON)
        return s

def get_bnf(source):
    bnf = []
    accept = False
    for line in source:
        s = line.strip()
        accept ^= s == '%%'
        if accept and s:
          bnf.append(s)
    if '%%' in bnf[0]:
        del bnf[0]
#    pdb.set_trace()
    s = ''.join(bnf)
    s = (s[:-1] if s[-1] == ';' else s).strip()
    return list(map(Rule, s.split(';')))

def construct_graph(source):
    bnf = get_bnf(source)
    graph = Graph(bnf)
    return graph

def main(source = sys.stdin):
    graph = construct_graph(source)
    pprint.pprint(graph)
#    pdb.set_trace()
    for key in graph:
        first = graph.first(key)
        if first:
            print((key, first))

if __name__ == '__main__':
    if len(sys.argv) < 2:
        main()
    else:
        for filename in sys.argv[1:]:
            with open(filename, 'rt') as source:
                main(source)

]]>
Python Programming b49P23TIvg http://forums.devshed.com/python-programming-11/sets-979297.html
Secondary Router as VPN http://forums.devshed.com/networking-help/979296-secondary-router-vpn-new-post.html Fri, 20 Oct 2017 22:49:29 GMT I'm new to networking. I've never previously been interested as long as my devices connected to one another and were able to access the internet I was happy. But I've became interested in VPN's of late.

Ideally, I'd like to have my ISP provided router as is, with no VPN, and have a second router running a VPN so I can switch between WiFi networks at will.

I actually have a working setup like this, but I've used a cheap router to test whether it would work. I don't really understand how I've managed to set it up and I can't replicate the setup with a more powerful router.

I'm trying to achieve this with an Asus RT N66U running Asuswrt Merlin.

My VPN service is NordVPN. While they have user guides, the guide is only for setting up the OpenVPN client and doesn't cover setting the service up on a secondary router. I think I have the OpenVPN client set up correctly, but the setup between routers is guess work and trial and error.

Do I need to edit any settings on my primary router to achieve this?
How should the secondary router be connected to the primary? Lan to Lan? Wan to Lan? Lan to wan?
Does Asuswrt Merlin need to be access point mode, router mode, etc?

I know it's possible to set up rules for Asuswrt which will allow devices to bypass the VPN, but I much prefer the idea of being able to swap between networks as needed to maintain full download speed.

Thanks in advance for any help. ]]>
Networking Help stevenatherton http://forums.devshed.com/networking-help-109/secondary-router-vpn-979296.html
<![CDATA[HTML & CSS Help Me]]> http://forums.devshed.com/html-programming/979295-html-css-help-new-post.html Fri, 20 Oct 2017 18:14:18 GMT Can I learn easily from HTML and CSS? Can I learn easily from HTML and CSS? ]]> HTML Programming mdbablu http://forums.devshed.com/html-programming-1/html-css-help-979295.html Host.AG EU Dedicated Servers at €35 with 1GbE | Unlimited bw. | 500G DDoS Protection http://forums.devshed.com/web-hosting-offers/979294-host-ag-eu-dedicated-servers-35-1gbe-unlimited-bw-500g-ddos-protection-new-post.html Fri, 20 Oct 2017 15:32:08 GMT Here at *Host.AG*, we want to stay ahead of the curve and deliver reliable hosting solutions customized for each particular customer with privacy, support, performance and quality products in mind. We provide live on-site Bulgaria based english customer support and our IT experts are available 24/7 by live chat, telephone, email and ticket support system. You can pay for our services with... Here at Host.AG, we want to stay ahead of the curve and deliver reliable hosting solutions customized for each particular customer with privacy, support, performance and quality products in mind.

We provide live on-site Bulgaria based english customer support and our IT experts are available 24/7 by live chat, telephone, email and ticket support system.

You can pay for our services with the following payment options: Credit Card, PayPal, BitCoin, PaySafeCard, PerfectMoney, Wire Transfer, Bank Transfer, Altcoins via Conify, SEPA Direct Debit, ecoPayz, Neosurf, MINT Prepaid, MolPoints, Qiwi and other options.
But we can accommodate any payment solution the customer wishes.

3 Days FULL REFUND policy no questions asked guarantee.

Our infrastructure is located in a Tier 3+ Carrier Neutral Data Center regarding internet connectivity and is ISO 9001:2015 Quality Management System and ISO 27001:2013 Information Security System Certified making us qualified in keeping expensive equipment safe and secure while making sure that your business complies with multiple international quality control and privacy standards.
Our data center is located in the center of Sofia, in one of the largest telecommunication facility in Bulgaria and South East Europe.

Every dedicated server is fully protected against Level 3,4 and 7 DDoS Attacks using our in-built DDoS Attack and Intrusion Prevention Solution.

Each dedicated server will have assigned one IPv4 address and one /64 IPv6 subnet, included in the price of the server. Each /64 IPv6 subnet will be added to your server free of charge, upon request.

Host.AG Looking glass, to test out our network.

We offer the following bare metal dedicated servers. All of our servers are fully customizable.

LIGHT-S
This server is fully customizable.
Intel i5-7500 6M Cache, 4 Cores, up to 3.80 GHz
8GB RAM / Max 32 GB RAM
1x 500GB SATA
Unmetered Bandwidth
1 Gbps Uplink Included (It can be increased to 2 GbE or 10 GbE)
Free 500Gbps DDoS Protection
1 IPv4 address included
IPv6 /64 subnet included
From 35 EUR
Dedicated Server with unmetered bandwidth

Mini server
This server is fully customizable.
Intel Xeon E3-1241 v3, 3.50GHz, 8M Cache, 8 Threads
8 GB RAM / Max 32 GB RAM
1x 500GB SATA
Unmetered Bandwidth
1 Gbps Uplink Included (It can be increased to 2 GbE or 10 GbE)
Free 500Gbps DDoS Protection
1 IPv4 address included
IPv6 /64 subnet included
From 49 EUR
Dedicated Server with unmetered bandwidth

Plus server
This server is fully customizable.
Intel Xeon E3-1240 v5, 3.50GHz, 8M Cache, 8 Threads, DDR4
8 GB RAM / Max 64 GB RAM
1x 500GB SATA
Unmetered Bandwidth
1 Gbps Uplink Included (It can be increased to 2 GbE or 10 GbE)
Free 500Gbps DDoS Protection
1 IPv4 address included
IPv6 /64 subnet included
From 59 EUR
Dedicated Server with unmetered bandwidth

Plus V6 server
This server is fully customizable.
Intel Xeon E3-1240 v6, 3.70GHz, 8M Cache, 8 Threads, DDR4
16 GB RAM / Max 64 GB RAM
1x 500GB SATA
Unmetered Bandwidth
1 Gbps Uplink Included (It can be increased to 2 GbE or 10 GbE)
Free 500Gbps DDoS Protection
1 IPv4 address included
IPv6 /64 subnet included
From 65 EUR
Dedicated Server with unmetered bandwidth

Great discounts on larger orders!

Use the coupon code: AUTUMN10 and get 10% off for the first month for any server from our offer.

In addition to bare metal dedicated servers, we offer the following dedicated hosting solutions:

cPanel Web Hosting Servers
DirectAdmin Web Hosting Servers
Plesk Web Hosting Servers
Database Servers
Dedicated Windows Servers
Private Dedicated Cloud
Storage and Backup Servers
Video Streaming Dedicated Servers

*All dedicated hosting solutions feature a discount up to 50% compared to the total cost of buying the bundle of products separately. This offer cannot be combined with any other discounts, coupons or promotional offers.

Host.AG High-End European DDoS Protected Dedicated Servers With unmetered bandwidth ]]>
Web Hosting Offers BelCloud http://forums.devshed.com/web-hosting-offers-100/host-ag-eu-dedicated-servers-35-1gbe-unlimited-bw-500g-ddos-protection-979294.html
KVChosting.net provides quality SSD VPS deals with high uptime. http://forums.devshed.com/web-hosting-offers/979292-kvchosting-net-provides-quality-ssd-vps-deals-uptime-new-post.html Fri, 20 Oct 2017 08:47:50 GMT KVC Hosting was started in 2010 with the sole purpose of creating a host company that was affordable to all. Since its inception, the company has had steady growth due to our practical business model, so much so that we've increased the size of our data center in order to meet the demands of our clients. Putting customers first is what drives us, and this has led to us winning multiple awards for providing quality technology at a great price. We focus on providing cost-effective web hosting solutions, and our extensive experience in the industry assures that you will receive high quality and economical web hosting options that can be customized to suit your needs. We are proud of the trust that our partners and customers have placed in us and welcome all to give our company a try.
Be in charge of your own Virtual Private Server (VPS Hosting)! It will work just as if you have your own machine. Our virtual private servers are affordable and powerful, offering you your own mail server and greater security control. SSD VPS Hosting is a great fit for businesses that are anticipating quick growth, huge website traffic, or who run highly dynamic, interactive websites.

SSD VPS HOSTING

Enterprise Cloud SSD VPS
P1
8 GB DDR3 RAM
100 GB SSD RAID 10
4 CPU XEON@ 2.13 GHz (8.52GHz)
6 TB Premium Bandwidth
$49.99/M
ORDER NOW

P5
24 GB DDR3 RAM
300 GB SSD RAID 10
8 CPU XEON@ 2.13 GHz (17.0GHz)
22 TB Premium Bandwidth
$169.99/M
ORDER NOW

REGULAR VPS

VPS K
Disk Space - 75 GB
Bandwidth - 200 GB
RAM - 4 GB
CPANEL/WHM - Free
$25.99/M
ORDER NOW!

VPS O
Disk Space - 225 GB
Bandwidth - 3 TB
RAM - 10 GB
CPANEL/WHM - Free
$79.99/M
ORDER NOW!


Have a question?
Please feel free to contact us: sales at kvchosting.net
]]>
Web Hosting Offers KVChosting_ http://forums.devshed.com/web-hosting-offers-100/kvchosting-net-provides-quality-ssd-vps-deals-uptime-979292.html
Looking for Beta Testers for iOS/Android App http://forums.devshed.com/dev-shed-lounge/979290-looking-beta-testers-ios-android-app-new-post.html Thu, 19 Oct 2017 15:06:15 GMT I'm looking for a few beta testers that would be willing to install, test and just play around with an App that's just been released. it's available on both stores right now. It's an entertainment platform used to send and receive video messages.

If you're interested, please let me know. No newbies to the forums. Hopefully some folks that I've known for a while around here are interested. Send me a PM.

-John ]]>
Dev Shed Lounge Sepodati http://forums.devshed.com/dev-shed-lounge-26/looking-beta-testers-ios-android-app-979290.html
Button requires ActiveX control. http://forums.devshed.com/html-programming/979289-button-requires-activex-control-new-post.html Thu, 19 Oct 2017 11:35:49 GMT
]]>
<div style="border: 1px dashed gray; padding: 1px;">
<div>
<button type="button" class="button" onclick="this.parentNode.parentNode.childNodes[1].style.display = ''; this.parentNode.style.display = 'none'; "title="Blah">
<font color="#000000" size="1"><b>Show full story.</b></font></button></div>
<div id="spoiler" style="display: none;">

Blah blah blah, spoiler.

</div></div>


It's a simple button that says "Show full story" and when you click on it, it expands.

Only problem is, on some computers, IE will pop up a window that asks you permission to enable ActiveX control or whatever, some IE does not.

Can the code be written better to not have that?

Thanks. ]]>
HTML Programming LostShadow http://forums.devshed.com/html-programming-1/button-requires-activex-control-979289.html
Filter Code Goes On Which Line ? http://forums.devshed.com/php-development/979288-filter-code-goes-line-new-post.html Thu, 19 Oct 2017 10:47:12 GMT Folks,

Where on Mini Proxy, on which line, would I add the banned words filter code (the code which you see below) so that, when banned words are found on the proxied pages, then the banned words are substituted ?

Mini Proxy is here:
https://github.com/josh****/miniProx.../miniProxy.php

(Replace the 4 asterisks in the link with "d", then "i", then "c" and finally "k", This forum is substituting the letters with asterisks thinking it is a banned word).

Filter Code:

PHP Code:

<?php

/*
ERROR HANDLING
*/
//declare(strict_types=1);
ini_set('display_errors''1');
ini_set('display_startup_errors''1');
error_reporting(E_ALL);
mysqli_report(MYSQLI_REPORT_ERROR MYSQLI_REPORT_STRICT);

// 1). Set banned words.
$banned_words = array("blow""nut""bull****");
// 2). $curl is going to be data type curl resource.
$curl curl_init();
// 3). Set cURL options.
curl_setopt($curlCURLOPT_URL'https://www.buzzfeed.com/mjs538/the-68-words-you-cant-say-on-tv?utm_term=.xlN0R1Go89#.pbdl8dYm3X');
curl_setopt($curlCURLOPT_SSL_VERIFYPEERfalse);
curl_setopt($curlCURLOPT_RETURNTRANSFERtrue );
// 4). Run cURL (execute http request).
$result curl_exec($curl);
if (
curl_errno($curl)) {
    echo 
'Error:' curl_error($curl);
}
$response curl_getinfo$curl );
if(
$response['http_code'] == '200' )
{
    
$regex '/\b';     
    
$regex .= implode('\b|\b'$banned_words);   
    
$regex .= '\b/i'
    
$substitute '****';
    
$cleanresult preg_replace($regex$substitute$result);
    echo 
$cleanresult;
}
curl_close($curl);
?>

]]>
PHP Development UniqueIdeaMan http://forums.devshed.com/php-development-5/filter-code-goes-line-979288.html
VPS optimization http://forums.devshed.com/web-hosting/979287-vps-optimization-new-post.html Thu, 19 Oct 2017 04:46:21 GMT I was looking for tips to optimize VPS, came across best article with complete details to optimize VPS. Check out this article to know more on optimization of VPS. (http://bit.ly/2yyPyrX) I was looking for tips to optimize VPS, came across best article with complete details to optimize VPS. Check out this article to know more on optimization of VPS. ]]> Web Hosting Merry J http://forums.devshed.com/web-hosting-12/vps-optimization-979287.html <![CDATA[Word Document Automation Using Content UI Editor (XML) & VBA - Assistance Needed]]> http://forums.devshed.com/programming-languages/979284-word-document-automation-using-content-ui-editor-xml-vba-assistance-new-post.html Wed, 18 Oct 2017 17:30:09 GMT Hi,

If anyone could assist me with this challenge I would be eternally grateful. Happy to contribute something for your time. I just need to get one button working. Then I will be fine.

I've recently been asked to automate the creation of a proposal document using Microsoft Word 2016.
I've done it before so I thought I would do it again. I designed a ribbon bar with a sequence of buttons each having some VBA code behind them to perform the task.
I didnt want employees to mess with the ribbon or the buttons so I utilised Content UI Editor from XMLOpenOrg to create the necessary ribbons and buttons within
a MacroEnabled Microsoft Word document. The XML code creates the ribbon and its structor as shown below.

STEPS

So I create a standard blank word document
I then Save it as a Macro Enabled Word File
I then open the Macro Enabled file using Content UI Editor
I then add the XML code to create the new ribbon and buttons I want, remembering to add the name of the
macro "onAction='MacroName" which will be called when the button on the ribbon is pressed. (See futher down for VBA code)

This is the XML code I use once the Macro Enables Word File has been opened in Content UI Editor.

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon startFromScratch="false">
<tabs>
<tab id="customTab" label="PDT Proposal">
<group id="Content" label="Document Introduction">
<button id="content1" label="Title Page" size="large" onAction="Insert_TitlePage" image="GeneralDocument_Icon" />
<button id="content2" label="Why PDT Global" size="large" onAction="Insert_WhyPGTGlobal" image="content_page" />
<button id="content3" label="Client Requirements" size="large" onAction="Insert_Requirements" image="content_page"/>
<button id="content4" label="Delivery Methods" size="large" onAction="Insert_Delivery_Methods" image="content_page"/>
<button id="content5" label="Proposal Programme" size="large" onAction="Insert_Proposal_Programme" image="content_page"/>
<button id="content6" label="Discovering UB" size="large" onAction="Insert_DiscoverUB" image="content_page"/>
<button id="content7" label="UB for All" size="large" onAction="Insert_UB4ALL" image="content_page"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>

I then save the document.
Exit out of the Content UI Editor application and then open the macro enabled word document.
When the word document is opened the Ribbon Appears as do the buttons. Great!

Behind each button sits the VBA code which instructs word to access the BlockBuilder Function
and inserts the predefined items of text | tables | icons and graphics.I wish to be inserted

This is the VB Code that I am using.

Sub Insert_TitlePage(control As IRibbonControl)
Call InsertPageBreak
ActiveDocument.AttachedTemplate.BuildingBlockEntries("001_Insert_TitlePage").Insert _
Where:=Selection.Range
End Sub

Sub Insert_WhyPDTGlobal(control As IRibbonControl)
ActiveDocument.AttachedTemplate.BuildingBlockEntries("002_WhyPDTGlobal").Insert _
Where:=Selection.Range
End Sub

Sub Insert_Requirements(control As IRibbonControl)
ActiveDocument.AttachedTemplate.BuildingBlockEntries("003_Requirements").Insert _
Where:=Selection.Range

End Sub

Sub Insert_ProposalProgramme(control As IRibbonControl)

ActiveDocument.AttachedTemplate.BuildingBlockEntries("004_ProposalProgram").Insert _
Where:=Selection.Range

End Sub

Sub Insert_DiscoverUB(control As IRibbonControl)

ActiveDocument.AttachedTemplate.BuildingBlockEntries("005_Discover_UB").Insert _
Where:=Selection.Range

End Sub

Sub Insert_UB4ALL(control As IRibbonControl)

ActiveDocument.AttachedTemplate.BuildingBlockEntries("006_UB4ALL").Insert _
Where:=Selection.Range

End Sub

Sub Insert_DeliveryMethods(control As IRibbonControl)

ActiveDocument.AttachedTemplate.BuildingBlockEntries("007_DeliveryMethods").Insert _
Where:=Selection.Range

End Sub

HERE IS MY PROBLEM

Each time I click a button in the document to run the VBA Code.
I get this Microsoft Visual Basic for Applications dialogue box with a Red Circle and X in the
middle with no error message explaining what action to take next. Having tried everything I know
I decided to resort to a forum of experts who might be able to shed some light on the issue.

I'm using Windows 10 Professional
Microsoft Word v2016
Content UI Editor (Download Link: http://openxmldeveloper.org/cfs-file...ditorSetup.zip)
Useful Link: https://social.msdn.microsoft.com/Fo...?forum=worddev

Your assistance is both respected and greatly appreciated.

Many thanks in advance.

Mark Jones ]]>
Other Programming Languages JonesMark1974 http://forums.devshed.com/programming-languages-139/word-document-automation-using-content-ui-editor-xml-vba-assistance-979284.html
<![CDATA[WHUK | 20% OFF on Shared Hosting | New Domain TLD's up for grabs!]]> http://forums.devshed.com/web-hosting-offers/979283-whuk-20-shared-hosting-domain-tlds-grabs-new-post.html Wed, 18 Oct 2017 13:43:13 GMT WHUK (Webhosting UK Com Ltd.), a UK based web host since 2001 offering shared hosting services on Cloud platform. Also, there are new domain TLD's up for grabs!

Quote:

Use Discount Coupon - "SHAREDSAVE20" to Get 20% OFF on All Shared Hosting Plans
This is a limited time period offer and ends on Wednesday 24 October 2017, 11.59pm BST. So hurry before the offer ends.

Quote:

Initiate a LIVE CHAT with one of our friendly sales advisor to avail exclusive benefits on these shared servers!
As an introductory offer:

Quote:

45% OFF .Space TLD! Register at just £4.16 ex. VAT!
Quote:

67% OFF .Site TLD! Register at just £6.66 ex. VAT!
So rush to register yours today!

To find your perfect TLDs for business and personal use, Visit: https://www.webhosting.uk.com/domain-names/

Quote:

Do not hesitate to initiate a LIVE CHAT with one of our friendly sales advisor to know more on the domain prices!
The Linux Shared Hosting plans are mentioned below:

Cloud cPanel Starter
5GB SSD Storage
Unmetered Bandwidth
Host 2 Websites
Unlimited Emails
Unlimited Databases
cPanel Control Panel
FREE Domain on annual plan
24x7 Technical Support
99.9% Uptime Guarantee
Monthly Price: £2.49 GBP | Order Now

Cloud cPanel Premium
10GB SSD Storage
Unmetered Bandwidth
Host 5 Websites
Unlimited Emails
Unlimited Databases
cPanel Control Panel
FREE Domain on annual plan
24x7 Technical Support
99.9% Uptime Guarantee
Monthly Price: £3.99 GBP | Order Now

Cloud cPanel Advanced
20GB SSD Storage
Unmetered Bandwidth
Host 15 Websites
Unlimited Emails
Unlimited Databases
cPanel Control Panel
FREE Domain on annual plan
24x7 Technical Support
99.9% Uptime Guarantee
Monthly Price: £5.49 GBP | Order Now

Cloud cPanel Developer
40GB SSD Storage
Unmetered Bandwidth
Host Unlimited Websites
Unlimited Emails
Unlimited Databases
cPanel Control Panel
FREE Domain on annual plan
24x7 Technical Support
99.9% Uptime Guarantee
Monthly Price: £6.99 GBP | Order Now

For full list of Linux Shared Hosting Packages, visit: https://www.webhosting.uk.com/cpanel-hosting/

The Windows Shared Hosting plans are mentioned below:

Cloud Windows Starter
5GB SSD Storage
Unmetered Bandwidth
Host 2 Websites
Unlimited Emails
Unlimited Databases
Plesk Control Panel
FREE Domain on annual plan
24x7 Technical Support
99.9% Uptime Guarantee
Monthly Price: £2.49 GBP | Order Now

Cloud Windows Premium
10GB SSD Storage
Unmetered Bandwidth
Host 5 Websites
Unlimited Emails
Unlimited Databases
Plesk Control Panel
FREE Domain on annual plan
24x7 Technical Support
99.9% Uptime Guarantee
Monthly Price: £3.99 GBP | Order Now

Cloud Windows Advanced
20GB SSD Storage
Unmetered Bandwidth
Host 15 Websites
Unlimited Emails
Unlimited Databases
Plesk Control Panel
FREE Domain on annual plan
24x7 Technical Support
99.9% Uptime Guarantee
Monthly Price: £5.49 GBP | Order Now

Cloud Windows Developer
40GB SSD Storage
Unmetered Bandwidth
Host Unlimited Websites
Unlimited Emails
Unlimited Databases
Plesk Control Panel
FREE Domain on annual plan
24x7 Technical Support
99.9% Uptime Guarantee
Monthly Price: £6.99 GBP | Order Now

For full list of Windows Shared Hosting Packages, visit: https://www.webhosting.uk.com/windows-hosting/

WHUK offers with uninterrupted customer support and 99.95% uptime guarantee along with ensuring the speed and smooth functioning of the website even during the high traffic times. These shared hosting packages are the best solutions for small and medium businesses. With all the features mentioned above and 24/7 pro-active monitoring, the shared hosting platform provided by WHUK is a complete value for money.

In case of any questions, you can approach our Sales Department through 24*7 Live chat, you can drop us an email at sales @ webhosting.uk.com or call us on the toll free number 0808-862-0890 / +44-191-303-8069. ]]>
Web Hosting Offers James-A http://forums.devshed.com/web-hosting-offers-100/whuk-20-shared-hosting-domain-tlds-grabs-979283.html
Sending array values to database in a form http://forums.devshed.com/php-development/979282-sending-array-values-database-form-new-post.html Wed, 18 Oct 2017 13:26:36 GMT For every category that is listed with a check mark I show the "order" of the the product I am editing. i.e. The product is number "2" means it appears 2nd that category. If I have multiple categories posting it is only holding and storing a singe value. The rest are showing "0" and they should be their respective placement order number.

Imagine a vertical list of categories with check boxes and some are checked with hidden values. Like "2" as described above.

To simplify it, I am only showing the three sections of code where I get the value posted, then loop, and then insert to the database.

Listing and showing the categories and check marks and values WORKS.

What DOESN'T work is storing each value. The ' p_order' is always "0" for all entries.

Code:

$cats = $_REQUEST['prodCategories'];
$orderp = $_REQUEST['orderp'];
               
       

-------------------------------------------------------------------


$wpdb->query("DELETE FROM category_assoc WHERE prod_id = '$lastID'");
     

        for($i= 0; $i < count($cats); $i++)

        {

                $thecatx = $cats[$i];
                $orderx = $orderp[$i];

                $catCategory = "INSERT INTO category_assoc (prod_id, cat_id, p_order) VALUES ('$lastID', '$thecatx', '$orderx')";
               
                $wpdb->query($catCategory);
               
        }


-----------------------------------------------------------------

$cats = $prod->getProductCategories();
                                if(count($cats)>0)
                                {
                               
                                        foreach($cats as $cat)
                                        {
                                                ?>
                                                <tr>
                                                <td><?php echo $cat['cat_name'];?></td>
                                                <td><input type='checkbox' name='prodCategories[]' value='<?php echo $cat['cat_id']; ?>' <?php if($editProduct) echo $prod->isCheckSelected($cat['cat_id'], $vals['prod_id']);?>/>
                                                <?php if($editProduct) echo $prod->gettheOrder($cat['cat_id'], $vals['prod_id']); ?>
                                               
                                                <input type='hidden' name='orderp[]' value='<?php echo $prod->gettheOrder($cat['cat_id'], $vals['prod_id']);?>' />
                                                </td>
                                                </tr>
                                                <?php
                                       
                                        }
                                }

]]>
PHP Development mallen http://forums.devshed.com/php-development-5/sending-array-values-database-form-979282.html
Cloud Hosting For Developers – TRY IT FREE – No credit card required! http://forums.devshed.com/web-hosting-offers/979280-cloud-hosting-developers-try-free-credit-card-required-new-post.html Wed, 18 Oct 2017 11:09:02 GMT MilesWeb’s next-generation *cloud hosting service (https://www.milesweb.com/hosting/cloud-hosting/)* can automatically scale any web application in real-time. Our Cloud hosting is 100% scalable and flexible. Everything that you expect from a real cloud platform like elastic compute, automatic vertical / horizontal scaling, server load balancer, container service, resource orchestration, high... MilesWeb’s next-generation cloud hosting service can automatically scale any web application in real-time. Our Cloud hosting is 100% scalable and flexible. Everything that you expect from a real cloud platform like elastic compute, automatic vertical / horizontal scaling, server load balancer, container service, resource orchestration, high availability, pay for usage, DevOps automation, marketplace with 1-click app deployment, self-provisioning access etc is offered with MilesWeb cloud hosting platform.

Why MilesWeb Cloud?

  • Launch your cloud instance within minutes
  • Cloud for small businesses and big enterprises
  • Pay for usage not server size
  • Java, PHP, Ruby, Python, Node.js and Docker support
  • Automatic scaling without downtime
  • Platform ready automated for DevOps
  • More than 100 pre-configured apps for 1-click install

Below are few short videos that will help you to easily understand our cloud offerings.

How MilesWeb Public Cloud Hosting works?

https://www.youtube.com/watch?v=JduZQtrOjXc

Launch Cloud Instance with automatic scaling:

https://www.youtube.com/watch?v=10WGGUSlK9A

Easily deploy apps on cloud from MilesWeb marketplace:

https://www.youtube.com/watch?v=d3rfTxNQFXg

MilesWeb cloud has all the features that other cloud providers are missing.

  • Automatic vertical scaling without downtime
  • Automatic horizontal scaling without downtime
  • Migrating between clouds without downtime
  • Pay for actually used resources
  • Self-service portal for fast creation and prototyping
  • Stack of pre-configured servers
  • Improved Docker support
  • 100+ pre-configured 1-click apps for installation
  • Configuring traffic distribution between instances via UI


Try MilesWeb Cloud FREE for 30 Days.

No Credit Card Required!

If you have any questions please feel free to get in touch with our cloud experts through live chat, phone or email.

Visit : https://www.milesweb.com/hosting/cloud-hosting/ ]]>
Web Hosting Offers MilesWeb http://forums.devshed.com/web-hosting-offers-100/cloud-hosting-developers-try-free-credit-card-required-979280.html
<![CDATA[Python Guru's I'm looking for you!]]> http://forums.devshed.com/hire-programmer/979278-python-gurus-im-looking-new-post.html Wed, 18 Oct 2017 10:04:45 GMT Hey, I'm Jake from Knowit in London.

We're looking for a few Python Developers to move over here. I'd love to have a chat about if anyone is interested. Please see a few details below.

A Tech start-up in London are looking for a Mid/Senior Python Developer to help scale their machine learning product - designed to locate new social events (Film/Music/Arts etc)

Company Tech Stack:
- Python(Django)
- React on Front end
- Scrum Methodology

Company Culture:
- 20 people so far
- Buzzy and collaborative atmosphere

Please write back to me on here, or if you want to be confidential then email jake@knowit.co.uk ]]>
Hire A Programmer jakeknowit http://forums.devshed.com/hire-programmer-57/python-gurus-im-looking-979278.html