SQL Server many-to-many relationship table naming
◷
تاریخ انتشار: 1395/3/10 | ساعت: 1:49
Vote count: 0 In SQL Server 2012, I have a table "Window" and another table "WindowAction" and i need to join the tow tables with many-to-many relationship . And my question is what i should name the third table?? Is "WindowWindowAction" is correct ?? Thank You. asked 2 mins agouser3870553 Let's blo...
Fetch to GraphQL server from Redux client returning before request finishes?
◷
تاریخ انتشار: 1395/3/10 | ساعت: 1:49
Vote count: 0 I'm trying to make a POST to a GraphQL server in a React Redux app. retu (dispatch) => fetch(API_URL, { method: 'POST', body: JSON.stringify(query) }) .then(response => response.json()) .then(json => dispatch({ type: CREATE_USER, payload: json })) When I place a breakpoint in the respo...
How to keep changesets in phase “draft” on hg push?
◷
تاریخ انتشار: 1395/3/10 | ساعت: 1:49
Vote count: 0 How can I hinder mercurial from putting changesets to phase “public” on push operations? I want them to stay “draft”. I rebase and histedit a lot, and the repository I push to is for me only. And having to change the phase all the time is a nuisance. asked 1 min agoRobert Siemer Let's ...
how to use mail function in yii 1.1.14
◷
تاریخ انتشار: 1395/3/10 | ساعت: 0:44
Vote count: 0 I am a newbie in Yii Framework and creating a first yii app. I am trying to send a mail in yii 1.1.14 public function Mail() { mail('to',"subject","Message",'$headers'); } in yii php send mail function work or not? asked 2 mins agoSujat Let's block ads! (Why?)
ASP.NET Core IdentityDbContext using dependency Injection
◷
تاریخ انتشار: 1395/3/10 | ساعت: 0:44
Vote count: 0 It's any possible to using new dependency injection mechanism in ASP.NET Core to inject IdentityDbContext into my repository? EF version: "EntityFramework.Commands": "7.0.0-rc1-final", "Microsoft.AspNet.Identity.EntityFramework": "3.0.0-rc1-final", Context: public class ApplicationDbCo...
onQueryTextSubmit brings to relaunching MainActivity
◷
تاریخ انتشار: 1395/3/10 | ساعت: 0:44
Vote count: 0 I've doing search for my app, but now I have a strange problem. By typing letters into search view all works, but when I submit search, it brings to relaunching MainActivity.class and then, when I choose some film, project stops to working. I don't know, what happens. I'm begi er and i...
Rails STI has_many and belongs_to keep looking for type column
◷
تاریخ انتشار: 1395/3/9 | ساعت: 23:05
Vote count: 0 I have the following models: class Installation < ActiveRecord::Base belongs_to :original_lead, class_name: 'Lead' end class Lead < ActiveRecord::Base has_many :originated_installations, as: :original_lead, class_name: 'Installation' end Lead uses STI, having a type column. That means ...
Create view with curve edges in android
◷
تاریخ انتشار: 1395/3/9 | ساعت: 23:05
Vote count: 0 i am trying to make a custom view in android like in the picture with curve edges. How to achieve the curve edges with a picture in background? asked 32 secs agomehran Let's block ads! (Why?)
Google Maps API add marker with form, but getDokumentById only after second click
◷
تاریخ انتشار: 1395/3/9 | ساعت: 23:05
Vote count: 0 I try to insert a marker with a form in InfoWindow, but with the first click into the map I got this error: Uncaught TypeError: Ca ot set property 'value' of null It is because getDokumentById is NULL, when I click a second time it is matching. I tried some hours but didn't get it :-/ ...
Can we Group and sort the items in group in one pass?
◷
تاریخ انتشار: 1395/3/9 | ساعت: 22:00
Vote count: 0 I have this class: class Employee { String name; int type; // 0 = ADMIN, 1 = NON-ADMIN } Now I have a List Can I sort the list in a way that all ADMIN employees are sorted, and appear before all NON-ADMIN sorted employees in the result. asked 1 min agoSatyendra Kumar Let's block ads! (...
Appending to string each time a substring is found
◷
تاریخ انتشار: 1395/3/9 | ساعت: 22:00
Vote count: 0 I have a string that is made of html srcset. I extracted the value of srcset using DOMDocument, it's something like: $srcset = "/wp-content/uploads/2016/05/something-970x647-c-300x190.jpg 300w, /wp-content/uploads/2016/05/something-970x647-c-120x76.jpg 120w, /wp-content/uploads/2016/05...
Client server image sharing
◷
تاریخ انتشار: 1395/3/9 | ساعت: 22:00
Vote count: -1 I'm making a web application using ASP.NET MVC (.Net 4.6). My application allows user to register an account and upload file to my site. I don't know how I can secure user's image files, and display the image to View only to the owner (just like the Imageshack) I don't know what steps...
Spring Velocity HTML email displays as plain text
◷
تاریخ انتشار: 1395/3/9 | ساعت: 19:23
Vote count: 0 I am sending an html email with integration of Spring + velocity Here is my code: javaMailSender.send(new MimeMessagePreparator() { @Override public void prepare(MimeMessage mimeMessage) throws Exception { MimeMessageHelper message = new MimeMessageHelper(mimeMessage); message.setFrom(...
update data in one table with the values from another table
◷
تاریخ انتشار: 1395/3/9 | ساعت: 19:23
Vote count: 0 I have 2 tables, shows and show_photo shows structure: show_photo structure: What i want to do is update show_photo.modified column with show.yearThis is what i tried but nothing gets updated. UPDATE show_photo t2 JOIN shows t1 ON t1.id = t2.show_id SET t2.modified = t1.year; asked 44 ...
Detecting mismatches against constants in scanf format string
◷
تاریخ انتشار: 1395/3/9 | ساعت: 19:23
Vote count: 0 From the man page of scanf: A directive is one of the following: A sequence of white-space characters (space, tab, newline, etc.; see isspace(3)). This directive matches any amount of white space, including none, in the input. An ordinary character (i.e., one other than white space or ...
Why do I create a new model object twice in a form?
◷
تاریخ انتشار: 1395/3/9 | ساعت: 17:39
Vote count: 0 Following various parts of the inte et, I have the following code: Controller class StudiesController < ApplicationController def new require_user @study = Study.new end def create @study = Study.new(study_params) if @study.save flash[:success] = "You made it!" redirect_to root_path el...
IoT Foundation errors (The topic is not valid, The topic does not match an allowed rule)
◷
تاریخ انتشار: 1395/3/9 | ساعت: 17:39
Vote count: 0 I have a device co ected to IBM IoT foundation. It uses a TI CC3100 Wi-Fi chip driven by an MSP430 MCU. The device used to co ect perfectly to IOTF in the past. I didn't use it for a couple of months and now suddenly it does not co ect. Did IBM recently change anything in the MQTT prot...
Changing multiple characters in a string
◷
تاریخ انتشار: 1395/3/9 | ساعت: 17:39
Vote count: 0 So i have a program where i want to replace specific characters in the program with other letters. However, when i run this program, it seems to keep reverting the changed characters back. This is the code so far: for (int i = 0; i < sample.length(); ) { if (sample.charAt(i) == 'A') { ...
comparing falcon python framework with flask
◷
تاریخ انتشار: 1395/3/9 | ساعت: 15:17
Vote count: 0 How far is better to use falcon python framework than flask in building backend of data analytics projects?I has some confusion in selecting one among them. asked 2 mins agosai Let's block ads! (Why?)
Ajax Call in C# winForm
◷
تاریخ انتشار: 1395/3/9 | ساعت: 15:17
Vote count: 0 How can I call this post request in c# (not web) jQuery.ajax({ url: "URL", type: "POST", data: JSON.stringify({"appname":"","user":""}), dataType: "json", contentType: "application/json; charset=utf-8", success: function (response) { console.log("success"); }, error: function (response...