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 Wed, 18 Oct 2017 07:34:16 GMT vBulletin 60 http://forums.devshed.com/images/misc/rss.png Dev Shed Forums http://forums.devshed.com/ Banned Words Filter http://forums.devshed.com/php-development/979276-banned-words-filter-new-post.html Wed, 18 Oct 2017 00:18:19 GMT Folks,

Q1. Do you consider the following code to be safe & sound to substitute banned words found on the page ?
If not, then maybe I try str_replace instead of preg_match ?

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);
?>

Q2. How would you code it yourself ? I mean, may I see a code sample ? I've done my best.

Q3. If I change this:

PHP Code:

// 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'); 

to this:

PHP Code:

// 3). Set cURL options.
$url "https://www.buzzfeed.com/mjs538/the-68-words-you-cant-say-on-tv?utm_term=.xlN0R1Go89#.pbdl8dYm3X";
curl_setopt($curlCURLOPT_URL"$url"); 

then it works fine. But, is it safe to do it like this ?

Q4. Where on Mini Proxy, on which line, would I add the banned words filter code (the code which you see in my Q1) or your banned words filter code so that, when banned words are found on the proxied pages, then the banned words are substituted ?

Folks, you're welcome to add a few lines of code onto the Mini Proxy so that the proxy users are blocked from viewing pages that contain banned words.
Mini Proxy is here:
https://github.com/josh****/miniProx.../miniProxy.php

Finally, kindly attach the script here so that I can get hold of your update and install it on my site. You're welcome to use the proxy regular and you'e welcome to invite others to use it to.
I've googled but no luck in finding a shared webhost who will allow me to run a web proxy. :banghead:
Therefore, you're welcome to recommend many. :wink:
I'll only hire the dedicated server once I've picked-up a lot of regular users. :D ]]>
PHP Development UniqueIdeaMan http://forums.devshed.com/php-development-5/banned-words-filter-979276.html
Point rotation function in javascript http://forums.devshed.com/game-development/979275-rotation-function-javascript-new-post.html Tue, 17 Oct 2017 13:39:41 GMT ]]> Writing a function to rotate a point in javascript:

Code:

<!doctype html>

<html>

        <head>
       
                <script>
                // ==============================================================
                // Test rotate_point()
                // ==============================================================
                function rotate_test() {
               
                        var x = 3;
                        var y = 3;
                        var degrees = 90;
                        var rotated_point = rotate_point(x, y, degrees);
                        console.log("Original point: (" + x + ", " + y + ")");
                        var msg = "Rotated point: (" + rotated_point[0] + ", ";
                        msg += rotated_point[1] + ")";
                        console.log(msg);
               
                        return;
                }
                // ==============================================================
                // Rotate a point (x, y) by degrees degrees.
                // Returns the coordinates of the rotated point as a two item
                // array in the format [x, y]
                // ==============================================================
                function rotate_point(x, y, degrees) {
               
                        // convert cartesian point to polar representation
                        var r = Math.sqrt((x * x) + (y * y));
                        var theta = Math.atan(y / x);
                        // add rotation degrees to polar coordinates
                        // (degrees must be converted to radians before addition?)
                        // 2 pi radians = 360 degrees
                        // pi radians = 180 degrees
                        // (pi / 180) radians = 1 degree
                        var radians = degrees * (Math.PI / 180);
                        theta += radians;                       
                        // account for rotation beyond 2 pi radians
                        // (i.e. one full revolution)
                        if (theta > Math.PI) {
                                var total_pi_multiples = Math.floor(theta / Math.PI);
                                var deduction = total_pi_multiples * Math.PI;
                                theta -= deduction;
                        }
                        // convert polar back to cartesian
                        // (adjust for positive/negative cos value, depending on
                        // quadrant? (cos is positive in the 1st and 4th quadrants?))
                        // i.e. cos is positive for the following ranges of theta;
                        //  0 degrees <= theta <=  90 degrees
                        // 270 degrees <= theta <= 360 degrees
                        // i.e.
                        //  0 pi <= theta <= pi / 2
                        // 3/2 pi <= theta <= 2 pi
                        // As theta is currently in radians, we'll use the radian units
                        var cos_theta = Math.cos(theta);
                        if ((cos_theta >= 0) && (cos_theta <= (Math.PI / 2))) {
                                cos_theta = Math.abs(cos_theta);
                        }
                        if ((cos_theta >= (Math.PI * 1.5)) && (cos_theta <= (Math.PI * 2))) {
                                cos_theta = Math.abs(cos_theta);
                        }
                       
                        // We'll need to adjust sin theta in a similar fashion to above with cos
                        // sin is positive in the first and second quadrants. Adjust accordingly.
                        var sin_theta = Math.sin(theta);
                        // two adjoining quadrants = one big semicircular segment to check
                        if ((sin_theta >= 0) && (sin_theta <= Math.PI))
                                sin_theta = Math.abs(sin_theta);
                        x = r * cos_theta;
                        y = r * sin_theta;

                        return [x, y];
                }
                // ==============================================================               
                </script>
       
       
        </head>
       
        <body>
       
                <button onclick="rotate_test()">Rotate Test</button>
       
        </body>


