From jeffh at dundeemt.com Thu Jun 5 07:02:03 2014 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Thu, 5 Jun 2014 00:02:03 -0500 Subject: [omaha] Upcoming Meeting - 6/18 Message-ID: We need to organize a venue and topics. I've started the thread, your turn. -- Best, Jeff Hinrichs 402.218.1473 From dragonfyre13 at gmail.com Fri Jun 6 00:35:53 2014 From: dragonfyre13 at gmail.com (Tim Alexander) Date: Thu, 5 Jun 2014 17:35:53 -0500 Subject: [omaha] Upcoming Meeting - 6/18 In-Reply-To: References: Message-ID: What about Fox Hollow for a venue? No real idea where people are located that might want to come... It's between 108th and 120th on Blondo. Primarily suggested because it's open until ~9:00PM, their coffee is quite good and while I might be the only one that cares, they are directly on the route between work and home for me. As for ideas for topics, I'm coming up blank. If all else fails I might be able to show some minimal things with zato that I was talking about last time... Not sure what people would be interested in. On Thu, Jun 5, 2014 at 12:02 AM, Jeff Hinrichs - DM&T wrote: > We need to organize a venue and topics. > > I've started the thread, your turn. > > > -- > Best, > > Jeff Hinrichs > 402.218.1473 > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > https://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > From jeffh at dundeemt.com Fri Jun 6 03:06:31 2014 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Thu, 5 Jun 2014 20:06:31 -0500 Subject: [omaha] Upcoming Meeting - 6/18 In-Reply-To: References: Message-ID: As long as they have wireless, chairs, tables and it's not too loud, I'm good with it. So that's +0 for me. Leaning Positive with no reservations, save what I mentioned before. -j pysftp: 1) Fork It 2) Contrib 3) ... 4) Profit! On Thu, Jun 5, 2014 at 5:35 PM, Tim Alexander wrote: > What about Fox Hollow for a venue? No real idea where people are located > that might want to come... > > It's between 108th and 120th on Blondo. Primarily suggested because it's > open until ~9:00PM, their coffee is quite good and while I might be the > only one that cares, they are directly on the route between work and home > for me. > > As for ideas for topics, I'm coming up blank. If all else fails I might be > able to show some minimal things with zato that I was > talking about last time... Not sure what people would be interested in. > > > On Thu, Jun 5, 2014 at 12:02 AM, Jeff Hinrichs - DM&T > wrote: > > > We need to organize a venue and topics. > > > > I've started the thread, your turn. > > > > > > -- > > Best, > > > > Jeff Hinrichs > > 402.218.1473 > > _______________________________________________ > > Omaha Python Users Group mailing list > > Omaha at python.org > > https://mail.python.org/mailman/listinfo/omaha > > http://www.OmahaPython.org > > > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > https://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > -- Best, Jeff Hinrichs 402.218.1473 From wereapwhatwesow at gmail.com Fri Jun 6 16:01:24 2014 From: wereapwhatwesow at gmail.com (Steve Young) Date: Fri, 6 Jun 2014 09:01:24 -0500 Subject: [omaha] Upcoming Meeting - 6/18 In-Reply-To: References: Message-ID: I am ok with Fox Hollow - never been before. I would love to find a place where we can share code on something larger than a laptop screen... Steve On Thu, Jun 5, 2014 at 8:06 PM, Jeff Hinrichs - DM&T wrote: > As long as they have wireless, chairs, tables and it's not too loud, I'm > good with it. > So that's +0 for me. Leaning Positive with no reservations, save what I > mentioned before. > > -j > > pysftp: > 1) Fork It > 2) Contrib > 3) ... > 4) Profit! > > > On Thu, Jun 5, 2014 at 5:35 PM, Tim Alexander > wrote: > > > What about Fox Hollow for a venue? No real idea where people are located > > that might want to come... > > > > It's between 108th and 120th on Blondo. Primarily suggested because it's > > open until ~9:00PM, their coffee is quite good and while I might be the > > only one that cares, they are directly on the route between work and home > > for me. > > > > As for ideas for topics, I'm coming up blank. If all else fails I might > be > > able to show some minimal things with zato that I was > > talking about last time... Not sure what people would be interested in. > > > > > > On Thu, Jun 5, 2014 at 12:02 AM, Jeff Hinrichs - DM&T < > jeffh at dundeemt.com> > > wrote: > > > > > We need to organize a venue and topics. > > > > > > I've started the thread, your turn. > > > > > > > > > -- > > > Best, > > > > > > Jeff Hinrichs > > > 402.218.1473 > > > _______________________________________________ > > > Omaha Python Users Group mailing list > > > Omaha at python.org > > > https://mail.python.org/mailman/listinfo/omaha > > > http://www.OmahaPython.org > > > > > _______________________________________________ > > Omaha Python Users Group mailing list > > Omaha at python.org > > https://mail.python.org/mailman/listinfo/omaha > > http://www.OmahaPython.org > > > > > > -- > Best, > > Jeff Hinrichs > 402.218.1473 > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > https://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > From jrguliz at yahoo.com Fri Jun 6 16:09:54 2014 From: jrguliz at yahoo.com (jrguliz at yahoo.com) Date: Fri, 6 Jun 2014 07:09:54 -0700 (PDT) Subject: [omaha] Upcoming Meeting - 6/18 In-Reply-To: Message-ID: <1402063794.14209.YahooMailAndroidMobile@web126204.mail.ne1.yahoo.com> +1 to Stehe's post about 1 laptop but also where no one has to bring in a projector.... chromecast anyone? Sent from Yahoo Mail on Android From wereapwhatwesow at gmail.com Fri Jun 6 16:13:09 2014 From: wereapwhatwesow at gmail.com (Steve Young) Date: Fri, 6 Jun 2014 09:13:09 -0500 Subject: [omaha] Static vs media files in django In-Reply-To: References: Message-ID: Been traveling and just getting back to this. Thanks for the ideas - looks like I will need a separate app for image handling. Back to the code! Steve On Wed, May 28, 2014 at 4:56 PM, Jeff Hinrichs - DM&T wrote: > Yes, just name the image file after the primary key for the record you > created for it in the db. Store the user supplied name in the db. i.e. > > \you\storage\for\user\images\1.jpg > > Image(pk=1, type='image/jpeg', uname='My Cute Kittens: the cuddlies.jpg', > ...) > > after they upload, you'll need to qc the image and determine it's type, > size (h x w), bytes > then if it passes your tests, make a record, save the meta info about the > image, move/rename the image to its final home. > > i.e. > \quarantine\My\ Cute\ Kittens:\ the\ cuddlies.jpg -> verify -> make > record and save attributes -> then move the file to \approved\1.jpg > > Users are nice, Operating systems are a pain in the arse. you'll see .jpg, > .jpeg and stuff with no extension or a wrong extension. That is why I > would encourage you to never trust an user upload. In the long run, even > if you skip my advice, you'll end up implementing it bit by bit as you > encounter problems. It's bad enough dealing with users with good > intentions, let alone malicious users. quarantine -> verify -> approve > > You'll also encounter lots of duplicate names too. (That alone is reason > not to just blindly use the user supplied file name.) > > clear as mud? > > > > On Wed, May 28, 2014 at 4:14 PM, Steve Young >wrote: > > > * * never use supplied names for file names* > > > > do you have an alternative for this? I think I remember using Django's > > file upload feature a while back and it gave a long un-descriptive name. > > The initial upload I will do of about 1000 images, then additional > images > > will be added by users and myself. > > > > > > Steve > > > > > > On Tue, May 27, 2014 at 6:25 PM, Jeff Hinrichs - DM&T < > jeffh at dundeemt.com > > >wrote: > > > > > How many images are you thinking? > > > Some Generalizations: > > > * The fewer folders the better. > > > * never use supplied names for file names > > > * keep images out of a database unless the DB is designed for it > > > specifically(most are not) > > > * your categories will fall woefully short, I'd recommend a > folksonomy > > > over a taxonomy - http://en.wikipedia.org/wiki/Folksonomy > > > > > > more specific but still incomplete: > > > * an image table > > > * each image file named by the _id of the instance > > > * store image type in the table > > > * store uploaded by > > > * store uploaded when > > > * a category/tag table > > > * an m-n relationship between image and category/tag (many to many) > > > > > > > > > On Tue, May 27, 2014 at 6:00 PM, Steve Young < > wereapwhatwesow at gmail.com > > > >wrote: > > > > > > > Thanks. How about organizing the files - eventually they will be > > tagged > > > to > > > > make it simple for users to find images and add them to new cards. > > > Should > > > > I put all the images in one folder or categorize them with > sub-folders? > > > > Or even put the images in a database? > > > > > > > > Steve > > > > > > > > > > > > On Tue, May 27, 2014 at 3:38 PM, Jeff Hinrichs - DM&T < > > > jeffh at dundeemt.com > > > > >wrote: > > > > > > > > > If you don't not need to distinguish between the images you supply > > and > > > > user > > > > > upload images then yes. > > > > > caveat: If some subset of the images are not for cards but for the > > site > > > > in > > > > > general, I'd put that subset in static. > > > > > > > > > > > > > > > On Tue, May 27, 2014 at 9:37 AM, Steve Young < > > > wereapwhatwesow at gmail.com > > > > > >wrote: > > > > > > > > > > > Using Django 1.7 building a flashcard app. Currently I have > about > > > 1000 > > > > > > images - one per card, and images can be used on multiple cards. > > > Later > > > > > on > > > > > > users may be able to upload images also. Django seems to have 2 > > > basic > > > > > ways > > > > > > to serve static files - Static and Media. From what I gather > > static > > > is > > > > > for > > > > > > css, logos, and other admin created files, and media is for user > > > > uploaded > > > > > > content.? > > > > > > > > > > > > I am thinking Media is the way to go? If you have any other > > > > suggestions > > > > > on > > > > > > handling images please chime in. > > > > > > > > > > > > Thanks. > > > > > > > > > > > > Steve > > > > > > _______________________________________________ > > > > > > Omaha Python Users Group mailing list > > > > > > Omaha at python.org > > > > > > https://mail.python.org/mailman/listinfo/omaha > > > > > > http://www.OmahaPython.org > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Best, > > > > > > > > > > Jeff Hinrichs > > > > > 402.218.1473 > > > > > _______________________________________________ > > > > > Omaha Python Users Group mailing list > > > > > Omaha at python.org > > > > > https://mail.python.org/mailman/listinfo/omaha > > > > > http://www.OmahaPython.org > > > > > > > > > _______________________________________________ > > > > Omaha Python Users Group mailing list > > > > Omaha at python.org > > > > https://mail.python.org/mailman/listinfo/omaha > > > > http://www.OmahaPython.org > > > > > > > > > > > > > > > > -- > > > Best, > > > > > > Jeff Hinrichs > > > 402.218.1473 > > > _______________________________________________ > > > Omaha Python Users Group mailing list > > > Omaha at python.org > > > https://mail.python.org/mailman/listinfo/omaha > > > http://www.OmahaPython.org > > > > > _______________________________________________ > > Omaha Python Users Group mailing list > > Omaha at python.org > > https://mail.python.org/mailman/listinfo/omaha > > http://www.OmahaPython.org > > > > > > -- > Best, > > Jeff Hinrichs > 402.218.1473 > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > https://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > From wereapwhatwesow at gmail.com Tue Jun 17 15:19:50 2014 From: wereapwhatwesow at gmail.com (Steve Young) Date: Tue, 17 Jun 2014 08:19:50 -0500 Subject: [omaha] June Meeting - Wednesday, June 18 Message-ID: Details at http://www.omahapython.org/blog/, or below. As usual there will be time for questions and comments on the code you are excited about! *Location*: Fox Hollow Coffee , 1919 Papillion Pkwy (approx. 113th and Blondo) *Time*: 7pm *Topics*: - Zato - Django 1.7 and migrations - Open Source contributions - add yours here. Steve From wereapwhatwesow at gmail.com Wed Jun 18 21:30:03 2014 From: wereapwhatwesow at gmail.com (Steve Young) Date: Wed, 18 Jun 2014 14:30:03 -0500 Subject: [omaha] Meeting tonight / git question Message-ID: Reminder for tonight's meeting (tonight is Wednesday, June 18, 2014, 7pm - or for the Trekkies - stardate -308537.5570776255). git question: I am using git locally and bitbucket as my remote. I just noticed that my local tags are not pushed to the remote by default ( http://git-scm.com/book/en/Git-Basics-Tagging#Sharing-Tags). Is this by design so the remote repo does not get littered with tags that are not useful to the larger community? Steve From jeffh at dundeemt.com Thu Jun 19 00:00:37 2014 From: jeffh at dundeemt.com (Jeff Hinrichs - DM&T) Date: Wed, 18 Jun 2014 17:00:37 -0500 Subject: [omaha] Meeting tonight / git question In-Reply-To: References: Message-ID: an authoritative response on git and tags http://git.661346.n2.nabble.com/rfd-auto-following-tags-upon-quot-git-push-quot-td6450398.html in a nutshell, tags are public and you should only share those that have meaning for others/all. So tag pushing is an explicit op. Not that I agree or disagree, just summing up the post. On Wed, Jun 18, 2014 at 2:30 PM, Steve Young wrote: > Reminder for tonight's meeting (tonight > is Wednesday, June 18, 2014, 7pm - or for the Trekkies - stardate > -308537.5570776255). > > git question: I am using git locally and bitbucket as my remote. I just > noticed that my local tags are not pushed to the remote by default ( > http://git-scm.com/book/en/Git-Basics-Tagging#Sharing-Tags). Is this by > design so the remote repo does not get littered with tags that are not > useful to the larger community? > > Steve > _______________________________________________ > Omaha Python Users Group mailing list > Omaha at python.org > https://mail.python.org/mailman/listinfo/omaha > http://www.OmahaPython.org > -- Best, Jeff Hinrichs 402.218.1473