Ptocheia.net

Recent

Archive

Friends

Userinfo

Other Sites

VA Roper Art & Design

Writuar: Unleash your Writing Animal!

What I eat, apparently.

Salami Day

Spin the Globe!

Facebook

Myspace

February 2014

            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28

rss feed

GeoURL

Valid CSS!

 
ptocheia [userpic]

So like 12 years ago, I wrote a song about Java

February 21st, 2014 (12:36 am)

I don’t know why I’m not asleep right now. I got distracted and was looking through old stuff, and apparently I wrote a song about Java a long time ago. So I’m gonna post it, because the internet is for po…sting songs about java.


I met it in a program due the week

before last, and it's future is looking quite bleak


oh the data

d-a-t-a data


I tried to do a ParseInt but it wouldnt work

When I typed "javac" the whole thing went berzerk


oh the data

d-a-t-a data


I've got 5000 methods and they all look the same

Nothing is working and I just want to maim


all my data

d-a-t-a data


my prog 5 is fickle, my brain calls defeat,

the 80x86 assembler aint lookin' 1337


poor poor data

d-a-t-a

da da da da data...


Well I've been staring at this class for hours

So I write crappy songs while my brain sprouts flowers

I'm pushing the limits crankin' out schloads of code

If I push any more my pancreas will explode!




Pick up the pen, write some "if" "then" "else" "while"

Try to make it come together as I stare at a pile

of my data

d-a-t-a data


so I took .stack

subtract from LOC

I find .stack length

And I'm getting sick of writing this so I'll stop...




Reply   Link
ptocheia [userpic]

Failing to load a large Drupal database locally on your Mac Mountain Lion system

November 25th, 2013 (09:28 am)

OK, so technically this could apply to non-Drupal databases, but Drupal was my particular issue here. Had a new hard drive, trying to get all of my sites up, and was having a tough time with a several gig large Drupal database. When it’s pretty big, you’ve gotta load it into MySQL via the command line. And, I was getting this error:


MySQL server has gone away


And then I’d go check MySQL and it would would still be there and I’d be all like, “You is a liar!” to my error. Cause that’s real effective.


As it turned out, I just needed to go into /etc/my.cnf and crank max_allowed_packet up to 64MB. Database loaded fine after that.


On a related note, once I loaded in my Drupal site, it looked all janky, like there was no css. Just straight up clearing caches wasn’t doing it. Had to go into /admin/config/development/performance and turn off pretty much all of the cache options, and from there my theme finally took hold.




Reply   Link
ptocheia [userpic]

OMG I am in love with SVG graphics + CSS transitions

September 12th, 2013 (09:46 pm)

So let’s just say that this is my first time working with SVG. Never touched the stuff before, but I’d heard the rumors. So, SVG? It’s a graphic generated from code that you can actually read, all living in an XML file. So I can make a graphic, and if I’m feeling like a bum and don’t want to open Illustrator or whatever, I can just pop open that XML file and tweak it from there. Assuming it’s a stupidly simple graphic and the change I want to make is really easy, like a color change or border width or something.


Anyhow, all you need to do is make an image in Illustrator or similar vector-based program, save as SVG, and rock it! (emphasis on the rocking it). Anyhow, file size seems pretty tiny (for the graphics I’ve been working on) and since they’re vector, you can totally render them at different sizes just with your CSS as well.


I made 3 different clouds, see, for a release that hasn’t gone out yet so unfortunately I can’t link to it. Anyhow, I’ve got them rendering at different sizes, and am using the css transition property along with keyframes classes to have them slide across the screen at different speeds. And, since the graphics are transparent, they have a sweet overlay effect when passing by another cloud (z-index going on up in here). All for a semi-subtle effect behind some text, as well as a semi-transparent div so there’s super layered action going on. Which again, I can’t show off cause it’s not live. But I can still be excited about it!


It would be awesome to learn to just straight up write SVGs, see what kind of graphics I could make without ever having to touch a graphics program. Honestly, I get peeved when people suggest that art and math are two completely different disciplines, as I’ve always seen them as completely intertwined.