</html>

Any ideas where I'm going wrong?

:) ]]>
Game Development Miktor http://forums.devshed.com/game-development-141/rotation-function-javascript-979275.html
<![CDATA[[1QCloud.com]★Amazing deal!★Lifetime 50% OFF★US Xen Cloud Servers★From $4.97/mo]]> http://forums.devshed.com/web-hosting-offers/979274-1qcloud-com-amazing-deal-lifetime-50-xen-cloud-servers-4-97-mo-new-post.html Tue, 17 Oct 2017 12:37:08 GMT ***SPECIAL OFFER! **** HURRY UP!* * Need an enterprise quality cloud server solution at costs that are BEYOND BELIEF? We’ll get you started in seconds!* A Reliable Cloud Server Provider *1QCloud.com* (http://www.1QCloud.com) is a cloud server provider devoted to bringing you the high quality cloud hosting services at low costs. We are a team of *Cisco, Red Hat, Debian, FreeBSD*...
**SPECIAL OFFER! **
HURRY UP!


Need an enterprise quality cloud server solution at costs that are BEYOND BELIEF? We’ll get you started in seconds!


A Reliable Cloud Server Provider

1QCloud.com is a cloud server provider devoted to bringing you the high quality cloud hosting services at low costs.
We are a team of Cisco, Red Hat, Debian, FreeBSD certified experts, with 10+ years of experience in implementing and managing IT infrastructures for small businesses and large enterprises.

Professional technical support 24/7 with the fastest response time is guaranteed.

Our cloud hosting infrastructure is based on powerful SuperMicro enterprise hardware. The data is stored in the most secure SSD grade RAID 10 storage systems that offer top-quality business agility and exceptional application uptime.
We are not using VZ - all our cloud servers are Xen-based, with guaranteed resource allocation.

Our equipment is located in the C7’s Salt Lake City Datacenter, which is a certified Tier III capacity enabling a seamless operation with 99.9% uptime.

Learn more about our hosting infrastructure with the unlimited security and reliability.

Cloud Server Features:

  • Instant deployment

  • Guaranteed resources

  • Easily scalable

  • 24/7 professional customer support

  • 99.9% uptime guarantee

  • 30 days money back guarantee

  • Availability, flexibility, self-healing and automatic failover with the industry-leading OnApp cloud platform

  • Extensive security and fail-safe redundancy in the certified Tier III datacenter

  • Full IPv6 support


OUTSTANDING SALE!

50% OFF FOR LIFE


coupon supply limited, HURRY while it lasts!

coupon code: 50OFF


We have 6 Plans to choose from:

1 unit
  • 1 core CPU
  • 1 GB RAM
  • 30 GB disk
  • traffic unlimited
  • $9.95/mo - $4.97/mo

    ORDER NOW

2 units
  • 1 core CPU
  • 2 GB RAM
  • 60 GB disk
  • traffic unlimited
  • $19.95/mo - $9.97/mo

    ORDER NOW

4 units
  • 1 core CPU
  • 4 GB RAM
  • 120 GB disk
  • traffic unlimited
  • $39.95/mo - $19.97/mo

    ORDER NOW

8 units
  • 2 core CPU
  • 8 GB RAM
  • 240 GB disk
  • traffic unlimited
  • $79.95/mo - $39.97/mo

    ORDER NOW

16 units
  • 4 core CPU
  • 16 GB RAM
  • 480 GB disk
  • traffic unlimited
  • $149.95/mo - $74.97/mo

    ORDER NOW

32 units
  • 8 core CPU
  • 32 GB RAM
  • 960 GB disk
  • traffic unlimited
  • $279.90/mo - $139.95/mo

    ORDER NOW


--------------------------------------------------------------------------
You can also check out some tests:

Speedtest result from a running cloud server

Download test

Speedtest hosted on a cloud server

Test host/IP:
test.1qcloud.com (185.72.156.4)
---------------------------------------------------------------------------


For additional details, contact us through our website http://www.1qcloud.com/
Thanks for visiting!
]]>
Web Hosting Offers 1Q Cloud http://forums.devshed.com/web-hosting-offers-100/1qcloud-com-amazing-deal-lifetime-50-xen-cloud-servers-4-97-mo-979274.html
<![CDATA[PyAudio Example program: [Errno Input overflowed] - CHANNELS]]> http://forums.devshed.com/python-programming/979273-pyaudio-example-program-errno-input-overflowed-channels-new-post.html Tue, 17 Oct 2017 10:19:39 GMT It seems there are more than 1 solution to this, including buffer size, sample rate etc, but I have not seen this one given elsewhere.

In case anyone is having problems running the pyaudio examples like I was please see if this is not your issue

I was running the "Record a few seconds of audio and save to a WAVE file" example program

The error I got was

Traceback (most recent call last):
File "rec_and_play.py", line 46, in <module>
data = input_stream.read(BUFFER_SIZE)
File "/usr/lib/python2.7/dist-packages/pyaudio.py", line 605, in read
return pa.read_stream(self._stream, num_frames)
IOError: [Errno Input overflowed] -9981

