Tuesday, 8 April 2014

c# Parsing strings controlling Expressions

I have a following formula in a Windows C# form that parses a textbox
string. The customary twine would feeling something like: z5 100c x87.50.
Another instance competence be:m5 100c vs z5 100c. In both examples, we
have several attributes that are important, "z5', "100", "c", "x",
"87.50". From this twine we am feeding it into several functions (these
functions are reduction important). we found several samples and have a
next code, though when we run a formula it will wholly parse a initial
found countenance and not iterate by and arrangement all found
expressions. For example, "z5 100c x87.50" advantage 5 and c. Is there a
improved slight for reading a whole string, afterwards parsing and
extracting a applicable information?private vacant
toolStripButton2_Click(object sender, EventArgs e){ twine agreement =
toolStripTextBox1.ToString(); twine contractConvert =
contract.ToLower(); Regex re = new
Regex("c$\\.?|p$\\.?|s$\\.?|f$\\.?|cs\\.?|ps\\.?|vs\\.?|x\\.?"); Regex
rePrice = new Regex("[0-9]{1,4}(\\.[0-9]{1,2})?"); Match m =
re.Match(contractConvert.ToString()); Match mPrice =
rePrice.Match(contract.ToString()); if (m.Success) {
MessageBox.Show(string.Format("Structure: " + m.Value)); } else {
MessageBox.Show("Structure incorrect!"); } if
(mPrice.Success) { MessageBox.Show(string.Format("Strike: " +
mPrice.Value)); } else { MessageBox.Show("Structure
incorrect! Requires a strike."); }}

Friday, 4 April 2014

Rails Deployment emanate on enabling config.ssl=true on live server

I am deploying my rails(3.2.12) application(site with subdomain) in
AWS(Elastic beanstalk) controlling a eb commandsgit aws.pushsomething went
wrong on enabling config.ssl=true in my production.rb , on a unbroken pull
server went down(on Elastic beanstalk shows that site station is green,
though in a production.log shows "Connecting to database specified by
database.yml")i have attempted by disabling config.ssl=true underline to
config.ssl= fake and the operative in live serverwhat competence be a
issueplease help

Tuesday, 1 April 2014

How do we query a chronicle of Xerces during runtime for an app deployed to JBoss 7.2?

Normally we can query a chronicle of Xerces as documented here controlling
org.apache.xerces.impl.Version.getVersion(). This does not work during
runtime underneath JBoss due to a
ClassNotFoundException:Code:Class.forName(
"org.apache.xerces.impl.Version" )Output:java.lang.ClassNotFoundException:
org.apache.xerces.impl.Version from [Module
"deployment.tep-web-services.war:main" from Service Module
Loader]org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)org.codehaus.groovy.runtime.callsite.CallSiteClassLoader.loadClass(CallSiteClassLoader.java:51)Where
is a Version category located underneath JBoss 7.2?