Check if a given path is a special folder path?

Question:On Windows, one can get any special folder path using SHGetKnownFolderPath or SHGetSpecialFolder (If I remember correctly this last one). However, I want the reverse, I have a path and want to know which special folder it belongs to, if any. I pr

“object not found” error when creating a new geom

Question:Full disclosure: this issue is duplicated on the ggplot2 google groupI'm developing a package that makes heavy use of ggplot2. I've created my own geom—geom_rug_alt—as a way of putting rug fringes on the top/right of the plot instead of the def

JS logic - adding 2 multiselect checkboxes

:Just need help with a little JS logic as I'm pretty new to it. I have 2 seperate multiselect dropdown checkbox list user can select from. As of now they can choose no more than 5 from each. How could I set it up where it adds boths drop downs to only al

Get name of selected country from jQuery Vector Maps

:Im trying to use jQuery Vector Maps.Everything works but i just dont know how i can get name of clicked country. I need this to use that name country in my different jQuery code.Here is simple documentation:

jQuery Datatable - changing data url

:Currently using the jQuery Datatables plugin.I now need to be able to change the ajax data source based on some form input values, which would be submitted on a button click?What is the recommended method for achieving this?$(document).ready(function ()

Using a Html file for mail.body in .net.mail

:MVC3, VB.NET. I have a function in my app that is supposed to use a html file's contents for the email body. However what I have so far is failing at the mail.body = file.readalltext(_body) line.. Any ideas?? Function

PHP - array unique by value in multidimensional array

:I want to remove duplicates from input array by only value of user_idInput array:array (size=3) 0 => array (size=3) 'user_id' => string '3' (length=1) 'rate' => string '0' (length=1) 'note' => string 'a' (length=1) 1 =>

jqgrid double headers

:Can we include two headers in jqgrid. One with a colModel and one without a colModel?Also I have an issue where when I click one row, the entire grid gets highlighted. How can I resolve this issue?CSS Code:.cssclass{ background-color : #EEEEEE

Check current TTL on collection columns in Cassandra

:Lets assume I have a Column Family with following schema:CREATE TABLE users ( user_id timeuuid, name varchar, last_name varchar, children list, phone_numbers map, PRIMARY KEY(user_id));Then I insert a row into this CF with "USING TTL 6

Keystone JS: local file uploads being auto-renamed

:Whenever i am uploading file after upload name is getting change to random value? I think it is default function of keystone.How can i stop this? 1:You can pass originalName: true to the schema configuration. This gives you both names as a reference.

Using directives inside directives causes binding issues

:We're using Angular and we're having trouble with resolving variables in directives.This fiddle shows our issue:Here's the full code: should handle the translating of the useableButton textapp.directive('

Change div's height and set absolute position break Bootstrap responsiveness

:Bootstrap 3.x framework and jQuery 2.x library are been used.I have four divs in three different rows. I am using jQuery to change the div height when mouse hover. Use of z-index and absolute position break Bootstrap responsivness.Using z-index and absol

Jump to next & prev image (vertical scroll) with jQuery

:I have a linear list of images (vertical) and I search to use the keyboard up & down to navigate to next or prev images.My problem is that I don't know where I'm on the scroll and where I need to scroll to go to the next or prev image.I saw this exampl

Pop Under on Click for RSS Feed - Javascript

:I want to set up the site so when users click on RSS feed links (which I display in part of the site), the feed link appears in a pop under. It makes sense on the site. It's something my users want.What I can't figure out is how to populate the rss l

Ember render 404 with Invalid URL Slugs

:I'm using dynamic URLs in my application for easy readability. The url structure is /[:organization_slug]/[:product_slug]. In other words, an organization is the owner of a product. For security purposes, I want to display a 404 when somebody types an o

using paste() in a for loop with glm

:In the code below, df.pts is a dataframe. I'd like to run about dozen glm models using different y variable (only two shown in the code). I'm using a for loop with the paste() function, but I can't seem to get the paste() function to work properly.

Complex Number Integration in Java

:I have A function Func(x) which returns a complex number.And I need to calculate Integral of I/Func(E^(I*x)) where x is from Pi/3 to Pi/2.How can i do that in Java? 1:Apache Commons library provide a good support for handling complex numbers. Have a l

Dynamic search/filter core-list (Polymer 0.5)

:I need to implement a filter-type search which hides items in core list if they do not match the search. I created a .hidden class that is applied to an item if an expression returns false:class = {{ {hidden: !match(, hQuery)} | tokenList }}Th

Why isn't my UserControl keeping its initialization?

:I have a UserControl for which I think I'm initializing some of the members:// MyUserControl.csusing System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using Sys

JavaScript: flatten an array without using reduce library

:I have a nested array named $scope.instruments, its contents are:collapsed:expanded:I also have an object:This object contains 2 arrays: AttributeID and SPAttributeRefID.Currently I am flattening the $scope.instruments array using reduce function:$scope.

Jquery class is not responding to .click() despite being listed within selectors

:I have some several labels on a webpage, that can be clicked, and all share the class 'btn'. In the console, if I use the selector $('.btn'); among others the following elements DO appear:​

Node Async Looping - Why does the memory grow and just drop all of the sudden?

:I'm writing a program in Node that uses an async loop. The goal is to get this program to run on Heroku for an extended period of time. It grows in memory, as expected. But then once the memory usage hits about 57MiB, it drops back down to 22MiB (where

javascript closure in a for loop [duplicate]

: Possible Duplicate:Javascript closure inside loops - simple practical exampleJavascript: closure of loop? so I would like the results to be 1,2,3 instead of 3,3,3. How do I set the context/scope so that the jobs are using the correctly scoped "i"?f

trying to make navigation bar for tablet site

:I'm designing a navigation bar for a tablet website. The navigation bar holds elements displayed horizontally, and I want to be able to display new elements with a swipe (kind of like a cover flow) without the window moving. This is the code I'm using

using javascript function call to play multiple swf files

:I'm using the following code to trigger the playing of a swf file when an image is clicked. It works great, but I want to have multiple swf files that are each triggered by diffent images.script language="JavaScript"> function getFlashMovieObje

 11892    1 2 3 4 5 6 7 8 9 10 Next Last