Code:

import audioop
To show more I placed this under 'for i in range(...)'
Code:

    data = input_stream.read(BUFFER_SIZE)
    mx = audioop.max(data, 2)
    print mx

The error appeared after a few (2-5) frames lengths were printed

please check the CHANNELS variable.
My audio was mono and it needed CHANNELS=1 in both input and output (if you are using the output). For my situation, this solved the problem.

Technically, of course, this is my error and not the fault of the program. ]]>
Python Programming ocpaul20 http://forums.devshed.com/python-programming-11/pyaudio-example-program-errno-input-overflowed-channels-979273.html
<![CDATA[♛[VPSnet.com] - Fast SSD VPS in Europe| From 2.10 $ 1GB RAM, 30-DAYS MONEY BACK♛]]> http://forums.devshed.com/web-hosting-offers/979272-vpsnet-com-fast-ssd-vps-europe-2-10-1gb-ram-30-days-money-new-post.html Tue, 17 Oct 2017 08:47:36 GMT *VPSNET.COM DELIVERS SECURE, RELIABLE AND AFFORDABLE VPS HOSTING SOLUTIONS* *VPSnet.com* (https://www.vpsnet.com/en) *offers reliable, affordable servers and has been specializing in the field of data centre services since 2007. By choosing the services of VPSnet.com, customers both reduce their expenditures and save time*. Running the own data centre, VPSnet.com controls the total...
VPSNET.COM DELIVERS SECURE, RELIABLE AND AFFORDABLE VPS HOSTING SOLUTIONS




VPSnet.com offers reliable, affordable servers and has been specializing in the field of data centre services since 2007.
By choosing the services of VPSnet.com, customers both reduce their expenditures and save time
.

Running the own data centre, VPSnet.com controls the total service provision process, so it can both provide complex services and ensure high service availability for a competitive price. Flexible solutions, long-term experience, a competitive service price and a constant improvement process – this is why You should be considered for choosing us.

At this time VPSnet.com has significantly increased VPS resources. From now on all VPS servers will have up to double resources for the same price:

VPS-1
  • 1GB RAM
  • 2Ghz/1 core CPU
  • 10GB SSD
  • 50Mbps uplink
  • Unlimited transfer
  • Daily Backups
  • 1x IPv4
  • /112 (65,536 IPs) IPv6
  • OpenVZ/Custom
  • $2.10/month
  • <CLICK HERE TO GET STARTED>

VPS-2
  • 2GB RAM
  • 3Ghz/1 core CPU
  • 15GB SSD
  • 80Mbps uplink
  • Unlimited transfer
  • Daily Backups
  • 1x IPv4
  • /112 (65,536 IPs) IPv6
  • OpenVZ/Custom
  • $3.1/month
  • <CLICK HERE TO GET STARTED>

VPS-3
  • 3GB RAM
  • 4Ghz/2 cores CPU
  • 20GB SSD
  • 100Mbps uplink
  • Unlimited transfer
  • Daily Backups
  • 1x IPv4
  • /112 (65,536 IPs) IPv6
  • OpenVZ/Custom
  • $4.19/month
  • <CLICK HERE TO GET STARTED>

VPS-4
  • 4GB RAM
  • 5Ghz/2 cores CPU
  • 30GB SSD
  • 100Mbps uplink
  • Unlimited transfer
  • Daily Backups
  • 1x IPv4
  • /112 (65,536 IPs) IPv6
  • OpenVZ/Custom
  • $5.77/month
  • <CLICK HERE TO GET STARTED>


Click here for more VPS plans


All VPS come with:
  • Instant activation
  • Daily backups
  • Professional support team
  • 30-day money-back guarantee
  • High frequency CPU cores (higher or equal to 3.4 ghz per core)
  • Easy to use control panel
  • Premium network
  • High quality equipment
  • TUN/TAP support
  • Manual reverse DNS (PTR) management
  • Ability to manage resources
  • Possibility to order/renew for 1 day
  • Get IPv6 address for free
  • Possibility to upgrade server resources in any time for free (trading resources with expiration date)
  • And more



Wide range of payment methods:
  • Credit/Debit cards
  • PayPal
  • WebMoney
  • E-banking systems
  • PaySera
  • SafetyPay
  • CashU
  • Bank wire transfer
  • SMS messages
  • And many others


Maximum availability, the best performance, and professional customer service
Allow us the opportunity to exceed your expectations



Terms of Service, Privacy Policy and other legal info can be found here


Have any questions? Click <Click Here> to get in touch and a friendly member of staff will get back to you as soon as possible!

Our other services:


Network information
Vilnius, Lithuania
Test IPv4: 91.211.244.3
Test IPv6: 2a05:7cc0::3


