Hi I like to know how to write REGEX for the following code.
<a href="/search?q=user:111111+[apple]" class="post-tag" title="show all posts by this user in 'apple'">Apple</a><span class="item-multiplier">× 171</span><br>
I just need to fetch Apple from the above source code.
Can anybody help me out in writing REGEX.
Thanks
Hi,
When I write tests in JUnit (in Spring context) I usualy do it like this:
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:testContext.xml")
public class SimpleTest {
@Test
public void testMethod() {
// execute test logic...
}
}
How can I do the same with TestNG?
Hi,
I own a website, in which my users will fill a particular for many times in a single day.
All i need is i want to give them a digital writing pad, so that they write the content in the pad instead of typing. And i need the written content to get automatically stored in my website form.
Will this be possible, if yes how???
Pleas help me on this.
Regards
Vinoth
page contents:
aa<b>1;2'3</b>hh<b>aaa</b>..
.<b>bbb</b>
blabla..
i want to get result:
1;2'3aaabbb
match tag is <b> and </b>
how to write this regex using javascript?
thanks!
Please I need help.
I have project in which I need application which communicates with local DB server and simultaneously with central remote DB server to complete some task(read stock quotas from local server create order and then write order to central orders DB,...).
So, I don`t know which architecture and technology do this.
Web application, .NET WinForms client applications on each computer, or web services based central application with client applications?
What are general differences between this approaches?
Thanks
I want to write a query like this:
SELECT o.OrderId, MAX(o.NegotiatedPrice, o.SuggestedPrice)
FROM Order o
But this isn't how the MAX function works, right? It is an aggregate function so it expects a single parameter and then returns the MAX of all rows. Does anyone know how to do it my way?
Write an iterative program that finds the largest number of McNuggets that cannot be bought in exact quantity. Your program should print the answer in the following format (where the correct number is provided in place of n):
"Largest number of McNuggets that cannot be bought in exact quantity: n"
in python
Can you help in this example? I am a beginner. Thanks
using System;
class Program
{
public static void Mian(string[] args)
{
Console.Write("Your Name?: ");
string name = Console.Read();
Console.WriteLine("Welcome {0}", name);
}
}
I'm using Goliath as my app server, and I am trying to convert "Ruby – Secure staging environment of your public app from users and bots" so it applies to my Goliath application.
I am trying to use Rack::Static but I'm not sure how to write the code. I was trying something like:
class Application < Goliath::API
use(Rack::Lock)
But I am not really sure how to translate the link I posted.
I'm open to other alternatives, I just need my whole site password protected.
I have read about NSPasteBoard in the Apple documentation, and how it allows for applications to write into the PasteBoard and allow other applications to read that text and use it.
Could someone tell me how to paste text from am application (that sits in the status bar) into a NSTextField that is inside a different application.
What I am trying to do is something similar what Snippet and SnippetsApp do.
If I am completely stupid and missed the obvious in Apple Docs, could you please point me to the right path :)
Thanks!
I have a need to query an existing Sybase ASE database and would like to use Linq syntax for my data retrival.
I don't need write access, nor do I need the full set of Linq operators, just Select(),
SelectMany(), Where(), and GroupJoin()
What are options are available?
In particular, I'm wondering about nHibernate and building a new Linq2Sybase provider based on the IQ toolkit.
I could write something pretty easily to determine whether the mouse is over a given element, but is there already anything in the jQuery core library (or a plugin I guess) that will tell me whether the current mouse position is over a given element?
Hi @All
How to send binary data (01110110 for exemple) with C# throught a TCP (using SSL) socket ?
I'm using :
SslStream.Write()
and
h[0] = (byte)Convert.ToByte("01110110"); isn't working
Thanks.
Hello everyone,
How can I assert a fact into a file without deleting the previous fact?
In the following line, when I execute it twice, the second fact overwrites the first fact:
tell('animal.txt'),write(Animal),nl,told.
But when I use assert or assertz it will do nothing.
Help me please.
Thank you :)
Hello,
We know that we can use a concept "Java Package" but I just wanted to
know that whether Android has provided a DLL or DLL like concept where we can write a
most of the functionality.
Or can we use Activity for serving a purpose of DLL.
Can any one tell me is there any concept like DLL on Android OS? Can we develop a DLL for better modularization and other benefits on Android?
Thanks and Regards,
Prashant.
I'm pulling an RSS feed from a remote location using ServerXmlHttp:
Dim httpRequest
set httpRequest = server.createObject("Msxml2.ServerXMLHTTP.6.0")
httpRequest.open "GET", "http://www.someurl.com/feed.xml", false
httpRequest.send()
response.write httpRequest.responseXML.xml
However there must be encoding issues somewhere along the line as I'm seeing ???? where there should be some Japanese characters. Does anyone have any guidance when working with ServerXmlHttp?
Thanks.
I'm trying to write a program that can read the signal strength of a bluetooth device linked to my android 2.0 handset. Doesnt seem like android exposes anyway to get the RSSI unless it is during discovery. Is there any other way to get the signal strength of the device after the device has been detected? I read of a way to do it using NDK to access the underlying BlueZ API, but I dont know how to use that. Any help would be appreciated.
I've seen posts which have the same answers repeated over 5 times.
I could understand if another person posted the same answer while you were posting yours, but sometimes the differecen between an answer and the other is enough to see that other person already gave that answer and it's not necessary to write exactly the same.
Clojures clojure.xml/parse, clojure.zip/xml-zip and clojure.contrib.zip-filter.xml/xml- are excellent tools for pulling values out of xml, but what if I want to change the xml (the result of clojure.zip/xml-zip) based on what I learn from xml- "queries" and write the result back out as xml?
I would have expected that (clojure.contrib.prxml/prxml (clojure.xml/parse xml-content)) spit back xml, but that is not the case.
Is it possible to open and read from a text file in a MYSQL stored procedure? I have a text file with a list of about 50k telephone numbers, and want to write a stored procedure that will open the file, read the 50k lines and store it as rows in a table. I cannot load the file directly using LOAD IN FILE as the table has additional columns that I have to set.
Thanks!
hi,
I have a win form that creates a site in IIS7.
One function needs to open the web.config file and make a few updates. (connection string, smtp, impersonation)
However I do not have the virtual path, just the physical path.
Is there any way I can still use WebConfigurationManager?
I need to use it's ability to find section and read/write.
System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration
Thanks!!
Hi,
I'm developing a REST Web Service using a XML format response and I have some problems (Really, one problem).
One of my resources has some final fields so once they're created, they can't be modified. According to that, I need different representations for this resource depending on what I'm doing: Creating or modifiying it.
What should I do, give to the user different XML-Schemas for the same resource or write just one XML-Schema and read some fields or not depending on the method I'm being requested??
Thanks
I'm modifying the Linux kernel and am trying to find where in the kernel source blocks of data are physically written to disk partitions such as ubd0. Where does this occur in kernel source? The actual physical write call? I cannot find this. Thanks!