Posts

Any way to cause SQL Server to parse query in multiple lines so error reporting is more accurate? -

i might overlooking more robust error reporting, error reporting sql server gives me line number (which 1 line) non-syntactical errors. today client had ',' in price value, dealing 72 or fields took me quite awhile find given cannot cast float message. i thinking maybe force sql run code in multiple lines line number more useful bit of info. i tried line break, putting in new lines, , adding new line characters non of worked. does know way this, or have method tracking down these errors? i think try try_convert in fields not set varchar; mean can apply function dates, numbers, , other not character data. you can take @ example: http://msdn.microsoft.com/en-us/library/hh230993.aspx hope helps!

Does Pixate have any sort of callback mechanism for keyframe animations? -

curious whether or not subscribe event/notification @ end of keyframe animation. know? not @ time. found same question on github https://github.com/pixate/pixate-freestyle-ios/issues/86

Using Matlab from c# update variable issue -

in code shared below using matlab dll c# application.the values returned matlab object random variables expecting them change @ different calls. in matlab working normally( returning different values in each call) when click button again returning same values here , powerreclog() should return different value whenever click button again onum.lqia,onum.lqib,onum.lqic,onum.lqid not changing. private void button1_click(object sender, eventargs e) // yeni olcum { var acctx = type.gettypefromprogid("matlab.application.single"); var matlab = (mlapp.mlapp)activator.createinstance(acctx); matlab.visible = 0; matlab.putworkspacedata("pr", "base", 0); onum = new onlineolcum(); try { onum.xpos = convert.todouble(textbox1.text); onum.ypos = convert.todouble(textbox2.text); label1.text += " " + onum.xpos + ...

ios - iTunes Connect: price change via script / automated price change -

after having done googling, know it's possible update app's metadata, i.e. name, what's new, via script. it's possible change/update price of in-app purchases , create in-app purchases via script. however, can app prices on itunes, through itunes connect account, changed/automated via script? is, being able change price tier , price effective date , , price end date app. itc.cli in beta, , aims achieve current task. not officially supported, , such wouldn't rely on critical updates.

java - Paint not showing up -

i using jframe , pane , trying draw simple square. painting not showing up. made set color black should visible. code: package w2; import java.awt.color; import java.awt.container; import java.awt.graphics; import javax.swing.*; public class w2 { jframe frame = new jframe("w2"); public w2(){ container pane = new container(); frame.setcontentpane(pane); frame.setsize(750,500); frame.setlocationrelativeto(null); frame.setresizable(false); frame.setvisible(true); } public void paint(graphics g){ g.setcolor(color.black); g.fillrect(50, 50, 50, 50); } public static void main(string args[]){ new w2(); } } the paint method won't called because it's not part of object can painted. see performing custom painting details how painting done in...

android - How to share automatically on Facebook without showing the posting dialog? -

Image
i integrating facebook share functionality in app. , have implemented how share custom story using share dialog. every time share shows me preview dialog given below. what intend achieve when click on share button want post automatically on wall. have given "publish_actions" , "publish_stream" permissions in app scope.do need special permission ? i have seen functionally in candy crush. while using daily booster wheel after clicking on 'spread word' button doesn't pop share dialog automatically share custom story in user's wall , story looks below code using custom story share opengraphobject objproperty = opengraphobject.factory.createforpost("namespace:level"); objproperty.setproperty("title","title"); objproperty.setproperty("image","http://www.example.com/demo/image/wrong.jpg"); objproperty.setproperty("url", "http://www.example.com"); objproperty.set...

c# - How Do I Import A Xades Signed Xml Document Into Another Xml Document? -

i trying import signed xml document xml document. when import document, , export no change, can no longer validate it. even code below breaks validation. openfiledialog ofd = new openfiledialog(); ofd.showdialog(); if (ofd.filename != "") { xmldocument xmldocument = new xmldocument(); xmldocument.load(ofd.filename); folderbrowserdialog fbd = new folderbrowserdialog(); fbd.showdialog(); if (fbd.selectedpath != "") { xmldocument.save(fbd.selectedpath + @"\doc.xml"); } } how can import/export xml document without breaking signature validation? my xml files are: envelope : dl.omerharmansa.com/envelope.xml invoice : dl.omerharmansa.com/invoice.xml invoice.xml document signed. want import invoice.xml envelope.xml. element of envelope.xml, invoice.xml going imported, shown. given following signed xml: <?xml version="1.0"?> <mysignedxmlroot xmlns:xsd="http://www.w3.org/2001/xmlsche...