I've been hearing a bit about HORN lately, and wonder what problems it can solve or how a real life situation of using it is beneficial.
http://code.google.com/p/hornget/
This code gets 10 posts of all types that are linked to the term_name;
global $wp_query;
query_posts( array(
"taxonomy_name" => "term_name",
'showposts' => 10 )
);
This code gets 10 posts of custom post type "message";
global $wp_query;
query_posts( array(
'post_type' => 'message'
'showposts' => 10 )
);
…
I was writing a program in C++ to find all solutions of a^b = c (a to the power of b), where a, b and c together use all the digits 0-9 exactly once. The program looped over values of a and b, and ran a digit-counting routine each time on a, b and a^b to check if the digits condition was satisfied.
However, spurious solutions can be generated…
I am using the Spark View Engine for ASP.NET MVC2 and trying to use Blueprint CSS. The quick guide to Blueprint says to add links to the css files like so:
<link rel="stylesheet" href="blueprint/screen.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="blueprint/print.css" type="text/css" media="print">…
So I finally took the time to learn CUDA and get it installed and configured on my computer and I have to say, I'm quite impressed!
Here's how it does rendering the Mandelbrot set at 1280 x 678 pixels on my home PC with a Q6600 and a GeForce 8800GTS (max of 1000 iterations):
Maxing out all 4 CPU cores with OpenMP: 2.23 fps
Running the same…
I'm building a 4 layered ASP.Net web application.
The layers are:
Data Layer
Entity Layer
Business Layer
UI Layer
The entity layer has my data model classes and is built from my entity data model (edmx file) in the datalayer using T4 templates (POCO). The entity layer is referenced in all other layers.
My data layer has a class called…
I think I'm going a little crazy.
Right now, I'm working with the following languages (I was just doing a mental inventory):
C++ - our game engine
Assembler - low level debugging and a few co-processor specific routines
Lua - our game engine scripting language
HLSL - for shaders
Python - our build system and utility tools
Objective…
I'm trying to resize an image loaded from disk - a JPG or PNG (I don't know the format when I load it) - and then save it back to disk.
I've got the following code which I've tried to port from objective-c, however I've got stuck on the last parts. Original Objective-C.
This may not be the best way of achieving what I want to do -…
I am not sure what the proper term is, but I am trying to add a "TitleBar" to the top of one of the windows in my App. Much like the Contacts App, I have several Tabs along the top of the screen. When you select an item from the list, it loads the next Activity, but that Activity no longer has the Tabs at the top of the screen.
I…
I have a card-game application which makes use of Single Table Inheritance. I have a class Card, and a database table cards with column type, and a number of subclasses of Card (including class Foo < Card and class Bar < Card, for the sake of argument).
As it happens, Foo is a card from the original printing of the game,…
Hey folks,
I am attempting to work with XML-RPC via PHP on a GoDaddy server.
This same server is hosting a Wordpress Blog that makes use of XML-RPC and is functioning, though that may be unrelated...
Whenever I attempt to use any functions that are integrated into PHP for use with XML-RPC, I get an error (function list here:…
I have a set of points I want to plot on an embedded Google Map (API v3). I'd like the bounds to accommodate all points unless the zoom level is too low (i.e., zoomed out too much). My approach has been like this:
var bounds = new google.maps.LatLngBounds();
// extend bounds with each point
gmap.fitBounds(bounds); …
I've got a Python program that needs to create a named temporary file which will be opened and closed a couple times over the course of the program, and should be deleted when the program exits. Unfortunately, none of the options in tempfile seem to work:
TemporaryFile doesn't have a visible name
NamedTemporaryFile…
Hi,
I have been presented with a problem which requires me to print PDF files from a server as part of an ASP.NET web service.
The problem is further complicated by the fact that the PDF files I have to print can ONLY be printed using Adobe Reader (they were created using Adobe LiveCycle and have some strange…
IE 11 does not seem to be recognizing MSFullscreenChange. I have this code in the script:
document.addEventListener("MSFullscreenChange", function () {
if (document.msFullscreenElement != null) {
console.info("Went full screen");
} else {
console.info("Exited full…
I have the following CSS that hides the mouse cursor for anything on the web page. It works perfectly in FireFox but in IE and and Chrome it doesn't work.
html {
cursor: none;
}
In Chrome I always see the mouse pointer. In IE however I see whatever cursor was last 'active' when it…
What would be the best practice way to handle the caching of images using PHP.
The filename is currently stored in a MySQL database which is renamed to a GUID on upload, along with the original filename and alt tag.
When the image is put into the HTML pages it is done so using a url such as…
How do you "Attach to Process..." for a console application thats running from a CMD window and not launched by F5? The reason I ask is because the application takes command line arguments and I want to have a genuine experience.
I've even attaching to CMD.exe, but no luck, or setting a…
I am creating a vBulletin forum community called:
wehypnosis
We purchased the vBulletin version 4.0 CMS and the SEO plugin.
Im used to designing and building templates for drupal, wordpress and joomla. All of which have great documentation and many tutorials built by the community.…
In my View, I am trying to loop through a list in a LINQ object that as part of my View Model. This worked fine earlier today with the VS2010 RC and the .NET 4.0 RC.
<% if (Model.User.RoleList.Count > 0 ) { %>
<% foreach (var role in Model.User.RoleList) { %>
…
When navigating to a layouts page, I receive the following error:
Information Rights Management (IRM): Protector {GUID} could not be created as a generic COM object (IUnknown).
Protector: {GUID}
A similar issue was reported here
Has anyone encountered this?
I've been researching nosql options available for .NET lately and MongoDB is emerging as a clear winner in terms of availability and support, so tonight I decided to give it a go. I downloaded version 1.2.4 (Windows x64 binary) from the mongodb site and ran it with the following…
Thought this might be handy for someone, this is an extremely simple CSV export class that I needed. Features:
Extremely simple to use
Escapes commas and quotes so excel handles them fine
Exports date and datetimes in timezone-proof format
Without further ado:
using System;…