--
VPSnet.com Administration
UAB ESNET
https://www.vpsnet.com/ ]]>
Web Hosting Offers VPSnet http://forums.devshed.com/web-hosting-offers-100/vpsnet-com-fast-ssd-vps-europe-2-10-1gb-ram-30-days-money-979272.html
<![CDATA[.fileupload doesn't work on aws but works on local machine]]> http://forums.devshed.com/php-development/979271-fileupload-doesnt-aws-local-machine-new-post.html Tue, 17 Oct 2017 08:28:17 GMT Hey;

Hey I use Jquery uploader to upload file and respond back with json.

When I upload the file, on the local machine, it works fine and I see what upload/image prints.

However, when I deploy the same code online to aws and try it live, I only get "start: function ()" part working and looks like controller "upload", method "image" just does nothing.

I still get status 200 however I don't see any of the stuff I print in that controller!

How can I debug this?

Even when I comment everything in the controller I call via ajax, still it doesn't print anything online!

Thanks.


PHP Code:

public function image() {
       
        echo 
"It's here";

    } 

Code:

$('#background_image_front').fileupload(
            {
                dropZone: $("#cover_photo_drop"),
                url: '/upload/image',
                paramName: 'file',
                dataType: 'json',
                formData: {
                    type: 'sharetape'
            },
        start: function () { alert('Started');
            $('#cover_photo_progress').show();
            $('#cover_photo_progress').children('.progress-bar').css('width', 0);
            $('#cover_photo_message').hide();
        },
        done: function (e, data) { alert('Done 1');
        DO A BUNCH OF STUFF
        },
        progressall: function (e, data) {
            var progress = parseInt(data.loaded / data.total * 100, 10);
            $('#cover_photo_progress').show().children('.progress-bar').css('width', progress + '%');
        }
    }).prop('disabled', !$.support.fileInput)
        .parent().addClass($.support.fileInput ? undefined : 'disabled');

]]>
PHP Development English Breakfast Tea http://forums.devshed.com/php-development-5/fileupload-doesnt-aws-local-machine-979271.html
connecting to the overpass-endpoint with PHP http://forums.devshed.com/php-development/979270-connecting-overpass-endpoint-php-new-post.html Tue, 17 Oct 2017 08:10:04 GMT currently want to dive into php with some real world projects + connecting to the endpoint of Overpass. a list of comma seperated values - is this correct.... ? i want to translate the following overopass-turbo requests into a request that i run against the endpoint of the overpass-api ... like so, Code: currently want to dive into php with some real world projects +

connecting to the endpoint of Overpass.

a list of comma seperated values - is this correct.... ?

i want to translate the following overopass-turbo requests into a request that i run against the endpoint of the overpass-api ... like so,

Code:

$endpoint = 'http://overpass-api.de/api/interpreter';
i want to retrieve the data that i get with the following term -- that i use with the overpass-turbo-access;:
Code:

[out:csv(::id,::type,"name","addr:postcode","addr:city","addr:street","addr:housenumber","website"," contact:email=*")][timeout:600];
{{geocodeArea:Schweiz}}->.a;
( node(area.a)[amenity=hospital];
  way(area.a)[amenity=hospital];
  rel(area.a)[amenity=hospital];);
out;

so i have to port over the above mentioned code into the following approach:
Code:

# please do not stress this service, this example is for demonstration purposes only.
$endpoint = 'http://overpass-api.de/api/interpreter';
libxml_set_streams_context($context);
$start = microtime(true);

$result = simplexml_load_file($endpoint);
printf("Query returned %2\$d node(s) and took %1\$.5f seconds.\n\n", microtime(true) - $start, count($result->node));

 

// 2.) Work with the XML Result

any idea!? Look forward to hear from you ]]>
PHP Development gibraltar http://forums.devshed.com/php-development-5/connecting-overpass-endpoint-php-979270.html
Best France Linux SSD VPS Hosting - Hostripples! http://forums.devshed.com/web-hosting-offers/979269-france-linux-ssd-vps-hosting-hostripples-new-post.html Tue, 17 Oct 2017 05:17:18 GMT The VPS Cloud models are ideal for hosting professional production environments or critical applications. A hardware SLA is just one of the guarantees in place to provide you high availability and stable service right from the word go. *SSD VPS PLAN 1 - $20/Month* Guaranteed RAM : 2 GB HDD : 10 GB SSD Bandwidth : Unlimited traffic CPU Cores : 1 vCores Root Access : YES IPv4 : 1... The VPS Cloud models are ideal for hosting professional production environments or critical applications. A hardware SLA is just one of the guarantees in place to provide you high availability and stable service right from the word go.

SSD VPS PLAN 1 - $20/Month
Guaranteed RAM : 2 GB
HDD : 10 GB SSD
Bandwidth : Unlimited traffic
CPU Cores : 1 vCores
Root Access : YES
IPv4 : 1 IP
IPv6 : 1 IP

Buy Now!

SSD VPS PLAN 2 - $40/Month
Guaranteed RAM : 4 GB
HDD : 20 GB SSD
Bandwidth : Unlimited traffic
CPU Cores : 1 vCores
Root Access : YES
IPv4 : 1 IP
IPv6 : 1 IP

Buy Now!

SSD VPS PLAN 1 - $75/Month
Guaranteed RAM : 8 GB
HDD : 40 GB SSD
Bandwidth : Unlimited traffic
CPU Cores : 2 vCores
Root Access : YES
IPv4 : 1 IP
IPv6 : 1 IP

