HNHacker News
TopNewBestAskShowJobs

justindocanto

558 karma · joined December 29, 2011

submissionscomments
justindocanto··on How to Center in CSS
The table-cell solution for vertically centering text is incorrect. You need to put that display:table-cell div inside a display:table div. It requires the parent in order to work properly.

Example: <div class="item"><div><p>Your text here</p></div></div>

.item {display:table;} .item > div {display:table-cell;vertical-align:middle;}

I use this method on justindocanto.com to vertically center an unknown amount of text/elements inside a div that changes its size based on the size of the image that's inside it. Really nice technique when used correctly.

justindocanto··on LinkedIn: The Creepiest Social Network
This link is now redirecting to an odd mix of the intended link + the wp install url

http://www.interactually.com/linkedin-creepiest-social-netwo...

justindocanto··on Offer HN: I'll test your web app from Tanzania
You may want to update what facebook has stored for your form's OG data as it has some old info/screenshots.

What I see: http://imgur.com/2OPznGX

Update here: https://developers.facebook.com/tools/debug/

justindocanto··on Facebook was down
All the 'is it down' websites are slowly going down with people searching for it.
justindocanto··on Why Infinite-Scrolling in Mobile Apps is Destroying Content Consumption
Before infinite scrolling, there was pagination, which also does not stop the user from digesting an entire database of content. Some infinity scrolling even requires a click; so, on those sites, it's the same amount of clicks to see more content as it is/was with pagination. I dont see infinite-scrolling being the cause of the problem.

I would suggest sites without filtering is the problem.

To get content that is a fixed length and consumable without overindulging, there needs to be a fixed amount of content that 1 person can digest. Otherwise, you just have this database/collection of content that 1 person cant quite possibly read in one sitting... regardless of if there is infinity scrolling, pagination, or some other way to navigate.

Newspapers, in a way, curate what they are going to display each day. It's like a filter in a way. All the content is filtered to show what can fit in X amount of pages.

Websites with this problem, if they want to solve the problem, need better filtering. That might not be the only solution, but i feel like it's a major contender in helping combat the problem of trying to figure out what to consume amongst limitless content consumption.

justindocanto··on GoDaddy Buys Media Temple
I would also love to hear other recommendations as well. Through the years, I've never found a better user experience then MT.
justindocanto··on GoDaddy Buys Media Temple
They have a new CEO who seems to have a much better moral compass, but everything else... in absolute agreement.
justindocanto··on GoDaddy Buys Media Temple
As somebody who's been chatting with people over at GoDaddy about their upcoming plans to improve their services/ui/support/etc, I've been giving them a chance because it sounds pretty great.

However, that fruit has yet to bare so I am 100% not happy with this at all. I'm actually really disappointed/frustrated/mad right now. This was my safe haven away from everything that budget hosts like GoDaddy did, stood for, provided, etc.

These kind of acquisitions always starts with "We won't be making any major changes" and then the company pulls a Yahoo and begins to slowly deteriorate.

This is the worst news, in regards to my every day business, that I've heard all year. I have 20 clients with DV servers, as well as my own servers and I am now feeling uneasy about this.

Also, have we not forgotten the anti-sopa / anti-godaddy coupon codes MediaTemple was giving out when people were bailing from GoDaddy during the SOPA/PIPA uproar? What happened to that? Nooooooo.

justindocanto··on No more CSS and HTML, just JS
Absolutely. I agree. And there are lots of other points worth arguing too.

My point in bringing up something like the difference in character count (not counting characters in the dependencies) is that just calling the function is already more work than basic html. That immediately is a NO for me.

One could argue maintenance, incompatibilities, bloat, optimization, debugging, and so much more.

justindocanto··on No more CSS and HTML, just JS
Even if i had an unordered list with 1,000 items (which why would I ever have that), it would still be less characters then the jquery dependency alone. That doesnt even include the ojjs source itself.

I get what you're trying to do, because i did something similar with forms in PHP, but the dependencies and functions are too much... especially for production use.

my advice is i would maybe focus on doing less things more efficiently. Or even better, offering a way like TW Bootstrap does, where you can choose your components and it spits out what you want.

I wouldn't use 95% of the functionality of this code so having thousands of lines of code that i will never use is very unattractive for me when im thinking about optimization, debugging, etc.

ADDITION: And i mean something that compiles your main ojjs js file, BEFORE the plugins. For example: I would never need any of the css functionality in this but it's included in the core. That's what i meant. I'm aware you have the ability to add 'plugins'. My idea of choosing parts was to choose parts within the current 'core' code.

However, it looks like you are investing a lot of time into this and it's not a bad idea, so i applaud that. Just think it needs a little organizing/re-thinking in some aspects. Good luck :)

justindocanto··on FBI wants real-time Gmail, Dropbox spying power
Am i the only person who assumes that everything we send/receive over the internet is already watched/surveyed/sniffed/logged/at least something by at least one branch of the government?

For the record, I dont mean that in a 'government is bad' tone. That is a different discussion. I mean that in an objective 'you'd think the people who run the country and have access to more resources then we ever will would just find a way to do it in the first place' kind of way.

They can send machines to mars, have laser guided devices fly to the other side of the world and hit a target, (insert more technically difficult feats here)... but they cant get access to all our data on the wires and networks they govern in their own country? i really doubt that.

