12 ms·
WhiteHouse.gov Releases Open Source Code
- mcantelon 17y agoNice to see them release some software. Would also be nice to see them release some human beings (i.e. Guantanamo).
- JairusKhan 17y agoI've helped the Bank of Canada (which is the Fed of the North) to start releasing Wordpress plugins: http://wordpress.org/extend/plugins/profile/bankofcanada http://wordpress.org/extend/plugins/profile/bankofcanada
- iamdave 17y agoThis is absolutely awesome
- superjared 17y agoThe Akamai project they released is licensed under GPLv2. I'm too lazy to find out the truth, but I suspect the other projects have the same license.
- macrael 17y agoNode embed has the same license. What is dupral licensed under?
- mechanical_fish 17y agoGPL v2: http://drupal.org/licensing/faq http://drupal.org/licensing/faq
- metachris 17y agoWow, great -- four drupal 6 modules and five links to drupal.org from the white house! * Akamai Integration: http://drupal.org/project/akamai http://drupal.org/project/akamai * Context HTTP Headers: http://drupal.org/project/context_http_headers http://drupal.org/project/context_http_headers * Node Embed: http://drupal.org/project/node_embed http://drupal.org/project/node_embed * GovDelivery: http://drupal.org/project/govdelivery http://drupal.org/project/govdelivery All released under the GPLv2.
- erlanger 17y agoReally they are only open-sourcing GovDelivery. There's a lot of questionable code in there. Is this really how you'd do this? // the user may have put in an address of the form "Full Name" <email@domain.tld> instead of just the address, // so we want to filter to the right address function govdelivery_filter_email($address) { // borrowed from the drupal valid_email_address($mail) function $user = '[a-zA-Z0-9_\-\.\+\^!#\$%&*+\/\=\?\`\|\{\}~\']+'; $domain = '(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.?)+'; $ipv4 = '[0-9]{1,3}(\.[0-9]{1,3}){3}'; $ipv6 = '[0-9a-fA-F]{1,4}(\:[0-9a-fA-F]{1,4}){7}'; // setup an array for the matching expression $matches = array(); // the regex below is adapted from drupal's valid_email_address($mail) function preg_match("/$user@($domain|(\[($ipv4|$ipv6)\]))/", $address, $matches); return $matches[0]; } The module uses MySQL-specific functions (FROM_DAYS, TO_DAYS, FROM_UNIXTIME) so it is not portable. Relying on these instead of the PHP equivalent makes me wonder how many other shortcuts are in there. Several undefined constants are referenced (NAGIOS_STATUS_*). I'm not sure what's going on in odmService.php. The module was authored by Chris D'Antonio of Acquia (which we can assume has a contract with Uncle Sam), aka http://drupal.org/user/250704 http://drupal.org/user/250704
- deleted 17y ago[deleted]
- endlessvoid94 17y agoCriticizing the quality of open source code is a little weird, isn't it? Contribute a fix and make it better. This is a huge step.
- cwisecarver 17y agoThey should do is with all unclassified govt software. American tax dollars paid for it why shouldn't everyone be able to use it?
- Avshalom 17y agoI wonder if source code can be requested under the Freedom of Information Act. The act only applies to the executive branch but that's still probably a lot of software.
- ggruschow 17y agoI was told my work could be requested under the FOIA when I programmed for the army.
- arst 17y agoI'm not sure of the details, but this may be complicated by the fact that a lot of government source code was produced by outside contractors.
- acdha 17y agoThis varies widely but our website code is definitely owned by NASA - they even run the version control system to make sure that other contractors don't "forget" to give it to them.
- adolph 17y agoYes, an example is Vista. It is electronic medical record software for the Veterans Affairs department. See: http://en.wikipedia.org/wiki/VistA http://en.wikipedia.org/wiki/VistA
- ibsulon 17y agoWell, that's how Expect became public domain...
- elblanco 17y agoMany times, those pieces of software integrate with commercial third party components. In most of those cases, the government produced software is basically just glue to bind together lots of libraries. In other words, it would likely be useless.
- caccount 17y ago?
- orangecat 17y agoNot generally a fan of the Obama administration, but this is very cool.
- natfriedman 17y agoUnder section 105 of the US Copyright Act, works produced by the US government are not entitled to domestic copyright protection and are therefore, essentially, public domain. IANAL but we've been down this road with the license on the White House flickr feed. Apparently this does not apply to contractors - which I find rather inconsistent. http://en.wikipedia.org/wiki/Copyright_status_of_work_by_the_U.S._government http://en.wikipedia.org/wiki/Copyright_status_of_work_by_the... Of course, whether the government actually publishes those works or not is an entirely separate question. So it's great to see this happening.
- protomyth 17y agoThe contractor clause is because of the military.
- dirkstoop 17y agoBut it sure comes in handy for other stuff. If the contractor clause is not applicable to this work even releasing it under the GPL is questionable, because that's most decidedly not the same as releasing it to the public domain.
- stilist 17y agoStill, it’s the sort of unforseen problem you want to have.
- jrockway 17y agoI'm not sure they have the choice about whether or not to GPL it. They are building on GPL'd code, which means their code must be GPL'd. Perhaps there's a formal way to say, "we won't go after you if you use our code against the terms of the GPL, but we can't control what Drupal does".
- protomyth 17y agoor they can't use GPL software because of the license.... They really need to obey the law and should have an actual statement about how this works.
- th 17y agoI'm not surprised. All third-party content on whitehouse.gov has been under a Creative Commons licence since Obama took office: http://www.whitehouse.gov/copyright http://www.whitehouse.gov/copyright