Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #105008

Re: WP-A: A New URL Shortener

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Daniel Wilcox <dmw@yubasolutions.com>
Newsgroups comp.lang.python
Subject Re: WP-A: A New URL Shortener
Date Tue, 15 Mar 2016 21:28:13 -0700
Lines 48
Message-ID <mailman.195.1458129721.12893.python-list@python.org> (permalink)
References <1537bd9e261.12a0e5b4a204345.4468160629979098801@vmesel.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de 5Hx7KP455MfqRGlQpQg+Og3aBwkpqOnifURMRG2wbsIA==
Return-Path <dmw@yubasolutions.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.054
X-Spam-Evidence '*H*': 0.89; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'sqlite': 0.09; 'url:github': 0.09; 'python': 0.10; '(at': 0.13; 'suggest': 0.15; '(when': 0.16; '2016': 0.16; 'guys,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'sqlalchemy': 0.16; 'stuff,': 0.16; 'subject:URL': 0.16; 'wrote:': 0.16; 'contribute': 0.16; 'version.': 0.18; 'programmer': 0.18; 'input': 0.18; 'hey': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'mysql,': 0.22; 'cc:no real name:2**0': 0.22; 'fit': 0.23; 'daniel': 0.23; 'header :In-Reply-To:1': 0.24; "i've": 0.25; 'coding': 0.27; 'raw': 0.27; 'least': 0.27; 'message-id:@mail.gmail.com': 0.27; 'specify': 0.27; 'idea': 0.28; 'project:': 0.29; "i'm": 0.30; 'url:mailman': 0.30; 'code': 0.30; '15,': 0.30; 'putting': 0.30; 'at:': 0.31; 'knows': 0.32; 'run': 0.33; 'point': 0.33; 'useful': 0.33; 'source': 0.33; 'url:python': 0.33; 'url:listinfo': 0.34; 'tue,': 0.34; 'add': 0.34; 'received:google.com': 0.35; 'behind': 0.35; 'could': 0.35; 'stable': 0.35; 'quite': 0.35; 'something': 0.35; 'community': 0.36; 'but': 0.36; 'project': 0.36; 'there': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'urls': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'wanted': 0.37; 'seem': 0.37; 'things': 0.38; 'received:209': 0.38; 'speak': 0.38; 'subject:-': 0.39; 'url:mail': 0.40; 'where': 0.40; 'software': 0.40; 'easy': 0.60; 'claim': 0.61; 'share': 0.61; 'land': 0.63; 'url:co': 0.65; 'mar': 0.65; 'today': 0.65; 'fall': 0.66; 'decided': 0.66; 'flash': 0.67; 'internet': 0.70; 'sounds': 0.76; 'protect': 0.76; 'escaping': 0.84; 'find.': 0.84; 'working,': 0.84; 'aka': 0.91; 'dare': 0.91; 'different.': 0.91; 'glance': 0.91; 'rick': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=yubasolutions-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=uIrd20CEfkvaetmboqOPftiwN86ddhOVbJQizm3DSPY=; b=CqQaiWMelyZYPBIITjTv3iiRJYJ5sluvO2PRqhkz9Ri5XWl8PV+ja0p2r6EbK8UApM Od/R2TcSMJlTp6aC3+cEs1ygr6RzWqzDZvsbKM306GGRcfBvzzlxR+J1JwyIaOjl/jhJ EZJ2q9l0ZJnfMSqHqqd/D4SVbAf6LoUgLDZ1gatDIyPIa8RYzCf9EapSeZUHTNOHqW2L VsTWXB8bXpCMhvfqjuvH0E34jm98Ct5sS74cR8rm4TeIRW1tumzWcFIb4O5Ngl1j1k6L 9pxRTqa3xWXTFX/hO+aK+7r9yHRbto1zKkZ0pyYNDqfBhIjW5/LMpgImo/35bQIXo41x JHrg==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=uIrd20CEfkvaetmboqOPftiwN86ddhOVbJQizm3DSPY=; b=Y/JgmqyUpaOTv3hXtQJpvlpjD6rVCC5ckUVoWzBGH/YjSHckl1mCqcvJRWlFHV1wKa oBYWnnlpL5P/lbd4YFTZTq7NkEbHRJqCOZQ2wf+4a/SkMbRO3KLQPsM/LxCy49QVUOUG KmZD2+gbfykfqNQAh8zfbuSZjfLO77qyei3yarVomTRehIM0zArriO7b2gA3KPJL7XtD 4piBQGFM+I5uHl0ncTuZ/rTDQauE7UArxzqQP3A0oaivJ6tG32rdpe7dDKDBbBRvSngV 1/v1WNrAMon1PBrKEG/O5X1P/noaQo+unEZDHRWHHAxjz3VlAJ3ghNsfxoNa4kweGOD0 qgpg==
X-Gm-Message-State AD7BkJK56PTi84Dnawd/wCjYacGBYYFqvgpQjjbC2/+Cj4yc/n2RfYiT1fFq3zBauqp1RdaMHQt338GE5WllMXS1
X-Received by 10.25.39.6 with SMTP id n6mr574867lfn.50.1458102523098; Tue, 15 Mar 2016 21:28:43 -0700 (PDT)
X-Originating-IP [98.207.0.136]
In-Reply-To <1537bd9e261.12a0e5b4a204345.4468160629979098801@vmesel.com>
X-Mailman-Approved-At Wed, 16 Mar 2016 08:01:59 -0400
X-Content-Filtered-By Mailman/MimeDel 2.1.21
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:105008

Show key headers only | View raw


I dare say I'm with Rick on this point -- keep it up, go learn stuff, put
things together and see how they break -- I think it's the best way to get
feel for how things fit together and, somewhat inevitably, fall over (when
the conditions they were designed in no longer apply).

*quick glance at source*
The raw SQL scares me a bit, there is a lot of escaping that you could add
to protect from sql injections (at least for mysql, sqlite I'm not sure).
And since you want to run this on the Internet I highly recommend putting a
mariadb/mysql database behind it.  Glancing over the Flash documentation
they seem to suggest SQLAlchemy which sounds like a reasonable choice for
an ORM.

An neat idea I've seen before that was neat was a sematic shorten-er where
you could specify the shortened URL to make it easy to remember and
reference.  A lot of security, aka input sanitation, involved but might be
fun -- and who knows it could spark a land rush to claim useful short URLs
like wp-a.co/flask-tips. :)

Speak up if you need any pointers!

Daniel

On Tue, Mar 15, 2016 at 12:56 PM, Vinicius Mesel <me@vmesel.com> wrote:

> Hey guys,
>
> I'm a 16 year old Python Programmer that wanted to do something different.
> But, like we know, ideas are quite difficult to find.
> So I decided to develop a URL Shortener to help the Python community out
> and share my coding knowledge, and today the project was launched with its
> first stable version.
> So if you want to see the software working, go check it out at:
> http://wp-a.co/
> Or if you want to see the source code to contribute and help the project:
> https://github.com/vmesel/WP-A.CO
>
>
> Hugs,
> Vinicius Mesel
> Brazilian and Portuguese Speaker
> http://www.vmesel.com
>
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: WP-A: A New URL Shortener Daniel Wilcox <dmw@yubasolutions.com> - 2016-03-15 21:28 -0700
  Re: WP-A: A New URL Shortener Rick Johnson <rantingrickjohnson@gmail.com> - 2016-03-16 11:16 -0700
    Re: WP-A: A New URL Shortener Daniel Wilcox <dmw@yubasolutions.com> - 2016-03-17 15:19 -0700

csiph-web