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 Sun, 17 Dec 2017 05:44:16 GMT vBulletin 60 http://forums.devshed.com/images/misc/rss.png Dev Shed Forums http://forums.devshed.com/ <![CDATA[[Python 3 + Tkinter] Option Menu, Error Found!]]> http://forums.devshed.com/python-programming/979655-python-3-tkinter-option-menu-error-found-new-post.html Sat, 16 Dec 2017 17:47:41 GMT Hey Python Programmers... I try to create an option menu they create diffrence buttons... but i get an problem with it... *This is an test to train my self in programming... this is my script:* Code: --------- from tkinter import * Hey Python Programmers...

I try to create an option menu they create diffrence buttons... but i get an problem with it...

This is an test to train my self in programming... this is my script:
Code:

from tkinter import *

main = Tk()

def selectOption(optionselect):

    global select

    select = optionselect

    select = 'Image'

    if select == 'Image':
        selectOption_Image()
        buttonTexture.config(text = 'Texture' % (buttonTexture, buttonTextureExt))
        buttonPreview.config(text = 'Preview' % (buttonPreview, buttonPreviewExt))
        buttonExport.config(text = 'Export' % (buttonExport, buttonExportExt))

    if select == 'Texture':
        selectOption_Texture()
        buttonImage.config(text = 'Image' % (buttonImage, buttonImageExt))
        buttonPreview.config(text = 'Preview' % (buttonPreview, buttonPreviewExt))
        buttonExport.config(text = 'Export' % (buttonExport, buttonExportExt))

    if select == 'Preview':
        selectOption_Preview()
        buttonImage.config(text = 'Image' % (buttonImage, buttonImageExt))
        buttonTexture.config(text = 'Texture' % (buttonTexture, buttonTextureExt))
        buttonExport.config(text = 'Export' % (buttonExport, buttonExportExt))


    if select == 'Export':
        selectOption_Export()
        buttonImage.config(text = 'Image' % (buttonImage, buttonImageExt))
        buttonTexture.config(text = 'Texture' % (buttonTexture, buttonTextureExt))
        buttonExport.config(text = 'Export' % (buttonExport, buttonExportExt))


    def selectOption_Image():

        def selectOption_Image_Button():

            def printImage():

                print('')
                print('Image Found!')

            buttonImageExt = Button(main, command = printImage)
            buttonImageExt.pack()
            return buttonImageExt

        buttonImage = Button(main, command = selectOption_Image_Button)
        buttonImage.pack()
        return buttonImage

    def selectOption_Texture():

        def selectOption_Texture_Button():
           
            def printTexture():

                print('')
                print('Texture Found!')

            buttonTextureExt = Button(main, command = printTexture)
            buttonTextureExt.pack()
            return buttonTextureExt

        buttonTexture = Button(main, command = selectOption_Texture_Button)
        buttonTexture.pack()
        return buttonTexture


    def selectOption_Preview():

        def selectOption_Preview_Button():

            def printPreview():

                print('')
                print('Preview Render!')

            buttonPreviewExt = Button(main, command = printPreview)
            buttonPreviewExt.pack()
            return buttonPreviewExt

        buttonPreview = Button(main, command = selectOption_Preview_Button)
        buttonPreview.pack()
        return buttonPreview

    def selectOption_Export():

        def selectOption_Export_Button():

            def printExport():

                print('')
                print('Source Exported !')

            buttonExportExt = Button(main, command = printExport)
            buttonExportExt.pack()
            return buttonExportExt

        buttonExport = Button(main, command = selectOption_Export_Button)
        buttonExport.pack()
        return buttonExport

optionlist = ('Image', 'Texture', 'Preview', 'Export')

variable = StringVar()
variable.set(optionlist[0])

optionmenu = OptionMenu(main, variable, *optionlist, command = selectOption)
optionmenu.pack()


main.mainloop()

This is an simple test to train my self in programming and write software... but if i run this script,
i get an error... for more information...

