How to add a column to existing table which contain ids in serial order from 1 to number of rows?
◷
تاریخ انتشار: 1395/3/20 | ساعت: 17:03
Vote count: 0 I have already created a mysql table. I want to add a column (say ID) to the table and assign ID column values from 1 to number of rows in the table. How would I achieve that? asked 1 min agoSangram Let's block ads! (Why?)
to return value in function php from XML files
◷
تاریخ انتشار: 1395/3/20 | ساعت: 11:37
Vote count: 0 I need help doing this. i cant figure out how to retu the boolean, and it seems that my condition's not working. <?php $xml=simplexml_load_file("Details.xml") or die("Error: Ca ot create object"); function SearchSu($Su1 , $Su2) { //boolean $av1 = false; //false => the supervisor is not...
align both top and bottom svg text vertical
◷
تاریخ انتشار: 1395/3/20 | ساعت: 11:37
Vote count: 0 i have a paragraph writed by svg as follows: enter image description here can you tell me how to align the content for both top and bottom it look like this : Tuan asked 27 secs agoTriệu Minh Tuân Let's block ads! (Why?)
Why I can't use the name of the class as a type?
◷
تاریخ انتشار: 1395/3/20 | ساعت: 11:37
Vote count: 0 I'm using the XmlSerializer constructor that asks for a Type object: XmlSerializer miSerializer = new XmlSerializer(typeof(MyClass)); Why can't I provide the name of the class without the use of typeof? asked 25 secs agouser3646717 Let's block ads! (Why?)
Splicing angular filter result results in infinite digest
◷
تاریخ انتشار: 1395/3/20 | ساعت: 10:12
Vote count: 0 I have a custom filter: controllers.filter('myFilter', function($document, $timeout) { retu function(items) { // Sort all by date items.sort(function(a, b) { retu (b.createdAt ? b.createdAt : b.start_time) - (a.createdAt ? a.createdAt : a.start_time); }); var filtered = []; angular.for...
HTTP status 404 - /ServletHello/HelloServlet on eclipse
◷
تاریخ انتشار: 1395/3/20 | ساعت: 10:12
Vote count: 0 I have a problem: "When I call index.jsp, it's not call severlet page. (1) index.jsp page: <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html...
Carrying a value through many functions Go
◷
تاریخ انتشار: 1395/3/20 | ساعت: 10:12
Vote count: 0 I am wanting to populate a struct without passing it down as a param in a function. I have been doing it with using a parameter but it is becoming redundant that way. The way I want to achieve is: type Foo struct { Name string Description string FinalDescription string } var bar = Thin...
Is Thread.sleep() waste of time for listening in Java?
◷
تاریخ انتشار: 1395/3/20 | ساعت: 9:05
Vote count: 0 Suppose I have a nametag, which is UI component in GUI program. The nametag will constantly change its text based on the data. If the user change his/her name data, then he/she will see the change in nametag. For this task, my code looks like this: Thread thread = new Thread(new Ru abl...
Rails app using SASS importing CSS from external gems not processing Sprockets directives
◷
تاریخ انتشار: 1395/3/20 | ساعت: 9:05
Vote count: 0 I feel like this must be a relatively common issue, but my Google-foo has thus far failed me. I have a Rails 4 app where I am using SASS for my CSS. I have a couple of gems that I am (forced) to use that primarily contain CSS. Let's say gem C has an index.css file that contains Sprocke...
When to use -ComputerName and when -ConnectionUri?
◷
تاریخ انتشار: 1395/3/20 | ساعت: 9:05
Vote count: 0 In my quest of lea ing PowerShell I stumbled across something that confuse me. I don't really understand why sometime I have to use New-PSSession -ComputerName "serve ame" and sometime instead New-PSSession -Co ectionUri "http://FQDN/powershell" etc... I couldn't find a clear explanati...
TPL Dataflow with Railway Programming
◷
تاریخ انتشار: 1395/3/20 | ساعت: 8:03
Vote count: 0 I'm attempting to implement a moderately complex TPL Dataflow pipeline with Railway Programming, where messages can get sent down the "happy path" if they succeed in the current block, or go to the failure block if they don't succeed. The problem I'm having is, completion keeps getting...
Using vector units through threading
◷
تاریخ انتشار: 1395/3/20 | ساعت: 8:03
Vote count: 0 To use the vector units, e.g 512-bit wide for simultaneous operation on 8 double precision values, is it necessary to be single threaded and use AVX intrinsics ? If my program is not easy to vectorize, could i maybe get some of the benefit by launching 8 threads where each use 1 of the...
osx 10.11.15 - BTLE manufacturer data missing in advertisementData?
◷
تاریخ انتشار: 1395/3/20 | ساعت: 8:03
Vote count: 0 it seems that upgrading OSX to 10.11.15 may be causing the ManufacturerData field of the AdvertisementData to be missing when reported to centralManager: didDiscoverPeripheral: advertisementData: RSSI:. it tends to be there if the device tu s on while sca ing, but if the device is alre...
Not able to connect to server through java code. Getting javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
◷
تاریخ انتشار: 1395/3/20 | ساعت: 6:57
Vote count: 0 I am trying to build a Test Automation Tool for REST API on AWS using rest-assured framework. I just tried with a simple HTTP POST and checking the output JSON body. But when I run that in Eclipse I get SSLHandshakeException. I did try to look into the issue and found it could be somet...
Basic Image Recognition Library
◷
تاریخ انتشار: 1395/3/20 | ساعت: 6:57
Vote count: 0 I would like to perform some basic image recognition in my current Python project. I want to take an image and retu a true or false if it looks similar to a bunch of other images (similar as in hue/color palette and maybe general shapes). I've looked into various machine lea ing framew...
Could not execute system() command in Ruby Controller when I put my code live on server
◷
تاریخ انتشار: 1395/3/20 | ساعت: 6:57
Vote count: 0 Urgent help would be great! I have a ruby controller method: def wayback $newvar = "wayback_machine_downloader http://example.com" system($newvar) end Now, above controller method runs like a charm locally i.e in localhost:3000 but when I put my code live in server then system($newvar)...
CGContextFillRects vs CGContextAddLineToPoint (rects vs lines) performance
◷
تاریخ انتشار: 1395/3/20 | ساعت: 5:31
Vote count: 0 I have a object that renders a grid of lines (used for a plot object I am working on) that will update frequently and shift all the lines around. If the grid will update at 60 fps would using CGContextFillRects or CGContextAddLineToPoint (rectangles vs lines) be more efficient? Let's a...
Center Pop Up Menu in clicked row of list
◷
تاریخ انتشار: 1395/3/20 | ساعت: 5:31
Vote count: 0 I want that my pop up menu appear next to the clicked row. Look at the picture after I click the "..." button: http://postimg.org/image/s35znsaq3/ This is my code for the Pop Up Menu: private void showPopUpMenu(final User user) { View menuItemView = findViewById(R.id.moreActions); Popu...
Can't start OrientDB Server
◷
تاریخ انتشار: 1395/3/20 | ساعت: 5:31
Vote count: 0 I installed OrientDB 2.2.0 on my server but can't start it ru ing server.sh script. Previous version started fine on the server and the current version is ru ing on my notebook. The server is a droplet from Digital Ocean with Ubuntu 15.10 32-bit. The error I get is below. Invalid maxim...
Can you POST to a PUT signedUrl?
◷
تاریخ انتشار: 1395/3/20 | ساعت: 4:22
Vote count: 0 I generated a signed Url using the PUT verb and I want to know can you POST data to a PUT signed url to upload objects to Google Cloud buckets? asked 3 mins agoAdrian Humphrey Let's block ads! (Why?)