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, 23 Sep 2017 21:50:28 GMT vBulletin 60 http://forums.devshed.com/images/misc/rss.png Dev Shed Forums http://forums.devshed.com/ Centering images http://forums.devshed.com/css-help/979084-centering-images-new-post.html Sat, 23 Sep 2017 07:57:12 GMT I'm using the following to center images on a page:
Code:

.center {
  position: fixed;
  top: 50%;
  left: 50%;
  /* bring your own prefixes */
  transform: translate(-50%, -50%);
}

But they are not quite centered. Or is my monitor f'd up?

I'd like to have some text directly below the "Faith and Vengeance" image but over the background cross image, and that is a problem to solve. But really, the centering thing is vexing me.

See here: https://botteronet.com/fandv/ ]]>
CSS Help Arty Zifferelli http://forums.devshed.com/css-help-116/centering-images-979084.html
How to improve my local listing sites SEO to get ranking and traffic http://forums.devshed.com/search-engine-optimization/979083-improve-local-listing-sites-seo-ranking-traffic-new-post.html Sat, 23 Sep 2017 05:56:50 GMT How to improve my local listing sites ranking and traffic within next 3 month. currently call me India is getting 100 unique visitor per day. Any strategy.. How to improve my local listing sites ranking and traffic within next 3 month. currently call me India is getting 100 unique visitor per day. Any strategy.. ]]> Search Engine Optimization Ramaner http://forums.devshed.com/search-engine-optimization-108/improve-local-listing-sites-seo-ranking-traffic-979083.html 10% OFF On Fully Managed Premium WordPress Web Hosting - Hostripples India! http://forums.devshed.com/web-hosting-offers/979082-10-managed-premium-wordpress-web-hosting-hostripples-india-new-post.html Sat, 23 Sep 2017 05:32:41 GMT WordPress is an award-winning blog platform that we recommend for blogging. Hostripples is an award-winning web hosting company, and hundreds of thousands of people trust Hostripples for WordPress Hosting. With this combination, you can have your very own self-hosted WordPress blog with your own domain. Get started with your own WordPress installation with custom themes, plugins, and your own... WordPress is an award-winning blog platform that we recommend for blogging. Hostripples is an award-winning web hosting company, and hundreds of thousands of people trust Hostripples for WordPress Hosting. With this combination, you can have your very own self-hosted WordPress blog with your own domain. Get started with your own WordPress installation with custom themes, plugins, and your own domain name with Hostripples today!

100% WordPress Compatible Hosting
• Exceeds WordPress minimum requirements
• 15 Different Geo Locations worldwide to Host
• Latest Versions of Apache, MySQL, & PHP
• Installs the newest WordPress Version
• PHP runs as suPHP for increased Wordpress security
• CloudFlare Availability
• CloudLinux Security With CageFS
• Free SiteApps And Atrracta SEO Tools
• Free Migration


Smart Plan - Rs 65/Month
Unlimited WebSpace
Unlimited Bandwidth
1 GB RAM
15 Sub Domains
5 Parked Domains
Unlimited FTP Accounts
5 MySQL Databases
Unlimited Email Accounts
24x7 Live Support

BUY NOW!

Business Plan - Rs 65/Month
Unlimited WebSpace
Unlimited Bandwidth
3 GB RAM
50 Sub Domains
25 Parked Domains
Unlimited FTP Accounts
25 MySQL Databases
Unlimited Email Accounts
24x7 Live Support

BUY NOW!

Enterprise Plan - Rs 65/Month
Unlimited WebSpace
Unlimited Bandwidth
5 GB RAM
Unlimited Sub Domains
Unlimited Parked Domains
Unlimited FTP Accounts
Unlimited MySQL Databases
Unlimited Email Accounts
24x7 Live Support

BUY NOW!

Why choose Hostripples?
Instant Setup
Easy usability
Value for money
Customizable VPS environment
Unmatched server performance
Free data migration


Visit:- Cheapest WordPress Hosting

Coupon Code: WP10OFF

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 WordPress web hosting requirements!

Hostripples - Affordable web hosting
Hostripples.in Rs. 35 Unlimited Hosting | Unlimited Bandwidth | Unlimited Space | Domain Name Registration

Connect with us: Facebook | Twitter | LinkedIn

Hostripples - Affordable web hosting
http://hostripples.in/
http://hostripples.com/
http://hostripples.co.uk/
https://myhostseo.com/
Hostripples.in Rs.35 Unlimited Hosting ]]>
Web Hosting Offers hi5s2arp http://forums.devshed.com/web-hosting-offers-100/10-managed-premium-wordpress-web-hosting-hostripples-india-979082.html
How to get the webpage with socks5 proxy in python3? http://forums.devshed.com/python-programming/979081-webpage-socks5-proxy-python3-new-post.html Sat, 23 Sep 2017 01:55:03 GMT sudo lsof -i:1080
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sslocal 1795 root 4u IPv4 16233 0t0 TCP localhost:socks (LISTEN)
sslocal 1795 root 5u IPv4 16234 0t0 UDP localhost:socks