This my error (# Image Button):
Quote:

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Gebruiker\Desktop\Software\Python\Ware\lib\tkinter\__init__.py", line 1699, in __call__
return self.func(*args)
File "C:\Users\Gebruiker\Desktop\Software\Python\Ware\lib\tkinter\__init__.py", line 3436, in __call__
self.__callback(self.__value, *args)
File "C:/Users/Gebruiker/Desktop/Options.py", line 14, in selectOption
selectOption_Image()
UnboundLocalError: local variable 'selectOption_Image' referenced before assignment
This is my error (#Texture Button):
Quote:

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Gebruiker\Desktop\Software\Python\Ware\lib\tkinter\__init__.py", line 1699, in __call__
return self.func(*args)
File "C:\Users\Gebruiker\Desktop\Software\Python\Ware\lib\tkinter\__init__.py", line 3436, in __call__
self.__callback(self.__value, *args)
File "C:/Users/Gebruiker/Desktop/Options.py", line 14, in selectOption
selectOption_Image()
UnboundLocalError: local variable 'selectOption_Image' referenced before assignment
This my error (# Preview Button):
Quote:

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Gebruiker\Desktop\Software\Python\Ware\lib\tkinter\__init__.py", line 1699, in __call__
return self.func(*args)
File "C:\Users\Gebruiker\Desktop\Software\Python\Ware\lib\tkinter\__init__.py", line 3436, in __call__
self.__callback(self.__value, *args)
File "C:/Users/Gebruiker/Desktop/Options.py", line 14, in selectOption
selectOption_Image()
UnboundLocalError: local variable 'selectOption_Image' referenced before assignment
And the error in the Export Button:
Quote:

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Gebruiker\Desktop\Software\Python\Ware\lib\tkinter\__init__.py", line 1699, in __call__
return self.func(*args)
File "C:\Users\Gebruiker\Desktop\Software\Python\Ware\lib\tkinter\__init__.py", line 3436, in __call__
self.__callback(self.__value, *args)
File "C:/Users/Gebruiker/Desktop/Options.py", line 14, in selectOption
selectOption_Image()
UnboundLocalError: local variable 'selectOption_Image' referenced before assignment
Pleace... said not thad this program is boring... this only an simple test to figure out, how i can
create diffrenct menu buttons... but i need some help with tkinter...

Can you correct my code, just i can expiriment with it ?... thanks for help,
Jamie... ]]>
Python Programming JamieVanCadsand http://forums.devshed.com/python-programming-11/python-3-tkinter-option-menu-error-found-979655.html
Returning PHP/JS via AJAX http://forums.devshed.com/javascript-development/979654-returning-php-js-via-ajax-new-post.html Sat, 16 Dec 2017 15:30:27 GMT Well, as long as I'm returning one or the other straight, things seemed fine, but when calling an action that needs to embed something in a page, the action fails. Overall, it seems the way I am trying to embed the HTML on the PHP side before returning the javascript back to AJAX.

Initial JS action: (Worked)
Code:

} else if(page == 'invoice' && action == 'select') {
  this.html(data[0]);
  this.append($('<input />', { type: 'hidden', value: values }));

Current Version: (Simplified to rule out many if/else conditions)
Code:

eval(data[0]);
Initial PHP: (Worked)
PHP Code:

case 'select':
  
$select select_account(key($_POST));
  echo 
json_encode(array($selectNULL));
  break; 

An Attempt:
PHP Code:

case 'select':
  
$select select_account(key($_POST));
  
$return "this.html('" $select "'); this.append($('<input />', { type: 'hidden', value: values }));";
  echo 
json_encode(array($returnNULL));
  break; 

The overall intent is to move all the JS/jQuery actions from the numerous if/else conditions over to the PHP file, and just have it return that action as well with its initial return. ]]>
JavaScript Development Triple_Nothing http://forums.devshed.com/javascript-development-115/returning-php-js-via-ajax-979654.html
The Concatenation Puzzle http://forums.devshed.com/php-development/979653-concatenation-puzzle-new-post.html Sat, 16 Dec 2017 14:51:31 GMT Php Experts, I have a concatenation question. I have seen tutorials teach concatenation in these 2 formats but the last format the most. Last format puzzling to me. Lessons teach to *just add the dot to join 2 strings or variables* (if I understood that correct). PHP: --------- Php Experts,

I have a concatenation question.
I have seen tutorials teach concatenation in these 2 formats but the last format the most.
Last format puzzling to me.
Lessons teach to just add the dot to join 2 strings or variables (if I understood that correct).

PHP Code:

<?php
$full_name 
$first_name." ".$surname;
echo 
"1. $full_name";
?>

Based on "to add a dot to join 2" is a good example above. Note the space inbetween the 2 double quotes. This space separates the first & surname.
So far, so good. So logical.

PHP Code:

$full_name "".$first_name." ".$surname."";
echo 
"2. $full_name";
?>


But wait! What is this example just above ? Weird!
I see a dot prior to $first name and I see a dot after the $first name and likewise I see in the $surname.
Why the extra dots (concatenators) prior and after the variables (or strings) ?
Ok, I can't understand the dot prior the $first_name. But, I can understand the dot after the $first_name as that dot joins the space inbetween the 2 double quotes.
And, I can understand the dot that comes after the 2 double quotes (that represent the space) and prior the $surname. But, I can't understand the dot that comes after the $surname.
I'm highlighting the 22 dots I don't understand. Just what exactly are they doing and what are they for ? What do they represent ?

Anyway, which format you use, the 1st or the last ? Somebody amended my script many months back to so:

Why I See Blank Page After Submitting Form And Why Echoing Fails ?

PHP Code:

$body  ".$first_name." ".$surname.",
                    <
html>
                    <
head>
                    <
title>Activation Link</title>
                    </
head>
                    <
body>
                    
You need to click on the following link <a href=".$account_activation_link.">.$account_activation_link.</ato activate your account.
                    </
body>
                    </
html>"; 

I'm switching it to this:

PHP Code:

