I have some testcases/strings in this format:
o201_01_01a_Testing_to_see_If_this_testcases_passes:without_data
o201_01_01b_Testing_to_see_If_this_testcases_passes:data
rx01_01_03d_Testing_the_reconfiguration/Retest:
Actually this testcase name consists of the actual name and the description.
So, I want to split them like this :
o201_01_01a Testing_to_see_If_this_testcases_passes:without_data
o201_01_01b Testing_to_see_If_this_testcases_passes:data
rx01_01_03d Testing_the_reconfiguration/Retest:
I am unable to figure out the exact way to do this in explode in php
Can anyone help please?
Thanks.
I keep getting this error on my project and i cant figure it out! please help!
error C2143: syntax error : missing ')' before 'constant'
the line is:
while (selection == ('a','b','c', 'd', 'e', 'f', 'g', 'h', 'i','A','B' 'C', 'D', 'E', 'F', 'G', 'H', 'I');
also i know there is an easier way to write that line out but im not sure how i can do it. im a beginner at this so can any of you pros edit this line for me!
Does anyone have a no JavaScript way to make HTML checkbox still submit a value? As in if you check it the form submission will include a value A but if it is uncheck it still contains a value B?
While I figure there isn't any way, I'm working on a site which needs to still be function when JS is off, and this would be ideal.
Almost all is dialed in except then I click the pause/play button, the current activeSlide div doesn't fade in on rollover like the other slides do. Bit at a loss to figure out why it's not allowing hover even though it works when the cycle is not manually paused (i.e. when just rolling over the pager numbers).
Thanks for any guidance!
http://www.xtracycle.com/home-test-a-rooney
Trying to inject CSS and JS files reachable through Qt resources (qrc://) through JavaScript (using this technique) which itself is injected through a evalutateJavaScript() call fails fails miserably hitting this test in QNetworkAccessFileBackend.
I can't figure how to make this work, really. I could subclass QNAFB but then I would need to subclass QNAM as well to make it instance my subclass instead of QNAFB?
In his book programming in scala (Chapter 5 Section 5.9 Pg 93)
Odersky mentioned this expression "bills !*&^%~ code!
In the footnote on same page:
"By now you should be able to figure out that given this code,the Scala compiler would
invoke (bills.!*&^%~(code)).!()."
That's a bit to cryptic for me, could someone explain what's going on here?
Hey All,
I'm trying to use the nntplib that comes with python to make some posts to usenet. However I can't figure out how to post binary files using the .post method.
I can post plain text files just fine, but not binary files. any ideas?
Hi
I'm trying to figure out how to set Data property of the Path element to get soft corners of this type:
Right now I have only sharp corners like this:
I tried playing with ellipses, but I can't get what I want.
Thanks
I have a fixed width datagrid being built programatically, and am trying to put a header over top of it that will scroll with it. I can't do it as part of the grid as that destroys the fixed width of the cells.
I would like to be able to scroll the top div as the scrollbar for the DataGrid scrolls. This seems how the header works already, so it should be possible. I just can't figure out how to link/attach it.
I'm trying to figure out how to get a list of and documentation for the system calls available in the XNU kernel in OSX. I've googled around quite a bit, but haven't been able to find anything of use. As I understand the calling conventions match BSD, is that correct?
Thanks
I'm using the grails navigation plugin and one of the things i want to do is have the menu item have a dynamic number in it for example
static navigation = [
group:'tabs',
order:7,
title:'Mail',
action:'index',
subItems: [
[action:'pending', order:1, title:"Pending"],
[action:'active', order:10, title:'Active'],
[action:'completed', order:11, title:'Completed']
]
]
So i want to figure out a way to make the title Mail(3) or Mail(2) based on the amount of messages a user has.
I know this will have to be set in the method or by a service of some sort i'm just not sure how to get it to update.
I am trying to declare a class B in a namespace A using Luabind (from the Lua side). I figure that if Luabind has a clean way to do this, it would look something like this:
class 'A.B' (Super)
function A.B:__init()
Super.__init(self)
end
Notice that the B class is defined in the A table. I know the following hackish way of doing this:
class 'A.B' (Super)
A = {}
A.B = _G['A.B']
However, I would really like to know if Luabind provides this feature explicitly.
I did a quick search, but couldn't find a specific solution to this (I'm sure it HAS been answered) but, I need to figure this out...
Anyone know why this won't work in IE?
$(document).ready(function() {
$(document).blur(function() {
window.close();
});
});
And what to do instead?
Thanks.
I am trying to figure out how to pull multiple max values from multiple columns. Here is some sample data:
DATE | A | B | C
4/4/2011 | 64.4 | 62.1 | 33.3
4/5/2011 | 34.6 | 33.5 | 32.3
4/6/2011 | 33.1 | 49.4 | 32.1
4/7/2011 | 55.2 | 32.8 | 33.5
4/8/2011 | 31.2 | 50.1 | 30.4
4/9/2011 | 31.7 | 31.1 | 30.4
I want the top 5 so:
4/4/2011 | 64.4
4/4/2011 | 62.1
4/7/2011 | 55.2
4/8/2011 | 50.1
4/6/2011 | 49.4
Thanks
I'm trying to figure out how to implement an event in a ruby class. Specifically, I am trying to make my class implement an interface (INotifyPropertyChanged) that includes an event (PropertyChanged). I can create my add_PropertyChanged and remove_PropertyChanged methods... but then what?
This is what my class looks like so far:
class TestClass
include System::ComponentModel::INotifyPropertyChanged
def add_PropertyChanged(handler)
end
def remove_PropertyChanged(handler)
end
end
Project: http://design.vitalbmx.com/fave/news.html
When I click "Add to favorites" button (under main pic), in Chrome it animates UL,
while in Firefox and IE it does not work.
Can't figure out why it works differently. Please help.
How do you have a figure imported so that it appears on the bottom of a page with a caption? When I import it and put a caption on it normally, it always appears at the top of a page.
I have a Latitude, Longitude, and a direction of travel in degrees true north. I would like to calculate if I will intersect a line defined by two more Lat/Lon points.
I figure the two points defining the line would create my great circle and my location and azimuth would define my Rhumb line.
I am only interested in intersections that will occur with a few hundred kilometers so I do not need every possible solution.
I have no idea where to begin.
•if your new element is less or equal than the current node, you go to the left subtree, otherwise to the right subtree and continue traversing
•if you arrived at a node, where you can not go any deeper, because there is no subtree, this is the place to insert your new element
(5)Root
(3)-------^--------(7)
(2)---^----(5) ^-----(8)
(5)--^
i want to add this last node with data 5...but i can't figure it out...I need a algorithm to do that
or in java language
Hi guys, im developing an Android application for twitter that will sync data coming from the people you follow.
The problem is that:
http://api.twitter.com/1/statuses/friends.json
provides me the last 100 persons ive followed and i wanted to display only 20 for each 'page'.
I believe that the 'cursor' parameter doesnt do what i need, so i'm trying to figure out a way to store it.
Can you guys give me enlightenment?
Thanks in advance
Hello,
I'm trying to figure out how to group items like the grouped mail boxes in the mail app. I need it to be like selecting a mail box, when you tap it it loads new data, your inbox outbox and all of the other boxes for that mail account. Then you can tap back and return to all of your accounts. If anyone has a little sample code they could show or explain how one might go about doing this any help is appreciated. (Note: Im using the split view template)
Thanks
I have a basic XML object that I'm working with. I can't figure out how to access the parts of it.
EX:<br>
<pre><code>
< FacetsData>
< Collection name="CDDLALL" type="Group">
< SubCollection name="CDDLALL" type="Row">
< Column name="DPDP_ID">D0230< /Column>
< Column name="Count">9< /Column>
< /SubCollection>
< SubCollection name="CDDLALL" type="Row">
< Column name="DPDP_ID">D1110< /Column>
< Column name="Count">9< /Column>
< /SubCollection>
< /Collection>
< /FacetsData>
(PS: I can't get this damn xml to format so people can read it)
What I need to do is check each DPDP_ID and if its value is D0230
then I leave the Count alone, all else I change the Count to 1.
What I have so far:
node = doc.DocumentElement;
nodeList = node.SelectNodes("/FacetsData/Collection/SubCollection");
for (int x = 0; x < nodeList.Count; x++) {
if (nodeList[x].HasChildNodes) {
for (int i = 0; i < nodeList[x].ChildNodes.Count; i++) {
//This part I can't figure out how to get the name="" part of the xml
//MessageBox.Show(oNodeList[x].ChildNodes[i].InnerText); get the "D0230","1"
//part but not the "DPDP_ID","Count" part.
}
}
}
The .NET framework makes it easy to get information about various locales; the Win32 C++ APIs are a bit harder to figure out.
Is there an equivalent function in Win32 to get the two-letter ISO language name given an integer locale ID?
In C# I'd do:
System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo(1034);
string iso = ci.TwoLetterISOLanguageName;
// iso == "es" now.