An app was listening on localhost:1080,it is ready for curl's socks5 proxy.
The app provided socks5 proxy service is shadowsocks client on my pc.

curl can work with socks proxy in my pc.

target="target_url_youtube"
curl --socks5-hostname 127.0.0.1:1080 $target -o /tmp/sample

The target url can be downloaded with scoks5 proxy in curl.

shadowsocks client------->shadowsocks server--->target_url_youtube
127.0.0.1:1080 1xx.1xx.1xx.1xx:port target_url_youtube

Notice:
All the packages from 127.0.0.1:1080 to 1xx.1xx.1xx.1xx:port is sent and received by shadowsocks client and server.
curl just sent packages to 127.0.0.1:1080.


Now i want to get the target webpage with socks proxy in python3.

the first try :

import urllib.request
target="target_url_youtubr"
proxy_support = urllib.request.ProxyHandler({'sock5': 'localhost:1080'})
opener = urllib.request.build_opener(proxy_support)
urllib.request.install_opener(opener)
web = urllib.request.urlopen(target).read()
print(web)

The error info:
sock.connect(sa)
OSError: [Errno 101] Network is unreachable

Notice:
It is no use to write {'sock5': 'localhost:1080'} as {'sock5': '127.0.0.1:1080'},i have verified it.

the second try:

import socks
import socket
socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "127.0.0.1", 1080)
socket.socket = socks.socksocket
import urllib.request
target="target_url_youtubr"
print(urllib.request.urlopen('target').read())

error info:
raise BadStatusLine(line)
http.client.BadStatusLine:

The third try:

import socks
import socket
from urllib import request
socks.set_default_proxy(socks.SOCKS5, "localhost", 1080)
socket.socket = socks.socksocket
target="target_url_youtube"
r = request.urlopen(url)
print(r.read())

ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:600)
urllib.error.URLError: <urlopen error EOF occurred in violation of protocol (_ssl.c:600)>

Why data packet can't send via localhost:1080 and get the target_url_youtube's content,but curl can?
How to fix my python3 code for socks5 proxy?

shadowsocks client---------->shadowsocks server------>target_url_youtube
127.0.0.1:1080 1xx.1xx.1xx.1xx:port target_url_youtube
`curl --socks5-hostname 127.0.0.1:1080 $target -o /tmp/sample` can do the job.
why all the three python codes can't do?
How to fix it? ]]>
Python Programming whaha http://forums.devshed.com/python-programming-11/webpage-socks5-proxy-python3-979081.html
Parsing a pipe delimited file into an array http://forums.devshed.com/php-development/979080-parsing-pipe-delimited-file-array-new-post.html Fri, 22 Sep 2017 19:55:55 GMT I have a .lst file with user values separated by pipe characters in this format: user1 | attribute1 | value1 user1 | attribute2 | value2 user1 | attribute3 | value3 user2 | attribute1 | value1 user2 | attribute2 | value2 user2 | attribute3 | value3 I need to make an array out of this data and if possible parse it as JSON to be used with angular I have a .lst file with user values separated by pipe characters in this format:

user1 | attribute1 | value1
user1 | attribute2 | value2
user1 | attribute3 | value3
user2 | attribute1 | value1
user2 | attribute2 | value2
user2 | attribute3 | value3

I need to make an array out of this data and if possible parse it as JSON to be used with angular

I have currently used:

Code:

$data = file('C:\path-to-list\file.lst');

foreach($data as $value) {
        $fields=explode('|', $value);
        foreach( $fields as $field){
               
                echo $field."<br>";
       
        }
}

I need some way to separate the users into their own objects, but I am fairly new with PHP any help would be appreciated! ]]>
PHP Development svoltmer http://forums.devshed.com/php-development-5/parsing-pipe-delimited-file-array-979080.html
Just Jesus http://forums.devshed.com/dev-shed-lounge/979079-jesus-new-post.html Fri, 22 Sep 2017 17:20:50 GMT For a variety of reasons I bailed on Comcast and now have CenturyLink. The main reason was Comcast was bleeding me dry, but there were other considerations also. There may come a day when I get to the same point with CenturyLink, and then I'll switch back. Whoever lays fiber optic to my door gets me first.

ANYWAY...

I'm running Linux on my home machine, of course.

Any way to get rid of the ****ing CenturyLink search **** that loads when ever I have spelling mistakes in the browser bar?

Probably a modem setting because I don't see any options in my CenturyLink account?

