Thursday, 15 September 2011

sql server - SQL concatenate two smaller datatypes into one larger datatype -


How can I add two small datasets to a large datatype?

TinyInt (1) = 17 = 0001 0001

TinyInt (2) = 5 = 0000 0101

New small entrant = tinient (1) + tinist (2 ) = 4357 = 0001 0001 0000 0101

I am trying to do this on a MSSQL server 2008 through a stored procedure. After that the larger value will be deposited in the table.

You can pipe using the power function and then make a bitword or (|).

  Declare @x tint announced @y tinyint set @ x = 17 set @ y = 5 declare @z small set @z = @x * power (2, 8). @ Select @z  

routing - route_hierarchical, polymer and submenu -


I was working with the polymer SPA example from the dartlang.org website, decided to teach it some new tricks page The piece is loading, and now I've been left with submenu handling. So far the templates of the code do work as expected using conditional templates, but I'm stuck in routing.

So far, I have modified the page model like this:

  class page {last string name; Last string path; Final string url; Last string icon; The final ball is the default; The last bull is submenu; Last list & lt; Page & gt; Subpage; Constance Page (this.name, this.path, it.url, this.con, {this.isDefault: false, this.isSubmenu: false, this.sub Page: zero}); String toasting () = & gt; '$ Name'; }  

And I'm adding pages to the router like this:

  domReady () {for page (page in page) {if (! Page .isSubmenu) {router.root.addRoute (Name: Page: Name, Path: page. Page, Default routing: page Default, enter: enterRoute); } For other {page (page sub page page). {Router.root.addRoute (name: subPage.name, path: subPage.path, defaultRoute: subPage.is default, enter: enterRoute); }}} Router.listen (); }  

And I'm getting

 Exception: Unwanted error: Bad status: No element in the dirutium console 
is not an exception. What am I doing wrong?


android - Parsing JSON and adding to a ListView -


I would like to update a different thread which I have created with some code that I have written which is not working . I am trying to parse my information, after sending the post request, [[user from: "Andrew"], {"user": "Jimmy"}]

