All Questions
0
votes
0answers
3 views
Facebook JavaScript SDK sometimes works other times not
I am using on my website Facebook like using this code:
var fbBtnLike = '(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); ...
0
votes
0answers
2 views
ffmpeg Python Subprocess Error returned non-zero exit status 1
So I have a line here that is meant to dump frames from a movie via python and ffmpeg.
subprocess.check_output([ffmpeg, "-i", self.moviefile, "-ss 00:01:00.000 -t 00:00:05 -vf scale=" + ...
0
votes
0answers
2 views
VBA. Is it possible to assign Permissions to a worksheet by User or Station?
Not sure if this is even possible...
I know how to protect the entire sheet with VBA code but striking out otherwise. I've tried to implement the Excel "Allow Users to Edit Ranges" but will not work ...
0
votes
0answers
2 views
Android - setting button's text drawable in code
Since there is a way to set a button's text color as a drawable selector in layout / style, how can I do it in code? Because if I do it like
btn1.setTextColor(R.drawable.selector_button_text);
I ...
0
votes
0answers
2 views
Setting the imageview in PLA(PinterestLikeAdapterView)
I want to create image gallery using PLA(PinterestLikeAdapterView), but I am not sure how to configure dinamically the imageview of each card.
the sample only include the textview asignament.
thanks ...
0
votes
0answers
2 views
Call to google maps geocode api works on local but fails on live server
I have a function that takes an array of addresses, passes them into the google maps geocode api and returns a list of latitude/longitude coordinates that are then saved to a database.
It's been ...
0
votes
0answers
2 views
Foundation 5 Compatibility version Browser : Firefox, Chrome, Opera and Safari
From which version supports the Foundation 5 browser: Firefox, Chrome, Opera and Safari? For
both Desktop and Mobile,
Thanks
0
votes
0answers
3 views
haxe -swf-version -swf-lib mylib.swf -> File “genswf.ml”, Assertion failed
I'm using Haxe 2.10.
I'd like to use the haxe.Json class.
For this it seems I need to compile for Flash Player 11, at least. Otherwise JSON is not found on execution time and I get an exception.
...
0
votes
0answers
2 views
Python Tornado updating shared data between requests
I have a Python Tornado app. The app contains request handlers, for which I am passing data to like (the code below is not complete, and is just to illustrate what I want):
configs = {'some_data': 1, ...
0
votes
0answers
7 views
Efficient Data Structure To Store Millions of Records
I have an input file that contains millions of records and each record contains again thousands of columns in which each of the column is separated by a delimiter.
Number of records and columns can ...
0
votes
0answers
10 views
Why doesn't this JavaScript function calculate correctly when the site is first loaded, but works fine afterwards?
I am working on a site that generates notation for a random musical rhythm based on some user-selected parameters. It does this by using an ajax call, which returns a random set of <img> ...
0
votes
0answers
2 views
Fullpage.js not scrolling tu full height of the content
I've implemented the fullpage.js plugin but I'm having an issue on when the section needs to use the overflow since the content is too long for the page. As you can see from the following link:
...
0
votes
0answers
2 views
index table by name in R
I'm having trouble with the dataset .
the data looks like this:
>data
name L1
1 TSS200 1
2 TSS200 1
3 TSS200 1
4 TSS200 1
5 TSS200 2
6 TSS200 3
7 TSS1500 4
8 TSS1500 ...
0
votes
0answers
4 views
Visualizing OpenCV decision trees in C++?
I know this is possible in python with scikit-learn but am trying to figure out how to do this in C++ using OpenCV. I'm using random forests specifically.
-2
votes
0answers
9 views
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\WEBS\path\domain.com\www\Facebook\FacebookRedirectLoginHelper.php on line 146
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\WEBS\path\domain.com\www\Facebook\FacebookRedirectLoginHelper.php on line 146
I've checked, path and FacebookRedirectLoginHelper.php but ...
0
votes
0answers
6 views
protecting my distributed javascript (third party javascript)
1)my distributed script is placed on sites without any id references (in element attributes)
2)once the script is fired via a site:
the HTTP Origin Header is detected and verified on my server ...
0
votes
0answers
5 views
PHP and preg_match - check on valid symbols
I would like to check the string on next conditions:
string must consist only of English letters and characters, in the string should be at least one capital letter and 1 character(! @ # $ % ^ & ...
0
votes
0answers
2 views
Oracle check constraint1
I have a column Hire_date in table x with data
01-jun-98
16-aug-99
02-feb-09
01-mar-06
01-dec-08
17-mar-99
16-feb-07
I was asked to create a check constraint on that Hire_date column. Check ...
0
votes
0answers
3 views
Animate buttons to slide and change nicely
I saw this design mockup here and I think the button flow is superb. Can it be done on android and any idea how? Or is it iOS specific? Or not doable at all? I don't have much experience in frontend ...
0
votes
0answers
4 views
Anchor link on the same page to a tab
Sort of a jQuery newbie here.
I'm trying to set up an anchor tag to a tab, like this: <a href="#tab-ebook_tab">E-books</a>
The anchor tag is on the same page as the tabs; I don't need to ...
0
votes
0answers
7 views
Using $scope.$watch when using `this` scope in controller
I have a controller in my Angular app:
(function (angular) {
function MyController() {
this.name = 'Dave';
// I want to have code like this:
/*
...
0
votes
0answers
2 views
hbase client not able to connect to port 60020 even though it is listening
I am running Hbase client on Windows machine, getting following exception :
IPC Client (1700398792) connection to localhost/127.0.0.1:60020 from myWindowsMachine: closing ipc connection to ...
0
votes
0answers
3 views
Browser navigates to webpage, but I get 500 error when using HttpURLConnection
I need to send a request to a webpage. In the past, I have used HttpURLConnection, and everything worked fine. When I try to do the same thing this time, I get a 500 return code. Usually, this ...
0
votes
0answers
6 views
changing a customlabel within an expanding UItableviewcell
I created a custom table cell that expands. When it expands, it shows a UILabel along with two UIButtons. The UILabel should show data from the backend. I created the customLabel in the CustomCell ...
0
votes
0answers
9 views
Nil response when formatting date
Here's my server time:
2014-08-20 16:23:00.0
Now I would like to format the date my server gives me with the date only, and not the time. For example: Month/date/year Could someone explain what I ...
-1
votes
0answers
6 views
Could not load type from another project in same assembly ASP.NET MVC
I have three asp.net mvc 5 projects in one solution. The solution is called "Bank24" so the assembly too. Project "Application_layer" is main project. Also there is 2 more projects. There are ...
0
votes
3answers
21 views
Convert this.tb.Text = DateTime
Maybe a dumb question, but why does this not work?
Convert.ToDateTime(this.tb_start_date.Text) = DateTime.Now.AddDays(-90)
I know you can't just = a string to a DateTime, but I thought having the ...
0
votes
0answers
2 views
Bind graphics2d to grails img tag
I want to bind graphic from grails code, to a grails img tag. I tried several ways to do this, but none of them works:
Html:
....
<g:img bean="${Img.g}" > didn't work
<g:img ...
0
votes
0answers
28 views
How to check Integer array is all zero or not?
I have a large integer array as below in my code which will hold pixel data. After some internal operations i need to check whether all the elements in the array are '0' or i have some valid values. ...
0
votes
0answers
6 views
Developing android/ipad application in Cognos
As part of a project for a large organization, we are looking to develop a tablet based application. The application needs to be visual, interactive and user friendly. The organization already uses ...
0
votes
0answers
3 views
How to submit a form with a get action using Robobrowser
I am using the robobrowser library, I have come across a form with the following action:
<form id="search" action="/results"
My code:
search_form = browser.get_form(id='search')
...
0
votes
0answers
4 views
Is it possible to define an attribute of an XML element to be required only if another element's attribute is set to a particular value?
I would like to ask if this is possible and if yes, how to achieve it:
For example if I have an element definition with a complexType in an XML schema definition like this:
<xsd:element ...
0
votes
0answers
10 views
Java JFrame won't show up after using .setVisible(true) after being invisible
I'll start explaining from the bottom to top, so you will actually understand what I was trying to do, and understand my code better.
I am creating a library, that let's you capture an area, whether ...
0
votes
0answers
10 views
CSS fix for percentage rounding areas
So I have a grid split into three even columns which, when setting them each to 33.33% leaves a small gap at the end of the column due to rounding errors (mostly in Safari).
I've attempted fix this ...
0
votes
0answers
8 views
Execute Java Code based on list of checkboxes in HTML
I have written two methods that will perform different functions based on the parameter passed to it. In this case, it is an array of checkbox values (Strings). On my .JSP I have said list of ...
0
votes
0answers
6 views
How to achieve @abstractstaticmethod and @abstractclassmethod in Python 2.7?
How to achieve @abstractstaticmethod and @abstractclassmethod in Python 2.7?
class Thing(object):
__metaclass__ = abc.ABCMeta
# works
@abstractmethod
def instanceMethod(self):
pass
# ...
2
votes
0answers
12 views
Member with no value in F#
I'm trying to convert the following C# code to F#:
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
private class DOCINFOA
{
[MarshalAs(UnmanagedType.LPStr)]
public string ...
0
votes
0answers
3 views
GWT Flextable setHeight function will change cellSpacing
I have a GWT Flextable, it only has few rows and columns, but I want to set this flextable's height 100% and add border for it and let the border occupy the whole page's height without changing the ...
-2
votes
1answer
8 views
Incorrect assignments
Assigning like this
$('#myelement').text = 'some text';
has no effect visually. Is the above ignored by jQuery?
Instead, it should be
$('#myelement').text('some text');
0
votes
1answer
8 views
Detect keycode ALT+L via Javascript
I try to detect if a user presses F12 or ALT + L.
document.onkeydown = function (event) {
event = (event || window.event);
if (event.keyCode == 123 || (event.keyCode == 18 && ...
0
votes
0answers
4 views
Using type of property as second information in ECMASCRIPT languages
I saw this in some php scripts around the web and start to use it myself, but never in JavaScript, or ActionScript. Now I'm working object oriented with classes and this strategy seams to be good for ...
0
votes
0answers
6 views
JSON of all Steam trading cards
Is a JSON file containing all Steam Trading Cards or all Steam Items available somewhere? In the question
Getting someone's Steam inventory
Andy very nicely explains how to get Steam inventory ...
0
votes
1answer
9 views
Call a method when fragment is visible to user
I need execute a method when the fragment is visible (to the user).
Example:
I have 2 buttons (button 1 and button 2) ,
2 fragments(fragment 1 and fragment 2)
and the method loadImages() inside the ...
0
votes
0answers
3 views
Multiple image cycle scripts on one page?
I have the following code:
<IMG SRC="http://2.bp.blogspot.com/-8ChQ3SBxYOY/U9bSBt4bcMI/AAAAAAAARDE/zLDJ1kP903A/s1600/1.png" name="VCRImage" BORDER=0>
<IMG ...
0
votes
0answers
5 views
Android Listview with Custom Adapter behaving weirdly
Scenario
I have created an Android app with a ListView, each row of which has :
AutoCompleteTextView - user will enter item name.
Button - plus, for increasing the quantity
Button - minus, for ...
-2
votes
0answers
4 views
Saving Variable in Calender after 24 hours
I Want to save the value of variable after every 24 hours automatically.And when i clicked on the date i can get the value of the variable of each day
0
votes
0answers
2 views
Problems with ng-repeat and ajax-loaded content in directive
I'm creating some directive that wraps up jCarousel plugin. But content for it loading dynamically via ajax.
So here are examples of my code:
Calling directive in HTML:
<div class="jcarousel" ...
0
votes
0answers
3 views
JPA equivalent of Hibernate's join and subselect in mapping
Using Hibernate I can use join to map fields in an entity.
-- Example --
If I have the following class:
public class Order{
private String orderNum;
private String productName;
...
0
votes
0answers
3 views
MS Access Database merging fields from another table based on conditions
I need to merge a couple of fields based on 1 condition. The common Field name between the 2 tables are [partno]. There are fields I would like to take from Table B and put that into Table A.
Could ...
0
votes
1answer
11 views
Storing user information in session or pull from mysql?
Option 1:
Upon login, populate SESSION with basic users info (name, userid, account permissions, etc.)
- Pro: Usually none of the user information changes, so there is no need for a database call. ...