JS audio player, click list item to play
◷
تاریخ انتشار:
1395/1/11
|
ساعت:
4:38
Vote count: 0 I am working on an web audio player using html/css and javascript. The player uses a list to store the songs currently, and displays the list at the bottom of the player as a playlist. I want to make it so that when I click on a list item, the audio for that list item starts to play. T...
Query string with space through Elasticsearch
◷
تاریخ انتشار:
1395/1/11
|
ساعت:
4:38
Vote count: 0 I'd like let the Elasticsearch retu the result of the search keyword including space like "bread " correctly. I'm attaching the screenshot of my current result. The result what I expected is not supposed to be included the "Breadcrumb" and "Breadfruit" since it hasn't "bread" keyword b...
Graphing current_user data with Chartkick Rails 4
◷
تاریخ انتشار:
1395/1/11
|
ساعت:
3:30
Vote count: 0 I've been having trouble with capturing the data related to the current_user, and then graphing it. I will post the code that I've written and error that I've been experiencing below. I'm receiving the error below, even though the view itself loads Error Loading Chart: Inte al Server E...
Set onClickListener on GCM Notofication
◷
تاریخ انتشار:
1395/1/11
|
ساعت:
3:30
Vote count: 0 I use GCM and when notifications comes I want to make some special things. So, I need something like onClickListener on the Notification. Any idea ? Here is my code: Intent intent = new Intent(this, MainActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); PendingIntent pen...
Image Map links reloading current page instead of linking to new pages
◷
تاریخ انتشار:
1395/1/11
|
ساعت:
3:30
Vote count: 0 Trying to have my links go to Facebook and a mailing list signup page. When clicked though, the page reloads. How do I fix this? <img id="Image-Maps-Com-image-maps-2016-03-29-155838" src="http://www.sunshinesam.com/v/vspfiles/templates/152/61.png" border="0" width="450" height="450" or...
Requirements for VR 360 player mode
◷
تاریخ انتشار:
1395/1/11
|
ساعت:
2:19
Vote count: 0 I want to create player with VR mode support (like Cardboard). looking for any special requirements for such display mode, but cant find any concrete list of requirements - only some SDK that provide ready solution. Here is screenshot from such mode (from 360Heros-360-Video-Library-Goo...
passing model to _layout.cshtml
◷
تاریخ انتشار:
1395/1/11
|
ساعت:
2:19
Vote count: 0 I have login page that looks like It has a ViewModelBase & a ViewModel as public abstract class UserViewModelBase { private string userId; private LdapDirectory ldapDir; private XXXPerson userDetails; public UserViewModelBase() { ldapDir = new LdapDirectory(); if (HttpContext.Current.R...
Codemirror ReplaceSelection As a List
◷
تاریخ انتشار:
1395/1/11
|
ساعت:
2:19
Vote count: 0 I'm trying to when I click a button I want to replace a selection and insert it as a list. Problem: A list of stuff 8 Lorem ipsum dolor sit amet. 7 Ut doloremque omnis quibusdam nam. 6 Ex voluptas sapiente est. Possimus! 5 Esse accusantium maxime perferendis, incidunt. 4 Non, et aliqui...
Forbidden (CSRF token missing or incorrect.):
◷
تاریخ انتشار:
1395/1/11
|
ساعت:
0:52
Vote count: 0 I am making ajax call like below: var data_dict = {'user':{{ user.id }}, 'bookId':that.id, 'csrfmiddlewaretoken': '{{ csrf_token }}'}; $.ajax({ type: 'POST', url:"/issuebook", data:data_dict, processData: false, contentType: false, success:function(response) { } }); urls.py is: urlpatt...
Accessing an array with a variable in Jekyll/Liquid templating
◷
تاریخ انتشار:
1395/1/11
|
ساعت:
0:52
Vote count: 0 I have the following code in my template: {% for post in site.posts %} {% capture num_colors %}{{ site.colors | size }}{% endcapture %} {% capture color_index %}{{ forloop.index0 | mod: num_colors }}{% endcapture %} <a href="{{ post.url }}" class="post-box" rel="bookmark" title="{{ pos...
Docker compose ssl error on mac El Capitan
◷
تاریخ انتشار:
1395/1/11
|
ساعت:
0:52
Vote count: 0 I get the following error when ru ing docker compose on mac El Capitan. Anyone knows how to fix it? I suspect it is a problem with EL Capitan, but have no idea how to fix... SSL error: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:581) PS: I have tried the ...
Fatal error: class not found in php unit test
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
23:32
Vote count: 0 I am trying to run phpunit manually as following from the command line in the proper directory: phpunit UtilitiesTest UtilitiesTest.php Yet, I get the following error message: Fatal error: Class 'Testdir1dir2Utilities' not found in /Test/dir1/dir2/UtilitiesTest.php on line 35 Class 'Te...
How to get function variables in promise?
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
23:32
Vote count: 0 I have the following code: function method(array, index, vr){ for (var i = index; i< array.length; i++ ){ if(condition){ lib.run({ }).then(function(r){ //doSomething }); } } } run() - is just library method which retu promise. I need to use array and vr variables inside then() but it s...
How to use HTTP GET request with **dynamic site** using c++?
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
23:32
Vote count: 0 I need to retrieve the html page from a website. I decided to use socket and HTTP GET request. I use c++ and I query a recipes site. It is a dynamic website. In the previous question I asked why I receive different response from the site but now, I need to clean the html page and get t...
Bootstrap3 Datepicker - Count Active dates
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
22:23
Vote count: 0 I am using Bootstrap3 Datepicker and trying to count the number of active dates and retu them to the console. My current project is to count the days "worked" and retu them, therefore I need to use a multiple date selector (Range wont work). For example, I work MWF, I want to select 3 ...
Chutzpah stop on first failed test
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
22:23
Vote count: 0 I am currently Chutzpah with Visual Studio .NET 2013 and QUnit. My chutzpah.json settings file has all of the JavaScript unit tests listed in a very specific order. However each test is dependent on the prior one succeeding, therefore, if one unit test fails, all of the others after it...
Wordpress Maps Marker Pro and multi language site
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
22:23
Vote count: 0 I'm using Maps Marker Pro plugin for wordpress and WPML plugin for translation. The thing is: I have a page with an included map via [shortcode] that shows a map with different pins located around the world. Each of the marker opens a popup like this when you click on the icon: View im...
$criteria->select only returning first line of sql
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
21:20
Vote count: 0 I'm currently trying to shoeho sql into my criteria as it's a bit complex for me to put into cdbcriteria at the minute. The issue is I'm only getting the very first result of the sql and I'm a little bit confused at why it's not getting the entire query. I feel like I shouldn't have to...
How to redirect the window that opened this browser popup?
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
21:20
Vote count: 0 On my login page, there is a script that gets called when the user clicks Log In, if they have to change their password upon logging in. This script calls window.showModalDialog or window.open depending on the browser. It directs to a page "popup_main.aspx" which redirects the window t...
loop through a nested array in php
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
21:20
Vote count: 0 I have a JSON object that converted into php array. how can I get the specific value , let me say, 'man Cause' object. I write some code but this retu s both category. thanks in advanced. //this is JSON objec { "success":"true", "results":{ "3":{ "name":"wa ", "id" :"3", "has_child":{ ...