[Solved] Separate Angular apps for customers and staff

You can create a new workspace with separated projects inside ng new appName –createApplication=false This command will create empty workspace. Then you can create two separated apps and share code between them. ng g application customersApp and ng g application staffApp Now you will have projects folder in your workspace and you can run the … Read more

[Solved] Update Table1 From table 2

You can join the two tables in your UPDATE query (read about it in the documantation): UPDATE `Table 1` t1 JOIN `Table 2` t2 ON t1.ID = t2.ID SET t1.endtime = t2.starttime 2 solved Update Table1 From table 2

[Solved] How to list all ratings received by user

Ok, some people here thinks is funny to downvote a post, well i’m posting the solution cause i know that it can be helpfull to. This is the Query i built: SELECT u.usuario, u.id_usuario, d.id, v.valoracion, v.fecha FROM icar_valoraciones v JOIN icar_dibujos d ON v.id_dibujo = d.id JOIN icar_usuarios u ON v.id_quien = u.id_usuario WHERE … Read more

[Solved] Automapper custom object

First: You should really read the FAQs on how to post a question and what information should be added. (No, I’m not the downvoter) Here is an example how to get your mapping to work. Please note, that I’ve changed your classes a bit, because AutoMapper needs properties. Source source = new Source(); source.Id = … Read more

[Solved] jQuery on second hover event

Store a counter in the data of each element and increment it on each hover, if it gets to two, do your magic: HTML: <div class=”items”> <div class=”hover-me” data-hovercount=”0″></div> <div class=”hover-me” data-hovercount=”0″></div> <div class=”hover-me” data-hovercount=”0″></div> </div> JS: $(“.hover-me”).on(‘mouseenter’, function() { var $this = $(this), $this.data(‘hovercount’, parseInt($this.data(‘hovercount’)) + 1); if ($this.data(‘hovercount’) == 2) { //do something. … Read more

[Solved] What is the maximum number of rows you can have in a single table database on the Heroku free plan (MongoDB/PostgreSQL)?

As you can read on the website you linked, a Free PostgreSQL database is limited to 10K (ten thousand) rows. The free “Sandbox” MongoDB option has no document limit, but a size limit of 496 MB. A single MongoDB document can be anywhere between a few bytes and 16MB. 2 solved What is the maximum … Read more

[Solved] How to show locations of friends on map near by 20 km from user current location in ios [closed]

Look into -(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations; and use this to get your current location: [locations lastObject]; and to get distance use this: distanceFromLocation: 9 solved How to show locations of friends on map near by 20 km from user current location in ios [closed]

[Solved] Linq – cast anonymous type to concrete type

Simply create instances of the concrete type (there is no requirement to use an anonymous types in LINQ): var suppliers = SupplierView.Select() .GroupBy(x => x.Name.Substring(0, 1).ToUpper(), (alphanumeric, suppliers) => new AlphanumericSuppliers // concrete { Alphanumeric = alphanumeric, Suppliers = suppliers.OrderBy(x => x.Name).ToList() // * }) .OrderBy(x => x.Alphanumeric); *As mentioned in comments, either change Suppliers … Read more

[Solved] capture image clicked in one page and display the same in another page HTML

Page 1: <%@ page language=”java” contentType=”text/html; charset=ISO-8859-1″ pageEncoding=”ISO-8859-1″%> <!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”> <html> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1″> <title>Page 1</title> <script type=”text/javascript”> function filename(){ var fullPath = document.getElementById(“image”).src; var filename = fullPath.replace(/^.*[\\\/]/, ”); var fileid = filename.split(“\.”)[0];; window.location.href = “https://stackoverflow.com/questions/37542650/test2.jsp?imgid=”+fileid; } </script> </head> <body> <IMG id=”image” SRC=”images/1.png” width=”100px” alt=”Logo” onclick=”filename();”> </body> … Read more