(Note: this post was totally inspired by this other post: http://www.garann.com/dev/2013/how-to-blog-about-code-and-give-zero-fucks/ I’ve seriously slacked on blogging. Have apparently given up on the food blogging shindig, but the least I could do is write about things I learn on occasion, given how much I depend on Google and other people’s posts to learn the things that I do.)




Reply   Link
ptocheia [userpic]

An Update on Things

June 23rd, 2013 (01:23 pm)
Tags:

So as it now stands, in a little less than 2 weeks, I’m back to being on my own again. Chris has a really good opportunity to move to Florida, and as right now the only thing that’s holding him in CO is me, he’s going to take that opportunity. It’s more or less breaking my heart, but I have to agree that this will be really good for him, and I wish him the best of luck. We’re quite amicable about everything, and I gotta say I’ve never had a relationship end this well before. And it won’t be ending until the minute he leaves on his long drive down to FL. So I plan on doing my best to make the next 1.5 weeks the best 1.5 weeks Chris has ever experienced.


Course, once he’s gone, I’m stuck here by myself. Mind you, I’m still pretty happy with being in Denver. While I don’t see myself spending the rest of my life here, I like it for the time being. In any case, I’ll probably going to spend a lot of time trying to distract myself. I think it’s, in a way, a bit easier to go through a breakup where you’re really unhappy with the person. After a few days of some cathartic bawling your eyes out, you can start to move on, and see yourself getting to a better place than what you just left. Mind you, Chris and I still have/had our problems, but finding out how ready he is to get out of here, and how unhappy he is being here, clarified those problems in my head and caused me to see them less as problems with us and more as side effects of him coping with his unhappiness. And, for that matter, we’re not even calling it a breakup, and going more for a parting of ways, as we both still feel so positively towards each other. And it really sucks to be in a situation where you really love another person but have to acknowledge that separating is the best decision. And I’m trying to not let my general sadness about everything get in the way of Chris’s happiness, and my happiness that he’s got this great chance to start over in a new place.


Anyhow. I’m going to need to find ways to occupy myself after July 5th. So, you know, if anyone in the Denver area wants to hang out and do whatever I’m probably gonna be up for it.


And on a related note, I’ve got time off the 2nd weekend of July – Thursday through Monday. The initial plan was to drive down to Albuquerque, but I’ve been debating that, both because it’s a long drive to do by yourself, and I’d already been formulating plans on what to do that involved going with another person, and so I’ve got the concern that being in Albuquerque alone will only highlight Chris’s absence, especially since part of the reason to go was to see the Rapids down there. So, I’m sorta looking around for other options right now, either someplace that would be fun to drive to for a long weekend, or someplace I can fly to (preferably a direct flight, and nothing too crazy/far away as I’ve only got 5 days).




Reply   Link
ptocheia [userpic]

Adventures in Tumors

June 6th, 2013 (08:01 pm)
Tags:

The following may be TMI for anyone who falls into that teeny venn diagram slice where “male” and “wussy” overlap. You have been warned!


So, a little while back, I started bleeding and didn’t stop for 2 months. At points it was very light, but nonetheless, still blood. I’d had a yearly exam 8 months prior, and while I had had to get a colposcopy, everything was relatively fine. Nonetheless, I decided it was high time I got my next exam early.


Lucky for me, the results came back positive, so no cancer for me! However, the doctor recommended that, based on my symptoms, I should get an ultrasound. Got one last week, and just found out the full results today. I’ve got 4 fibroids, which are tumors that live within the uterus, with sizes ranging up to 4cm. According to the internets, fibroids are most common in women in their 40s to 50s, African American women, obese women, and women who eat a lot of red meat. I am none of these things, so I musta hit the Fibroid Lottery! Or there’s a genetic tendency, which I am unsure of and might look into. In any case, three of these fibroids are subserosal, which means they’re just hanging out on the surface of the uterus and not really bothering anything. One of them looks like it might be submucosal, meaning it’s in the lining, and is likely the one that’s causing my nasty little issues.


Anyhow, I talked about options with the doctor. There’s a whole range of things that are generally done for these bad boys, all the way from “nothing” to “hysterectomy”. The latter would be overkill, but there are more minor surgical options to get them removed. However, since my only issue with them at the moment is the pain and the gore, I’m just gonna go on drugs. I’ve historically not gotten along well with birth control (which is often prescribed to regulate bleeding) but I’m going to try something vaguely related – Provera – to see how that works out. If the nasty side effecst of birth control surface, I’ll try Lysteda, which is apparently something you can take just during the week of your period to help things out. And to be honest, the idea of having a period that lasts only a week makes me feel kinda giddy, because for the last year or two I’ve evolved to a 2-3 week kinda girl, which, to be honest, really blows. Also looking forward to not feeling randomly weak and craving steak & spinach salads all the time, because iron. Yay iron!


Anyhow, I should probably be sad that I have tumors, but as I already figured something was wrong with me, I’m just super happy that a.) it’s not cancer and b.) I don’t have to get cut open!




