SQl Conection string
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
15:09
Vote count: 0 Hy i have visual studio 2008 an i have the next code : Public sqlCo As New SqlCo ection Dim SQLCo As SqlCo ection 'on form load Sub FMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load sqlCo .Co ectionString = "Data Source=...." but i recive the ne...
Sending a file with XMLHttpRequest() to Tika server
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
14:07
Vote count: 0 I'm trying to send a PDF for content extraction to a Tika Server but always get the error: "Ca ot convert text from stream using the source encoding" This is how Tika is expecting the files: "All services that take files use HTTP "PUT" requests. When "PUT" is used, the original file mu...
Client for chat server using python tkinter
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
14:07
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 w...
How to execute dynamic query with sql""select c from T""".as[T] interpolation in slick
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
14:07
Vote count: 0 I am trying to implement a function with Slick3 to retu a tuple. def executeQueryConfig2[T](sql: String, f : Option[T] => Unit): Future[T] = { val action2 = sql"""$sql""".as[T].headOption getDatabase(config).run(action2).mapTo[T].map(f(_)).recover{ case e: SQLException => println(e.get...
Windows 7 Post deployment automation (drivers, temporary autologin and auto restarts
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
13:03
Vote count: 0 I have 3000 computers to image at work, many different models. boss has no problem w me adding scripts into the ghost file but he doesnt want any in-depth tinkering. After imaging, windows finishes sysprep and the full shell comes up, relying on built-in pnp and the 10gb of driverpacks...
Easy Mock issue with Blob
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
13:03
Vote count: 0 We are using Easy Mock for creating JUnit test case in java with H2 database. As code of fetching the Blob content is specific to Oracle and getting the following error. ClassCastException: Ca ot cast org.h2.jdbc.JdbcResultSet (id=72) to oracle.jdbc.driver.OracleResultSet public BLOB g...
What is the correct architecture design here?
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
13:03
Vote count: 0 The problem is taken from initializing and retrieving data from Firebase, however I will translate this to pseudo in order those who are not familiar could also contribue. Please consider the following code: ` //Given the following API (from Firebase) MyRemoteDBClass.asyncAuthenticate(...
Simple login page--$_POST not in correct format?
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
11:55
Vote count: 0 I have an html page and a login.php to set up a simple login page (frontend). In the following login.php page, I need to retrieve the entered use ame and password from the html page (I did this in the first 2 lines), then I need to pass both of this information to a backend (my partner...
How to fix the 500 error?
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
11:55
Vote count: 0 In my previous question I asked for help with a mysterious 500 inte al server error and paste the whole code of the page in question. That was upsetting, I know. None of the answers worked. I'm hosting with GoDaddy, a Plex (Windows) server, and there's no error log on sight so I'm pret...
I want to get descriptive statistics in python using describe function in pandas library
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
11:55
Vote count: 0 enter image description here I want to get descriptive statistics in python using describe function in pandas library. I want the summary statistics for column contb_receipt_amt at level of cand_nm. I tried using aggreggate and groupby function but could nt implement it correctly. Also...
What is the difference between Uri.parse and Uri.buildUpon?
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
10:26
Vote count: 0 Does the below 2 lines of codes produce the same output? Uri.parse(BASE_CONTENT_URI.toString() + "/" + PATH_CARDS); BASE_CONTENT_URI.buildUpon().appendEncodedPath(PATH_CARDS).build(); asked 1 min agoKar Meng This entry passed through the Full-Text RSS service - if this is your content ...
Chrome extension: access one of many values with the same key
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
10:26
Vote count: 0 I'm trying to write a Google Chrome extension and I am using the chrome.storage API. I am storing the url of a page using: chrome.storage.local.set({'url': document.URL}); But this function is called multiple times, and so in the storage there are multiple different URL's with the same...
Multiselect internal function refresh won't change DOM in IE10 but okay with Firexfox and Chrome
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
10:26
Vote count: 0 I am new to multiselect plugin and jquery. I am trying to show a list of states, with all states selected as default, where multiple states can be selected. I can see in the view source of the browser that all state options are selected. If I choose just 2 or 3 of the possible 50 state...
MongoDB error: "dotted field names are only allowed at the top level"
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
8:19
Vote count: 0 I am working with a dataset which looks something like: { "class_id" : 5, "scores" : [ { "type" : "exam", "score" : 88.22950674232497 }, {...} ] } I have the following aggregate query: db.grades.aggregate([ { $project: {_id: 0, class_id: 1, scores: {$filter: { input: "$scores", as: "sc...
Matching JSON Keys
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
8:19
Vote count: 0 When data come from JSON in the format below, I can tu it into a dictionary in Python. However, the information is not always in the same order. For instance, first_name, I would assume is always 0. However, when I get the data, depending on the form used, may be in the 2 position. So ...
Pygame bullets not moving after being drawn
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
8:19
Vote count: 0 I'm fairly new to python, and I can't figure out whats wrong. I'm trying to get a bullet to appear and move, but it won't do that, it's being stuck to the player. My code is kind of messy, but here it is: screen = pygame.display.set_mode((512,512)) pygame.display.set_caption('The Necro...
Reputation system: weighted points vs unweighted points?
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
7:04
Vote count: 0 I am developing one small reputation system, and I faced one problem. So, in my example I want to create a website for pictures with 4 different types of user; let's call them: amateur, good, very good, professional. Each user can upload a picture and this picture can get rated by othe...
Figuring out how to update my label in javaFX to match the analog clock
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
7:04
Vote count: 0 I am trying to figure out how to make the label update and display the current time like the analog clock is thank you in advance. For some reason this site won't let me post unless I make a long drawn out explanation that is full of words. Either that or you have to be much smarter th...
Posting to a php file working correctly on localhost but not webhost service
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
7:04
Vote count: 0 I have a php script that is co ecting to Apple APNS services to send push notifications to specified users. The script works correctly on localhost when I post to it from swift, but when I move the script over to the free web host service (Byet), I am not receiving the notification on ...
Error when accessing members of a Node* inside of a queue
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
5:39
Vote count: -1 I'm implementing an algorithm that involves a variation of BFS using Visual C++. The queue contains objects of type Node* which I am trying to access the members (left and right subtrees) of. For some reason, simply ru ing the following code retu s an error: queue<Node*> aQueue; aQueu...