Posts

sql - can i decide the column names of a SELECT statement from another SELECT statement -

Can I decide the column names of a selection statement from the second selection statement this way From: SELECT (SELECT SELECTSTMTA to aID = b.ID where a.ID = 300019) to C. WHERE lkpgroup = 300019 You can either explicitly request the All column or clear column , Like) Select ColA from Column 1, ColB Your query will fail because your saying "Select (subkey)". You need to select 'some' and use the keyword to . I recommend that you make a column call in your subquery, then use the select * to return to the entire dataset of your subquery. EG) from query SELECT * (query a.ID = a bonus on b.id. B) where the query query. Cola = 300019 So to answer your question, no. You can not use a specific query to decide which column you return. - It would be like to say a compiler to write a program! However, you will use * to return all the columns from the subcategory, table or view.

android - Audio file transfer over websocket -

I have a wav file created in an android mobile and I want to send this file to the web socket on the server. The code below is used to send the file stream I am using autobahn lib for web socket connection. byte [] buffer = new byte [1024]; FileInputStream fis = New FileInputStream (myFile); Log D. (Tag, "Sending ..."); Boolean status = true; While (position) {int in = fis.read (buffer, 0, buffer.label); If (in! = -1) {if (in & lt; buffer length) {byte [] temp = new byte [in]; For (int i = 0; i .wav audio file running fine in mobile But the file received in the server side is not a proper watch audio file and it is not playing. Server code: (Byte [] data, Boolean Arg1) on public Zero Message {try {System.out.println ("Starting a new recording.") ; FileOutputStream fOut = New FileOutputStream (f1, true); FOut.write (data); FOut.close (); } Hold (exception e) {e.printStackTrace (); }} Please help .........

c# - Get Attribute from object -

I have to get a specific attribute on one of the properties of the object. You then call: var attr = someobject.GetMember (x = & gt; x.Height) .GetAttribute & Lt; FooAttribute & gt; (); But I would like it in a clean phase like this: var attr = someobject.GetAttribute & lt; FooAttribute & gt; (X = & gt; x height); How do I add those two functions to give this signature? Update: Besides, why does not it work for enums? You will not be able to get that exact signature. For the method of working, three common type arguments are required (for object type T , for attribute type TAttribute , and for a property type TProperty ). Using code can be estimated using T code and TProperty , but unfortunately, once you have a general Specify type logic, you need to specify all of them. Public Static Class Object Extension {Public Fixed TATT GetAttribute & lt; T, TAttribute, TProperty & gt; (This T example, expression & lt; Func...

html - JQuery drop list item in menu -

I could not think of a better title, my apologies. Actually what I'm trying to ask: I have many lists in which I pull and pull. & lt; Ul class = "nav nav-tabs" role = "tablist" & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Menu & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Menu & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; Quote of my jquery: $ (function () {$ ("# sortable1, # sortable2, # sortable3") .Softable ({connectWith: ". Connected Serial" // Update Method Here Normal }}}. Now I have a menu and I can also drop a menu in the menu item so that I can get value in another PHP function & lt; I have made a small example of what I have done now: In the right direction, how can it be achieved? I do something like this myself It may be possible to help someone in the future: $...

python - Error with print: unsupported operand type(s) for +: 'NoneType' and 'str' -

I have the code to add two strings but this is showing me an error. +: 'Any type' and 'str' for unsupported operand type (s) How can I fix it? print is a function, no one is returning Then when you write print (name) + "good boy" You are actually adding return value function call ( I.e. none) in the string print (name, "good boy")

memory - How does Go's precise GC work? -

Go 1.3 applies a garbage collector. How does this signal properly? Looking at itempop = "text"> " Starting with 1.3 Runtime considers that the pointer type values ​​have pointers and not other values ​​ . This assumption is fundamental for accurate behavior of both stack extension and garbage collection. . Programs that use insecure packages to store integers in values-typed values They are illegal and will detect crash behavior when runtime is detected. Programs that use insecure package to store pointers in values ​​that were typed in the integer-type to be diagnosed during execution. Invalid but more difficult. Add this: Actually, GC has to find out which objects are accessible to do so Every ob To point out the factor to the points lying on the stack, they point out and follow the pointer on every object in the objects, until it conflicts with new objects. There is garbage when GC does not face every thing. / P> The problem with...

scala - Akka: how to get the results? -

Consider the following skala code that calculates factories using the Acakka. I do not know how to get the output. Import Scale. Annotation. Tailrec Import akka.actor. (Actor, Actor, Actorsystem, Props) Import Scales. Convert Pattern. Ask import akka.util.Timeout import scala.concurrent.duration._ Case class GetResult () provides class factor housing calculator acct {DRF receive = {case number: int = & gt; Sender ! (Num, factor): Personal DF factor (num: int) = factorTail (num, 1) @ailailc Private private carcass (number: int, ac: big element): begun = {(num, acc) match {case (0, A) = & gt; One case (n, a) = & gt; FactorTech (N-1, N * A)}}} Class Factorial Collector (FACTORIAL: LIST [int]) Extends actor with actor logging {var list: LIST [BIGINT] = blue size = factorials.size For (num & lt; - factorials) {Context.actorOf (Props (new factorial communication))! Num} def receive = {case (num: int, fac: bigInt) => {Log.info ("$ FAC Originally for $ num")...