Buy Now!

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


Visit:- Best France Linux SSD VPS

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/france-linux-ssd-vps-hosting-hostripples-979269.html
Regex To Grab Domain http://forums.devshed.com/php-development/979268-regex-grab-domain-new-post.html Tue, 17 Oct 2017 00:36:58 GMT Folks, I need a regex to extract the domain name from any url. No matter what the url looks like. Whether it has more than one dot (2nd level, 3rd level, 4th level, 5th level, etc. level domain) and whether or not it has the http://, https://, www., etc.). In short, it must work on any url in the world. No matter what format the url is in aslong as the url is a valid one. No matter how good,... Folks,

I need a regex to extract the domain name from any url. No matter what the url looks like. Whether it has more than one dot (2nd level, 3rd level, 4th level, 5th level, etc. level domain) and whether or not it has the http://, https://, www., etc.).
In short, it must work on any url in the world. No matter what format the url is in aslong as the url is a valid one. No matter how good, ugly, short or long the url is.
I am spoiled for choice as too many samples are provided here and I don't know which one will best suit my purpose:
https://stackoverflow.com/questions/...-name-from-url

Which one is your best pick for my purpose and why that one over the others ? ]]>
PHP Development UniqueIdeaMan http://forums.devshed.com/php-development-5/regex-grab-domain-979268.html
Detecting Domain http://forums.devshed.com/php-development/979267-detecting-domain-new-post.html Mon, 16 Oct 2017 23:04:48 GMT This may not be the right place for this so feel free to move it.

I'm trying to figure out the best way to detect a domain in order to load the proper information (as in a multi tenant website). Like if I had
50 domains that all went to one single website but each site displayed its own text, would I be using something in PHP to detect which domain is
being called or is there a different method to handle this? ]]>
PHP Development bob8619 http://forums.devshed.com/php-development-5/detecting-domain-979267.html
Example of decryption - need help http://forums.devshed.com/security-cryptography/979266-example-decryption-help-new-post.html Mon, 16 Oct 2017 17:41:14 GMT I need help with the following example:

A password is obtained by decryption of the following chipers (note that letters "Š,Đ,Č,Ć,Ž,..." are serbian/bosnian/croatian letters):

1. ETFUKZALRVRPAIOLIESNOVST

2. ŠŽJPTHDRAORŽŽNJDRŽIDŽODŽIRDOJNEŽLJIDEDŽNJOŽPRTNJ

3. ŠIARIZIPETKRKELZNEARSUJGSATOKPTE

4. DVKST LSZPS EONIS PNAET JLIRU OJLZU SAOAP

5. WKHVHYHQWKFKDUDFWHURIWKHSDVVZRUGLVU

6. GSVVRTSGSXSZIZXGVILUGSVKZHHDLIWRHL

Chipers are created bz using the following algorithms:

1. Rotation,

2. Cesar,

3. Rail fence,

4. route,

5. Myszkowski,

6. Atbash.

Note: Cryptoanalyst doesn't know which chiper is created by which algorithm, and he also doesn't know what keys are used.

Question: Could someone suggest a reference for these algorithms (with samples on how they are done)? How can we guess which chiper is created by which algorithm and what keys are used? ]]>
Security and Cryptography llll http://forums.devshed.com/security-cryptography-17/example-decryption-help-979266.html
<![CDATA[*50% OFF* TurnKey VPS: Windows & Linux | KVM | SSD RAID | UnMetered GigE | FREE IPv6]]> http://forums.devshed.com/web-hosting-offers/979265-50-turnkey-vps-windows-linux-kvm-ssd-raid-unmetered-gige-free-ipv6-new-post.html Mon, 16 Oct 2017 15:40:05 GMT *TurnKey Internet* provides Dedicated Servers, Colocation, Web Hosting, Cloud, and Virtual Servers from its company-owned and operated Green (https://www.turnkeyinternet.net/green-initiative/) Datacenter. Since 1999, TurnKey Internet, Inc. has built a reputation of outstanding personalized service, reliability, and value. Owning our own datacenter lets our on-site 5-star rated staff... TurnKey Internet provides Dedicated Servers, Colocation, Web Hosting, Cloud, and Virtual Servers from its company-owned and operated Green Datacenter. Since 1999, TurnKey Internet, Inc. has built a reputation of outstanding personalized service, reliability, and value. Owning our own datacenter lets our on-site 5-star rated staff answer your questions quickly and provide complete solutions direct from our expert team located right in the same building as your servers. We are experts in the Cloud Hosting and Datacenter space with a true dedication to your online success every step of the way.

View the *ALL NEW* 'T' Series VPS Cloud Servers which provide better performance, capacity, and un-metered GigE tier-1 bandwidth offering the ultimate combination of value, performance and reliability from a 5-Star Top Rated Cloud Hosting Company.

FREE Website & Server Migrations : TurnKey Internet makes migrating to our cloud and web hosting services easier than ever by handling all the migration work for your website(s) and servers including all email, databases, websites, and applications. More Information


