Bring window to front when it is shown (Caliburn.Micro)
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...
Segmentation Fault 11 with C in Terminal
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
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
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 ...
Constraints - linear programming- CPLEX
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....
Installing Ubuntu alongside Windows 7
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
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
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?
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?)
How to use Thor methods from within a Rails controller
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...
sql server select as base64 column
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
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
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?)