ptocheia [userpic]

Graveyard.css, or Where I’m Putting Old Code Out to Pasture

April 25th, 2013 (08:55 am)

So I’ve been doing a lot of code cleanup as of late. Meaning I’ve been going through a rather large CSS file and trimming the fat, not to mention doing a bunch of theming changes. I really hate commenting things out as a regular practice, as it looks ugly and still takes up space. Now and then, sure, but when you’ve got hundreds of lines of code in a single file all commented out, I just can’t deal anymore. And, sometimes I realise there’s a bit of code that I dumped a month or so ago that I’d like to find again. In theory, version control should save the day. Course, looking at my commit messages in Git is all like “Fixed layout on landing page!” with changes to a bunch of different files (yeah, I’m super organized).


I’m doing some fairly major reskinning in an area of a site right now, and while there’s code I’m perfectly happy to just delete, there are some styles that I get paranoid I might regret sticking on the ole chopping block. Also, I’m paranoid of someone above me down the line getting reminiscent for a certain look that I killed off. So I came up with the idea for graveyard files. I’ve got a file, graveyard.css, where I’ve started pasting in CSS classes I no longer have a need for, but am not ready to just delete yet. Graveyard.css isn’t loaded by any page, it just hangs out in the CSS directory with the rest of the files and keeps them company. It caters to my natural packrat instinct, and helps cut down the anxiety that comes with deleting several hundred lines of code.


I’ll be starting a graveyard.js pretty soon as well, as I’ll be cleaning up from some functionality that’s been disabled. And, because every JS directory needs a spare closet.




Originally published at Ptocheia.net

Reply   Link
ptocheia [userpic]

Oh hey, I made a sealife painting

April 9th, 2013 (11:20 pm)

So this is the sort of thing that I paint when I want to paint something but don’t have any sort of super strong vision.


sealife


So, yeah, sealife. It’s just pretty easy to sit there and draw fish, I suppose. Sketched this in, then did watercolor with colored pencil on top, and painted in some silver in the background. Believe it or not, there’s blotted blue inbetween the silver waves. The scanner apparently didn’t care for it, however!




Originally published at Ptocheia.net

Reply   Link
ptocheia [userpic]

How I finally figured out how to deal with stupid overflowing text

March 23rd, 2013 (09:46 pm)

So I have randomly come across this issue where I’ve got text that needs to fit into a specific area – not all the text needs to show, but enough of it so you know what’s going on there, content-wise. This seems to happen with table data, and of course I’ve got to deal with how the content moves around on smaller screens – and usually it’s a case of where everything needs to stay on one line. So I’ve done some half-assed php character limiting, where really there was a much more elegant solution sitting out there waiting for me this entire time.




white-space: nowrap;

overflow: hidden;

text-overflow: ellipsis;


I feel kinda dirty about the fact that I discovered this via Yahoo’s homepage, but I’ll take what I can get.




Reply   Link
ptocheia [userpic]

My fancybox stopped working!

February 24th, 2013 (05:46 pm)