justindocanto··on Bootstrap 3 preview
So glad I saw this. Thanks for posting that. I would have been very sad if they went flat.
justindocanto··on Hide all posts that mention the 'Gym' from Facebook (Satirical Chrome Plugin)
I have a lot of friends who are obsessed with going to the gym and posting about it on facebook. Going and being fit is one thing. A post about every set, leg day, and so on... is another. Some days it's 50% of my feed.

So as a joke between my friends, I made a 'I hate the gym' plugin for chrome that automatically hides all posts that mention the gym.

I wanted a reason to give making a chrome plugin a try, and this seemed like a fun way to learn, so this is what I made. Nothing serious here. Just a playful plugin.

justindocanto··on Source of HNs own 'Save to Pocket' link on every item?
Awesome. That was my guess. I didn't think pocket was that widespread enough that HN would implement something site wide like that... but I wasnt sure because they havent done anything site specific that i've noticed so far.

Thanks!

justindocanto··on Source of HNs own 'Save to Pocket' link on every item?
Ah ok. Must be my pocket plugin. (It's a 'read later' plugin).

Thanks!

justindocanto··on WebKit is the jQuery of Browser Engines
Great points. Nice read.
justindocanto··on Let me refresh that for you.
Would it be wrong of me to implement on the site to prevent that from happening? haha
justindocanto··on Let me refresh that for you.
Hmmmmmmmm. I like where you're going with this. Thanks!
justindocanto··on Let me refresh that for you.
I'm the guy who made this and I've appreciated every piece of feedback whether blunt, harsh, positive or not. I agree that the app does have issues, though I don't feel right calling it an app. Hootsuite is an app. Klout is an app. This is a 2 hour project that just happened to get some attention.
justindocanto··on Let me refresh that for you.
I would be lying if i said i didn't have LMGTFY in mind when I choose that domain name.
justindocanto··on Let me refresh that for you.
I feel like a bad developer for not knowing this answer.

Part of me wants to say yes because it's iframe traffic and independent of my website.

Part of me wants to say no because i dont have a cert for this domain and it might somehow try to communicate via http because of that? or at least cause some flags in your browser?

Either way I'm not sure I personally would trust a random guy (even though I'm pretty trustworthy) having my bank session hanging out in an iframe on his insecure personal project website.

justindocanto··on Let me refresh that for you.
i may have slightly piggybacked off the name of that website, hoping it would be a little easier to remember.
justindocanto··on Let me refresh that for you.
Another use case would be my website went down because it hit the front page of hacker news, and i need to see if it's come back up yet. (this didnt happen, im just giving a more coder oriented example since this is HN).
justindocanto··on Let me refresh that for you.
This is also true.
justindocanto··on Let me refresh that for you.
I agree. I'm not really trying to launch a product or make a business out of it, but this would be useful.

I'm thinking my plan of attack would be to check if the sites who blocked the iframes were sending back specific headers that i could detect, then if those headers were detected, i could do a little javascript trickery to show something like "this website does not allow... blah blah blah" and then provide a download link to refresh that website via a bookmarklet.

With that said, I'm not trying to piss anybody off or cause any sys admin nightmares by having tons of people refresh their websites... Idk, I'll revisit the idea when I get there.

Thanks for the suggestion!

justindocanto··on Let me refresh that for you.
One thing your reply reminded me of is I wanted to add a "Open in new window" button once you saw your desired result.

So, possible use case is actually something somebody is using it right now for.

My Bloody Valentine (MBV), a band who hasnt released an album in 21 years, is releasing their album tonight. They have a tab open with the website for MBV refreshing every 30 seconds or so.... and check back on that tab on occasion to see if it's live yet! Then once it's live... They'll know they can check it out.

They could also, if they had enough monitor space, like i do, could just have it sitting in the corner of their desktop refreshing away until they see the page change to what they want. That removes all the clicking of refresh, which is why i called it "Let me refresh that for you".

Yes, a script code do the solutions. Yes, you could sit their and click refresh over and over. But that's the point of technology, isn't it? To do things for us better than we could ourselves?

justindocanto··on Let me refresh that for you.
Anybody who could write the javascript to make that happen wouldn't need my website to make it happen. They could just enter most of what they would write directly into their browser bar.
justindocanto··on Let me refresh that for you.
That's true. I said 'browser' to a client on the phone the other day and they asked me what that was. I then had to correct myself and say "Internet Explorer". ;)

Jokes aside... Thank you!

justindocanto··on Let me refresh that for you.
This is true. A bookmarklet would be nice. But, I am not pinterest (who distributes a bookmarklet) or david walsh or anybody that gets tons of traffic so a bookmarklet that I distributed myself would just get lost in the mix... and that wouldn't help anybody.

I also wanted something that had some UI and a little control (ie. the ability to change the timing).

It's not perfect. I know. And you're right... People who know nothing about code, also know nothing about iframes, so there's that.

I'll have to come up with a solution for the iframe issue down the line. Maybe I'll distribute a bookmarklet on this site? =)

justindocanto··on Let me refresh that for you.
that's probably because of the bootstrap template.
← PreviousPage 2 of 8Next →