Vote count: 0 I have some records in SQL Server management studio and I want to index them to my ES index. At present I'm indexing them individually which is taking a long time. I would like to bulk index them. I tried using the Bulk Descriptor it is throwing an error saying > the object to index, if id not set manually it will be inferred from the object below is my code. string coectionString = ConfigurationManager.CoectionStrings["MyDbCo"].ToString(); using (cn = new SqlCoection(coectionString)) { cmd = new SqlCommand(); cmd.CommandText = ConfigurationManager.AppSettings["dbName"]; cmd.CommandType = CommandType.StoredProcedure; cmd.Coection = cn; cn.Open(); //to index the students respons...
ادامه مطلبVote count: 0 while i am trying to coect xmpp serverr with xmpphp library it showing a waning ....
ادامه مطلبVote count: 0 We have a native C++ COM application for controlling our production lines. The application is using ADO to access a MS SQL server. Server part of application is ruing on Windows Server 2003 and Clients XP. Recently we switched from SQL SERVER 2005 to SQL SERVER 2012 (but database remaining in 2005 compatibility modus). The migration was quite smooth (just 1/2 downtime). Old server and clients are in same domain, new server is in a different domain (of course trusted). Authentication is done by SQL Server authentication. However now i got complaints about a sporadic performance degration on a specific action on a packaging client station. By putting some debug output into the co...
ادامه مطلبVote count: 0 We have been leaing SQL Server programming in Database Systems class. The professor goes exceptionally fast and is not very open to asking questions. I did ask him this, but he just advised me to review the code he'd given (which doesn't actually answer the question). When making a query, what is the difference between using the term JOIN and using the "=" operator? For example, I have the following query: SELECT VENDOR_NAME, ITEM_NAME, QTY FROM VENDOR, VENDOR_ORDER, INVENTORY WHERE VENDOR.VENDOR_ID = VENDOR_ORDER.VENDOR_ID AND VENDOR_ORDER.INV_ID = INVENTORY.INV_ID ORDER BY VENDOR_NAME In class the professor has used the following code: SELECT DISTINCT CUS_CODE, CUS_LNAME, CUS...
ادامه مطلبVote count: 0 We're ruing apache storm 1.0.0 on redhat and while trying to query an mssql database from within a bolt using Kerberos authentication jdbc:sqlserver://xxxyyy;databaseName=zzz;integratedSecurity=true;authenticationScheme=JavaKerberos we are getting the following exception [com.microsoft.sqlserver.jdbc.SQLServerCoection.terminate(SQLServerCoection.java:1884), com.microsoft.sqlserver.jdbc.KerbAuthentication.intAuthInit(KerbAuthentication.java:175), com.microsoft.sqlserver.jdbc.KerbAuthentication.GenerateClientContext(KerbAuthentication.java:278), com.microsoft.sqlserver.jdbc.SQLServerCoection.sendLogon(SQLServerCoection.java:3047), com.microsoft.sqlserver.jdbc.SQLServerCoection.lo...
ادامه مطلبVote count: 0 I have a below stored procedure with output parameter. ALTER proc [dbo].[CRS_GetNewMessageCount] @CaseId int, @Type varchar(50), @Location varchar(50), @Count int out as begin if @location='admin' begin if @type='consumer' select @Count=(Select count(fdId) from tb_CRS_Messages where fdCaseId=@CaseId and fdIsConsumerType=1 and fdIsReadatAdmin=0) else select @Count=(Select count(fdId) from tb_CRS_Messages where fdCaseId=@CaseId and fdIsMemberType=1 and fdIsReadatAdmin=0) end else begin if @type='consumer' select @Count=(Select count(fdId) from tb_CRS_Messages where fdCaseId=@CaseId and fdIsConsumerType=1 and fdIsReadatFront=0) else select @Count=(Select count(fdId) from tb_CRS_Me...
ادامه مطلبVote count: 0 I am using Jenkins 2.0 and am trying to push code from Git to a server vis SSH and am having some issues getting it correct. The server Jenkins is on is different than the server I am pushing to, though both are Linux. I want to push all files / folders from the git repo to the server manually for now. Can someone please list the steps to do so? asked 2 mins agoGreenLion Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am trying to run the basic helloworld code described here https://cloud.google.com/appengine/docs/python/. However, whenever I try the dev_appserver.py helloworld/ command, I get a usage error for the dev_appserver.py command. I have installed Python 2.7 and also have Python 2.7 Anaconda installed on my system. Could the Anaconda Python be the cause of the issue? Any help would be greatly appreciated! Thanks! asked 1 min agouser2618340 Let's block ads! بخوانید...
ادامه مطلبVote count: 2 I have a simple Node.js server up and ruing. This is the code: var http = require('http'); var server = http.createServer(); server.on('request', function(req, res) { res.writeHead(200, { 'content-type': 'text/plain' }); res.write('Hello World!'); res.end(); }) server.listen(8090); server.once('listening', function() { console.log('Hello World server listening on port %d', 8090); }); I can call this server using curl from the command line: $curl localhost:8090 However, when I try to call it from a Vue application, I get an error. I have a Vue application ruing on localhost:8080, and I want to call my localhost:8090 server. My main.js Vue file is this: import Vue from 'vue' impo...
ادامه مطلبVote count: 0 We have requirements to deploy an ASP.Net application ruing currently on multiple instances (MS Azure Compute Service) on OpenStack host. I am new to OpenStack and wonder how it can be an alteative solution for the PaaS model from MS Azure in the following points: Multiple Windows Server instances with IIS Load balancer to manage trafic with the instances Manual or auto scale out without the need to redeploy the system on each machine. Single configuration place where it automatically updates all the instances web config, or a place when I read using APIs (key/value). Does OpenStack provide these features out of the box? And what the maturate level? Any practical use? asked 43 ...
ادامه مطلبVote count: 1 I am trying to deploy a django project on pythonanywhere but it is giving error- (2003, "Can't coect to MySQL server on 'mysql.server' (111)") I have seen many such questions already asked for this problem but no answer solves my problem. May be there is a previlleges problem with database . Database settings are- DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'mutechrobotics$mutech_db', 'USER': 'mutechrobotics', 'PASSWORD':'root', 'HOST': 'mysql.server', } } On ruing show grants command following databases are displaying(Actually i only need one database out of them but i am unable to drop the extra ones) mysql> show grants ; +------------------------...
ادامه مطلبVote count: 0 How to access the ChoiceType (Radiobutton) submitted value in Symfony2 while working with Doctrine2 I am trying to update the value of eT1 and eT2 property of the events entity. The input value from two different ChoiceType(Radiobutton) is stored in the eT1 and eT2 variables after the user submits. when i try to use the $events->setET1($eT1) method, it gives an error - Notice: Undefined variable: eT1 500 Inteal Server Error - ContextErrorException Here is my Controller code...
ادامه مطلبVote count: 0 I want a datetime string till minute from Datetime in sql server. Means I want to extract string after minute from Datetime from sql server. Like :: 2011-11-02 13:35:14.613 and I want this from above datetime string - 2011-11-02 13:35 asked 46 secs agoPawan Agrawal Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am willing to deploy on my server an SSH daemon which I can know what commands was executed. But I don't know how to get the user's commands. I achieve a SSH server based on twisted.conch.ssh.session. I can get all stdout in outReceived of SSHSessionProcessProtocol, But it is difficult to extract the user's commands from the stdout accurately, because that rely heavily on the prompt of Linux($PS1). import sys import checkers from twisted.python import components, log, logfile from twisted.cred import portal from twisted.inteet import reactor from twisted.conch.ssh import factory, keys, session, filetransfer from twisted.conch.unix import UnixSSHRealm, SSHSessionForUnixConchUs...
ادامه مطلبVote count: 0 https://github.com/abourget/gevent-socketio/blob/master/examples/simple_chat/chat.py def __call__(self, environ, start_response): path = environ['PATH_INFO'].strip('/') if not path: start_response('200 OK', [('Content-Type', 'text/html')]) retu ['Welcome. ' 'Try the chat example.'] if path.startswith('static/') or path == 'chat.html': try: data = open(path).read() except Exception: retu not_found(start_response) if path.endswith(".js"): content_type = "text/javascript" elif path.endswith(".css"): content_type = "text/css" elif path.endswith(".swf"): content_type = "application/x-shockwave-flash" else: content_type = "text/html" start_response('200 OK', [('Content-Type', content...
ادامه مطلبVote count: 0 This is my first major project in Java for a friends' company. The company does stock taking for multiple clients and and I have a few questions about the overall architecture. I will need to have a maximum of 10 concurrent coections. I will use: PostgresSQL for my db Hibeate for ORM Server application that manages the db Client applications that coect to the the server app and send requests My questions: Is that a good way of organising the structure? From my research it seems that hibeate is single threaded; Is it a good idea then to setup a FIFO request queue (on the server app) that will take the requests from multiple threads(clients) and retu the results in order OR is th...
ادامه مطلبVote count: 0 I am developing storage engine for mysql. I need to know flow of mysql server. so I want to debug mysql server statement be statement in xcode of GNU debugger. Any body will help me to build n run mysql in debug mode. asked 1 min agoPiyush Sonani Let's block ads! بخوانید...
ادامه مطلبVote count: 0 If a particular computer is making tons of accounts or flooding my server with other requests, could parse-server automatically check this behaviour and block the specified IP address? Built-in rate limiting would also be a nice alteative, although it doesn't really solve the problem if the person continues to spam. I am hosting on google app engine by the way. asked 3 mins agoAppreciateIt Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I want to compile dart code to JS on-the-fly without invoking dart2js at the command line. Eg., (written in Dart) read in some dart code from a file and transform it to JS (must be in memory, filesystem is not writable). I thought maybe dart2js would effectively just be a cli over a pub package I can call manually, but I can't find any information on doing this at runtime :( (note: I know this idea sucks and it'll be very slow; it's just for something I'm prototyping and will ultimately use dart2js normally, I just can't address that yet) asked 2 mins agoDay Tuppeny Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have REST server (express), where user is able to upload a csv file by POST request. How can I post it to another REST server after validating it's data without saving it? asked 31 secs agoCalico Let's block ads! بخوانید...
ادامه مطلب