How to avoid ManytoManyField type?
◷
تاریخ انتشار: 1395/3/13 | ساعت: 1:22
Vote count: 0 I have my 3 models: class POmaterial(models.Model): material = models.ForeignKey(Material, on_delete=models.PROTECT) UOM = models.ManyToManyField(UOM, null=True, blank=True) PO = models.ForeignKey(PO, on_delete=models.PROTECT,blank=True, null=True) class Material(models.Model): #######...
Multi-tiered Spring application dependency resolution
◷
تاریخ انتشار: 1395/3/13 | ساعت: 0:08
Vote count: 0 I am trying to create a three-tier application with Spring, view, logic, data, more or less. The view depends on logic which depends on data. How can I configure the Spring application in the view project such that the dependency graph is able to be resolved? For example: In the view l...
How to joint three tables in SQL?
◷
تاریخ انتشار: 1395/3/13 | ساعت: 0:08
Vote count: 0 I'm faced with following problem, I'm not sure how to tackle it. I have a rough idea, but I'm not sure how I would execute it. Here is the issue Table A exist in the following format: Name | Name_Att| Name2 | Name_Att2 --------+---------+-------+------- ryan | red | xyz | green Likewis...
Unable to access $scope variable
◷
تاریخ انتشار: 1395/3/13 | ساعت: 0:08
Vote count: 0 In my main html, I have a view which loads templates. <div data-ng-view></div> It loads a html whenever the link is clicked. app.config(["$routeProvider", function ($routeProvider) { 'use strict'; $routeProvider .when("/", { templateUrl: "events.html" }); }]); On this page (template) ,...
ASP.NET Application Pool User
◷
تاریخ انتشار: 1395/3/12 | ساعت: 22:43
Vote count: -1 I am trying to upload a PDF document programmatically to a folder on my webhosting account; however, I receive the following error message. Access to the path 'D:CustomerDatawebspaceswebspace_xxxwwwrootassetsdocumentstest.pdf' is denied. I have the following groups and I set the "Appl...
How can I make Python 3's Print fit the size of the command prompt?
◷
تاریخ انتشار: 1395/3/12 | ساعت: 22:43
Vote count: 1 Python 3 can easily handle printing a lot of text: text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vitae odio quis felis consectetur blandit. Etiam mattis vehicula ex id sodales. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris fermentum semper ...
Call WL.Client.invokeProcedure after custom DirectUpdate
◷
تاریخ انتشار: 1395/3/12 | ساعت: 22:43
Vote count: 0 I have a similar problem than MobileFirst Direct update customization using adapter But I'm not using the Adapter to modify the DirectUpdate, I'm trying to make a record about the state of the DirectUpdate when it finish, but seems that the call to the adapter not works. There is any r...
Ionic, I have trouble with my side menu, I need the same one on every pages
◷
تاریخ انتشار: 1395/3/12 | ساعت: 21:29
Vote count: 0 I'm working on an app using Ionic and I'm a begi er with it, I need to put a side menu ( the same one all the time) on every pages I have. Can you help me doing this pls ? Here is my actual code on index.html : <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" ...
Error in Nested Case statement in MYSQL Query
◷
تاریخ انتشار: 1395/3/12 | ساعت: 21:28
Vote count: 0 There is some error in the below nested case statement I am using. Whenever I try to exceute this it's giving these errors:- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHEN (ISNUMERIC(FORMULA_RE...
How to get stream object from kurento utils when using kurento java tutorial samples
◷
تاریخ انتشار: 1395/3/12 | ساعت: 21:28
Vote count: 0 Using kurento tutorials java samples. I Want to handle stream events like onended etc on the webrtcpeer object. Following is my sample code from where i want to fetch the stream object. var options = { localVideo: video, mediaConstraints: constraints, onicecandidate: participant.onIceC...
python: filter a nested list of strings with list comprehension
◷
تاریخ انتشار: 1395/3/12 | ساعت: 19:35
Vote count: 0 I am trying to use list comprehension to filter this list: inp = [['Fire 46.0.1', 'vlc 2.2.3','opt 0.9.9.10'], ['opt 0.9.9.11', 'notepad 6.9', 'adobe. 6.9', 'vlc 2.3.3']] into: out = [['Fire 46.0.1', 'vlc 2.2.3',], ['notepad 6.9', 'adobe. 6.9', 'vlc 2.3.3']] i.e. removing all the strin...
dont understand db connrction
◷
تاریخ انتشار: 1395/3/12 | ساعت: 19:35
Vote count: 0 I downloaded this code but i dont understand and edit. please help me. I would like to know that is $host and $use ame. If i get a public server how do I change it <?php class Database { private $host = "localhost"; private $db_name = "test"; private $use ame = "root"; private $passwor...
XWalkView change inputType method
◷
تاریخ انتشار: 1395/3/12 | ساعت: 19:35
Vote count: 0 In our android app we use XWalkView instead of standard WebView for better berfomance. I'm looking for a way how to show text tips on keyboard when user input, which is disabled by default in XWalk, but presented in standard WebView. And second problem, when using XWalk, keyboard has p...
Devise login doesn't work / no error messages
◷
تاریخ انتشار: 1395/3/12 | ساعت: 18:35
Vote count: 0 Guys i've looked everywhere to fix this issue but I'm out of luck. I got a devise login system and i signed up an account admin@admin.com in development and on the log i got the confirmation email and i went to that email and so my account got confirmed. Now when i try to login the con...
My DateTime.ParseExact does not work but it should
◷
تاریخ انتشار: 1395/3/12 | ساعت: 18:35
Vote count: 0 This statement DateTime myDate = DateTime.ParseExact( "Wed May 25 14:14:13.000 2016", "ddd MMM dd HH:mm:ss.fff yyyy", System.Globalization.CultureInfo.InvariantCulture); give error saying String was not recognized as a valid DateTime. I can't understand this. I have the same format as ...
angular ngif button on table
◷
تاریخ انتشار: 1395/3/12 | ساعت: 18:35
Vote count: 0 i am trying to make table in which there are two show/hide buttons for two columns say A and B.. button a and b separately are functioning properly but If i use both in table ... only one of them functions properly other doesn't do anything.. pls hlp me i am new to this <table datatabl...
An optional parameter must be a reference type
◷
تاریخ انتشار: 1395/3/12 | ساعت: 16:51
Vote count: 0 It is a couple days since I am trying to find what is the problem with my code. I need to create such dynamic links in my project: ParentCategory (Category) - ChildCategory (SubCategory) - Pages (Pages List) - PageDetails (page details by id). I created ParentCategory and ChildCategory...
Python property on a list
◷
تاریخ انتشار: 1395/3/12 | ساعت: 16:51
Vote count: 0 I am new to Python and I just discovered the properties. It works just fine when I try it on a simple variable but I ca ot make it work on a list. When executing the code below it will call two times the getter and not the setter. I know that in my example the property has no added val...
Removing the row from UITableView and updating the section header
◷
تاریخ انتشار: 1395/3/12 | ساعت: 16:51
Vote count: 0 I am showing some rows into the UITableView and the count of the rows in the header of the section, but when i delete the rows then the view looks very weird will deleting with animation. Look into my code if i am missing something. - (UIView *) tableView:(UITableView *)tableView viewF...
How to use QGraphicsScene::setStyle()?
◷
تاریخ انتشار: 1395/3/12 | ساعت: 14:35
Vote count: 0 I am using QGraphicsProxyWidget to embed QWidgets inside a QGraphicsScene. The problem comes with the style with which this widgets are drawed. From the documentation: A top-level item's style defaults to QGraphicsScene::style. A top-level widget's style defaults to QApplication::style...