Vote count: 0 I am trying to install strongloop in my ubuntu system as the docs suggest by npm i -g strongloop Now for almost an hour it's stuck with the line showing loadDep:sl-blip -> networ the spier is spiing but that text doesn't change nor the progressbar shows any movement. is there a way to somehow debug or fix this? asked 3 mins agoSuSub Let's block ads! بخوانید...
ادامه مطلبVote count: 0 The company I work for would like to rewrite a MVC 5 application in ASP.NET Core 1.0 web applciation. The core DAL layer we use is using EF 6.13 has its assemblies packed into a nuget package which is published on an inteal server. This nuget package has been installed in the legacy MVC 5 application (along with several other projects). In the legacy MVC 5 application the Context coection string is put into the web.config file and everything works great. I have installed the DAL nuget package in the new ASP.NET Core 1.0 project and everything build correctly. The problem is that I am at a loss where to create the coection string that the nuget package DAL assemblies that use EF...
ادامه مطلبVote count: 0 I want to set the width of a div via the style Attribute (to use the div as a bootstrap progress bar. I want to do this in a foreach loop @foreach (var item in Items) { @item.Name } ` What happens is that the style attribute is empty. Is there a way to achieve this? edited 48 secs ago asked 3 mins agocrauscher Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am currently building a mobile application for Android and iOS platforms. But for syncing the data, I am building a server application on ASP.Net. Later I will be needing the server application to show web pages for viewing statistics and charts, etc. So I am confused as to how to should I do it? I have previously worked with MVC and WCF but I was thinking about WebAPI. But the problem with this approach is I need to write code separately for the web and the API. What I want to know is, can I use WebAPI controllers to have code written in one controller and accessed by both the web application pages and the mobile apps (via REST) ? Or is there any other better approach to thi...
ادامه مطلبVote count: 0 Here is my model class that is just working with text data right now. How would I alter it to have the image field created in the DB using System; using System.Data.Entity; namespace BizzCoect.Models { public class Post { public int ID { get; set; } public string Title { get; set; } public DateTime ReleaseDate { get; set; } public string Genre { get; set; } public decimal Price { get; set; } } public class PostDBContext : DbContext { public DbSet Posts { get; set; } } } Following is the controller using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; using System.Net; using System.Web; using System.Web.Mvc; using BizzCoe...
ادامه مطلبVote count: 0 i have 2 tabs in my web page. i have one model,2 repository folder in which i am calling stored procedures from back end,one view and one controller.i am able to insert data from both the tabs.but when i insert from second tab it is inserting row with null values in first tabs's table.please help me out asked 2 mins agoShital Kashte Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have installed Oracle 11g on my laptop and I already use Visual Studio 2013. When I open Server Explorer in my Visual Studio, I can find oracle coection in "Choose Data Source". But, I can't find it when I want to create ADO.Net Entity Data Model. What's the problem on my Visual Studio 2013? asked 2 mins agoariefsibuea Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have a question about getting Data from a SQL Database via ASP.NET and then passing the data over to objective-c. Currently I am just using an SQL select statement to get data from the database via ASP.NET and ASP.NET retus the data like so: ORC0023 And then in objective-c I am putting the data in a NSDirectory like so: NSDictionary *punchList = [[NSDictionary alloc]initWithDictionary:[NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&myError]]; Everything is working as expected here. What I am doing now is creating a stored procedure that retus XML and have ASP.NET retu the XML (everything here is completed and working as expected) The XML came out like ...
ادامه مطلبVote count: 0 I am using Netbeans 8.1 with CUnit testing. I can run and test my project just fine, and it spits out the correct results. However, when I try to test it again it does not give me results. Instead it only says: CUnit - A unit testing framework for C - Version 2.1-3 http://cunit.sourceforge.net/ This persists even if I change the actual code of the project. It will only give me the results when I restart the program. asked 32 secs agoWarSame Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am kinda stuck here. . . . for region in regions: coection=ec2.coect_to_region(region) print coection sg=coection.get_all_security_groups() print sg try: for securityGroup in sg: for rule in securityGroup.rules: This results in the following EC2Coection:ec2.us-west-2.amazonaws.com [SecurityGroup: too many sec groups here.........] None Traceback (most recent call last): File "aws_sec_scan.py", line 29, in sg=coection.get_all_security_groups() AttributeError: 'NoneType' object has no attribute 'get_all_security_groups' why am i getting that "None"? asked 38 secs agoNishant Singh Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have used Rscript ruer but its not working. public static string SetupPath(string Rversion = "R-3.2.3") { var oldPath = System.Environment.GetEnvironmentVariable("PATH"); var rPath = System.Environment.Is64BitProcess ? string.Format(@"C:Program FilesRR-3.2.3binx64", Rversion) : string.Format(@"C:Program FilesRR-3.2.3bini386", Rversion); if (!Directory.Exists(rPath)) throw new DirectoryNotFoundException( string.Format(" R.dll not found in : {0}", rPath)); var newPath = string.Format("{0}{1}{2}", rPath, System.IO.Path.PathSeparator, oldPath); System.Environment.SetEnvironmentVariable("PATH", newPath); retu newPath.ToString() ; } This button_clcick method calls the rscript ruer....
ادامه مطلبVote count: 0 I found the following query in order to find out if a database table was created already or not: if db_id('thedbName') is not null --code mine :) print 'db exists' else print 'nope' Now I am wanting to use that same query within my VB.net application. This is the code I currently have elsewhere that coects to the database (that I am wanting to see if its there before doing all this): Dim cn As SqlCoection = New SqlCoection("Data Source=DAVIDSDESKTOP;" & _ "Initial Catalog=thedbName;" & _ "Integrated Security=True;" & _ "Pooling=False") Dim sql As String = "if db_id('thedbName') is not null " & vbCrLf & _ "Print() 'exists' " & vbCrLf & _ "else " & vbCrLf & _ "Print() 'nope'" Dim...
ادامه مطلبVote count: 0 I have tried populating the dropdownlist in the code behind but it shows an error "stateID does not exist in the current context". THe dropdownlist is inside the datalist ASPX: CodeBehind: public void LoadStates() { stateID.DataTextField = "Name"; stateID.DataValueField = "ID"; } Error: stateID does not exist in the current context. asked 45 secs agoRakesh Dadamatti Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have a chart using Ireport and need to show a BigDecimal value like: "R$9.000,00"in the labels. In the reports i use Patte (into properties tab), but how do i do this on charts? Tried this: new java.text.DecimalFormat("R$ #,##0.00").format(Double.valueOf($F{soma})) But no success, so if someone can point me a direction, i'll be thankful. asked 21 secs agoRodrigo Let's block ads! بخوانید...
ادامه مطلبVote count: 0 We have requirements to deploy an ASP.Net application ruing currently on multiple instances (MS Azure Compute Service) on OpenStack host. I am new to OpenStack and wonder how it can be an alteative solution for the PaaS model from MS Azure in the following points: Multiple Windows Server instances with IIS Load balancer to manage trafic with the instances Manual or auto scale out without the need to redeploy the system on each machine. Single configuration place where it automatically updates all the instances web config, or a place when I read using APIs (key/value). Does OpenStack provide these features out of the box? And what the maturate level? Any practical use? asked 43 ...
ادامه مطلبVote count: 0 I have two functions that make networks requests: e.g.: func request1() (resultTypeA, error) { .... } func request2() (requestTypeB, error) { ... } Given that they are two different types, I can't just use one chael. What is the best patte to parallelize to calls: resultA, err := request1() resultB, err := request2() asked 1 min agosamol Let's block ads! بخوانید...
ادامه مطلبVote count: -4 I have programmed before in Python and I love it. Recently, I have taken an interest into web design and programming, and so have leat HTML and feel semi-confident with CSS. However, I understand that to create dynamic websites, other languages are required. Would it be better to lea PHP or Java? Are there alteatives? I'm really interested in how social networking platforms work and would like to explore it for my EPQ (extended project qualification) for my A-Levels as well as taking CS. I'm willing to work hard and lea, but so far, all the Java tutorials or books have not been very helpful (that, and I dislike the language a bit). So, I guess in summary, if there was a route ...
ادامه مطلبVote count: 0 Just had a very bad evening facing this strange problem and searching online even didn't helped thought to ask it here. As the question all said about it i use a model view as a model for my view and i have an index view result method in controller like below: public ViewResult Index(Cart cart, string retuUrl, string SelectedSizeText, string SelectedColorText) { ViewBag.Size = SelectedSizeText; ViewBag.Color = SelectedColorText; retu View(new CartIndexViewModel { RetuUrl = retuUrl, Cart = cart, }); } I have placed breakpoints to see if the data is loaded in this ViewResult and yes i get the data until here, from here then the data is not passed to the view for some unknown reas...
ادامه مطلبVote count: 0 I am currently stuck with a Number formatting issue and I really don't know how to solve it. I use a function from the Support assembly : 'StringToFormat looks like "123.456789" 'FormatInfo looks like "0.000" (must display three decimals) Support.Format(StringToFormat, FormatInfo) It works fine exept that when my regional settings are not set properly, it doesn't work... StringToFormat is a variable that come from another application (over TCP/IP) and I can't change it. So when the Decimal Separator is set to coma instead of a dot, the Format function is doing weird stuff and not displaying my values correctly. To solve this, I wrote a small function that actually creates a new...
ادامه مطلبVote count: 0 We are using log4net for the logging in our programs. In some of these programs we log the errors in a file and show a message box at the same time. I solved this by creating an own "MessageBoxAppender". This is working fine. The problem is we have a program which can be split into two big parts. The first part is the configuration and the second part is an automatic task which processes some data and executes different modules. The problem is we only want to have the MessageBoxAppender for the configuration part. For the automatic part there must not be any message boxes, because in this case the programm will be stopped, which is not the behavior we want to have. Is there any...
ادامه مطلب