Order and setup is INSTANT! Choose from these ALL NEW ultra fast 'T' Series VPS Cloud Server packages:

T40 VPS Cloud Server
  • Linux or Windows (60+ Templates and ISO's)
  • 4GB RAM guaranteed
  • 40GB RAID-10 SSD Storage space
  • Gigabit (1000 Mbit) port
  • UnMetered GigE Bandwidth
  • 4 CPUs 4 x 2.0 GHz CPU
  • IPv4: 1 Dedicated IP
  • IPv6: /64 Subnet Dedicated

$14.99/month now 50% Off Best Value Deal (was $29.99/mo) | ORDER NOW Additional 10% Off For Life when you pre-pay Annually!



T80 VPS Cloud Server
  • Linux or Windows (60+ Templates and ISO's)
  • 8GB RAM guaranteed
  • 80GB RAID-10 SSD Storage space
  • Gigabit (1000 Mbit) port
  • UnMetered GigE Bandwidth
  • 8 CPUs 8 x 2.0 GHz CPU
  • IPv4: 1 Dedicated IP
  • IPv6: /64 Subnet Dedicated

$24.99/month now 50% Off Best Value Deal (was $49.99/mo) | ORDER NOW Additional 10% Off For Life when you pre-pay Annually!



T120 VPS Cloud Server
  • Linux or Windows (60+ Templates and ISO's)
  • 12GB RAM guaranteed
  • 120GB RAID-10 SSD Storage space
  • Gigabit (1000 Mbit) port
  • UnMetered GigE Bandwidth
  • 12 CPUs 12 x 2.0 GHz CPU
  • IPv4: 1 Dedicated IP
  • IPv6: /64 Subnet Dedicated

$34.99/month now 50% Off Best Value Deal (was $69.99/mo) | ORDER NOW Additional 10% Off For Life when you pre-pay Annually!



Custom VPS Cloud Server
  • Linux or Windows (60+ Templates and ISO's)
  • 1GB RAM guaranteed
  • 5GB RAID-10 SSD Storage space
  • Gigabit (1000 Mbit) port
  • UnMetered GigE Bandwidth
  • 1 CPU 1 x 2.0 GHz CPU
  • IPv4: 1 Dedicated IP
  • IPv6: /64 Subnet Dedicated

$4.99/month now 50% Off Best Value Deal (was $9.99/mo) | ORDER NOW Additional 10% Off For Life when you pre-pay Annually!



All plans above are Self Managed - please see our Full Managed VPS Cloud Servers.


*ALL NEW* 'T' Series VPS Cloud Servers include the following:
  • KVM Virtualization - No over-selling, all guaranteed resources!
  • Linux or Windows (and custom OS's such as BSD and more!)
  • 60+ Pre-ready Linux & Windows Templates and ISO's to choose from
  • Guaranteed RAM - No burst, no over-sold servers, fully-allocated RAM!
  • RAID-10 ultra-fast SSD storage across SAS 3.0 12 Gbps direct attached storage HDD backplane
  • Tier-1 national backbone connections via BGP4 redundant Juniper powered core network
  • Automated Weekly Backups (Upgrades to Daily Backups, and R1Soft Continous Data Protection Available)
  • TurnKey VPS administration panel access (web-based)
  • Automated reboots (FREE)
  • Automated OS reloads (FREE)
  • KVM/console access to all VPS's included free!
  • Licensed pre-installed image versions of Windows Server 2012 and 2008 available
  • Bring your own license versions for Server 2012 and 2008, and Windows XP, Windows 7, and Windows 8
  • Control panels available: cPanel, Plesk, DirectAdmin, & Webmin
  • 1 IP (IPv4) address included, purchase up to 32 if desired.
  • IPv6 /64 Address Block
  • Free SmarterTools bundle, an $800 value with Windows VPS packages
  • 100% Network Uptime Guarantee
  • 24x7 Toll-free Phone, Live Chat, and Help Desk Support
  • 30-day money-back guarantee
  • NO term contract (month to month)
  • NO setup fees
  • Free data migration from your old host to our servers



Additional costs for certain control panels, add-ons, features, or operating systems may apply - please see order links above and shopping cart for options.


About TurnKey Internet:

All servers are hosted in our company-owned and operated, ENERGY STAR certified, green data center in New York’s Tech Valley Region. Alternative technologies such as on-site solar power generation, cold containment pods, hydroelectricity, and SmartAisle cooling have eliminated our carbon footprint entirely, and made our datacenter the best of the best for energy efficiency nation-wide.

Since 1999, TurnKey Internet has built a reputation of outstanding personalized service, reliability, and value. We are experts in the Cloud Hosting and Datacenter space with a true dedication to your online success every step of the way. TurnKey maintains an A+ rating from the Better Business Bureau, is SSAE 16 Type 2 certified, ENERGY STAR certified, and the winner of the 2012 Excellence in Small Business Award from the U.S. Small Business Administration.

Don't just take our word for it - view these Verified Client Testimonials and our 5-star, perfect rating from Shopper Approved.


CONTACT US:
Live Chat: Live Sales Chat
Email: sales@turnkeyinternet.net
Web: www.turnkeyinternet.net
Facebook: Turnkey Internet
Twitter: @TurnKeyInternet ]]>
Web Hosting Offers turnkeyinternet http://forums.devshed.com/web-hosting-offers-100/50-turnkey-vps-windows-linux-kvm-ssd-raid-unmetered-gige-free-ipv6-979265.html
Mysql Row Deletion Fails http://forums.devshed.com/php-development/979264-mysql-row-deletion-fails-new-post.html Mon, 16 Oct 2017 10:54:35 GMT Folks,

Here is a php code that lists all the rows and columns in your mysql tbl for you to select the rows (via check boxes) you want to delete and then delete them by clicking the appropriate "delete" buttons. Problem is, when I click any of the "delete" buttons, I get error flicking for a sec that there is an undefined variable $num. Not sure where to define it and how.
Confesssion :D
I actually play-paused 2 youtube videos and copy typed the code you see. That is one way I learn and gain a little work experience. Was not aware that the "each" function was deprecated until another told me.
Even though, I checked the foreach loop tutorial, here I am at a loss how to make use of it. Feeling flabbergasted in my failure!

PHP Code:

<?php
session_start
();
require 
"conn.php";
require 
"site_details.php"?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Follow Users</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form" action="" method="post">
<table border=1 cellpadding=1 cellspacing=1>
    <tr>
        <th>Id</th>
        <th>Username</th>
        <th>Password</th>
        <th>Email</th>
        <th>Delete</th>
    </tr>
<?php
$res
=mysqli_query($conn,"SELECT * FROM users");
while(
$row=mysqli_fetch_array($res))
{
    echo 
"<tr>";
    echo 
"<td>"; echo $row["ids"]; ?> <input type="checkbox" name="num[]" class="other" value="<?php echo $row["ids"]; ?>" /> <?php echo "</td>";
    echo 
"<td>"; echo $row["usernames"]; "</td>";
    echo 
"<td>"; echo $row["passwords"]; "</td>";
    echo 
"<td>"; echo $row["emails"]; "</td>";
    echo 
"<td>"; echo "<input type='submit' name='submit' value='delete selected'>""</td>";
    echo 
"</tr>";
}
?>
</table>
</form>
<?php
if(isset($_POST["submit"]))
{
   
$box=$_POST['num'];
   while (list (
$key,$val) = @each ($box))
    {
      
mysqli_query($conn,"DELETE FROM users WHERE id='$val'");
    }
?>
       <script type="text/javascript">
       window.location.href=window.location.href;
       </script>
<?php
}
?>

</body>
</html>

Here's another one. But, this one does not have the DELETE BUTTON. DELETE LINK instead. Same problem I'm facing on this one too. Not deleting anything.

PHP Code:

<?php
session_start
();
require 
"conn.php";
require 
"site_details.php"?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Follow Users</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table border=1 cellpadding=1 cellspacing=1>
    <tr>
        <th>Id</th>
        <th>Username</th>
        <th>Password</th>
        <th>Email</th>
        <th>Delete</th>
    </tr>
<?php 
$sql 
"SELECT * FROM users";
$result mysqli_query($conn,$sql);
while(
$row mysqli_fetch_array($result))
    {
        echo 
"<tr>";
        echo 
"<td>".$row['ids']."</td>";
        echo 
"<td>".$row['usernames']."</td>";
        echo 
"<td>".$row['passwords']."</td>";
        echo 
"<td>".$row['emails']."</td>";
        echo 
"<td><a href=delete2a.php?id=".$row['ids'].">Delete</a></td>";
    }

?>
</table>
</body>
</html>

Can some good Samaritan fix the 2 codes so we beginners can learn from your examples ? :)
I've come this far on these 2. Don't want to quit at the end.

Cheers! ]]>
PHP Development UniqueIdeaMan http://forums.devshed.com/php-development-5/mysql-row-deletion-fails-979264.html
<![CDATA[Reliable & Cheap Custom Logo Design Service From TEMOK With Unlimited Revisions]]> http://forums.devshed.com/web-hosting-offers/979263-reliable-cheap-custom-logo-design-service-temok-unlimited-revisions-new-post.html Mon, 16 Oct 2017 09:46:41 GMT Custom Logo Design is the most important intangible property of your business. Once designed, it becomes your company’s identification and every businessman wants his business to have an expert identity. This is where *Temok (https://www.temok.com)* becomes your very first choice. We have brilliant, artistic, professional and skilled custom logo design group. We are desperate to offer you... Custom Logo Design is the most important intangible property of your business. Once designed, it becomes your company’s identification and every businessman wants his business to have an expert identity. This is where Temok becomes your very first choice. We have brilliant, artistic, professional and skilled custom logo design group. We are desperate to offer you superior and cheap logo design plans. There are numerous good logo design companies online but our cheap good quality and unique custom logo designs make us stand out. We allow limitless revisions in all our logo design plans to give you 100% fulfillment. Find out why over 10,000 rely on Temok approach to logo design and brand development!


