Mssql own (WHERE IN) condition for each column
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
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)
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
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
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
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
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
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
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...
Generic casting of eobject
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...
query html to expand
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#
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...
Redirection with $_SERVER["PHP_SELF"] and using header()
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...
Ember Data Edit After Create "Error: Attempted to handle event `didCommit` on while in state root.loaded.updated.uncommitted
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 :
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...