$body  "$first_name." ".$surname,
                    <html>
                    <head>
                    <title>Activation Link</title>
                    </head>
                    <body>
                    You need to click on the following link <a href="
.$account_activation_link.">.$account_activation_link.</a> to activate your account.
                    </body>
                    </html>"



Good idea ? :) ]]>
PHP Development UniqueIdeaMan http://forums.devshed.com/php-development-5/concatenation-puzzle-979653.html
Best SSD Reseller Web Hosting - Hostripples! http://forums.devshed.com/web-hosting-offers/979652-ssd-reseller-web-hosting-hostripples-new-post.html Sat, 16 Dec 2017 05:19:26 GMT Build your own web hosting business with less investment and avoid headache of managing the infrastructure. We at Hostripples bind to provide you the top level experience and excellent value-for-money SSD Reseller Hosting. This allow you to keep your identity with White Label Reselling, Free Migration and Custom Branding. This package feature also allow you to present your package at prices... Build your own web hosting business with less investment and avoid headache of managing the infrastructure. We at Hostripples bind to provide you the top level experience and excellent value-for-money SSD Reseller Hosting. This allow you to keep your identity with White Label Reselling, Free Migration and Custom Branding. This package feature also allow you to present your package at prices determined by you, also maintaining your profitability flexible. Sign up and get instant access to your reseller control panel to get started!

SSD Ress 1 - $6/Month
20 GB Disk Space
Unlimited Bandwidth
cPanel Accounts 10
Free Let's Encrypt SSL
24x7 Live Support

Buy Now!

SSD Ress 2 - $9/Month
50 GB Disk Space
Unlimited Bandwidth
cPanel Accounts 25
Free Let's Encrypt SSL
24x7 Live Support

Buy Now!

SSD Ress 3 - $15/Month
100 GB Disk Space
Unlimited Bandwidth
cPanel Accounts 60
Free Let's Encrypt SSL
24x7 Live Support

Buy Now!

SSD Ress 4 - $24/Month
200 GB Disk Space
Unlimited Bandwidth
Unlimited cPanel Accounts
Free Let's Encrypt SSL
24x7 Live Support

Buy Now!

SSD Ress 5 - $40/Month
500 GB Disk Space
Unlimited Bandwidth
Unlimited cPanel Accounts
Free Let's Encrypt SSL
24x7 Live Support

Buy Now!

SSD Ress 6 - $75/Month
1500 GB Disk Space
Unlimited Bandwidth
Unlimited cPanel Accounts
Free Let's Encrypt SSL
24x7 Live Support

Buy Now!

Why choose Hostripples?
Instant Setup
Easy usability
Value for money
24 x 7 customer service
Unmatched server performance


Visit:- Cheap SSD Reseller Hosting

It’s not that we are bragging about our services, our customers say it all!

Hurry up and get Hostripples – the one-stop solution for your web hosting requirements!

Hostripples - Affordable web hosting
Hostripples.com Cheap Hosting | Unlimited Bandwidth | Unlimited Space | Domain Name Registration

Connect with us: Facebook | Twitter | LinkedIn

Hostripples - Affordable web hosting
http://hostripples.com/
http://hostripples.in/
http://hostripples.co.uk/
https://myhostseo.com/
Hostripples.com $1 Unlimited Hosting | $2 Unlimited Windows Hosting | Unlimited Bandwidth | Unlimited Space | Domain Name Registration ]]>
Web Hosting Offers hi5s2arp http://forums.devshed.com/web-hosting-offers-100/ssd-reseller-web-hosting-hostripples-979652.html
Christmas Deals by Leasedlayer : 40% discount on Shared Hosting http://forums.devshed.com/web-hosting-offers/979651-christmas-deals-leasedlayer-40-discount-shared-hosting-new-post.html Sat, 16 Dec 2017 05:15:05 GMT *Linux Shared Hosting - Netherlands (https://www.leasedlayer.com/offshore-shared-hosting)* Leasedlayer (https://www.leasedlayer.com/) offers An Affordable and Reliable Web Hosting Solution - 1Gbps Shared Hosting Service with 20x faster SSD space, latest technology Quad Core processors connected with 1 Gbps premium network line, guaranteed 99.98% superior uptime and cutting-edge hardwares. Host... Linux Shared Hosting - Netherlands

Leasedlayer offers An Affordable and Reliable Web Hosting Solution - 1Gbps Shared Hosting Service with 20x faster SSD space, latest technology Quad Core processors connected with 1 Gbps premium network line, guaranteed 99.98% superior uptime and cutting-edge hardwares. Host your Websites, Blogs, Forums, portals, Run any web application with ease.

Leasedlayer is offering 40% onetime discount on Netherlands Linux Shared Hosting
Offer Code : SANTA@40

Linux Shared Hosting Plan
--------------------------------

Plan 1:
=================
Disk space : 5GB SSD RAID
Addon Domain : 1
MySQL Database : 5
E-Mail Accounts : Unlimited
Sub Domain : Unlimited
Price : Euros 2.99
> Order Now <


