 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Lorna Mitchell's Blog: Github to Jira Bug Migration Script
by Chris Cornutt March 09, 2011 @ 10:18:18
As part of a migration the Joind.in project made to track their bugs on a hosted Jira instance instead of the Issue Tracker on Github, Lorna Mitchell, one of the leads on the project has written up an import script she used to move current issues. The code is in her latest post.
I migrated only our open issues, and comments (and the comments ended up a bit weirdly formatted on the other end but this was the best they could do). It was nothing pretty or clever but in case it's useful to someone else.
The script connects to the github API and pulls down the information for the open issues including their titles, user and body of the issue. This is then used to make another connection for each to fetch their comments. The whole thing is dumped out to a CSV file that can be easily imported by the Jira team.
voice your opinion now!
github jira import issue list bug migrate csv api
Lorna Mitchell's Blog: 3 Ways to Access a Namespaced PHP Class
by Chris Cornutt November 29, 2010 @ 12:49:36
Lorna Mitchell has posted three different ways you can use to get access to a namespaced class in a PHP 5.3 application, all useful depending on where you are in the application and your needs.
After what felt like years of debate over the notation to use for PHP's namespaces, it seems like the feature itself has had relatively little use or attention since it was actually implemented in PHP 5.3. We're all used to working without it but using it does make code neater.
Her three options are:
- Refer Namespace and Class Name
- Import the Namespace
- Alias the Namespace and/or Class
You can find out more about namespaces in PHP applications on the PHP manual.
voice your opinion now!
namespace access method example import alias class
ThinkPHP.de: Import and export data using PHPExcel
by Chris Cornutt July 15, 2010 @ 10:21:12
On the ThinkPHP blog today there's a new post looking at their experience with PHPExcel to open, modify, save, etc Microsoft Excel files directly from PHP.
EAR's Spreadsheet_Excel_Writer combined with the project Spreadsheet_Excel_Reader on SourceForge was a good helper in the past - but only for BIFF5. BIFF8 support in spreadsheet excel writer has been a problem for a long time, and according to the authors, is still somewhat kludgy in the current version. So I needed an alternative. After a short research I stumbled upon PHPExcel which supports reading and writing of many formats in one API.
He lists some of these input and output formats and includes a simple example of how to use the tool. He creates a basic Excel file with a few different attributes (title, body, keywords) and show how to read in a document to extract the document's content.
voice your opinion now!
import phpexcel export tutorial excel microsoft
SitePoint Web Tech Blog: Importing Content into Drupal
by Chris Cornutt April 19, 2010 @ 11:23:22
On the SitePoint Web Tech blog there's a new post just for those looking to move their site(s) over to a Drupal installation - a quick technique for importing your information into a shiny new Drupal instance.
One of the most painful steps in any web system is importing content - especially so with Drupal. It is something that I have always dreaded. [...] That is all in the past. I am happy now. I recently discovered a module that is a crown jewel in the Drupal Contrib community - Feeds.
With the Feeds module you can directly pull the information in from the feeds your site already provides (or ones you could whip up quickly) and pull it directly into your new site - even CSV content will work.
voice your opinion now!
drupal import content tutorial feeds module
Sameer Borate's Blog: Simulating Packages in PHP
by Chris Cornutt November 05, 2009 @ 07:52:20
Sameer Borate has a new post to his blog looking at the idea of simulating the idea of packages that several other languages have (like Java) with similar functionality to use them.
Most modern languages have a concept of packages, wherein related classes are stored together. PHP sadly doesn't have a similar concept. [...] But in the spirit of 'programming into the language', what we can do is try to simulate a 'package-like' concept in PHP.
Wanting to stick with the "import()" function call, he's created a bit of sample code to mimic Java's loading method. The function more or less does what the auloading included in PHP can accomplish and he points out two issues with it - it doesn't really do a real "import" just an include and that, how it stands, you cannot tell what order the files will be included in (no sorting at all).
voice your opinion now!
import package simulate tutorial
Christian Weiske's Blog: Importing huge XML files using PHP5 - efficiently and conveniently
by Chris Cornutt August 25, 2008 @ 09:34:38
Christian Weiske has a quick tip on how to get larger XML files to pull into PHP5 and be usable:
At work I had the task to implement the synchronization between an online shop and a commodity management system. Data exchange format was XML - one big XML file for all of the products (some thousands with dozens of attributes). Big question: How do I import the file in a way that is most convenient for me as a programmer - and without exceeding the machine's RAM when loading a 1 GiB file?
The newer alternatives both use the same technology (DOM and SimpleXML - with DOM behind it) so he goes more "low tech" than that and opts for the XMLReader extension to pull in the large amounts of data. Available in PHP5, the XMLReader extension, which he combines with an Iterator from the SPL to makes for a simple, quick little parser.
voice your opinion now!
import xml file php5 efficient convenient xmlreader spl iterator
|
Community Events
Don't see your event here? Let us know!
|