We are proudly offering Custom Logo Design Services with all best features. Just Select The Logo Design Package That’s Right For You. One Price Covers Everything – NO Hidden Costs Or Other Fees!

⟩⟩ Custom Logo Design Basic Plan ⟨⟨

⋅ Logo Design
⋅ 3 Logo Design Concepts
⋅ By 2 Logo Designers
⋅ Free Formats: JPEG,Ai,Giff,Psd,EPS
⋅ Free Color Options
⋅ Free Stationery Design Set
⋅ Letterhead, Envelope, Business Card
⋅ 3 Revisions
⋅ $50 for 24 Hour Rush Delivery
⋅ Price for Limited Time: $95 Order Basic Plan

⟩⟩ Custom Logo Design Startup Plan ⟨⟨

⋅ Logo Design
⋅ 6 Logo Design Concepts
⋅ By 4 Logo Designers
⋅ Free Formats: JPEG,Ai,Giff,Psd,EPS
⋅ Free Color Options
⋅ Free Stationery Design Set
⋅ Letterhead, Envelope, Business Card
⋅ 3 Revisions
⋅ $50 for 24 Hour Rush Delivery
⋅ Price for Limited Time: $115 Order Startup Plan

⟩⟩ Custom Logo Design Gold Plan ⟨⟨

