I've got a link I want to appear on my page,   &lt;a&gt;add another&lt;/a&gt;   But it doesn't look like a link unless I add an href attribute. I'm going to be using jquery to add a .click() event to it, so it doesn't really need anything else.  What's the best value to href to? #? javascript:void(0)? My concern is if someone clicks it before the .click() event gets added or something. # will scroll them to the top of the page, void(0) looks kinda nasty and isn't informative if they look at the address bar...
I have seen the following methods of putting JavaScript code in an &lt;a&gt; tag:  function DoSomething() { ... return false; }    &lt;a href="javascript:;" onClick="return DoSomething();"&gt;link&lt;/a&gt; &lt;a href="javascript:DoSomething();"&gt;link&lt;/a&gt; &lt;a href="javascript:void(0);" onClick="return DoSomething();"&gt;link&lt;/a&gt; &lt;a href="#" onClick="return DoSomething();"&gt;link&lt;/a&gt;   I understand the idea of trying to put a valid URL instead of just JavaScript code, just in case the user doesn't have JavaScript enabled. But for the purpose of this discussion, I need to assume JavaScript is enabled (they can't login without it).  I personally like option 2 as it allows you to see what's going to be run&ndash;especially useful when debuging where there are parameters being passed to the function. I have used it quite a bit and haven't found browser issues.  I have read that people recommend 4, because it gives the user a real link to follow, but really, # isn't "real". It will go absolutely no where.  Is there one that isn't support or is really bad, when you know the user has JavaScript enabled?  Related question: .
Cardinality of cartesian product of an infinite set with N Using round function in QGIS expression? Forms: Modal dialog or separate page in single page app? In my application, I have pages that show lists of some objects, for example "People" or "Contracts".  From these pages, the user may create a new object.  Often these objects only have a handful of properties, maybe 4 or 5.  My question is about the best approach for the forms used for creation of new objects.  Sometimes I have used a separate page, especially when the number of properties is greater than 5-6.  Sometimes I have used a modal dialog.  I have even seen some applications that insert an empty row into a table and you fill-in the values.  (I will not be doing that!)  Any UX-preferences or suggestions for what approach to take?  Also- is it important to be consistent between different types of objects?  Or is a mix of approaches OK?  The technology of my application (Ember.js, single-page app) allows me to navigate to a different page instantly, so any timing difference between approaches is not a factor.  In fact, the animation of the Bootstrap dialog takes longer than the page transition.  The application is a back-office administrative system for insurance companies. I’m looking for an alien movie I watched years ago, mid to late 2000’s about the Earth being cooked or heated up by aliens. The poster is a reflection of the Earth heating up with an orange glow on an aliens eye. It was a low budget movie and I think the one I watched was pirated from China. Again low budget, bad quality and the name could’ve been something worthy he word scorch or something like that. The alien in the movie had legs with knees that went inwards and it had red eyes. Why are there 2 packages for some applications (e.g. Chromium) in Ubuntu Software? Correct user names when tracking /etc/ in git repository and committing as root We use git to track changes in /etc/ on our servers.  Administrators work as root when changing files in /etc/, and thus their commits have author  root &lt;root@machinename&gt;   This is not very satisfying since you cannot see which admin actually did the change.  What can we do to get the real admin names in the git log? I don't think that keeping a local clone of the repository is feasible since we often change interatively until something works, and a change-commit-push-seeError-repeat cycle would not help here. I moved a database from SQL Server 2005 to SQL Server 2012. Is there any way of restoring all the logins on the new server? How do I install applications in Ubuntu? How can I install applications like Google Chrome on Ubuntu?  Are there any commands to install an application?    Index of answers: Why is OpenJDK 10 packaged as openjdk-11-*? What is the purpose of -e in sed command? I can't find any documentation about the sed -e switch, for simple replace, do I need it?  e.g.  sed 's/foo/bar/'   VS  sed -e 's/foo/bar/' Simulating a Brownian Excursion using a Brownian Bridge? How do I check an iOS device's battery health? Show that $\arctan(n)$ is irrational for all $n \in \mathbb{N}$ Should you use a plural verb if you refer to a fraction?     Nine tenths of the pillar have rotted away.   I think has should be used here, but I'm not sure. How to move from screen 1 to screen 3 by moving cursor to the left and vice versa? If I have to move the mouse from the left screen all the way to the right screen, the distance is quite big.   Is there a way to virtually connect the sides of the screen as if they were arranged in a circle? I could then move from the left screen to the right screen, by simply moving the cursor to the left. How to open a PDF form file that says Please wait...? Do you know a good way to compare PDF files side-by-side and show the modifications between the two?  I'm looking for Windows software to accomplish this. It would be great if you can post both free and not-free products. The usual example of unitary ring without the  property is the ring of column finite matrices, and in this case we have $R\simeq R^2$ as (left) $R$-modules. (See also .) In particular, we have $R^2\simeq R^3$.      I wonder if there is an example of unitary ring (without the IBN property) such that $R^2\simeq R^3$, but $R\not\simeq R^2$ (as $R$-modules). How to add field history and product as a related list of opportunity in vf page I am trying the below code to add field history and product as a related list of opportunity in vf page, but its not working .  &lt;apex:relatedList list="OpportunityFieldHistory"/&gt; &lt;apex:relatedList list="Product"/&gt;   Can anyone tell me what is the correct way to write it.  Regards    Edit:  There are two Standard objects that have Opportunity history information,  and . The relatedList component works fine with a value of OpportunityHistories for the list attribute, but an error is thrown when using the value of Histories, even though the SObject describe information shows "Histories" as the child relationship name.   &lt;apex:relatedList list="OpportunityHistories"/&gt; &lt;!-- Works fine --&gt; &lt;apex:relatedList list="Histories"/&gt;            &lt;!-- Error --&gt; The dissolve tool (vector>geoprocessing tools>dissolve) renders some artifacts on shapes with high number of polygons. I’m using a  with 3222 polygons and I’m trying to dissolve it using the field “municipio”, but when the dissolve tool ends calculating the new shape has some artifacts     Does anyone had a similar problem? How to work around it?  I’ve also used v.dissolve from GRASS and the dissolve polygon from SAGA, but the problem persists. I’ve used the same shapefile on ArcGIS 9.3 with the dissolve tool. None artifact/error was produced.  Edit 1  I'm trying to use the v.clean tool as sugested by WhiteboxDev. However I'm getting this error:     An error has occured while executing Python code:      Traceback (most recent call last):   File   "C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins\processing\gui\ProcessingToolbox.py",   line 181, in executeAlgorithm   File   "C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Algorithm.py",   line 511, in checkBeforeOpeningParametersDialog   File   "C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py",   line 361, in checkGrass7IsInstalled   File   "C:\PROGRA~1\QGISCH~1\apps\Python27\lib\ntpath.py", line 96, in join   TypeError: object of type 'NoneType' has no len()      Python version:   2.7.4 (default, Apr  6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]      QGIS version:   2.4.0-Chugiak Chugiak, 8fdd08a      Python path:   ['C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins\processing',   'C:/PROGRA~1/QGISCH~1/apps/qgis/./python',   u'C:/Users/CERCOTRICHAS/.qgis2/python',   u'C:/Users/CERCOTRICHAS/.qgis2/python/plugins',   'C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins',   'C:\PROGRA~1\QGISCH~1\bin\python27.zip',   'C:\PROGRA~1\QGISCH~1\apps\Python27\DLLs',   'C:\PROGRA~1\QGISCH~1\apps\Python27\lib',   'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\plat-win',   'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\lib-tk',   'C:\PROGRA~1\QGISCH~1\bin',   'C:\PROGRA~1\QGISCH~1\apps\Python27',   'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages',   'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\GDAL-1.11.0-py2.7-win32.egg',   'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\PIL',   'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg',   'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win32.egg',   'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\python_dateutil-2.2-py2.7.egg',   'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\pytz-2014.2-py2.7.egg',   'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\win32',   'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\win32\lib',   'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\Pythonwin',   'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win32.egg',   'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\six-1.6.1-py2.7.egg',   'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode',   'C:\PROGRA~1\QGISCH~1\apps\qgis\python\plugins\fTools\tools',   'C:\Program Files\SpiderOak\shell_extension_lib\shared.zip']   Not entirely sure if this error is QGIS related... Any idea why I'm getting this error and how can I solve it?