exclude all documents which has certain properties
◷
تاریخ انتشار: 1395/2/21 | ساعت: 7:19
Vote count: 0 This Meteor code needs to find all documents which do not have given properties namely prop1 and prop2.It is failing to do that, How can it be done? Thanks params = DisplayCol.findOne({userId: Meteor.userId(), prop1: {$ne: ''}, prop2: {$ne: /.*/}}); asked 1 min agoFred J. Let's block a...
What slows down the process except for undeclared variables in Cython?
◷
تاریخ انتشار: 1395/2/21 | ساعت: 7:19
Vote count: 0 I writing a code in Cython. What slows down the process except for undeclared variables? asked 1 min agoHarutaka Kawamura Let's block ads! (Why?)
Check if user ID exist in SQL database
◷
تاریخ انتشار: 1395/2/21 | ساعت: 5:11
Vote count: 0 im a begi er programmer and im writing a C# application that make query to a database.However I am wondering how could I check that a ID exist(ID is entered by user in the console application) and if it doesnt,display a message.Heres my code: Console.WriteLine("enter ID"); try { var us...
JavaScript == $0 Never Seen Before
◷
تاریخ انتشار: 1395/2/21 | ساعت: 5:11
Vote count: 0 I'm inserting a video tag into a webpage but the video for some reason doesn't show up even though it's found the video resource. I looked in the console and found == $0 which I've never seen before and didn't know if it had something to do with it. Does anyone know what this means? as...
static assert to check if constructor is explicit
◷
تاریخ انتشار: 1395/2/21 | ساعت: 5:11
Vote count: 0 I'm using the Catch unit test library. In one of my test cases, I need to be able to verify that a specific constructor in my class remains explicit (In other words, if the explicit keyword is removed the test should fail to compile with a helpful/contextual message). Is this something...
make makes not written rules
◷
تاریخ انتشار: 1395/2/21 | ساعت: 3:59
Vote count: 0 Here is my makefile code : CC = gcc IFLAGS = -Iinclude CFLAGS = -std=c99 -fPIC -pedantic -Wall -Wextra -c # -march=native -ggdb3 LFLAGS = -shared -lX11 # -march=native -ggdb3 DFLAGS = -L./lib -lOSPOOC TARGET = lib/libOSPOOC.so SOURCES = $(shell echo src/*.c) HEADERS = $(shell echo incl...
Jquery ajax, trouble receiving huge amount of data
◷
تاریخ انتشار: 1395/2/21 | ساعت: 3:59
Vote count: 0 I need to receive big amount of data via ajax response and seems like post_max_size on live server is causing trouble. On local test server I have no limits or issues. The data is currently 2.7mb and it could get bigger. Problem is that the script is going to be used by multiple users ...
TFS 2015: Order values for field
◷
تاریخ انتشار: 1395/2/21 | ساعت: 3:59
Vote count: 0 We have a customized TFS Process (template) based on the newest Agile Process and everything is working beautifully, except for the order of the valid-values within the State field (see screenshot). I've searched high and low and ca ot seem to find out any tips on how these values are ...
Datatype or Datastructure to use for checking modified state?
◷
تاریخ انتشار: 1395/2/21 | ساعت: 2:02
Vote count: 0 I am looking for appropriate Data Structure or Data type for checking if the value assigned to the variable is modified or not. For example, int x = 0; . . . x = 2; . . . x = 0; . . . if (x = modified?) Here, I do not want to store the variable as global or something. I want to check i...
How to hide Material-UI raised button when printing
◷
تاریخ انتشار: 1395/2/21 | ساعت: 2:02
Vote count: 0 I have a button on a web page that triggers a print via javascripts window.print() method. Unfortunately, in the print preview, I can still see the button that triggered the print. Is there a way I can set a property to hide this button after being clicked or hide it when I'm trying to...
Getting input from JTextArea in a JOptionPane
◷
تاریخ انتشار: 1395/2/21 | ساعت: 2:02
Vote count: 0 I was writing an editor that lets the user design a selection/bidding table. Part of this program was the ability to add sub categories, which have a name and description. I have done more sophisticated things like this before but because i needed this done in a few days I decided to t...
Google Maps shortest distance
◷
تاریخ انتشار: 1395/2/21 | ساعت: 0:18
Vote count: 0 I have a dataset with start (X) and end (Y) coordinates. I want to extract the shortest distance from X to Y using Google Maps. Is there any package/function I can use to do this in R? Thanks, asked 3 mins agoEstefy Let's block ads! (Why?)
Insert join sql windowsForms
◷
تاریخ انتشار: 1395/2/21 | ساعت: 0:18
Vote count: 0 I want to insert a record in my RDV table. There is the query creation of my table RDV: CREATE TABLE [dbo].[RDV] ( [idRdv] INT NOT NULL, [objet] NVARCHAR (50) NULL, [objectif] NVARCHAR (50) NULL, [DateRdv] DATETIME NULL, [commentaire] NVARCHAR (50) NULL, [archive] NVARCHAR (50) NULL, [...
Get content from page requiring authorization
◷
تاریخ انتشار: 1395/2/21 | ساعت: 0:18
Vote count: 0 I have a successful script in Node.js which manages to get content from a page which requires authorization, by mimicking the login process. I now need to get content from the webpage for a slightly different purpose using PHP and have attempted to "convert" the script from Javascript ...
Angular2 - Release candidate router not routing to child routes
◷
تاریخ انتشار: 1395/2/20 | ساعت: 22:59
Vote count: 0 I am trying to create a simple nested router. This sort of structure worked in the beta builds, but with the launch of the release candidate router I find myself stuck. http://plnkr.co/edit/ 7KSJpqWuBpkxi1E6tJ The plunkr above is a contrived version of my scenario. Despite having @Rout...
Bash: rm with an array of filenames
◷
تاریخ انتشار: 1395/2/20 | ساعت: 22:59
Vote count: 0 So I'm working on making an advanced delete script. The idea is the user inputs a grep regex for what needs to be deleted, and the script does an rm operation for all of it. Basically eliminates the need to write all the code directly in the command line each time. Here is my script so...
How does EF migrations choose a localdb version?
◷
تاریخ انتشار: 1395/2/20 | ساعت: 22:59
Vote count: 0 My development machine has multiple versions of localdb. After ru ing an initial EF migration the database was created in (localdb)MSSQLLocalDB (SQL Server 12.0.4213...). I expected it to land in (localdb)v11.0 (SQL Server 11.0.3000...). The co ectionString in App.config is <add name="...
How to calculate control points for a bezier curve with a given implicit function?
◷
تاریخ انتشار: 1395/2/20 | ساعت: 21:33
Vote count: 0 I am trying to write a program to draw a bezier curve segment implementing the knowledge from my textbook. I wanted to try making a drawing program to draw something using implicit functions. I want my program to work as follow. user input an implicit function, let's say y=2x^3. calcul...
Compile time dispatch: conditional on valid call
◷
تاریخ انتشار: 1395/2/20 | ساعت: 21:33
Vote count: 0 Given the following piece of code: template<typename GroupA, typename GroupB> class JoinedObjectGroup : public _ObjectSpaceHolder<GroupA> , public _ObjectSpaceHolder<GroupB> { public: JoinedObjectGroup(GroupA &groupA, GroupB &groupB) : _ObjectSpaceHolder<GroupA>(groupA) , _ObjectSpaceH...
ASP.net Hidden Field null in Javascript function
◷
تاریخ انتشار: 1395/2/20 | ساعت: 21:33
Vote count: 0 have a question about referencing an <asp:HiddenField ID="editcheck" runat="server"/> from a JS function. The function is being hit as a null reference error is thrown by the var e = document.getElementById('<%=editcheck.ClientID%>'); line in the function. Any Ideas? Thanks asked 53 se...