Bring window to front when it is shown (Caliburn.Micro)
◷
تاریخ انتشار: 1395/3/2 | ساعت: 3:58
Vote count: 0 I hope you can help me with my problem. What is the situation: I'm working on a C# WPF application with the MVVM patte . I'm using Calibu .Micro and MahApps.Metro. I have a list of ViewModels in ViewModelA: ObservableCollection<ViewModelB> ViewModelList { get; set; } // short version T...
Mongo - Can't use "." in key error --- But no period is being used
◷
تاریخ انتشار: 1395/3/2 | ساعت: 3:58
Vote count: 0 I'm new to MongoDB and I'm creating my first DB using this guide. There are tons of SO articles already on you and why you can't use "." or "$" in one's keys like this, this, and this. In most cases, people are indeed trying to store keys with periods in them and are trying to find a w...
Segmentation Fault 11 with C in Terminal
◷
تاریخ انتشار: 1395/3/2 | ساعت: 2:42
Vote count: 0 I'm writing a simple program in C, trying to teach myself the language for the first time and also lea ing to use my (Mac) Terminal for the first time. However, I keep getting a segmentation fault error when I try to enter a variable (ssn) into scanf() to be saved. I changed the variab...
cannot open outputfile, Permission Denied
◷
تاریخ انتشار: 1395/3/2 | ساعت: 2:42
Vote count: 0 Whenever i try to build and run the code in codeblocks, sometimes it displays error that says ca ot open outputfile. If the error is displayed, then if i wait for few seconds and then run the program again, the program runs, the console opens up but it remains blank for few seconds and...
NSImage doesn't work with all images
◷
تاریخ انتشار: 1395/3/2 | ساعت: 2:42
Vote count: 0 I'm loading images using NSImage class in my application like that. if let image = NSImage(contentsOfURL: openPanel.URL!) { ... } It works fine with most of images. I then convert it to CGImage and use like I want. But with some images it simply glitches and I cant understand why. For ...
The Page I Request Does Not Represent The Same Structure with BeautifulSoup4
◷
تاریخ انتشار: 1395/3/2 | ساعت: 1:36
Vote count: 0 I request a page with requests, but when I use it with BeautifulSoup, structure changes and I ca ot find what I want to find in document. Let me explain. This is the the page I am trying to analyze. I am trying to get elements with this CSS selector: .chosen-select option. An Example C...
Constraints - linear programming- CPLEX
◷
تاریخ انتشار: 1395/3/2 | ساعت: 1:36
Vote count: 0 How do I write such constraints in CPLEX (linear-programming) ? forall(p in P, x in X, y in Y) if ((remx[p,x] <= 0) OR (remy[p,y] <= 0)) then pbl[p,x,y] == 0 else pbl[p,x,y] == 1 where pbl is a decision variable (matrix), remx and remy is a normal matrix variable and p,x,y are indices....
how to count numerics when a data frame have both characters and numerics in r language
◷
تاریخ انتشار: 1395/3/2 | ساعت: 1:36
Vote count: 0 i am trying to count how many numbers are greater than zero in a data frame. the data frame has a labels like "xx", which are characters; and the original data frame looks like: dataframe "xx" 13,NA,9,NA,NA,NA "xx" 2,1,NA,NA,NA,NA "cc" NA,NA,NA,NA,NA,NA "cc" 59,50,2,5,1,NA "xx" 20,10,1...
Installing Ubuntu alongside Windows 7
◷
تاریخ انتشار: 1395/3/2 | ساعت: 0:26
Vote count: 0 I have recently installed Ubuntu 13 alongside Windows 7 and everything is okay. The only problem I have is I was having only one partition on my PC and the installer didn't provide where I could create new partition. I seem to have a partion where Ubuntu was installled when I check my ...
React native swift get reactTag in Manager
◷
تاریخ انتشار: 1395/3/2 | ساعت: 0:26
Vote count: 0 I have the following issue. I know that when using Objective-C to export a Manager method you can use the RCT_EXPORT_METHOD and you can get the UIView associated with the reactTag like so: RCT_EXPORT_METHOD(scrollTo:(no ull NSNumber *)reactTag offsetX:(CGFloat)x offsetY:(CGFloat)y anim...
I cannot use OpenGLView in a Xamarin.Forms project for Android
◷
تاریخ انتشار: 1395/3/2 | ساعت: 0:26
Vote count: 0 I tried to use the code found here : https://developer.xamarin.com/api/type/Xamarin.Forms.OpenGLView/ using Xamarin.Forms; using OpenTK.Graphics.ES30; But When Debug starts, a Window opens (image attached) : "Find Source" And looks for the following file : UncaughtExceptionHandler.cs h...
What is federated authentication?
◷
تاریخ انتشار: 1395/3/1 | ساعت: 22:25
Vote count: -2 I'm currently lea ing ASP.NET MVC, and I came to a subject called "federated authentication". Could anyone tell me with example what it is and why to use it? Thank you! :) asked 1 min agoMr.Hurricane Let's block ads! (Why?)
Conjunctive Search Tokens in Cloud
◷
تاریخ انتشار: 1395/3/1 | ساعت: 22:25
Vote count: 0 How search tokens can be generated for conjunctive keywords. How do search tokens work on attributes asked 1 min agoRachel Nallathamby Let's block ads! (Why?)
How to use Thor methods from within a Rails controller
◷
تاریخ انتشار: 1395/3/1 | ساعت: 22:25
Vote count: 0 I want to use the remove_file and template methods from the Thor toolkit in the create action of a rails controller. pages_controller.rb (although it makes no sense) class PagesController < ApplicationController .... def create @page = Page.new(page_params) respond_to do |format| if @p...
AndroidRuntime Error: at com.google.android.maps.MapActivity.(Unknown Source)
◷
تاریخ انتشار: 1395/3/1 | ساعت: 21:16
Vote count: 0 I have compiled successfully but encounted a runtime error when I import google maps to my proj, below is my proj and the fail log. Any help will be much appreciated. my proj [fail log]: 05-21 12:28:13.303: E/AndroidRuntime(30336): Process: com.iceskysl.iTracks, PID: 30336 05-21 12:28:...
many errors in the installation, the applet does not wish to be default
◷
تاریخ انتشار: 1395/3/1 | ساعت: 21:16
Vote count: 0 installation with all the privileges: c:work>gp --install online.cap --default --terminate -sdomain [main] WARN pro.javacard.gp.GlobalPlatform - Unknown/unhandled tag in FCI propri etary data: 9F6E06479100783300 Exception in thread "main" java.lang.IllegalArgumentException: apdu must b...
sql server select as base64 column
◷
تاریخ انتشار: 1395/3/1 | ساعت: 21:16
Vote count: 0 Is there any simple function for get this output. SELECT Title FROM Table WHERE Id = 1 ---- My title Desire function or etc ... SELECT MYBASE64ENCODE(Title) FROM Table WHERE Id = 1 ---- TXkgdGl0bGU= I need the function for ecnode string to base64. asked 1 min agosweb Let's block ads! (...
how to count number of uploaded files in php
◷
تاریخ انتشار: 1395/3/1 | ساعت: 20:10
Vote count: 0 How can i count the number of uploaded files? This is my form: <div id="dragAndDropFiles" class="uploadArea"> <h1>Drop Images Here</h1> </div> <form id="sfmFiler" class="sfmform" method="post" enctype="multipart/form-data"> <input type="file" name="file" id="file" multiple /> <input ty...
how to custom getRelativeTimeSpanString
◷
تاریخ انتشار: 1395/3/1 | ساعت: 20:10
Vote count: 0 I want to use getRelativeTimeSpanString to show a date.but I couldn`t set Locale for my date! how can I custom this class? is it possible to add locale as a parameter to this class? asked 31 secs agoZahra.HY Let's block ads! (Why?)
tomcat-maven-plugin with multiple modules building one war only
◷
تاریخ انتشار: 1395/3/1 | ساعت: 20:10
Vote count: 0 I try to build a web application based on multiple maven modules. One of the modules is called "web" and is solely responsible to package a war which should be deployed to a tomcat using the tomcat7-maven-plugin. I have following modules defined in my parent.pom: common persistence per...