Plan 2:
=================
Disk space : 20 GB SSD RAID
Addon Domain : Unlimited
MySQL Database : Unlimited
E-Mail Accounts : Unlimited
Sub Domain : Unlimited
Price : Euros 4.99
> Order Now <


Plan 3:
=================
Disk space : 40 GB SSD RAID
Addon Domain : Unlimited
MySQL Database : Unlimited
E-Mail Accounts : Unlimited
Sub Domain : Unlimited
Price : Euros 6.99
> Order Now <

> Know more on features and addons provided with Netherlands Shared Hosting <

Premium Shared Hosting Attributes
`````````````````````````````````````
- cPanel Control Panel
- Auto One-Click Installer
- Supports many programming languages like CGI, FAST CGI, PHP 5, Perl, Python, Ruby On Rails, and SSI. Modules like Curl, CPAN, GD Library, Imagemagick
- 99.9% Uptime Guarantee
- 24/7 support covering all basic and complicated queries
- 30 Day Moneyback Guarantee


Verified Payment Modes
...................................
Paypal | Bank Transfer | Perfect Money | Skrill


Thank You. ]]>
Web Hosting Offers leasedlayer.com http://forums.devshed.com/web-hosting-offers-100/christmas-deals-leasedlayer-40-discount-shared-hosting-979651.html
Textboxes not showing any text ! http://forums.devshed.com/css-help/979650-textboxes-text-new-post.html Fri, 15 Dec 2017 19:29:24 GMT I cant see any text in my contact form section when I put my website on live server but on a local server its well and showing everything. I have to press Alt+A to find all the text on live server. How I attach both files here :/ ?? this is my website .. notesandpens.com I cant see any text in my contact form section when I put my website on live server but on a local server its well and showing everything. I have to press Alt+A to find all the text on live server.

How I attach both files here :/ ??

this is my website .. notesandpens.com ]]>
CSS Help ionezation http://forums.devshed.com/css-help-116/textboxes-text-979650.html
Linux Needs EOF http://forums.devshed.com/linux-help/979649-linux-eof-new-post.html Fri, 15 Dec 2017 18:57:18 GMT I'm trying to run a snippet of code that I've messed with over and over and I can't seem to make it work.

I haven't tried turning one of the devisors into a variable and $((var1/var2)) but maybe I am just missing something simple.
Code:

#!/bin/sh


watch "echo -n '0: CPU Frequency: ' && echo -n $((sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq /1000)) && echo 'Mhz'
 && echo -n '1: CPU Frequency: ' && echo -n $((sudo cat /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq /1000)) && echo 'Mhz'
 && echo -n '2: CPU Frequency: ' && echo -n $((sudo cat /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_cur_freq /1000)) && echo 'Mhz'
 && echo -n '3: CPU Frequency: ' && echo -n $((sudo cat /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_cur_freq /1000)) && echo 'Mhz'
 && echo -n '4: CPU Frequency: ' && echo -n $((sudo cat /sys/devices/system/cpu/cpu4/cpufreq/cpuinfo_cur_freq /1000)) && echo 'Mhz'
 && echo -n '5: CPU Frequency: ' && echo -n $((sudo cat /sys/devices/system/cpu/cpu5/cpufreq/cpuinfo_cur_freq /1000)) && echo 'Mhz'
 && echo -n '6: CPU Frequency: ' && echo -n $((sudo cat /sys/devices/system/cpu/cpu6/cpufreq/cpuinfo_cur_freq /1000)) && echo 'Mhz'
 && echo -n '7: CPU Frequency: ' && echo -n $((sudo cat /sys/devices/system/cpu/cpu7/cpufreq/cpuinfo_cur_freq /1000)) && echo 'Mhz'
 && echo -n 'TEMP: ' && sudo cat /sys/devices/virtual/thermal/thermal_zone0/temp"

Can someone give me some insight?
Ubantu keeps telling me that it needs an EOF and "sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq /1000"
Thanks. ]]>
Linux Help additude http://forums.devshed.com/linux-help-33/linux-eof-979649.html
Prior Strengthen and Security towards Web Hosting Business http://forums.devshed.com/security-cryptography/979648-prior-strengthen-security-towards-web-hosting-business-new-post.html Fri, 15 Dec 2017 11:15:10 GMT Here is the prior strengthen and security towards Web Hosting Business. This assist to protect from Cyber-attacks against business resources and essential applications. Visit VPS9Networks blog to know completely on this security info. Here is the prior strengthen and security towards Web Hosting Business. This assist to protect from Cyber-attacks against business resources and essential applications. Visit VPS9Networks blog to know completely on this security info. ]]> Security and Cryptography Shwethapatel http://forums.devshed.com/security-cryptography-17/prior-strengthen-security-towards-web-hosting-business-979648.html Dating app architecture http://forums.devshed.com/mobile-programming/979647-dating-app-architecture-new-post.html Fri, 15 Dec 2017 10:38:56 GMT Hello! I was wondering if there any source codes, guides or something on dating apps? Hello!
I was wondering if there any source codes, guides or something on dating apps? ]]>
Mobile Programming whitefrekles http://forums.devshed.com/mobile-programming-20/dating-app-architecture-979647.html
VPS9.Networks Provides Best of Dedicated Servers http://forums.devshed.com/web-hosting-offers/979646-vps9-networks-provides-dedicated-servers-new-post.html Fri, 15 Dec 2017 09:36:31 GMT * Get 15% Lifetime Offer on Dedicated Servers by VPS9.Networks (https://www.vps9.net/)* Our USA Dedicated Servers are located three states of USA, Washington D.C, Dallas and San Francisco. We have RAW Dedicated Servers (https://www.vps9.net/usa-servers) with Power to Customize as per your Infrastructure needs. We offer with three different configurations based on Bandwidth Consumption. VPS9... Get 15% Lifetime Offer on Dedicated Servers by VPS9.Networks
Our USA Dedicated Servers are located three states of USA, Washington D.C, Dallas and San Francisco. We have RAW Dedicated Servers with Power to Customize as per your Infrastructure needs. We offer with three different configurations based on Bandwidth Consumption. VPS9 offers wide range of choice on RAM, SSD, Hard Drives and Bandwidth Options.

Best of Dedicated Server
- Easy-to-Use Panel
- Power Reboots
- IPMI/KVM Access
- 99.99% Uptime Guarantee
- Fully customized
- 24/7 Pro-Active Support

Best of Dedicated Servers Plans
Server : HP DL120G7
Processor : 1x Intel Dual-Core G850
RAM : 4GB
HDD : 4x1TB
Port : 1Gbps
Bandwidth : 100TB
Price : 94.99 Euros/Month
> Buy <

Best of Dedicated Servers Plans
Server : HP DL120G6
Processor : 1x Intel Quad-Core Xeon X3440
RAM : 16GB
HDD : 4x1TB
Port : 1Gbps
Bandwidth : 100TB
Price : 98.99 Euros/Month
> Buy <

Best Addons with Dedicated Servers
''''''''''''''''''''''''
cPanel/WHM Panel : € 32.00 /mo.
Parallels Plesk : € 10.99 /mo.
Parallels Plesk : € 14.99 /mo.
Direct Admin : € 30.00 /mo.
for more Information go with provided link on Dedicated Servers

Payment Methods: Payza, PayPal, EBS, PerfectMoney, Web Money.
Support Fields:
* Live Support, Skype
* Email Support

Thank You. ]]>
Web Hosting Offers vps9 http://forums.devshed.com/web-hosting-offers-100/vps9-networks-provides-dedicated-servers-979646.html
Starting at $22.95/Mo TEMOK Offers USA Linux VPS Hosting | Full Root Access http://forums.devshed.com/web-hosting-offers/979645-starting-22-95-mo-temok-offers-usa-linux-vps-hosting-root-access-new-post.html Fri, 15 Dec 2017 07:24:26 GMT *Temok (https://www.temok.com)* is providing premium Web Hosting solutions since 2014. Our Objective at Temok is to always deliver top quality managed hosting services at the lowest possible rate along with the highest possible client satisfaction. Our Virtual Private Servers are setup on powerful and effective main nodes with top-quality connectivity to make certain that each VPS produces... Temok is providing premium Web Hosting solutions since 2014. Our Objective at Temok is to always deliver top quality managed hosting services at the lowest possible rate along with the highest possible client satisfaction. Our Virtual Private Servers are setup on powerful and effective main nodes with top-quality connectivity to make certain that each VPS produces optimum efficiency and gives the freedom to run large websites and install third party apps with ease. In terms of VPS hosting management is concerned, all of the VPS Hosting packages are fully managed*. VPS hosting management comprises of setup, software installation, security supervision and 24/7 Support that helps clients focus far more on the development of their organization.


At the moment we are offering four different USA Linux VPS Hosting Plans in an effort to make sure that we have something for everyone. Below you will find some details of these plans.

⎰⎰ USA Linux VPS Hosting Starter Plan ⎱⎱

⋆ RAM: 1GB
⋆ Raid Protected Storage: 40GB
⋆ CPU: 2 CPU Cores
⋆ Premium Bandwidth: 1000GB
⋆ Ethernet Port Speed: 1Gigabit
⋆ Full Root SSH Access
⋆ IPv6 Addresses Included
⋆ Free Weekly Backup
⋆ XEN Virtualization
⋆ Instant Setup Time
⋆ Price: $22.95/Month ⦒ Order Starter Plan

⎰⎰ USA Linux VPS Hosting Premium Plan ⎱⎱

⋆ RAM: 2GB
⋆ Raid Protected Storage: 80GB
⋆ CPU: 3 CPU Cores
⋆ Premium Bandwidth: 2000GB
⋆ Ethernet Port Speed: 1Gigabit
⋆ Full Root SSH Access
⋆ IPv6 Addresses Included
⋆ Free Weekly Backup
⋆ XEN Virtualization
⋆ Instant Setup Time
⋆ Price: $30.99/Month ⦒ Order Premium Plan

⎰⎰ USA Linux VPS Hosting Business Plan ⎱⎱

⋆ RAM: 3GB
⋆ Raid Protected Storage: 120GB
⋆ CPU: 4 CPU Cores
⋆ Premium Bandwidth: 3000GB
⋆ Ethernet Port Speed: 1Gigabit
⋆ Full Root SSH Access
⋆ IPv6 Addresses Included
⋆ Free Weekly Backup
⋆ XEN Virtualization
⋆ Instant Setup Time
⋆ Price: $48.95/Month ⦒ Order Business Plan

⎰⎰ USA Linux VPS Hosting First-Class Plan ⎱⎱

⋆ RAM: 4GB
⋆ Raid Protected Storage: 160GB
⋆ CPU: 6 CPU Cores
⋆ Premium Bandwidth: 5000GB
⋆ Ethernet Port Speed: 1Gigabit
⋆ Full Root SSH Access
⋆ IPv6 Addresses Included
⋆ Free Weekly Backup
⋆ XEN Virtualization
⋆ Instant Setup Time
⋆ Price: $64.95/Month ⦒ Order First Class Plan

⎰⎰ Special Features ⎱⎱

⋆ 24/7 Technical Support
⋆ Fully Managed Servers
⋆ Free OS reinstall
⋆ Free Reboots
⋆ Lifetime Hardware Guarantee
⋆ 99.9% Network Uptime
⋆ Powerful Latest Processors
⋆ Full Root Access

The individuals who work at Temok are from the business and the majority of them have more than eight years experience in the web hosting business. Our people are in fact our primary force and we are constantly investing in fresh people who have fresh recommendations.

⋆ Fully Managed service is included with VPS accounts that have a control panel installed (cPanel or DirectAdmin).
⋆ 1 CPU Core has minimum 2.0Ghz
⋆ Port Speed is shared between VPS on Main Node.TemokHost Dedicated Servers


]]>
Web Hosting Offers tk-hassan http://forums.devshed.com/web-hosting-offers-100/starting-22-95-mo-temok-offers-usa-linux-vps-hosting-root-access-979645.html
makefile problem with 2 Dirs, 3 header Files http://forums.devshed.com/programming/979644-makefile-2-dirs-3-header-files-new-post.html Fri, 15 Dec 2017 06:26:25 GMT I have 2 Dirs and 3 header files stored in them, as follows: Dir A : contains Header files A and C Dir B : contains Header file B Dirs A and B are sub-directories of a dir named Apps (which is a subdir of some other dirs). Header file B #includes header file A. Header file C #includes header file B. I have 2 Dirs and 3 header files stored in them, as follows:

Dir A : contains Header files A and C
Dir B : contains Header file B

Dirs A and B are sub-directories of a dir named Apps (which is a subdir of some other dirs).

Header file B #includes header file A.
Header file C #includes header file B.

I have tester source files (.cpp) for header files A, B and C, named TestA, TestB and TestC respectively, in the same dirs as their corresponding header files.

The make file for TestC is shown below:

Code:

CPP = g++
OFLAG = -o
CFLAG = -std=c++11 -c

PROG1 = TestC

HC = C
HB = B
HA = A

HBDIR = ../B/
HADIR = ./

IHBDIR = -I$(HBDIR)
IHADIR = -I$(HADIR)

all : $(PROG1).o $(PROG1).exe run1

$(PROG1).o : $(PROG1).cpp $(HADIR)$(HC).h $(HBDIR)$(HB).h $(HADIR)$(HA).h
        $(CPP) $(CFLAG) $(IHADIR) $(IHBDIR) $<

$(PROG1).exe : $(PROG1).o
        $(CPP) $(OFLAG) $@ $^

run1:
        $(PROG1)


This make file is unable to locate header file A (which is #included by header file B) and gives the following error:

[output]
In file ...
../B/B.h fatal error: A.h : no such file or directory
#include "A.h"
compilation terminated
[/output]

Evidently, make is searching for A.h in B.h's dir (since B.h #includes A.h). However, I have defined the symbol HADIR (as ./), which should have caused make to search in the default dir, which is Dir A.

It works properly if I define HADIR as ../A. But I don't understand why I should do that.

Why does this failure occur?

Thanks. ]]>
C Programming SSteven http://forums.devshed.com/programming-42/makefile-2-dirs-3-header-files-979644.html
Cheap Windows Plesk Shared Web Hosting 10% OFF - Hostripples! http://forums.devshed.com/web-hosting-offers/979643-cheap-windows-plesk-shared-web-hosting-10-hostripples-new-post.html Fri, 15 Dec 2017 05:58:11 GMT Hostripples Windows Web Hosting offers the power and flexibility of Parallels Plesk Panel, IIS (Internet Information Services), Microsoft SQL Server 2008 R2, and a wide variety of other hosting features such as ASP and ASP.Net for a low price. *SMART PLAN - $2/Month* Unlimited Web Space Unlimited Monthly Bandwidth Free CloudFlare Free Setup Fee 5 Sub Domains 24 x 7 Live Support Buy Now!... Hostripples Windows Web Hosting offers the power and flexibility of Parallels Plesk Panel, IIS (Internet Information Services), Microsoft SQL Server 2008 R2, and a wide variety of other hosting features such as ASP and ASP.Net for a low price.

SMART PLAN - $2/Month
Unlimited Web Space
Unlimited Monthly Bandwidth
Free CloudFlare
Free Setup Fee
5 Sub Domains
24 x 7 Live Support

Buy Now!

BUSINESS PLAN - $7/Month
Unlimited Web Space
Unlimited Monthly Bandwidth
Free CloudFlare
Free Setup Fee
30 Sub Domains
24 x 7 Live Support

Buy Now!

ENTERPRISE PLAN - $12/Month
Unlimited Web Space
Unlimited Monthly Bandwidth
Free CloudFlare
Free Setup Fee
Unlimited Sub Domains
24 x 7 Live Support

Buy Now!

Why choose Hostripples?
Instant Setup
Easy usability
Value for money
24 x 7 customer service
Unmatched server performance


Visit:- Best Windows Plesk Shared Web Hosting

Coupon Code: WINSH10OFF

It’s not that we are bragging about our services, our customers say it all!

Hurry up and get Hostripples – the one-stop solution for your web hosting requirements!

Hostripples - Affordable web hosting
Hostripples.com Cheap Hosting | Unlimited Bandwidth | Unlimited Space | Domain Name Registration

Connect with us: Facebook | Twitter | LinkedIn

Hostripples - Affordable web hosting
http://hostripples.com/
http://hostripples.in/
http://hostripples.co.uk/
https://myhostseo.com/
Hostripples.com $1 Unlimited Hosting | $2 Unlimited Windows Hosting | Unlimited Bandwidth | Unlimited Space | Domain Name Registration ]]>
Web Hosting Offers hi5s2arp http://forums.devshed.com/web-hosting-offers-100/cheap-windows-plesk-shared-web-hosting-10-hostripples-979643.html
<![CDATA[[Python 3 + PIL, Tkinter] Problems with filters and save export, help needed!]]> http://forums.devshed.com/python-programming/979642-python-3-pil-tkinter-filters-save-export-help-new-post.html Thu, 14 Dec 2017 21:06:05 GMT Hey Python Programmers... I try to create an image editor, to test my python knowledge.... but i get two problems: 1) The Filters in images are not showing... 2) The image (img.) you save is empty... (see def export() function)... *This is my script:* Code: Hey Python Programmers...

I try to create an image editor, to test my python knowledge.... but i get two problems:
1) The Filters in images are not showing...
2) The image (img.) you save is empty... (see def export() function)...


This is my script:
Code:

from tkinter import *
from tkinter import ttk
from tkinter.filedialog import askopenfilename, asksaveasfile
from PIL import Image, ImageTk
from PIL import ImageFilter

main = Tk()

filename_error = 'No File Imported...'


def Open():
    folder = askopenfilename(parent = main, initialdir = 'C:/', filetypes = [('PNG Files', '*.png')], title = "Open File")

    try:
        with open(folder) as filename:

            listbox.insert(END, str(filename.name))
            print(filename.name)

            img = Image.open(folder)
            showimage = ImageTk.PhotoImage(img)
            photo = Label(main, image = showimage)
            photo.image = showimage
            photo.pack(padx = 10, pady = 12, side = RIGHT)
           

            def tool_Blur():

                try:
                    blur_filter = img.filter(ImageFilter.BLUR)
                    show = ImageTk.PhotoImage(img)
                    blur = Label(main, image = show)
                    blur.image = show
                    blur.pack(padx = 10, pady = 12, side = RIGHT)
                    print('Tools/Blur: ', img.filter)

                except:
                    print('Tools/Blur: ', filename_error)

            def tool_Emboss():
   
                try:
                    emb_filter = img.filter(ImageFilter.EMBOSS)
                    show = ImageTk.PhotoImage(img)
                    emb = Label(main, image = show)
                    emb.image = show
                    emb.pack(padx = 10, pady = 12, side = RIGHT)
                    print('Tools/Emboss: ', img.filter)

                except:
                    print('Tools/Emboss: ', filename_error)

            def tool_Contour():

                try:
                    cont_filter = img.filter(ImageFilter.CONTOUR)
                    show = ImageTk.PhotoImage(img)
                    cont = Label(main, image = show)
                    cont.image = show
                    cont.pack(padx = 10, pady = 12, side = RIGHT)
                    print('Tools/Contour: ', img.filter)
       
                except:
                    print('Tools/Contour: ', filename_error)

            def Export():
                output = asksaveasfile(mode = 'w', parent = main, initialdir = 'C:/', filetypes = [('PNG Files', '*.png')], title = 'Export File')

                try:
                    print(saveimage)

                    saveimage = img.save(output, filetypes).convert('RGB')
                    saveimage.write(output)

                    with open(output, mode) as savedfile:
                        print('Saved: ', savedfile.name)

                    saveimage.close()

                       

                except:
                    print('Images not Saved...')




            exp = Menu(menu, tearoff=0)
            exp.add_command(label = 'Export', command = Export)
            menu.add_cascade(label = 'Image', menu = exp)

            tool = Menu(menu, tearoff=0)
            tool.add_command(label = 'Blur', command = tool_Blur)
            tool.add_command(label = 'Emboss', command = tool_Emboss)
            tool.add_command(label = 'Contour', command = tool_Contour)
            menu.add_cascade(label = 'Tools', menu = tool)

    except:
        print('File not Exit...')
   

def Exit():
    print("Exit...")
    exit()


Title = main.title('AVI File Loader')
label = ttk.Label(main, text = 'Load Movies')
label.pack()

menu = Menu(main)
main.geometry("150x250+300+300")

file_label = Label(main, text = 'Files')
file_label.pack()

file = Menu(menu, tearoff=0)
file.add_command(label = 'Open', command = Open)
file.add_command(label = 'Exit', command = Exit)
menu.add_cascade(label = 'File', menu = file)

main.config(menu=menu)


scrollbar = Scrollbar(main, orient = VERTICAL)
scrollbar.pack(side = LEFT)

listbox = Listbox(main, yscrollcommand = scrollbar.set)
listbox.pack(padx = 4, pady = 16, side = LEFT)
scrollbar.config(command = listbox.yview)



main.mainloop()

Can anyone correct my code, pleace... so i can expiriment with it ?...
Can you fix the two problems... just first test my program and see what the problems
are ?... to give me the just code ?... The image thad you save with my export menu tool
is just empty... it must be the edited image img. ... Can you fix the two problems ?...

Thanks for help, Jamie. ]]>
Python Programming JamieVanCadsand http://forums.devshed.com/python-programming-11/python-3-pil-tkinter-filters-save-export-help-979642.html
<![CDATA[[Python 3 + Tkinter] Diffrence Style Colors, Error Found!]]> http://forums.devshed.com/python-programming/979641-python-3-tkinter-diffrence-style-colors-error-found-new-post.html Thu, 14 Dec 2017 16:23:17 GMT Hey Python Programmers... I try to create an menu thad can change the color of my title... *This is my code (Tkinter, Python 3):* Code: --------- from tkinter import * from tkinter import ttk Hey Python Programmers...

I try to create an menu thad can change the color of my title...

This is my code (Tkinter, Python 3):
Code:

from tkinter import *
from tkinter import ttk
from tkinter.filedialog import askopenfilename

main = Tk()
main.styles['red', 'green', 'yellow', 'blue', 'black']

def Open():
    name = askopenfilename(initialdir = 'C:/', filetypes = [('AVI Files', '*.avi')], title = "Open File")

    print(name)

    try:
        with open(name) as filename:

            listbox.insert(END, str(filename.name))
            print(filename.name)

    except:
        print("Session Failed !")


def Exit():
    print("Exit...")
    exit()


Title = main.title('AVI File Loader')
label = ttk.Label(main, text = 'Load Movies', background = defeult_style)
label.defeult_style = styles[0]
label.pack()

menu = Menu(main)
main.config(menu=menu)
main.geometry("150x250+300+300")

file_label = Label(main, text = 'Files')
file_label.pack()

file = Menu(menu)
file.add_command(label = 'Open', command = Open)
file.add_command(label = 'Exit', command = Exit)
menu.add_cascade(label = 'File', menu = file)

style = Menu(menu)
style.add_command(label = 'Red', command = label.styles[0])
style.add_command(label = 'Green', command = label.styles[1])
style.add_command(label = 'Yellow', command = label.styles[2])
style.add_command(label = 'Blue', command = label.styles[3])
style.add_command(label = 'Black', command = label.styles[4])
menu.add_cascade(label = 'Styles', menu = style)

listbox = Listbox(main)
listbox.pack(fill = BOTH, expand = 1)


main.mainloop()

I want expiriment with user preference like tools... thad can chance things like the style
of buttons, menu's, widget, etc... this is my first code thad must make my program
changeble... bit if i run my script, i get this error:

Quote:

Traceback (most recent call last):
File "C:/Users/Gebruiker/Desktop/AVILoader.py", line 6, in <module>
main.styles['red', 'green', 'yellow', 'blue', 'black']
File "C:\Users\Gebruiker\Desktop\Software\Python\Ware\lib\tkinter\__init__.py", line 2095, in __getattr__
return getattr(self.tk, attr)
AttributeError: '_tkinter.tkapp' object has no attribute 'styles'
This is what i means...

Can anyone correct my code please, so i can expiriment with it...
Thanks for help, Jamie. ]]>
Python Programming JamieVanCadsand http://forums.devshed.com/python-programming-11/python-3-tkinter-diffrence-style-colors-error-found-979641.html