Vote count: 0 I have 2 tables 1 [dbo].[t_Olympic_Country] where i have all the county list but population and GDP is empty. Now i have second table which has most of the countries with population and GDP data but its it has not same number of data. I would like to enter value of GDP and population from 2nd temp table [dbo].[temptable1] to first [dbo].[t_Olympic_Country] in case the cuntry name matches with [dbo].[t_Olympic_Country]. I mean a conditional bulk update for [dbo].[t_Olympic_Country]. Can anybody help me? i tried following which gives error : INSERT INTO [dbo].[t_Olympic_Country]( [GDP] ) SELECT temp.[GDP] FROM [dbo].[temptable1] temp WHERE (temp.[Country_Name] IN (SELECT tl.[Coun...
ادامه مطلبVote count: 0 I noticed that twitter was last updated on 18th august and they rolled out night mode on 22nd august. then how that feature popped up in the ios client. Please enlighten me if am missing on something. asked 12 secs agoIshan Baboota Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have an old Debian (Ley), on which I develop an application that should coect to RabbitMQ. I downloaded the official C++ client rabbitmq-c-0.8.0 from https://github.com/alanxz/rabbitmq-c/releases/tag/v0.8.0 , but unfortunately, I can't compile it on my old Debian: wget https://github.com/alanxz/rabbitmq-c/archive/v0.8.0.tar.gz tar zxvf v0.8.0.tar.gz autoreconf -i Result: autoreconf -i /usr/share/aclocal/libmcrypt.m4:17: waing: underquoted definition of AM_PATH_LIBMCRYPT /usr/share/aclocal/libmcrypt.m4:17: run info '(automake)Extending aclocal' /usr/share/aclocal/libmcrypt.m4:17: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal Makefile.am:6: Libtool l...
ادامه مطلبVote count: 0 val manager=sc.textFile ("hdfs://localhost:54310/user/training/employee_dir/employeeManager") manager.first ERROR: java.io.EOFException: End of File Exception between local host is: "localhost.localdomain/127.0.0.1"; destination host is: "localhost":54310; :java.io.EOFException; For more details see:http://wiki.apache.org/hadoop/EOFException asked 32 secs agoSridhar Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Call the login method, enter valid credentials then get: You do not have permission to view this directory or page The url at this point is "https://zzz.azurewebsites.net/.auth/login/aad/callback" I'm expecting the login method to simply complete and retu a user (or auth token etc) as it does when using the MobileServiceClient in my mobile (Xamarin) apps. this.client = new WindowsAzure.MobileServiceClient('https://zzz.azurewebsites.net'); this.client.login("facebook").done(function (results) { console.log(results); alert("You are now logged in as: " + results.userId); }, function (err) { alert("Error: " + err); }); asked 53 secs agoTriple888Three Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have been trying to use TransferClient in C++ from the official SDK following the tests in the SDK. But when I run the following code, I don't get a human readable string. Ideas? TransferClientConfiguration transferConfig; transferConfig.m_uploadBufferCount = 20; static const char* ALLOCATION_TAG = "TransferTests"; ClientConfiguration config; std::shared_ptr m_s3Client = Aws::MakeShared(ALLOCATION_TAG, config, false); std::shared_ptr m_transferClient = Aws::MakeShared(ALLOCATION_TAG, m_s3Client, transferConfig); std::string s3path = "akey"; std::shared_ptr requestPtr = m_transferClient->UploadFile(filepath.string(), "testbucket", s3path.c_str(), "", false, true); requestPtr->...
ادامه مطلبVote count: 0 I am using Artifactory Pro version: 3.6.0. I have couple of remote repos (caches) configured proxying out to different exteal repos (like https://repo1.maven.org/maven2/...) I also have a virtual repo configured which includes all the remote repos. (for example: http://mydomain/artifactory/remote-repos/...) After Artifactory server restart I realized that some maven builds started failing because some of the maven plugin related pom files (dependencies) can't be downloaded/fetched from Artifactory. I noticed that the file can't be downloaded trough the virtual repo URL but can be downloaded trough the remote repo URL. For example: (Just some 1-2 maven plugin related pom files c...
ادامه مطلبVote count: 0 I am using the Simple.OData.Client library to download entities from an OData V2 API. I know how to use the skip-flag to request the next page if server side paging is enabled. However, I could not find any way to determine if Server-Side paging has occurred. Is there any way to read this from the library? asked 45 secs agoAdrian Grigore Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have a problem that is causing me to go bald(er). First Ill explain my setup: My server is Umbutu 16.04 with Virtualbox installed, there are 3 Tukeylinux (debian) VMs inside the server (LAMP, SAMBA, VPN). My problem lies with the VPN as everything else is working okay. I can coect to the VPN on a remote windows machine, can ping all of the servers, can see the site hosted by the LAMP server, and even have inteet access through the VPN. BUT I cant see the hosts inteal LAN machines or SAMBA server on the remote computer, I tried mapping a coection but I can't see anything on the work LAN from my remote computer, I can ping everyone though. Here is a general idea of my network: ...
ادامه مطلبVote count: 0 I'm leaing more about the various modes that a spark cluster can be run with, and with respect to the client mode, how would I submit an application to an EMR cluster from local if the EMR cluster were ruing in client mode? Is it even possible? asked 20 secs agoKristian This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting....
ادامه مطلبVote count: 0 I am trying to execute following query on Spark in ya-client mode. $SPARK_HOME/bin/spark-submit --class org.apache.spark.examples.SparkPi --master ya --deploy-mode client $SPARK_HOME/examples/target/scala-2.10/spark-examples*.jar 10 When I execute above query my application gets stucked on following 16/07/13 17:14:28 INFO ya.Client: Application report for application_1468428769910_0002 (state: ACCEPTED) 16/07/13 17:14:28 INFO ya.Client: client token: N/A diagnostics: N/A ApplicationMaster host: N/A ApplicationMaster RPC port: -1 queue: default start time: 1468430067384 final status: UNDEFINED tracking URL: http://hadoop-master:8088/proxy/application_1468428769910_0002/ user: na...
ادامه مطلبVote count: 0 I found this code for a simple chat server here http://www.ibm.com/developerworks/linux/tutorials/l-pysocks/ and it works using telnet. It works so beautifully and i really want to modify it to have a GUI.I don't understand how do i have the clients type in the messages through a GUI window instead of the terminal using telnet.I am attaching the code for ease : import socket import select class ChatServer: def __init__( self, port ): self.port = port; self.srvsock = socket.socket( socket.AF_INET, socket.SOCK_STREAM ) self.srvsock.setsockopt...
ادامه مطلبVote count: 0 I wanted to send a message to my user chael of my Phoenix Application. I have joined a user_token with the chael as users:user_token in the user_chael.ex . I was successful doing it from another controller called the toy_controller by calling a broadcast method. The broadcast method is in the user chael. And I have written a jQuery file to handle the events. I was looking for something which can send messages to the same chael from outside of the project, because I wanted to do some IoT stuff. I have tried a python module called occamy.socket and the JS client of Phoenix that it uses inteally. Then, I found a discoection always. I can't figure out the exact address of the webso...
ادامه مطلبVote count: 0 I try to send a SOAP EnvelopXMl to a Web Service with a certificate file (certificate.p12). I have this following class to manage it : public class SoapClientManager { private string _url; private string _envXml; public String Url { get { retu this._url; } set { this._url = value; } } public String EnvXml { get { retu this._envXml; } set { this._envXml = value; } } public string CallWebService() { HttpWebRequest request = CreateWebRequest(_url); XmlDocument soapEnvelopeXml = createEnveloppeXml(_envXml); using (Stream stream = request.GetRequestStream()) { soapEnvelopeXml.Save(stream); } using (WebResponse response = request.GetResponse()) { using (StreamReader rd = new StreamRe...
ادامه مطلبVote count: 0 I'm implementing a service (as rest) that receives a POST method. The encoding in my sistem is UTF-8. I'm using jboss 5, in which the servlet that receives the requests follows the HTTP 1.1 specification of rfc2068 which states that: When no explicit charset parameter is provided by the sender, media subtypes of the "text" type are defined to have a default charset value of "ISO-8859-1" when received via HTTP. so when the client that invokes my service is using for example UTF-8 and doesn't specify a charset, and the body of the POST contains characters outside the US-ASCII, the Jboss servlet assumes "ISO-8859-1" and does a "wrong" decodification and in my system i receive "bro...
ادامه مطلبVote count: 0 I have a working .NET REST client code. I need to convert the .NET code into PHP. After a lot of time spent to convert the code I have no clue on how to proceed further. The relevant code in .NET is as below: Public Function GetDemographicDetail(ByVal UID As Decimal) As DataSet Dim DsResult As New DataSet Dim proxyobject As WebProxy = New WebProxy("http://proxyserver:80/", True) 'Variable to hold the XML file. Dim sample As String 'URL of the Webservice. Dim serviceBaseUrl As String = "http://srdh.punjab.gov.in:80/searchservice/searchservice/searchService" Dim req As WebRequest = WebRequest.Create(serviceBaseUrl) req.Proxy = proxyobject Dim resourceUrl As String = "" Dim method...
ادامه مطلبVote count: 0 I am using xhr to make a call to server and it retus a blob. have set the respnoseType='blob' and it all works fine in chrome and firefox even in ie10+ but doesn't work in safari. if (navigator.appVersion.toString().indexOf('.NET') > 0) { window.navigator.msSaveBlob(blob, fileName); } else { var downloadUrl = URL.createObjectURL(blob); var a = document.createElement("a"); a.href = downloadUrl; a.download = fileName; document.body.appendChild(a); a.click();} what is the right way to do this, as this looks like a hack!. asked 33 secs agouser1861140 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have the code below in c#, which uses RestClient. The issue is that the headers should not be case-sensitive but looks like they are. var client = new RestClient(sMA_URL); var request = new RestRequest(Method.GET); request.AddHeader("cache-control", "no-cache"); //Without the line below the RestRequest adds some default header which is not acceptable by our server. request.AddHeader("**Accept**", "*/*"); request.AddHeader("content-type", "application/json"); request.AddHeader("authorization", "Bearer "+sBearerToken); // Make sure you deserialize this response, for further use. The best way to do this is to create a class and then fill that with the values obtained by the resp...
ادامه مطلبVote count: 0 Forgive me, I am a newbie. I've surveyed some solution. But it is so hard for me to understand and to modify that.(Many people have his different usage.) I have a demand. On PHP client, user can write a SQL Syntax string(So the string's length may be very long, is there any length limit?), and when user click the send button, it will send to Python server. Python server will execute the SQL Syntax, and then it can retu the SQL result to the PHP client. If there is any ERROR in process, it can also show on the PHP client. And it can process many users' request at the same time.(It seems need 'threading', but how to implement it.) I’m very grateful for your kind assistance!! p.s....
ادامه مطلبVote count: 0 I am using LinkIt Smart 7688 - an OpenWRT device for IoT. It supports station mode WiFi i.e. it can coect to another WiFi AP and one can use inteet. I am trying to retrieve a list of mobile phones that are coected to the wireless lan. I am trying to list all the clients but my Android phone is not showing up. I used nmap with the command nmap -sP 192.168.0.1-254 and i get this Starting Nmap 6.47 ( http://nmap.org ) at 2016-06-20 17:44 IST Nmap scan report for 192.168.0.1 Host is up (0.0049s latency). MAC Address: F0:7D:68:B8:BB:D0 (D-Link) Nmap scan report for 192.168.0.6 Host is up (0.0038s latency). MAC Address: 6C:62:6D:4E:87:28 (Micro-Star INT'L CO.) Nmap scan report for 19...
ادامه مطلب