Mssql own (WHERE IN) condition for each column
◷
تاریخ انتشار: 1395/4/14 | ساعت: 16:29
Vote count: 0 I've got a problem with MSsql. My product table looks like this id_product | product_count | product_name 1 | 10 | name1 2 | 20 | name2 3 | 20 | name3 4 | 52 | name4 5 | 30 | name5 6 | 50 | name6 And i want to do query that result will be product_group_name | product_group_name | produ...
Laravel how to store user visited product
◷
تاریخ انتشار: 1395/4/14 | ساعت: 15:16
Vote count: 0 I am working a eCommerce application using laravel framework 5.2. my client want to show the wishlist of product . user visited product add in wishlist . i want to do the work in cookie but i cant find the way how it store and destroy in cookie asked 26 secs agotapos ghosh Let's block ...
TypeError: __init__() takes exactly 1 argument (4 given)
◷
تاریخ انتشار: 1395/4/14 | ساعت: 15:16
Vote count: 0 mptt-urls raises TypeError at /activities/test/ init() takes exactly 1 argument (4 given) This is my url patte : url(r'^(?P<path>.*)/', mptt_urls.view(model='activities.models.Category', view='activities.views.Category', slug_field='slug')), What am I doing wrong? asked 24 secs agoVikt...
Reuse Entity Framework Select Passing a bool Func to Select
◷
تاریخ انتشار: 1395/4/14 | ساعت: 15:16
Vote count: 0 public static List<Customer> ReusableFunctionToGetCustomers(dbContext context, Expression<Func<Customer,bool>> CheckedPredicate) { retu context.Customers.Where(/* complex reused code*/) .Select(c => new CustomerVM { Id = c.CustomerId, Name = c.Name, IsChecked = true/*somehow use the Ch...
Invalid argument supplied for foreach() inside if else PHP
◷
تاریخ انتشار: 1395/4/14 | ساعت: 14:10
Vote count: 1 I'm trying to create a chart using highcart.js. Please, take a look at my script : public function index() { extract(populateform()); if(isset($monthly)){ $data['var'] = "Monthly"; $data['tgl'] = $this->modelmodel->showdata("select MONTH(tanggal) Tanggal from transaksi where outlet = '...
.attachClickHandler() does not work on page refresh/redirect
◷
تاریخ انتشار: 1395/4/14 | ساعت: 14:10
Vote count: 0 I'm trying to implement a custom google login button in index.html which works perfectly on page load but does not when the page is reloaded or redirected from another page. On page load, console statements 1,2 and 3 are printed sequentially automatically and 4 is printed on sign-in. W...
Unable to pip install Flask on windows
◷
تاریخ انتشار: 1395/4/14 | ساعت: 14:10
Vote count: 0 C:WINDOWSsystem32>pip install Flask Collecting Flask Using cached Flask-0.11.1-py2.py3-none-any.whl Requirement already satisfied (use --upgrade to upgrade): click>=2.0 in c:python27libsite-packages (from Flask) Requirement already satisfied (use --upgrade to upgrade): Werkzeug>=0.7 in...
Query does not output time
◷
تاریخ انتشار: 1395/4/14 | ساعت: 12:56
Vote count: 0 I ca ot get the $result = DatabaseHandler::query($query); while ($row = $result->fetch_assoc()) { $this->mTaskDateCreated[] = $row; } to output the time once the user has submitted the form. I'm not sure whereabouts exactly the problems lies as the other two $result work as they retu t...
Output file contains mapperoutput instead of Reducer output
◷
تاریخ انتشار: 1395/4/14 | ساعت: 12:56
Vote count: 0 Hi I am trying to find average of few numbers using map reduce technique in stand alone mode. I have two input files.It contain values file1: 25 25 25 25 25 and file2: 15 15 15 15 15. My program is working fine but the output file contains output of the mapper instead of reducer output...
How to make the axes start from zero in package fitdistrplus in R
◷
تاریخ انتشار: 1395/4/14 | ساعت: 12:56
Vote count: 0 I use function fitdist in package fitdistrplus to get the best distribution fitted to my data and draw the ppcomp figure , I use the example codes of ?fitdistrplus to replace my data and codes. data(groundbeef) serving <- groundbeef$serving fitW <- fitdist(serving, "weibull") fitg <- f...
Generic casting of eobject
◷
تاریخ انتشار: 1395/4/14 | ساعت: 11:55
Vote count: 0 Problem:I have the ecore model and i have the XML file which contains the serialized Eobjects in that.Now i have the requirement to arrange those eobjects in the specified format in the another XML file.So when i read the xml file all objects will be of type eobject so i need to cast i...
Is there a way to create package-info.java for existing packages in one move in eclipse?
◷
تاریخ انتشار: 1395/4/14 | ساعت: 11:55
Vote count: 0 I have some legacy packages which doesn't have package-info.java. For some reason I need to create package-info.javas for them and I found the task really boring because there is no shortcut in eclipse for me to do that. I have to manually use the New > File procedure to create the fil...
query html to expand
◷
تاریخ انتشار: 1395/4/14 | ساعت: 11:55
Vote count: 0 Well. I was wondering if someone here remember about this lib. Long ago I used this but I can't remember the name. How work: 3 images at the middle of screen and when you click some image then this expand a div info text asked 31 secs agoJorge Let's block ads! (Why?)
the file directory on other computer C#
◷
تاریخ انتشار: 1395/4/14 | ساعت: 10:39
Vote count: 0 I am working with c# in window application, and I am hardcoding the file path into the program. But if I move the application to another PC, that absolutely can't find out the directory of the file. like this: dataGridView2.DataSource = ReadCsv("C:\Users\PC\Documents\Visual Studio 2015...
After asp.net Identity login, user should able to login using office 365 and get email details?
◷
تاریخ انتشار: 1395/4/14 | ساعت: 10:39
Vote count: 0 I need to authenticate the user using asp.net identity then need to use the social login to get there profile detail. Owin does't allow two login at the same time. please help me out of this. thanks in advance. asked 1 min agoNitin Singh Let's block ads! (Why?)
Redirection with $_SERVER["PHP_SELF"] and using header()
◷
تاریخ انتشار: 1395/4/14 | ساعت: 10:39
Vote count: 0 is it possible to do this , im trying to validate a form then, it will redirect using header() if TRUE.. but it seems not to be working? or my method is completely wrong ? if ($_SERVER["REQUEST_METHOD"] == "POST") { $email = $_POST["clientEmail"]; if ($email != $sentEmailClients) { ech...
Error while calling udf from within withColumn in Spark using Scala
◷
تاریخ انتشار: 1395/4/14 | ساعت: 9:36
Vote count: 0 I receive and error while calling udf from within withColumn in Spark using Scala. This error happens while building with SBT. val hiveRDD = sqlContext.sql("select * from iac_trinity.ctg_us_clickstream") hiveRDD.persist() val t EventDf = hiveRDD .withColumn("system_generated_id", getAu...
My unit test crash when I convert a json string to model by mantle
◷
تاریخ انتشار: 1395/4/14 | ساعت: 9:36
Vote count: 0 when I run my main target project mantle is perfect,but if I run unite test it will crash. Assertion failure in -[MTLJSONAdapter initWithJSONDictionary:modelClass:error:], /Users/xiamin/mishios/Pods/Mantle/Mantle/MTLJSONAdapter.m:104 asked 30 secs agoBuer Let's block ads! (Why?)
Ember Data Edit After Create "Error: Attempted to handle event `didCommit` on while in state root.loaded.updated.uncommitted
◷
تاریخ انتشار: 1395/4/14 | ساعت: 9:36
Vote count: 0 In the app I'm working on, hitting enter creates a new entry and focuses the title field, letting the user immediately start typing. The changes to that field are automatically persisted with a debounced save. Generally this works well, but if I start typing too quickly, I'm getting th...
Creating new Functions with Linear Regression in R :
◷
تاریخ انتشار: 1395/4/14 | ساعت: 8:33
Vote count: 0 Im having a real trouble by creating a function that calls the 'lm' function on R. My client is not in English but when I try my function, It says something like "object XXX not found", where XXX refers to a colum on my dataframe. Here is my code regresionLineal <- function (vardep, va...