• Home

  • Custom Ecommerce
  • Application Development
  • Database Consulting
  • Cloud Hosting
  • Systems Integration
  • Legacy Business Systems
  • Security & Compliance
  • GIS

  • Expertise

  • About Us
  • Our Team
  • Clients
  • Blog
  • Careers

  • VisionPort

  • Contact
  • Scrape web content with PHP (no API? no problem)

    Piotr Hankiewicz

    By Piotr Hankiewicz
    July 7, 2016

    Introduction

    There is a lot of data flowing everywhere. Not structured, not useful pieces of data moving here and there. Getting this data and structuring, processing can make it really expensive. There are companies making billions of dollars just (huh?) for scraping web content and showing in a nice form.

    Another reason for doing such things can be for example, lack of an API from a source website. In this case, it’s the only way to get data that you need to process.

    Today I will show you how to get web data using PHP and that it can be as easy as pie.

    Just do it

    There are multiple scraping scripts ready to use. I can recommend one of them: PHP Simple HTML DOM Parser. It’s extremely easy to start with and initial cost is almost nothing, it’s open sourced also.

    First, download a library from an official site: https://sourceforge.net/project/showfiles.php?group_id=218559. You can use a composer version too, it’s here: https://github.com/sunra/php-simple-html-dom-parser.

    Let’s say that you have downloaded this file already. It’s just a one PHP file called simple_html_dom.php. Create a new PHP file called scraper.php and include mentioned library like this:

    <?php
    
    require( …

    html php

    WAL-based Estimates For When a Record Was Changed

    Josh Williams

    By Josh Williams
    July 1, 2016

    I originally titled this: Inferring Record Timestamps by Analyzing PITR Streams for Transaction Commits and Cross-Referencing Tuple xmin Values. But that seemed a little long, though it does sum up the technique.

    In other words, it’s a way to approximate an updated_at timestamp column for your tables when you didn’t have one in the first place.

    PostgreSQL stores the timestamp of a transaction’s commit into the transaction log. If you have a hot standby server, you can see the value for the most-recently-applied transaction as the output of the pg_last_xact_replay_timestamp() function. That’s useful for estimating replication lag. But I hadn’t seen any other uses for it, at least until I came up with the hypothesis that all the available values could be extracted wholesale, and matched with the transaction ID’s stored along with every record.

    If you’re on 9.5, there’s track_commit_timestamps in postgresql.conf, and combined with the pg_xact_commit_timestamp(xid) function has a similar result. But it can’t be turned on retroactively.

    This can – sort of. So long as you have those transaction logs, at least. If you’re doing Point-In-Time Recovery you’re likely to at least have …


    database postgres

    Garbage collection in your head, or how to vacation

    Jeff Boes

    By Jeff Boes
    June 28, 2016

    Recently I returned from the longest (8 workdays) vacation I have ever taken from this job (almost 11 years). I made an interesting discovery which I’m happy to share with you:

    Life goes on without you.

    I spent most of the time aboard a small cruise ship touring Alaska’s Inside Passage and Glacier Bay. During almost all of that, I was out of cell phone range (and, unlike a lot of my colleagues, I don’t carry a smart phone but just a dumb $5 flip phone). With no wifi on the ship, I was completely cut off from the Internet for the longest stretch in at least the last 15 years—​maybe the longest since I first got Internet at my house back in the mid–90s.

    Life (on the Internet) goes on without you.

    Facebook posts get posted, liked, commented on. Tweets happen, get re-tweeted. Emails are sent (for those that still use it, anyway). And life goes on.

    I can’t say I came back from vacation recharged in some stupendous way, but I think I’m better off than if I’d taken a shorter vacation in an Internet-connected location, checking up on the virtual world before breakfast and bedtime every day.

    So take vacations, and take meaningful ones—​disconnect from work. Don’t worry about what’s piling …


    travel

    Free Encryption for All, In Our Time

    By Lee Azzarello
    June 27, 2016

    The commodification of encryption algorithms happened in the 1990s. The conversation prior to this event was rife with controversy. Here are some paraphrased FAQs from the era:

    • “If encryption is free how will national security continue to be assured?”
    • “If these ideas become a commodity, bad people will use them to become worse!”

    or one of my favorites,

    • “These ideas are dangerous because I do not understand them.”

    Fortunately, history was on the side of the algorithm authors and now we have commodified encryption and can securely buy stuff from Amazon. Mission accomplished. Pats own back.

    Unfortunately, everything didn’t go as planned. SSL certificate vendors built small empires on asymmetric knowledge about a complicated process. In the USA, the National Security Agency influenced vendors to inject secret backdoors into their security products. Web browsers were installed with poorly implemented SSL certificate management. Academics wrote papers about experiments to break various kinds of security, then published them.

    So where does the casual web developer stand in this world? There’s too much chaos for any rational thought—​besides, all I want is a secure webpage that just …


    security

    Postgres migration speedup with table change analysis

    Greg Sabino Mullane

    By Greg Sabino Mullane
    June 13, 2016


    (A Unicode rabbit face 🐰 will never be as cute
    as this real bunny. Photo by Wade Simmons)

    One of our clients recently reached out to us for help in upgrading their Postgres database. The use of the pg_upgrade program was not an option, primarily because the client was also taking the opportunity to change from their SQL_ASCII encoding to UTF-8. (If any of your databases, gentle reader, are still SQL_ASCII, please do the same!). Naturally, we also took advantage of the lack of pg_upgrade to enable the use of data checksums, another action we highly recommend. Although there were plenty of wrinkles, and stories to be told about this migration/upgrade, I wanted to focus on one particular problem we had: how to detect if a table has changed.

    We needed to know if any applications were modifying certain tables because the speed of the migration was very important. If we could assert that no changes were made, there were some shortcuts available that would greatly speed things up. Initial testing showed that the migration was taking over eight hours, a time unacceptable to the client (no worries, we eventually reduced the time to under an hour!).

    Looking closer, we found that over half …


    postgres

    End Point CEO and NYSE Bell Ringing

    Rick Peltzman

    By Rick Peltzman
    June 10, 2016

    Wall Street. Back where it all started for me some 35 years ago. Only instead of being an employee of Oppenheimer and Company, I had the experience and honor of representing End Point as one of 7 companies chosen to “ring the bell” at the New York Stock Exchange, chiming in Small Business Week for JPMorgan Chase. (They work with 4,000,000 small companies.)

    The morning started early by going through security checks rivaling the airport, except I didn’t have to take my shoes off. After getting my nifty credential, we went back to the street where the president of the NYSE gave a welcoming speech, pointing out the buildings that are still standing from when Hamilton, Monroe, and Aaron Burr all started their own banks. As well as where George Washington was sworn in.

    All this while also getting free coffee from the main small business honoree, Gregory’s Coffee, and picture taking from the business paparazzi!

    We then went inside the storied NYSE building and made our way to the trading floor. The surroundings were immensely impressive, as the stock exchange still inhabits a huge floor with gorgeous 40 foot mid-18th century ceilings high above, holding up all sorts of 21st century …


    company

    Liquid Galaxy for Hyundai Card Travel Library

    Dave Jenkins

    By Dave Jenkins
    June 10, 2016

    image courtesy of retaildesignblog

    End Point and AZero, a South Korean system integrator, have partnered to deploy a 10-screen Liquid Galaxy to the newly-opened Hyundai Card Travel Library in Seoul, South Korea. This project presented a number of unique challenges for our teams, but we have launched successfully, to the great satisfaction of AZero’s client.

    The Hyundai Card Travel Library is an incredible space: wall-to-wall maple bookshelves hold travel brochures, photo books, and other travel-related material. The Liquid Galaxy displays itself sits in a small alcove off the main library space. Being fully enclosed, viewers can control the lighting and get a full immersion experience through the two rows of five 47" screens arrayed in an wall-mounted semi-circle arc. The viewer can control the screens via the podium-mounted touchscreen and SpaceNav mouse controller.

    We solved several technical challenges for this deployment: the extremely tight space made cabling and display configuration tricky. Also, this isn’t a “standard” 7-screen single row deployment, but rather two rows of 5 screens each. Working with AZero, End Point reconfigured the Liquid Galaxy display …


    visionport travel

    Talking UI/UX with Trey McKay

    Liz Flyntz

    By Liz Flyntz
    June 7, 2016

    Trey McKay was kind enough to let me ask him a bunch of questions. Trey’s an Interaction Designer at Shapeways, which is a global 3D printing service and marketplace.

    Trey focuses on designing and building experiences for turning 3D designs into 3D printed products. He’s worked on everything from site-wide navigation redesigns to a suite of 3D tools, which help product designers identify and fix potential issues in their designs before they go into manufacturing. If you want to stalk him on the Internet, check out his personal site or holler at him on the Twitter @trey_mckay.

    Liz Flyntz: What is the thing that is most misunderstood about user interface and user experience design, in your opinion?

    Trey McKay: In general, I’ve noticed that a lot of folks think that the role of a designer is to “make something pretty”. From coworkers to general public, I think there is a common misconception about what design is, how important it is, and what we as UX/UI designers do on the day-to-day.

    Design is how something works. Good design is transparent, as the saying goes, because when something is properly designed, it’s not getting in the user’s way. Well-designed products and services help …


    art ecommerce testing community
    Previous page • Page 67 of 222 • Next page