How do you query posts from more than one author in Wordpress?
something like:
query_posts('author=9,10&post_status=publish&orderby=date')
This is not working though.
I need to create a .DDS file with code that runs on both OSX and Windows. Although the format doesn't look difficult, I'd still like an example of writing the file. Note I don't need to read it, just write it.
C or C++ and RGBA bitmap.
I'm trying to redirect the output of my script and it needs to be called inside the script.
filename=uname -a
filename="$filename" date
2>&1 | tee $filename".txt"
That is what I have so far, but it's obviously wrong. I don't know too much SH scripting, so help is appreciated
-Alex
I may have string like,
"""Hello, %(name)s,
how are you today,
here is amount needed: %(partner_id.account_id.debit_amount)d
"""
what would be the best solution for such template may i need to combine regular expression and eval, input string may differ like $partner_id.account_id.debit_amount$ - for the moment I've kept as python string format - just for testing.
I have been trying to solve this problem for a lot of days. But wouldn't. Please help me.
I need a SQL to list product_code, product_name, qty_sold, last_order_date for all the products that have been sold within a date range sorted by the number of quantity sold.
My Table structure:
tbl_product(product_id,product_code,product_name)
tbl_order_detail(order_item_id,order_id,product_id,quantity)
tbl_order(order_id,order_date)
i'm wondering why doesn't this work ?
it gives me the exception that the "File Format Is Not Valid"
richTextBoxPrintCtrl1.Rtf = richTextBoxPrintCtrl2.Rtf.Insert(richTextBoxPrintCtrl1.SelectionStart, myString);
When I format a text field to be displayed in "Bold"..it appears as bold in the ireport output, but is not displayed in bold when the same is viewed as a PDF..
any suggestions...?
I am wondering how to write this query.
I know this actual syntax is bogus, but it will help you understand what I am wanting.
I need it in this format, because it is part of a much bigger query.
SELECT distributor_id,
COUNT(*) AS TOTAL,
COUNT(*) WHERE level = 'exec',
COUNT(*) WHERE level = 'personal'
I need this all returned in one query.
Also, it need to be in one row, so the following won't work:
'SELECT distributor_id, COUNT(*)
GROUP BY distributor_id'
I am dynamically creating a report, where I create a worksheet, bring in the records afresh. How can I easily type the field names and copy them to the cells. Without doing one cell per line, there are ~20 columns.
I tried:
dim fieldNames as variant
fieldNames = ("'DS Date', 'A', 'B', 'A','S ASD', 'S','D S','D S', 'S','D S', 'SD', 'S','D'")
Sheets("DATA").Range("C14:W14").Value = Application.WorksheetFunction.Transpose(fieldNames)
But it just posts the whole thing in each cell? Any ideas?
In asp classic and vbscript, you can declare a Const with a hexidecial value, and a date type value:
Const C_LIGHTCYAN = &hCCFFEE
Const C_STARTDATE = #1 JAN 2000#
But how can I declare currency, single or doubles data types?
Const C_LONG = 1024 '# I want this to be a LONG, not an INT!
I'm sure I've seen something like Const C_LNG = L12345 or some other prefix/suffix combination for longs or doubles but can't find the source now
I'm in need of a way to modify an unattend.xml file programmatically. It would be great if I could just serialize to and from an object. But to do so I would need to get a hold of the schema so that I can run it through XSD. The referenced link provides all the possible settings but it would be nice to have it in XSD format.
Any ideas?
Our application is JSF , hibernate & Spring. Currently the url is in following format
http://www.skill-guru.com/skill/login/testDetails.faces?testId=62&testName=PMP-Certification-practice-test
We want a clean url like http://www.skill-guru.com/urltitle?some parameter
One of the ways we could do this is through integration with Spring webflow with JSF.
Any other suggestions ?
We are trying Spring webflow 1.0 with JSF 2.0 but that does not seem to work.
I have this script that calls a .net WebService
msg = $.toJSON(
$.ajax({
type: "POST",
url: "http://[url]/ETS.UI/WebServices/LocationService.asmx/GetMappingLocationDetails",
contentType: "application/json; charset=utf-8",
data: $.toJSON({'componentId':994}),
dataType: "json",
async: false
}).responseText
);
And I recieve the following value in the msg variable:
""{\"d\":\"{\\"ComponentId\\":994,\\"Latitude\\":32.219627009236405,\\"Longitude\\":-110.96843719482422,\\"LocationName\\":\\"Tucson\\",\\"StreetAddress\\":\\"7201 E 22nd Street \\",\\"City\\":\\"Tucson\\",\\"State\\":\\"AZ\\",\\"PostalCode\\":null}\"}""
I have no idea why this would format this way, seems to only do this in responseText.
Does anyone have any ideas?
In my code, I have used ArrayList which stores the number format like '$0.00 to $1,000,000.00' in each index of array list. while iterate in JSP through tag,
its values are printing like
$0.00 to $1 as a first string, 000 as a second string and 000.00 as a thrid string.
but it has to print like '$0.00 to $1,000,000.00'.
what will be the problem is?
Thanks in advance
If it doesn't, what's the half-life of it?
It it does, where can find that information?
On my server I found a few logs for each of my releases. But they only date back a few days.
Specifically, I am looking for emails that were sent while my mail server was down two weeks ago.
Can someone explain to me why when I perform a LIKE select in SQL (T-SQL) on a varchar column I can do the following:
SELECT *
FROM Table
WHERE Name LIKE 'Th%'
to get names beginning with Th, but when I do the same on a datetime column I need a % before the year, like:
SELECT *
FROM Table
WHERE Date LIKE '%2013%'
to get dates in 2013. The datetimes are stored in yyyy-MM-dd hh:mm:ss format. I know I could use a DATEPART style query but I was just interested in why I need the extra % here.
The regular expression class (rxregexp.dll) that comes with ooRexx (I'm on 4.0.0) is relatively low on function compared, say, with Python's re module (even at 2.5.2).
It appears to have no assertions, no facilities for group extraction, or for substitution. Greedy or lazy matching is a global pattern option, rather than flagged by an additional "?". Basically, a pre-PCRE regular expression engine.
Does anyone know if anything with more up-to-date function is available?
Hi,
Could anyone point me in the right direction to parse an ID from a Vimeo URL in Javascript?
The URL will be entered by a user so I will need to check that they have entered it in the correct format.
I need the ID so that I can use their simple API to retrieve video data.
Any help appreciated.
Please tell me how to save and show Richtextbox's data in database and retrive it in saved format and which datatype should be used to save that data. i am using vb.net and MY SQL
I have a statement "New-Object -com Indesign.Application.Cs5 | Get-Member"
It works as expected for the top level.
How would one recurse the entire object tree and output results in a readable/spreadsheet format (if possible).
i have a form that create images and save it on a folder in the server. What i need to do is to display ALL created images to another page, the newest on the top and so that the oldest is at the bottom. i have a form called formdisplay.php but it's just displaying a broken image and not newest to oldest. hope you can help me with this. really need to get this working. thanks in advance for your help.
i have read the posts but none of those worked for me.
Pull dedicated images from folder - show image + filename (strip part of filename + file-extension)
How can I display latest uploaded image first? (PHP+CSS)
getting images from the server and display them
Displaying images from folder in php
display image from server embedding php in html
formcreatesave.php
imagecopymerge($im, $img2, 10, 350, 0, 0, imagesx($img2), imagesy($img2), 100);
$date_created = date("YmdHis");//get date created
$img_name = "-img_entry.jpg"; //the file name of the generated image
$img_newname = $date_created . $img_name; //datecreated+name
$img_dir =dirname($_SERVER['SCRIPT_FILENAME']) ."/". $img_newname; //the location to save
imagejpeg($im, $img_dir , 80); //function to save the image with the name and quality
imagedestroy($im);
formdisplay.php
$dir = '/home3/birdieon/public_html/Amadeus/uploader/uploader';
$base_url = 'http://birdieonawire.com/Amadeus/uploader/uploader/20131027024705-img_entry.jpg';
$newest_mtime = 0;
$show_file = 'BROKEN';
if ($handle = opendir($dir)) {
while (false !== ($file = readdir($handle))) {
if (($file != '.') && ($file != '..')) {
$mtime = filemtime("$dir/$file");
if ($mtime > $newest_mtime) {
$newest_mtime = $mtime;
$show_file = "$base_url/$file";
}
}
}
}
print '<img src="' .$show_file. '" alt="Image Title Here">';
please feel free to edit my code. thanks :)
There are plenty of resources available to a Java developer for getting a jump-start into Ruby/Rails development. The reverse doesn't appear to be true.
What resources would you suggest for getting up-to-date on the current state of java technologies? How about learning how to approach DRY (don't repeat yourself) without the use of metaprogramming? Or how to approach various scenarios where a ruby developer is used to passing in a function (proc/lambda/block) as an argument (callbacks, etc)?
I'm using flow player for streaming videos to my browser.The videos are uploaded by the users and they may upload different formats. What will be solution to stream the videos as mp4 , what ever be the format they upload. I'm currently using ffmpeg, as its not supporting most of the formats.