The modem appears to be a "Technicolor C2100T". Never heard of it. ]]>
Dev Shed Lounge Arty Zifferelli http://forums.devshed.com/dev-shed-lounge-26/jesus-979079.html
Wide Range of Russian Dedicated Servers From TEMOK Starting at $171/Mo | Free Reboots http://forums.devshed.com/web-hosting-offers/979078-wide-range-russian-dedicated-servers-temok-starting-171-mo-free-reboots-new-post.html Fri, 22 Sep 2017 09:54:16 GMT *Temok (https://www.temok.com)* Dedicated Server is more than just a server, it is a fully managed solution made to take your business to the next level. As an added bonus, we include cPanel free of charge with every dedicated server. Your server will be provisioned, safe, and typically provided within 24 hours of purchase. Having a dedicated server will provide your sites with a higher level of... Temok Dedicated Server is more than just a server, it is a fully managed solution made to take your business to the next level. As an added bonus, we include cPanel free of charge with every dedicated server. Your server will be provisioned, safe, and typically provided within 24 hours of purchase. Having a dedicated server will provide your sites with a higher level of security, speed, and uptime. You will have the capability to go far beyond the resource limitations found in a shared hosting environment.


Below you will find some details of our current range Russian Dedicated Servers along with the price & links. All you have to do is to choose the desired plan according to your need & budget.

⋑⋑ Dedicated Hosting Russia Plan I ⋐⋐

⋄ Dual Intel Core i3-4360 3.7GHz (4 core, 8 Threads)
⋄ RAM: 8GB DDR3
⋄ Hard Drive(s): 2 X 100GB SSD
⋄ Bandwidth: 1TB
⋄ Dedicated IPv4 Address: 1
⋄ Set-up Fee: $49.95
⋄ Price: $171/Month ≻≻ Order Plan I Now ≺≺

⋑⋑ Dedicated Hosting Russia Plan II ⋐⋐

⋄ Intel Xeon E3-1230v3, 3.3GHz (4 Core, 8 Thread)
⋄ RAM: 8GB DDR3
⋄ Hard Drive(s): 2 X 100GB SSD
⋄ Bandwidth: 1TB
⋄ Dedicated IPv4 Address: 1
⋄ Set-up Fee: $49.95
⋄ Monthly Price: $195 ≻≻ Order Plan II Now ≺≺

⋑⋑ Dedicated Hosting Russia Plan III ⋐⋐

⋄ Intel Xeon E5-1660v3, 3.0GHZ (8 core, 16 Threads)
⋄ RAM: 4GB DDR3
⋄ Hard Drive(s): 2 X 100GB SSD
⋄ Bandwidth: 3TB
⋄ Dedicated IPv4 Address: 1
⋄ Set-up Fee: $49.95
⋄ Monthly Price: $200 ≻≻ Order Plan III Now ≺≺

⋑⋑ Dedicated Hosting Russia Plan IV ⋐⋐

⋄ Intel Xeon E5-1650v3, 3.7GHz (6 core, 12 threads)
⋄ RAM: 4GB DDR3
⋄ Hard Drive(s): 2 X 100GB SSD
⋄ Bandwidth: 1TB
⋄ Dedicated IPv4 Address: 1
⋄ Set-up Fee: $49.95
⋄ Monthly Price: $220 ≻≻ Order Plan IV Now ≺≺

⋑⋑ Dedicated Hosting Russia Plan V ⋐⋐

⋄ Dual Intel E5-2620v3, 2.4GHz (12 core, 24 Threads)
⋄ RAM: 4GB DDR3
⋄ Hard Drive(s): 2 X 100GB SSD
⋄ Bandwidth: 1TB
⋄ Dedicated IPv4 Address: 1
⋄ Set-up Fee: $49.95
⋄ Monthly Price: $320 ≻≻ Order Plan V Now ≺≺

⋑⋑ Dedicated Hosting Russia Plan VI ⋐⋐

⋄ Dual Intel Xeon E5-2640v3, 2.6GHz (16 core 32 threads)
⋄ RAM: 4GB DDR3
⋄ Hard Drive(s): 2 X 100GB SSD
⋄ Bandwidth: 3TB
⋄ Dedicated IPv4 Address: 1
⋄ Set-up Fee: $49.95
⋄ Monthly Price: $340 ≻≻ Order Plan VI Now ≺≺

Your happiness types an important part of our mission. We try to give our customers top priority and promise that our services give you 100% satisfaction. Our company specialist logo and web designers understand the requirement of your business and create designs that efficiently signify the philosophy of your business, thereby, crafting an enviable brand picture.


Contact Info:
Website: Temok.com
Email: sales(at)temok.com
Skype: temok.sales
Twitter: temok_1
]]>
Web Hosting Offers tk-hassan http://forums.devshed.com/web-hosting-offers-100/wide-range-russian-dedicated-servers-temok-starting-171-mo-free-reboots-979078.html
Multiple actions in a Javascript comand http://forums.devshed.com/javascript-development/979077-multiple-actions-javascript-comand-new-post.html Fri, 22 Sep 2017 09:52:04 GMT Client JS