So I was randomly puttering around on varoper.com and made the scandalous discovery that, in the art section, none of the images were opening in lightboxes. For shame! First came denial: I went through a brief period of self-doubt where I began questioning whether the lightboxes had ever really worked in the first place. The came the bug-checking. And then came the googling. Apparently Fancybox (the particular brand of lightbox that I’m using) doesn’t work with the latest version of jQuery (version 1.9.0). This thread gave me some options as to how to fix it, and I went with adding the migration script below my jquery script. And, fixed! Woo.




Reply   Link
ptocheia [userpic]

I randomly found a “to-do in 2012″ list

January 21st, 2013 (08:49 pm)
Tags:

These sorts of lists usually end up containing much more optimism than realism, and this list is no exception to that. It was scrawled out in one of my random notebooks. Let’s see what I wanted to get done, versus what I *actually* got done:



  • Finish 2011 NaNo CYOA novel

    Hah. Haven’t touched it since December 2011. Poor little novel!

  • Translate Quest into Spanish

    Talk about ambitious. Didn’t happen.

  • Continue min of once a week food blogging

    I’m lucky if I get one out once every 2 weeks these days. Hard to say why. When actually writing the posts, I enjoy it. But, I’m coming up on 5 years of having that blog now, so I suppose the novelty wore off long ago.

  • Get WP responsive design theme, update it for tastyniblets.com

    Oh hey, I actually did this one. Cross it off the list!

  • Responsive design theme for ptocheia.net (maybe trash current look)

    Another one I actually did. Course, the old look got trashed for a kinda crappy templatey look with a half-assed header, one of these days I’ll do some reskinning.

  • Rapidsthuglife.com: pull data from twitter, blogs, news. Possible scoreboard?

    Heey, we’re pulling data from twitter, 2 blogs, and I’ve got the schedule up which indeed includes scores (when I remember to add them, at least…)

  • MLP/Last Supper painting

    Didn’t happen. Kinda forgot about this idea. A bloody brilliant idea it is, though!

  • Tumblr for ptocheia (& do what with it?)

    “Make a tumblr” is a pretty sad item to have on one’s to-do list. But make a tumblr I did. And I even update it about as often as I update the rest of my blogs!

  • Once a month work blog post

    Nope. No one read the posts I did make, and as I don’t work there anymore, it’s all kinda moot.

  • Revamp varoper.com (D7? Rails?)

    Revamped, yes. Looks better now, and is responsive. The job hunt drove the completion of this one. Never learned Rails, still not sure if it’s worth it to learn Rails. Might convert to D7 at some point though, just for organization’s sake for when I (hopefully) start making more art and adding photos of said art to the site.

  • Get better keyboard/piano. Use it.

    Well, hijacking a significant other’s keyboard counts, I presume? Still have to use it more. I suffer from this problem where I like playing songs I know, I only know how to play a few songs, and almost every one of them are songs that Chris can’t stand. And thus the keyboard sits.

  • 2-3x a week gym

    Yeah right. I am figuring out better methods here, at least. Rather than make myself work out for 45 minutes and then dread going back to the gym, I do 20-25 minute increments so it’s a bit more pleasant and I’m thus more likely to want to do it.

  • Do more things with beans

    I’ve made quite a bit of hummus and refried beans in the past year? Let’s pretend that counts.

  • D7 CYOA module

    Yeah, too ambitious. Ignoring the fact you can probably build CYOA functionality with views and fields anyhow.

  • More Drupal meetups

    Not so good at this. Social groups full of people I don’t know are intimidating. Gotta work on getting over that as well, I suppose.

  • Edit binary shirt

    Wow, I don’t remember if I still own this shirt. Got it like 10 years ago, says “You are dumb” in binary. And it’s kinda big and flappy. Or was kinda big and flappy until I gave it to Goodwill or lost it or whatever. Hmm…


And in conclusion, I only seem to be good at getting things done if they involve my websites. Now, to contemplate making a similar list for next year so I have a list of things I haven’t completed to fondly look back on next January!




Reply   Link
< back