⋅ Unlimited Logo Design Concepts
⋅ By Award Winning Logo Designers
⋅ Unlimited Revisions
⋅ Free File Formats: JPEG, Ai, Gif, Psd & EPS
⋅ Free Color Options & Grey scale Format
⋅ $100 Cash back for Website Order
⋅ Price for Limited Time: $199 Order Gold Plan

⟩⟩ Custom Logo Design Enterprise Plan ⟨⟨

⋅ Unlimited Business Logo Designs
⋅ Free 2 Stationery Design Sets
⋅ Free Fax Template
⋅ 5 Page Website Design
⋅ 1 Year Web Hosting
⋅ W3C Certified HTML
⋅ Unlimited Revisions on Complete Package
⋅ Price for Limited Time: $495 Order Enterprise Plan

⟩⟩ Custom Logo Design Unlimited Plan ⟨⟨

⋅ Unlimited Logo Design Concepts
⋅ Free Formats: JPEG,Ai,Giff,Psd,EPS
⋅ Free Color Options
⋅ 24 Hrs Turnaround for Logo Initial Samples
⋅ Free 2 Stationery Design Sets
⋅ Letterhead, Envelope, Business Card
⋅ FREE Fax Template
⋅ 1 Concept of Static Banner
⋅ 1 Double Sided Brochure Design (A4)
⋅ 10 Page Website Design
⋅ 1 Year Domain & Web Hosting
⋅ Unlimited Revisions on Complete Package
⋅ Price for Limited Time: $695 Order Unlimited Plan

⟩⟩ Custom Logo Design Unlimited Plan (Social) ⟨⟨

⋅ Unlimited Logo Concepts
⋅ Free Copyright Logo Design © Copyright Protection of Your Logo Design
⋅ Custom Website Design
⋅ 1 Design Concept
⋅ 10 Stock Photos
⋅ 10 Email Addresses
⋅ Logo Design Services Cross Browsers Compatibility
⋅ Custom Logo Design W3C Certified HTML
⋅ 1 Year Domain Name
⋅ 1 Year Web Hosting
⋅ Search Engine Submission
⋅ Google, Yahoo & Bing
⋅ Content Management System
⋅ Stationery Design Set
⋅ Business card, Letterhead & Envelope
⋅ Social Media Pages
⋅ Facebook Page Design
⋅ Twitter Theme Design 1 Twitter Theme Design
⋅ YouTube Theme Page YouTube Theme Page
⋅ Company Logo Design Unlimited Revisions
⋅ Special Discount -$3780
⋅ Social Media Pages
⋅ Unlimited Revisions
⋅ 100% Satisfaction Guarantee
⋅ 24/7 Customer Support
⋅ Money Back Guarantee
⋅ Price for Limited Time: $955 Order Social Plan

The people who work at Temok are from the business and most of them have more than eight years working experience in the web hosting business. Our employees are truly our major power and we are always putting money in fresh people who have fresh new suggestions.

⋅ We accept VISA, MasterCard, American Express, PayPal, WorldPay and Diners Club International for payment.


]]>
Web Hosting Offers tk-hassan http://forums.devshed.com/web-hosting-offers-100/reliable-cheap-custom-logo-design-service-temok-unlimited-revisions-979263.html
How to convert numbers into text in Devexpress Report ? http://forums.devshed.com/net-development/979262-convert-text-devexpress-report-new-post.html Mon, 16 Oct 2017 08:45:19 GMT In Devexpress Report you want to create a function to convert the number into text (words) in the Report, have the class to convert numbers into text (words) but do not know how to appear in the Report as SUM function, ... What do I need to do ? In Devexpress Report you want to create a function to convert the number into text (words) in the Report, have the class to convert numbers into text (words) but do not know how to appear in the Report as SUM function, ... What do I need to do ? ]]> .Net Development dongtrien http://forums.devshed.com/net-development-87/convert-text-devexpress-report-979262.html