I like those users to pick, and add them to the list view. Here is my code to send HTTP code and then my code is trying to parse it and keep it in the adapter.

  string temp = ""; String ar []; HTTP Client HTTP Client = New DefaultHttpClient (); Http post http post = new html post (htmlUrl); & Lt; NameValuePair & gt; NameValuePair = New ArrayList & lt; NameValuePair & gt; (); NameValuePair.add (New BasicNameValuePair ("user name", "brock")); {Try HttpPost.setEntity (New UrlEncodedFormEntity (nameValuePair)); } Hold (unsupported encoding exception e) {e.printStackTrace (); } Try {HttpResponse response = httpClient.execute (httpPost); // Writing feedback to log logs log ("HTPP response:", response.toString ()); } Catch (ClientProtocolException E) {// log e Write an exception for the exception. } Hold (IOException e) {// log e Write an exception for the exception. } Try {JSONObject Pending User = New JSONObject ("$ myArray"); } Hold (JasonX Express E) {e.printStackTrace (); } // Read the reply to the string {BufferedReader Reader = New BufferedReader (New InputStreamRadder ("UTF-8"), 8); Stringbilder sb = new stringbiller (); String line = null; While ((line = reader. Readline ())! = Null () {sb.append (row + "\ n"); }                 is close(); Result = sb.toString (); System.out.print (results); } Hold (exception e) {return tap; } // try to convert the string object {JSONArray jArray = new JSONArray (result); Int count = jArray.length (); For (int i = 0; i & lt; count; i ++) {JSONObject json_data = jArray.getJSONObject (i); Temp + = json_data.getString ("user user") + ":"; } Arr = temp.split (":"); } Hold (JasonX Express E) {e.printStackTrace (); }} "Update" return; } Public string [] getStringForAdapter () {return arr; }}  

This is where I try to get it and put it on my list to go

  HTTPSend Post postender = new HTTPSendPost ( ); Post sender.setup (500, 050, "tiest", htmlUrl); PostSender.execute (); String [] Pending RequestArray = postSender.getStringForAdapter (); ArrayAdapter & LT; String & gt; Adapter = new array adapter & lt; String & gt; (This, R. L. activity_friend, pending request); PendingRequestsListView.setAdapter (adapter);  

When I try my app, I do not get any results on the list view, any help would be appreciated. Sorry for Repost, but I have so much more information and code the next time I ask a question without the code Nhinuँga which I tried. I get the error

  java.lang.RuntimeException: Unable to start the activity ComponentInfo {com.skyrealm.brockyy.findmypeepsapp /com.skyrealm.brockyy.findmypeepsapp.FriendsActivity}: java.lang .NullPointerException: storage == null  


yii - php-pdftk extension is not working on Windows -


I am using Yii 2 and XAMPP on the Windows 7 Home Edition box and trying to use PDF form I have downloaded pdftk and installed it and have binaries in libiconf2.dll and pdftk.exe C: \ Program Files (x86) \ PDFtk \ bin \

This is my code in the controller (similar to the sample given in the above extensions)

  Usage Mikehurl \ Pdftk \ Pdf; Public Function Action Index () {// Fill the form with the data form $ pdf = new.pdf ('form.pdf'); $ Pdf- & gt; Bharufaram (array ('name' = & gt; 'John do')) - & gt; Requirements Appointments () - & gt; Savage ('loaded PDF'); }  

But it does not work, nothing happens, nothing at all!

form.pdf The file is in the Webroot directory: C: \ xampp \ htdocs \ MyWebsite \ form.pdf .

It seems, my PHP script can not be found only for PDFfeaker binaries. I have tried to put them in the seller \ bin directory without any success.

As a newbie, I do not know that pdftk binaries and /


Java Runtime exec not executing batch script -


इस सवाल का पहले से ही एक उत्तर है: < / P>

  • 9 जवाब

मेरे पास एक बैच फ़ाइल है पर C: \ app \ stuff \ dostuff.bat जो कि आपके द्वारा प्रदान किए गए तर्कों के आधार पर फ़ाइल सिस्टम को सामान देता है। जब मैं एक कमांड लाइन खोलता हूं, और इसे चलाने के समान करता हूं, यह पूरी तरह ठीक काम करता है:

  सी: \ एप \ सामान \ dostuff.bat zombies  

जैसे मैंने कहा, यह अभिवादन पूरी तरह से काम करता है (और zombies arg ठीक तरीके से संभालता है) हालांकि, अब मैं एक जावा ऐप के अंदर से जैसे dostuff.bat के निष्पादन को चलाने की कोशिश कर रहा हूं:

  प्रयास करें {प्रक्रिया प्रक्रिया = रनटाइम.गेटरीटाइम ()। Exec ("सी: \\ एप \\ सामग्री \\ dostuff.bat लाश"); process.waitFor (); } पकड़ (IOException | रुकावट अपवाद ई) {logger.error (ExceptionUtils.getFullStackTrace (e)); }  

जब मैं इसे चलाता हूं, मुझे कोई अपवाद नहीं मिलता है, लेकिन यह स्पष्ट रूप से बैच स्क्रिप्ट को ठीक से निष्पादित नहीं कर रहा है (मैं यह बता सकता हूं क्योंकि बाकी फाइल सिस्टम जो बैच स्क्रिप्ट को छूता है जैसे इसे संशोधित नहीं किया जाना चाहिए)। क्या मैं इसे गलत ढंग से लागू कर रहा हूं? क्या मुझे फकरिंग प्रक्रियाओं के साथ कुछ करने की आवश्यकता है? मैं कैसे डिबग कर सकता हूं?

इसे इस प्रकार देखें:

  प्रक्रिया प्रक्रिया = रनटाइम.गेटरेन्टाइम ()। Exec ("सीएमडी / सी प्रारंभ सी: \\ एप \\ सामग्री \\ dostuff.bat लाश");  

amazon web services - Time Frame based IAM User Restriction -


I have a requirement where I can access the ADS IAM users from the AWS console only to specific frames of specific days during special days Is allowed. Anyone can tell me how it can be implemented in this policy

alternative element When a policy is in effect then you specify the conditions :

In the condition element, you create such a sense in which you have the boolean operator (equal, less, etc.) ) Use your position against prices in the request. Status values ​​can include date, time , the requester's IP address, the request source's ARN, user name, user ID, and user agent of the requestor. [...] [emphasis my]

An example provided DateLessThan condition aws With: To specify the current date that the request should be received before June 30, 2013 :

  {"Version": "2012-10-17", "Statement": {"Effect": "Allow", "Action": "iam: * Access * *", "Resource": "ARN: AAS: IAM : {"Aws: currenttime": "2013-06-30T00: 00: 00Z"}}}}}    / Pre> 

As shown here , It unfortunately only works with the conditions to specify a cron expression or a particular day or day of the week in a week, with the full date:

Give the date of the date Restrict access based on comparing a key / date value You use these conditions with the aws: CurrentTime key or aws: EpochTime Or one of the time values Or the era (Unix) must be specified over time.

It is believed that your experiment is in fact, you will need to wrap position management with some automation, depending on your needs, Updates 8601 dates.


d3.js - D3 radar graph forms loops at connections -


This D3 radar chart uses cardinal-off interpolation Tiny loops appear at the starting / end connection points (axis) 1).

Enter image details here

Anyone can solve it Do you know how to make them smooth?