I'm trying to make an app that's saves users location in one view controller then displays their location on a map in another view controller as an annotation. I am saving the users location fine but I am having trouble getting the GeoPoint from Parse to use in the annotation. How do I access th...
On my internship I must work with Parse. I'm made now an android app in wich I am using this Parse Cloud. I create a sign up button and if the user push this button, a new account should be create. But after the pushing this button,I have this exception: com.parse.ParseRequest$ParseRequestExcept...
I have a networkStateReceiver, that checks if I have internet or not. If I do, I reinitiate instabug, if not, I want to deactivate. How can I do that? I tried just setting it as null, but it doesn't work. if(haveConnectedMobile || haveConnectedWifi){ //TODO will need to make a queue,...
I am wondering if it is possible to combine two alert conditions, for example MessageCount and FieldContent, to send an alarm callback when there is more than 5 messages in a minute that have specific field content. Is it even possible to make a plugin to do that? Thanks in advance.
Sorry if there is a silly problem in the code. I spent two hours just to figure out why its giving error. I am just stuck. Please guys help me out. I tried to take input by stdin and I want "t" times the value of a, b and n. But I am getting the variable might not have been initialized for the va...
I had a table inside a loop, and I want to add a row to the table by clicking a button "add row". Here is my code HTML: @for (int i = 0; i < 3; i++) { <table id="table @i" class="tableSum"> <thead> <tr> <td>Items</td> <td>Quantity</td> ...
im currently having issue with the logical of array and object, hope everyone can cure my dumbness, thanks! Here's what im having: NSArray data = @[@[@"year",@"name"], @[@"2015",@"A"], @[@"2014",@"B"],.... ]; //have 100 small array, year can be...
=== Lets just say i already have setup my App and Controller ==== test.phtml $var = "Welcome"; myangular.js $scope.var = "<?php $var; ?>" //not sure about this part console.log(var) MY PROBLEM is that, i cant display the console.log(var) it says "undefined?" Is it possible? i want to ...
I'm getting the following error when I try to build my Watch OS 2 app on my iPhone (9.0b2) which is paired to my Apple Watch (9.0b2). Your iPhone is not available. Please select a different device and try again. I've tried all the obvious things, restarting iPhone, Watch, Mac, etc. All my s...
My scenario is, I listen a queue. If a message is posted, I will consume it and forward it to another app. Is it possible that when finding the app is down, I can notify the queue, in some way, to hold the message so that I don't get the message. Then when the app come back, I will notify the q...
I want to write a program that can store a unique ID and then send it as NFC tag to another NFC reader devices. How can i send my code ( nfcTag ) to the NFC reader ? Can i don't use AID for my application? public class MainActivity extends Activity { @Override protected void onCreate(B...
I need to programatically append some string to col1. The below code works only in case col1 is not empty. If it's empty then after running the code it remains empty. Why? UPDATE table SET col1 = col1 + ';somestring' WHERE col2 = rowID
I'm new to Blacklight and Solr (or SolrMarc), but I can't find my way in the documentation. Is it correct to assume that imported xml-files (in BlackLight application) are first indexed in Solr-files? But how are these processed? After processing, the BlackLight webapp doesn't show all the fields...
Wikipedia states that there are 3 (major) types of Polymorphism. Correlating this definition with my limited understanding of Java Polymorphism, this is the mapping I came up with - Adhoc polymorphism - Java Function Overloading (dynamic dispatch). Parametric polymorphism - Java Generics. Su...
I have a method (or function, or procedure, it doesn't matter for the sake of this question) void DoStuff(). It has depends on some data and has side effects. Also, it is only valid to do this operation in a certain state; in certain other state this operation can not be performed. Now, although...
I created two WCF web service. I am trying to access one service from another. If I call through postman rest client packaged app, It is not working. But when I call through the Unit testing tool, It is working. Can anybody please explain me where i am wrong. Thanks in advance.
I know how to make a color background but i can't seem to find anything useful for setting the image as a background and would be really grateful for any help with my code. Here is my .py file: from kivy.app import App from kivy.uix.screenmanager import ScreenManager, Screen, FadeTransition fro...
now, i want to know about env file extension. what is env file type? How to encrypt my file with env file type. And, How to open env file? Can you open env file type within shell script coding? eg. #!/bin/bash source myfile.env
MySQL query SET \`products_id\`=(SELECT COALESCE(APR. \`productid\`, BPR. \`productid\`, CPR. \`productid\`, DPR. \`productid\`, ...
Post the code first: #define EV_STANDALONE 1 #include <stdio.h> #include "ev.c" ev_timer timeout_watcher; struct ev_loop* loop; static void timeout_cb (EV_P_ ev_timer *w, int revents) { // puts("timeout"); printf("timeout"); ev_timer_again(loop, w); } int main (void) { printf("he...
namespace WindowsFormsApplication5 { public class ClientContext { private string p; public ClientContext(string p) { // TODO: Complete member initialization this.p = p; } } public partial class Form1 : Form { public Form1() { InitializeCom...
I am trying to select image from gallery in my app and for that I have written the code to pick image from gallery. But when I try to define the onActivityResult(int requestCode, int resultCode, Intent data) I am getting the error onActivityResult(int requestCode, int resultCode, Intent data)...
can I use css command in JQuery to change a div's color slowly? <script> function myFunction() { $(document).ready(function () { $("#square").css({ backgroundColor: 'blue' }); }); } </script>
Suppose, I am spiting 2590400 KB (approx 2.5 GB) file in 30 parts. It will produce 30 files with size of 86347 KB. Which seems correct, 2590400/30 = 86346.66666667 Now if I merge all the parts (30) again it is producing the file of 3453873 KB file, which should be 2590410 KB. Can anyone he...
I have a simple function called loadStyles() here it is: function loadStyles(url) { var link = document.createElement('link'); link.rel = 'stylesheet'; link.type = 'text/css'; link.href = url; link.media = 'all'; (document.getElementsByTagName("hea...
I was watching a tutorial in which instructor using vim for ruby on rials development. He writes code on blank screen and then uses command :w hello.rb the whole code behaves like ruby code... when i try to use this command it gives an error message. I searched a lot on stackoverflow.com There ...
I am creating an application consists of search widget on action bar which was downloaded from here and i had placed in a my layout.xml but it was showing error on the xml called The following classes could not be instantiated:The following classes could not be instantiated: - com.milan.search...
I'm building a lambda function that requires a fair number of variables in the context. const double defaultAmount = [&]{ /*ToDo*/ }(); I'd rather not use [=] in the list as I don't want lots of value copies to be taken. And I'm concerned about program stability if I use [&] since I don't...
I get this error ERROR [WsdlTestCase] Failed to create test step for [X] when executing my soapui project from Maven. Tests work fine from the SOAPUI client software. My Soap-ui.error log is empty. There doesn't seem to be enough information to let me debug this - I'm guessing there's some...
func testExample() { let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate // some code ... } The above function always crash and gives this error: Could not cast value of type 'MyAppName.AppDelegate' (0x10dc09e80) to 'MyAppNameTests.AppDelegate' (0x11cc190c0).
I'm trying to perform an action through a command link in a autocomplete component (primefaces) I've the same structure in others parts of the code, and it works, so I don't understand why in case it doesn't here is the code <h:panelGroup layout="block" rendered="#{secondaryModel['mainBean'] =...
I have a Qt application running on windows 7. I have of course some input area that I want to fill using a virtual keyboard because I have a touch screen monitor. Windows virtual keybord is called "tablet pc input panel" and when I touch, for example, this text area, it shows a tooltip to make th...
The C programming language distinguishes character constants from string constants by using single quotation marks for characters and double quotation marks for strings. Thus,'c' is the character c, while "c" is a string of length 1 consisting of the single character c.Why is this distinction is ...
The data set looks something like this, The data is from openstack ceilometer python API [ <OldSample { counter_name': cpu_util', user_id': 7b', resource_id': ef', timestamp': 2015-07-02T08:13:55', counter_volume': 0.774, resource...
How to stop running default sms app for example "Go sms pro" when one sms with special word receive,and my app open with that sms.
Error: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update java.sql.BatchUpdateException: Duplicate entry '24-0-es_reservation_detail' for key 'questionId_referenceId_referenceType' I am going to save reservation object. This reservation object contains col...
I'm about to start a design project with a pattern library outcome. The project is to design a system of applications which display data feeds from various sources. The users only need to view data and manipulated it every now and then. Only I'm a little hesitant as to how I should go about build...
I have a property grid that I want to add multiple "afterrender" listeners to. Is it possible to add multiple listeners of the same type, or fire multiple functions within one listener? I've tried: afterrender: function(){...}, function(){...} but it does not fire both of the functions.
We are adding a functionality to send email through SMTP. Basically, when the user tries to add and save the SMTP server details through UI, I will need to validate the server's certificate. I could get the "sending mail" code done; there are enough number of examples :) However, I'm trying to se...
I want Archive app from xcode ,but the company are not provide the apple dev id or such like .cer file,just provide a mobileprovison file,and teach me like that : 1. Double click the attached file to install it. 2. Change the Bundle Identifier in the General tab in the Xcode project to Hello worl...
Some times, while creating content, I add some html in the html editor and the following exception occurs: System.ArgumentException: hexadecimal value 0x03, is an invalid character. This exception occurs on the following line on infoset.cs class: public string Data { get { ...
I'm new to Java/Maven/Spring so I am not sure how context path is set. When I rename my .war file in tomcat on autodeploy, the web page goes to localhost:8080/newDirectory as expected, however for some reason wherever there's a call to pageContext.request.contextPath in a Spring based page, it s...
I use input type=date below to get datetime from screen in HTML. The input date format is mm/dd/yyyy but i wanna to change it to dd/mm/yyyy. How can I do that? <input type="date" value="' + today + '" class="date" id="datePicker" style="width:30%" min="25-10-1900" max="25-10-2100"/> PS: I also...
On Phonegap 3.7.0, when the keyboard appears on iPhone or iPad, the web view is not resized, and the keyboard ends up above the footer. I would like the web view to be shrunk so that the footer would remain visible. Is there anyway to fix this? I've seen a lot of questions here to actually achie...
I have a problem in accessing ports on the network A : 10.0.1.0/24. However the port is accessible if I am on another network B. I need to connect my Android phone to a broker running on my computer on port x. The android phone can be connected only on the netwrok A, but this port x is accessible...
I am making a Minecraft Mod with Eclipse Mars and I got errors when typing the following: @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS) What did I do wrong? It said "the attribute clientSide/serverSide is undefined for the annotation type Sid...
I'm wondering if there's a way to replace the if statement with something that checks whether $2 has the 7th bit set to 1? cat $file | awk '{if ($2 == 87) print $1; else {}}' > out.txt" For instance, 93 should print something whereas 128 should not.
I am trying to get the parent class object of the called function using ICoreprofilerCallback/ICoreprofilerInfo2 APIs. What i want to do is, get the 'this' pointer of the following class when its member function is called. So that i can inspect its state. In the following class, i need to get th...
I have variable $post->post_content that return me detail of post and some video URL from YouTube. I need to remove any text from $post->post_content else YouTube link, And add to YouTube likn this tag <video>YouTube_URL</video> How can do that.?
I have a page called update.php, inside my update .php i have a dropdown list of provinces,what i want to happen is that i want to display the value of province in a dropdown list, and also i can select different province if i want it to update.. here my code for the dropdown list.. <tr> <
I have created a line chart with D3.js that displays time-based series of values. The chart can be panned and zoomed. To improve the user experience, I also implemented auto-scaling on the Y-axis, which sets the domain of the y-axis to the values [min, max] extent of the currently visible data. ...
I have a UITableView showing registered iBeacons in the environment; the distance, rssi, UUID and so forth, and it gets updated every second. The tableview looks fine, and it's data updates as you move trough the building. But scrolling behavior is very poor! It's almost totally freezed. I'm us...
I have a Team City Nuget build setup which works fine. However, I have tried to update some nuget packages, one of them being: Microsoft.AspNet.Mvc. This was updated from version 5.2.2 to 5.2.3. This broke the build. Examining the logs I noticed that the nuget package restore seems like it didn...
I want to return a list of tickets which are currently in one of the given statuses. There's an array of the enum TicketState (with values Open, InProgress and Finished). public IEnumerable<Ticket> ReadTickets(TicketState[] states) { return ctx.Tickets.Where(t => states.Contains(t.State)).As...
I'm desesperatly trying to create an Anno object in a JSNI method but I have a strange problem : the code in the jsni method doesn't work but if I do the same in my browser console, it works fine. Java Part I'm using a JSONArray in wich I add some JSONObject (with all the elements, according t...
I want redesign my UI like in Mail, i.e. show only one list for minWidth, and show 3 lists for maxWidth. I don't see how it can be done without another set of controls.
i trying to select a value from a drop down option,as below select_portfolio = Select(driver.find_element_by_xpath("//select[@id='sel']")) select_portfolio.select_by_index(1) Error: selenium.common.exceptions.WebDriverException: Message: Cannot click on option element. Executing JavaScript cli...
The idea is: I have N WCF services which connected and subscribed to the same Redis message channel. These services use this channel to exchange messages to sync some caches and other data. How each service can ignore its own messages? I.e. how to publish to all but me?
I am struggle to get my code working. I have two slides but both of them pointing to the same location. What i would like to achieve is add specific id inside a while look and then by id redirect slides to different locations. Can anyone have a look and give me some ideas please? This is my c...
This is the first time I've encounter this error. Already re-install the crystal report, open in other machine but still I can't open the file. Currently using Crystal Reports 10. "Failed to open document." "Memory full." Report file
I found my Tracker.autorun runs multiple times, and I don't know why, is there a way to find out which reactive computation triggered the autorun?
I was trying to upgrade my php version from 5.3 to 5.6. I removed the old php 5.3 entry and added the new php 5.6 entry in the path variable. But why when I echo %path% in the command line, it always gave me both entries?
I want get the distance between two points but the output code is 0.0 for each values. I wrote the codes and it can run well. But the result of the output code is unreal and it displays 0.0 Cal.java public class Cal extends View { Cal(Context context){ super(context); } pub...
Ok, so I'm making a joke website about a couple of my friends in my computing class and I have reached a problem, the wrapper in my CSS code is not applying to the webpage. The wrapper applies to other pages on the site, however it will not apply to this page, here is the HTML code: <html> <head>
I have an object like this in jquery: [Object { name="test", link="https:/test.com/1079810508714769"}] Now i want to retrieve the link. How can i do that? any idea please?
I am trying to use negative match in perl. I want to replace compete word $FROM by $TO except if .$FROM or . $FROM How to write a expression for this?
In my play application the database settings are not known before startup of the application. I have to read them from an environment variable after automatic deployment and start of the application. Is there a prefered way to do so? In means of still being able to use stuff like: DataSource d...
I would like to do set difference between 2 integer lists, which allow repetitions in haskell. Currently I can do it via the normal \\ operator listA \\ listB. But the problem is this too slow. As integers are in ord group it can be done faster. I am aware of the Data.Multiset module, which wo...
When the modal popup is opened it is forcing the site to think the max width is 480px for the window, which blows down the site to the responsive media-query. This does not happens for IE 10 and above and It also does not happen in IE9 Emulation or in chrome or mozilla. Thanks for help.
I'm currently writing an ssh honeypot in Java as a personal project. I'm having trouble understanding the algorithm negotiation. To be precise, the structure of the received data from the client. Here is what I receive, with my personal annotations: 00 00 07 AC == packet length 08 == padding le...
I want to customise one UITextField for some reason. So currently I subclassed it and added few methods. Instead of that can I use extension over UITextField ? Which is good approach ? Please explain !
I have 10000 records in a table,when I selecting only top 1 than it's taking too much time.can you please guide me what's problem in table structure,while it was working f9 before a day. Regards Vipin singhal
I want to refere from a code in an active workbook to another workbook, I don't want to type path like that woorkbooks("path") , this refere should be flexible, is there something like array of already opened workbooks ?
I am using Flash Builder 4.7 But not getting view in MXML Editor How to get it? Please Explain, How i can get view mode in MXML editor in flash 4.7
I followed Ahoy - a Ruby gem that provides a solid foundation to track visits and events - instructions from README page and I made it work locally, but when I pushed my changes to Heroku app, Apparently Ahoy doesn't work. There is no errors, simply visit records aren't saved, I checked Ahoy vis...
I have some code that is being duplicated 24 times in order to take into account the different hours a day. I want to know of the possibility to streamline this code: SBS00<-colSums(subset(Total[c(14:54)],Total$Hour=="00:00:00"|Total$Group=="SBS")) SBS01<-colSums(subset(Total[c(14:54)],Total$Ho...
I am using two libraries in my project. One is Ping sensor library for utrasonic sensor, and another irRemote library for remote control. When i program for a single sensor, i.e. remote only or utrasonic sensor only i get no error, but when i include both libraries in my file, i get an error mess...
i want to store value to table but i have error SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (sisfo-ldii.nilai, CONSTRAINT fk_nilai_smp_sma_siswa1 FOREIGN KEY (siswa_id) REFERENCES sisfo-ldii.siswa (id) ON DELETE NO ACT...
I'm having a problem with a mysql query. SELECT p.`id_product`, pl.`name`, p.`ean13`, p.`upc`, p.`active`, p.`reference`, m.`name` AS manufacturer_name, stock.`quantity`, product_shop.advanced_stock_management, p.`customizable` FROM `ps_product` p INNER JOIN ps_product_shop product_shop ON (pr...
I am using angularstrap to create a popover using a template. I am using the attribute ng-attr-data-template to provide link to the template. I am changing the mentioned attribute value using a function which is called on click of a button. But the change is not being reflected to the popover. Pl...
I am trying to move from mysql to mysqli. I am connecting fine and simple queries seem to work. However, I want an escape_date function and it keeps tell me that Notice: Undefined variable: conn in $data = mysqli_real_escape_string($conn, $data); here's my code. The function is called wh...
When trying to pause the slider within the init listener the "slick('slickPause')" method doesn't work with the error Uncaught TypeError: Cannot read property 'slickPause' of undefined An example piece of code is: var opts = { autoplay: true, autoplaySpeed: 5000, ...
I'm making a 2D Tank shooter game, but I got some problems and questions: I got some problems with collisions. GIF of a problem here. Go to tank collision problem. (I can't post more than 2 links because of low reputation, so You will have to go to images manualy, sorry.) I need to make my t...
I am trying to pull a JS file from an external source and get the following error: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The file I am trying to pull is a JS file that has data in it. I have tried the fol...
I can't figure out the syntax for quotes within quotes within quotes.? This code brings a syntax error $string="echo'<form method=\"post\" action=\"<? echo$_SERVER['PHP_SELF'];?>\"><button type=\"submit\">';"; I've tried many combinations of quotes and backslashes. What is the proper syntax?
In my code the ng-if doesn't seems to verify the conditions. The 'hello' always displays before the table. <div ng-repeat="(key, value) in data"> <h3>{{key}}</h3> <div ng-if="_.isNumber('hello')"> <h2>hello</h2> </div> <table class="table table-striped table-bordered ...
I got numerous compiler errors for undefined methods when trying to build OpenDL with maven on the command line and in Eclipse. I cloned OpenDL from Github with this URL: https://github.com/guoding83128/OpenDL.git Errors appear to be method names in the code don't match the method names in t...
I have a users table: Id | Name | Age -------------------- 1 | Steve | 21 2 | Jack | 17 3 | Alice | 25 4 | Harry | 14 I also have a table containing additional user info: UId | Key | Value ---------------------- 1 | Height | 70 2 | Height | 65 2 | Eyes | Blue 4 ...
I have a really wide data set (about 800 columns) and I want to melt it based on only 10 of the columns. Is there a way to melt by everything except those 10 columns instead of typing out 790 column names?
I could understand that it is iterating the buckets_ , but what is the action in this for loop? In my debugging, if (it->second) is satisfied if (this->next()->putq(it->second) == -1) is not satisfied. So does this for-loop could only judge if the GADGET fail or not? for (map_type_::iterator...
I am new to Java. I am using some code from a web tutorial. Its not complete. at the moment I am getting the error 'Cannot find symbol for some variables, but these variables have been declared previously. For example bf and file_to_read have been declared. Please can anyone advise? package ...
In a nutshell: I got a distribution profile in my keychain (image 1) From XCode developer account preferences I see only the developer profile (image 2) When I try to add a new iOS distribution profile it says that I already one and that I should visit the member centre (image 3) I did so and t...
import static android.support.test.espresso.Espresso.onView; import static android.support.test..assertion.ViewAssertions.matches; import static android.support.test.espresso.matcher.ViewMatchers.withId; import static android.support.test.espresso.matcher.ViewMatchers.withText; import android.su...
I have this little piece of JavaScript code: function toggle_visibility(id) { var e = document.getElementById(id); if(e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; } I am trying to add a fadeout effect for whe...
I am trying to search an array with a variable, which seems to not work because it thinks the variable itself is a value. var variable = "create"; var navViews = { "create" : [ { "id" : "1", "name" : "Create", "urlext" : "stylecreat...
I am using a jasperreports-6.1.0.jar, and there are some deprecated methods in class JRPrintServiceExporterParameter. How do I find out what method or class am I supposed to use? How do I find out if it's safe to just use deprecated methods?
I have a small issue with WPF Datagrid. My data grid items source in an SQL table called Case, however in the code there are several properties added to Case. One of them is ColorForTAT, which contains logic for coloring cases, however this property should not be visible for user Untill now I man...
I have a class Ptr which wraps a pointer. This pointer can handle structures such as Ptr<A> where A can be a complex structure or primitives such as Ptr<double>. I would like to specify the save and load functions of Ptr serilaization to work for both of these cases. Here I try to reproduce an ex...
I've been struggling with change tests for awhile now. I got this test: let(:office) { create(:office) } ... it "toggles products free attribute", :focus do expect do patch :toggle_free, product_ids: [office.id] end.to change(office, :free).to(1) end I know exactly that the code wo...
I want to modify the .htaccess file, get clean URLS (showing a pretty URL in the URL bar), and chiefly to be SEO friendly. I want to achieve this 3 goals: localhost/example/products/ instead of localhost/example/products-list.php localhost/example/products/38/ instead of localhost/example/produ...
Can't login to websites through iphone, shows user blocked by administrator. But it is possible to login from web.
well i have the following shemas: var BrandSchema = new Schema({ name: { type: String, required: true, index: { unique: true }, lowercase: true }, logo: { type: ObjectId, ref: 'Image' } }); v...
I don't want to apply the xslt using xslPath but I want to apply whole xslt to xml file in share Point 2013 hosted Apps,How to Do that? your help will be appreciated.. Thanks Chandan
i know how to pinvoke but the data structure given in this function is giving me more troubles than i could figure out on my own function name is SLGetWindowsInformation exists at slc.dll HRESULT WINAPI SLGetWindowsInformation( _In_ PCWSTR pwszValueName, _Out_opt_ SLDATATYPE *p...
I am trying to create a webservice to upload a file to the server. I am not able to hit the service and always get 404 error i.e resource not found. I am not able to figure out what is wrong in my code. Please help. Below is my web.xml. I have other resources like login, Signup and tracks also r...
How can I have nested Nested Submenu in WordPress Admin Panel. Like, In Plugins submenu, I want to have my plugin lets say 'CC' , Then I want to display its submenu letsay . 'CC History' , 'CC About Me' I dont have a clue, so any help would be appreciated Thanks
Need to implement Amazon SES API in Google App Engine (Java). Referred this link http://www.radomirml.com/blog/2012/07/31/amazon-ses-service-with-java-on-gae/ which was implemented few years back and tried to change few files of latest version as Radomir did, but failed to make it work. Did anyo...
I am fetching data from json and saving into arrayList of custom class type. Here it is, class ShowInfo{ public String title; public String image; public String id; } ArrayList<ShowInfo> imgs = new ArrayList<ShowInfo>(); My gridView adapter class is - class CustomAdapter extends ...
I want use jqPlot graph on an AngularJS single page application. I successfully get the data from $http.get service, and I present it successfully in tabular format. However, I now want to have that same data presented in a graph using jqPlot. Anyone with an idea on how I can achieve this?
Is there any better way of checking this piece of code, if (is_string($test) && $test != NULL) { $test = 'yes'; } else { $test = null; } And if (is_null($test) || !isset($this->_status[$test])) { $icon = null; } else { $icon = $this->getImage($this->_status[$test]); }
I installed Datastax enterprise on my mac. Where can I find the dse.jar? Or where can I download it from? I want to use Spark and Cassandra helpers. Thanks, id
.I want to insert data into database while typing values in textbox.... My ajax coding doesn't working.... Even i didn't get any errors... Help me soon my ajax coding is: var userid = '#uid'; var datas = 'uid=' + $(userid).val(); $(document).ready(function() { $("#uid").on("keyup", functio...
I am working with a classic ASP application(someone else's code) where no "TEXT" should be displayed comparing to all the other .asp pages. The following particular code is in page (common.asp) that is used in employee.asp page as <!--#include file="../common/common.asp"--> Code: common.asp ...
last call script messed up my spreadsheet.now when i press a field with comments it through me to different row . can i delete everything that's written inside the script? i am afraid to delete this scripts because maybe they are somehow related to the spreadsheet flow of work /** * @OnlyCurren...
When running procedures that use Excel, I typically turn some application settings off at the start of the procedure, and then turn them on again at the end of the procedure. Code for turning application settings off and on: using System; using System.Collections.Generic; using System.Linq; usi...
i want to generate flowchat using python, Is there any module is available for python programming to create flowchat diagram which takes input from (.c) files.
In version 5 of ASM for Java 8, this strange method popped into existence in almost all visitor classes: public AnnotationVisitor visitTypeAnnotation(int typeRef, TypePath typePath, String desc, ...
I'm writing some code to query Active Directory using an LDAP connection. I'm only interested in users and I'm testing against a dummy instance of AD. It's working well - I'm specifying specific properties to return and getting back results with those properties. Last challenge is to filter out...
For Example We can Change Dns or other nettwork info using this code public static void setDNS(InetAddress dns, WifiConfiguration wifiConf) throws SecurityException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException { Object linkProperties = getField(wif...
I need to adjust the top absolute position of a div on page load, depending on browser height. But my code does not work, despite I got parts of it together from several stackoverflow posts. But I am not a programmer though. The code looks like this: <script type="text/javascript"> /* place titl...
This simple C program rarely terminates at the same call depth: #include <stdio.h> #include <stdlib.h> void recursive(int rec); int main(void) { recursive(1); return 0; } void recursive(int rec) { printf("%i\n", rec); recursive(rec +1); } What could be the reasons behind this ch...
My data looks like: ID <--column name 1 Meta <--column name Is eating chocolate really as bad as they say it is? Learn the surprising new findings on chocolate as they relate to health. ID <--column name 2 Meta<--column name Osteoporosis is more common in people with celiac ...
I have ListView and i inserted Slider and TextBlock in the same column: <DataTemplate x:Key="MyDataTemplate2"> <Grid Margin="-7" > <Slider Name="sliderColumn" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource SliderStyle}" Width="80"/> ...
Using pure CSS and some javascript how can I manage to remove and add the class 'active' to my li item, I tried using the 'onclick' function in javascript it changes the color of the item but it doesn't redirecting me to the link of my the selected item. <div class="main_navs"> <ul class="na...
I am having issues with a process created by this command: Runnable r = new Runnable() { @Override public void run() { updating(); } }; executor = Executors.newSingleThreadExecutor(); executor.submit(r); The rol...
I have an activity whose view contains a ListView and I have used an adapter to show the items in the ListView. ReceptionistListToEditActivity.java: private ReceptionistListAdapter adapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ...
I have 3 operations: A, B, C. A, B can be processed concurrently if C runs, A, B, should wait if A or B runs C should wait I would solve it with a dispatch group and a semaphore: public var dgLoadMain = dispatch_group_create() public var semaLoadMain = dispatch_semaphore_create(1) A, B w...
i want to write a code to count words from a form text area i have created the textarea and named it,when i tried to access it using php $str=str_word_count($_POST['mytextarea']); is giving me Notice: undefined index: mytextarea in C:\xamp\htdocs\wordcounter.php
I'm trying to do a personal project (meaning develop an application) for my Windows Phone 8.1 device which requires sending a very simple SSH command. None of the libraries that offer SSH functionality and were tried work. They all probably require stuff from System.Net.Sockets package, which is...
I have the following beans: class User { private List<Address> addresses; // ... getter and setter for addresses follows } class Address { private String street, city; // ... getters and setters follows } This is the controller @RequestMapping(value = { "/doSomething" }) p...
I have a application of C++Builder6, and I'm migrating it to C++BuilderXE8 via C++Builder2007 on Windows7. I compiled with success on C++Builder2007. But I have a error on C++BuilderXE8: [ILINK32 Error] Error: Unresolved external 'SHCreateItemFromParsingName' referenced from C:\PROGRAM FILES\EMB...
I have 2 progs one to send mail and another to read mails. My 1st question is how can i redirect the bounced mails to an email id other than the user. 2nd questions is if i have a bounced mail how do i read the name of the file attached. I have gone through many of the posting but nothing seems t...
I am currently using javascript to generate HTML for checkboxes however when I go to post the form to my controller which accepts FormCollection as a parameter. I then put these values into a dictionary and inspect the value within my dictionary. While other checkboxes only return one value, my...
I have a little Problem with my Code here, hope you Guys can help me. I'm trying to write a Quiz wich displays the Question on the Form, You can answer them by clicking one of the 5 Answerbutton. The Questions are stored in a Mysql-Database. In each game the Player has to answer 5 Questions, an...
I write test for my model Poll. Check, creating object poll with nested atributes vote_option. Its my Factories.rb: FactoryGirl.define do factory :vote_option do title "Ruby" poll end factory :poll do topic "What programming language are you using?" trait :vote_option1 d...
I am trying to develop an OCR application on cordova/phonegap . I came accross an open source plugin "Tesseract" and don't find it to be accurate . Is there any cloud based service that could provide OCR ?. I came across google goggles , but i haven't find any api for it . Is there an way to inte...
My application targets to post a poll in User's timeline. I know that facebook enabled polls for pages and groups; so, we are not able to post polls that are seen on user's profile. We must use facebook 3rd party apps to post polls. So I want to ask my question with an example. Let's say, My A...
I have: >>> se = iter(map(lambda x: (x, x + 1), range(5))) >>> print("{:d} {:d}".format(*(next(se)))) 0 1 The output is the expected one, but is there a nicer way to get it? For e.g. in a way that I get: >>> print("{:d} {:d}".format(se)) 0 1
Sorry for my question, i dont know how to call this question in a simple way. Lets say, i have a table, and only one table. ---------------------------------- id | cat_name | cat_desc | parent_id ---------------------------------- 1 | car | some desc| null 2 | foo | 123 | 1 3 ...
Our uni project is a semi-monopoly game. For its first phase, the game had to support exactly 2 players, taking turns to play on same machine. Interactions with game were through standard input/output. Now, for the second phase, we're to advance our game in order to support local and network p...
Hi I am trying to use slim framework in Magento, for writing API calls to Amazon product advertising API. Magento is already configured in my local machine. Next step is to show Amazon products in my Magento Home Page using Slim API. function getAwsProducts(){ /* The query parameters t...
I am learning Sublime Text 2 at the moment and got a little bit confused about the documentation. Here it says: Given a selected block of text, Ctrl+Shift+K will split it into two selections, one for each end. But here it says otherwise (At Build 2036): Ctrl+Shift+K will delete the c...
Am attempting to query the following. Basically clients can be in a number of categories. I have a list of check boxes of the categories and want to only display the clients of the selected categories. I have been trying to use an inner join but my SQL is still in its infancy and I am clearly get...
I am new in PHP. I have a web form which i use to store data in Mysql. I use jquery to display current date in my form. After that on a php page i display that data and here is the option of edit that data. Using CRUD operation i perform that job. When user click on edit button all data against t...
function EncryptEncode($plaintext) { $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $key = 'a16byteslongkey!a16byteslongkey!'; $ciphertext = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $plaintext, MCRYPT_MOD...
Buenos Días! Estoy teniendo un pequeño problema a la hora de crear la relación muchos a muchos, el problema es el siguiente: La relación entre inscripciones y Servicios, una Inscripción puede tener mas de un Servicio y viceversa un Servicio puede estar en mas de una Inscripción. En esta relación...
So in my unit tests i need to test queries to a database (no i am not mocking these, as i need to check they get the correct data), normal methods that do not contact a database at all and some methods that i can use a mock to the database. To cope with the database unit tests, i created a class...
Is there any possible way to assign the return value of a C function to a Python variable. What exactly I want to do is as follows: Let's say that I have a C extension code to Python where I want to perform addition operation. And I already have a C function which can do this just for a 1-D array...
I am trying to display two kind of user messages upon jquery/ajax response. In my processing script I store these messages like this: // Initialize Json array. $messages =''; // Check for the email: if (!empty($_POST['email'])) { $email = filter_input(INPUT_POST, 'email', F...
I'm trying to change a style of next, previous buttons of fullcalendar by using a glyphicon. Here is my code: $(document).ready(function() { $('#calendar').fullCalendar({ buttonText : { prev : '<i class="glyphicon glyphicon-triangle-left"></i>', next : '<i class="gly...
I have been researching since last 2 days. I have an iOS app and watch kit extension. In iOS app I have included CBCentralManager and connected to Peripheral. Everything is working fine incase if the iOS app running parallel to the apple watchkit app. Even though my iOS app not running I want to ...
In my android application I am using "navigation drawer".. I have "BaseActivity.java" public class BaseActivity extends Activity { private DrawerLayout mDrawerLayout; private ListView mDrawerList; private ActionBarDrawerToggle mDrawerToggle; protected RelativeLayout _completeLa...
Theres a very good chance this is a duplicate and if so then please point me to it, Otherwise, Im developing a C# Window Form application for a client (Not WPF) and they requested that I have product keys. Ive never worked with product keys before so if someone knows a better way then please help...
I have a Tomcat 7 instance in Dogado Jelastic cloud (Jelastic platform version is 2.5.2). As well I have a Bamboo, which deploys everynight two applications on this Tomcat 7 instance. Due to some problems in applications I have memory leaks, which break the apps after some time. So I want to rest...
We are getting a new set of hardware and we plan to connect those devices dynamically using session tracking and JMX. As we know JMX is very old ofcourse powerful. Since we also have a future plan to move into cloud i was thinking if there is a possibility to use some new technology. Moreover mai...
I am not able to get values when Paypal returns the visitor to the successful page.Some of developer suggested that If i have created a sandbox account recently then Paypal will not return the values, because now a days this option is not working, and they also said that if email was basically cr...
In my soap application, I'm using apache cxf. Here's my code which will submit data to the server. import org.apache.cxf.Bus; import org.apache.cxf.BusFactory; import org.apache.cxf.bus.spring.SpringBusFactory; import org.apache.cxf.endpoint.Client; import org.apache.cxf.frontend.ClientProxy; i...
I am taking pics on android 4.4 using code from here 1: http://www.vogella.com/tutorials/AndroidCamera/article.html "4. Tutorial: Using the camera API" and using Eclipse "Full Screen activity" as template. The first picture is normal, but after that the subsequent pictures are too dark to be us...
I am developing a C# windows Form which will display the directories(folders) from the given location. I want to display like folder large icons style (icon image and followed by text below) button so that I can click that button to open new form. pls assist to achieve it.
I have this survey application that stores when my respondents have taken my survey using a JavaScript timestamp (ex 2015-06-18T10:35:26.980Z) What I need to find out is how many respondents have taken the survey daily. I'm not very sure how to compare the dates daily starting from, for example...
I have asp.net mvc5 app and I am trying to validate regular expression that I have define in c# model class. I need to do client side validation for individual input field as user goes along filling form. I have test expression on online site and it correct. Doesn't matter whatever I say in field...
I have this defined in my iReport design as a variable: $V{total_ver}.intValue() != 0 ? new BigDecimal((new BigDecimal( $F{TotalVerified}+"").divide( new BigDecimal( $V{total_ver} +"") , 4, RoundingMode.HALF_DOWN )).multiply(new BigDecimal(100))+"") : new BigDecimal(0) It should display 90....
I have a model class with primary key ID. public class Order { public int ID { get;set } public string Product_Name { get;set } public string Product_Brand { get;set } } I want to add the product items in a database where one product can be added more than one time. Now how can i ins...
I'm doing a program using Twitter API and MongoDB in 2.7 Python language. I get a timeline and put it in a dictionary, which I want to store in a MongoDB database. To do this I have next code: def saveOnBD(self, dic): client = MongoClient("xxxx", "port") db = client.DB_Tweets_User_Date ...
Here is the python code I'm using to pull Twitter data and put them in a mongo collection. class StdOutListener(tweepy.StreamListener): def on_data(self, data): try: client = MongoClient('localhost', 27017) db = client['cwc15'] collection = db['...
I'm testing my app on various devices and I find out that on one phone (Kruger&Matz Muve) there is no three dots button on Action bar. I have some settings in there so it have to be there. I would nice if someone could help me with this problem.
I have a dictionary set in a function but when i try to 'store' data in it it doesn't work. I am able to print the key: value pair but can't work out how to store it and print it in another function.
I'm trying to parse files from a public directory like this: And the condition has to be parsed from Android (Java). Have you ever done a workaround? My main solution is parsing html to check the files listed in the directory, but I'm looking for a better and more efficient way to do it. I'...
Dear all: I'm working on a worksheet with 19 columns. I have my item name in column A. If the value in column S (Box quantity) is = 0 (zero) for any of the items.I would like the message box to tell me which items were they on a list, or simply written on the message box. That way I can go straig...
How can set the title color of the button when an image is placed on button? Any one can help me out this.. Here is my Code startLoginBtn = [[UIButton alloc]initWithFrame:CGRectMake(25, 303, 267, 40)]; [startLoginBtn setImage:[UIImage imageNamed:@"SkipLogin.png"] forState:UIControlStateNormal]; ...
I have following data structure: +-----+ 1:N +------------+ M:N +---------+ |Book | ---> |BookVersion | ---> |Category | +-----+ +------------+ +---------+ Book has many versions and every version belongs to many categories (simplified scenario). I was trying to fetch BookVersio...
I want to get the start and end lat/longs of a google encoded polyline string: _p~iF~ps|U_ulLnnqC_mqNvxq`@ to give me something like: [38.5,-120.2],[43.252,-126.453] //lat,lng of start and end How should I go about doing it in Javascript?
I am trying to send an ArrayList via intent.putExtra to my Activity. In my Activity i then only see that the position (int) arrived succesfully, but the ArrayList(s) is/are null. ArrayList<String> resultTitle, resultText; @Override public View getView(final int position, Vi...
I am about to start working on a JSF application and I am trying to decide on how to set up my production environment. I enjoy working off my VPS for production instead of my local host. Is there a way to launch a JSF app to my server and then build on it from there? Or is that not going to wor...
I have been programming for 2 years. Not proficient, but have a working knowledge of C++, Java (and hence OOP):)). I need to learn OOP in C++ for a project. What are good books or online resources to get me going? I'm a project-based learner (I can't learn **** from just reading a book, but a book (or online resource) that explains stuff, then have a series of ex…
I am trying to store stats of the scrapy crawling in database. For this, when crawler is about to finish I am storing spider stats in redis def spider_closed(self, spider): stats = spider.crawler.stats.get_stats() self.r.hset('temp', 'temp', stats) and after the crawling finishes I am...
Mysql table disappear after reset of AUTO_INCREMENT. Here is procedure that I use to reset the auto_increment field. Why it's disappeared ? What I'm doing wrong. When I check the /var/lib/mysql/database_name I see file for that table ! DROP PROCEDURE IF EXISTS set_auto_increment; DELIMITER // CR...
Currently I am writing an SPH simulation that's supposed to work on GPU. I noticed that some of my particles are not moving. When I investigated further I noticed that some of my particles have 0 density which could indicate that they have no neighbours even though I packed the particles really t...
I have a problem using FPDF while using special character like é, è or à. I used $é = iconv('UTF-8', 'windows-1252', 'é'); and then I use it like this $pdf->Cell(0,0,'Donn'.$é.'es',0,1);. I know this is not the best way to work with but that's not a big deal... The real problem is that we can n...
With continuing to my previous question My Magento web site was hacked, what does this php code do? How can I delete all credit card information from my database? I am looking for a query to run.
So I know this has been asked before, but from what I've searched I can't really find an answer to my problem. I should also add I'm relatively new to R (and any type of coding at all) so when it comes to fixing problems in code I'm not too sure what I'm looking for. My code is: education_ge <-...
i'm using MarkerManager v3 and google maps to display with a lot of markers. Now everything works perfect, but I can't seem to find a way to show only the markers that the markermanager is showing. I am aware of the method getMarkerCount which returns the number of visible markers in the zoom, bu...
This may be a very simple question, but I don't see how to answer it. I have the following reproducible code, where I have two small dataframes that I use to calculate a percentage value based on each column total: #dataframe x x <- structure(list(PROV = structure(c(1L, 1L), .Label = "AG", class...
I want to add text(say, annotations) in MS chart(winforms) like (10, 20) , (30, 40) where I already have a scroll bar. I can able to draw strings(graphics.drawstring) in Chart, but on scrolling the horizontal scroll bar, the text which I have drawn remains static and immovable. On scrolling t...
I have two class hierarchies which have a 1:1 relationship: some normal classes A, B which have a common Root interface, and a WrapperRoot<T> interface with two concrete instantiations WrapperA<T> and WrapperB<T>. I am now looking to implement a function auto wrap<T>(Root& elem) -> unique_ptr<Wra...
I'm creating a responsive navigation bar. But I have some problems with this Jquery. I want to disable hover event if width <=768, and enable it in Desktop. $(window).on('load resize', function (e) { var w = $(window).width(); if (w <= 768) { $('nav').css({ display: "none" }) ...
I am moving from g++ to visual studio mainly for c++ coding , i wanted to ask that whether microsoft's c++ compiler supports all the features of c++11 and c++14 as supported by g++ .
I have a list of Audiofiles shown in a list view with a play/pause button for each listItem (containing individual MediaElements). The problem I face is that since there is no "IsPlaying" and the list is bound at runtime? How can I ensure that only one item is played? i.e., during audio play if u...
I'm a fourteen year old trying to cope with a fairly new language so please bear with me. I made a quick html doc so that I can express my problem as clearly as possible. If you run the snippet, you can see that by clicking the menu button the body is pushed 285 pixels from the left, and the men...
i want the code for download You-tube video with choice like "High" "Low" "Normal" and download you-tube video faster.
How can i remove administration rights (DevicePolicyManager.removeActiveAdmin(Component name)) of application from another application. In particular, i've got working code for uninstalling application from other application: Intent removerIntent = new Intent(Intent.ACTION_DELETE); removerIntent...
I have a page where i am adding paragraph element. but when pdf generate it shows two pages one is filled with text other is blank. i want to do that page is not overflow until page is not filled completely.
***this my custon_rule.xml file i have change images using command line in all drawable folder.i have change AndroidManifest.xml package name refactor using ant or command prompt.i am a new programmer in android please help me? problem in this line ->> `<?xml version="1.0" encoding="UTF-8"?> <p...
I have implement imageview with in toolbar and toolbar is used in fragment. Now i want to change imageview of toolbar problematically.My xml file is as under. <android.support.v7.widget.Toolbar android:id="@+id/toolbar" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_wi...
I have a list of entries like this entry1: key1: value1-1, key2: value2-1, key3: value3-1 entry2: key1: value1-2, key2: value2-2, key3: value3-2 entry3: key1: value3-1, key2: value2-3, key3: value3-3 ...... entryX: key1: valueX-1, key2: valueX-2, key3: valueX-3 how can I use a dictionary to s...
I have a column in an import file that should be linked to an option set in CRM. There are values like “All” like in this case below for example: Can we support these type of scenarios somehow when importing data to CRM? I'm using Microsoft Dynamics CRM 2013. Thanks,
In my Cakephp application, i have a session cookie with the name 'my_cookie' and it contains some random value 'QSD5111AS552DNJK'. I observed that the value is same for the cookie (Before login and After login also). If i want to change the cookie value after login, what are the steps i have to ...
The lines below are an extract from code used to generate a XML. Access 2010 freezes then crashes when executing the Set dlgSaveAs line. This seems to only happen when data is imported using .xls files, .csv's seem to work fine. Don't see what's wrong with the code and why it doesn't work with ...
I am creating a game where I am calculating the user points on the basis of user activities. Everything working fine I got the sum of points and on the basis of points I calculated the rank. I have two columns for points calculation PointsUp (contains up points) and pointsdown (contains down poin...
I am trying to use douglas-peucker algorithm to simplify my connected components.I get my connected components using bwlabel and I send it to the douglas algorithm.Here is the link of the algorithm which I am using- Douglas-Peucker Algorithm matlab Here is my code- clc; image=imread('mmm1.jpg')...
According to the Spring boot documentation, it's possible to define additional command when using a remote shell based on Crash. Default locations for these commands are classpath*:/commands/,classpath*:/crash/commands/ A property can be used to override the default locations but in the provide...
I'm currently using jQuery AJAX to GET a relative URL, without scheme/domain in front of it (e.g. '/js/get_international_popup/'. The response is also a relative URL when I view my location header before I return it. When I test this locally, over HTTP, everything works as it should. However, on...
I am working on the filter bar and would like to create the bar like this: http://www.gog.com/games##sort=bestselling&page=1 notice that there is a filter bar with parameter genre, system , language. Please take a look at the company column, as there are lot of companies, there is a change page...
The thing I want to do is to render a html "a" file in template. And use jquery .load() to embedded other html files in this a.html. But I failed with my following code. The following is my a.html content: <html> <head> {% load staticfiles %} <script type="text/javascript" src="{% static ...
For personal reasons I don't want my website to be visible from the phones. The main page has the login forms and so there is two choices: Either a person should be redirected to another page or He should not be able to see or to fill out this forms. (From the phone) The web application is in PHP...
I'm taking screenshots of HTML pages using PhantomJS and I've been using my code (see below) successfully for over a year. However, a while ago I found out that the version I use (1.9.8) doesn't support web fonts: PhantomJS not rendering screenshots with webfonts?. In an effort to solve this I in...
In perl, how can I split a string along only unquoted delimiters? I.e., the the following string: my $line = '"a quoted, comma", word1, word2'; should result in an array with the elements: "a quoted, comma" word1 word2
I create a custom page template to display all users from a custom post type. I try this code: function.php function user_query_count_post_type($args){ $args->query_from = str_replace("post_type = 'post' AND ", "post_type IN ('custom_postype') AND", $args->query_from); } And in my custo...
I'm creating my own ARP eader with below shown code, however this code ain't working, I get error message as ‘struct arphdr’ has no member named ‘ar_sha’, ar_spa, ar_tha, ar_tpa. I've checked net/if_arp.h, these members are part of struct arphdr. Why i'm unable to use them?? Please assist. arp...
Need some one help to solve my issue ASAP. Thanks in advance for help. Below script works for me without any issue for onclick. But, issue need to solve is... Have to compare "slidejs-index" & "data-item" attribute value and add class name "active" to "carousel-thumb--content" div container. ...
I want to add a RSS widget on my website. This could be easily done by online services like: www.rssinclude.com, www.feedgrabbr.com, etc. But I want the full code... right from the beginning.
I am using express 3. I have a GET route in my code which does not match if I do not place a * wildcard at the end var express = require('express'); var app = new express(); app.get('/image/upload', function(req, res) { console.log(req.params); res.send("ok"); }); var port = 3002; app....
Is there a way to create or change status of existing SD card of android emulator to MEDIA_MOUNTED_READ_ONLY(Storage state if the media is present and mounted at its mount point with read-only access) ?
I new in java programing, so I have one big error which I cannot solve: java.lang.NullPointerException at com.smy.gome.MySQL.checkUser(MySQL.java:56) at com.smy.gome.LogReg$1.actionPerformed(LogReg.java:43) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at java...
I wamt to embed y search box in the navigation bar , however the search box appears below the navigation bar below are the code snippets and pic the HTML5 mark up codes the foollowing are the css codes ![enter image description here][1...
I have login layout,when progress bar executes the layout shifts, This my xml code please check my code.And help me to rseolve. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:flatui="http://schemas.android.com...
Ok, so i would be appreciate if someone could help me out with this problem. When I use "errorlevel" in this code it doesn't register if the user posted an incorrect value. The program need to be ran as administrator and i think this is part of the reason, any insights? echo ===================...
What will be good js libs to manage to execute lots of small tasks over multiple processes and threads per process. small task is that do some api call, do some update in db etc. but number of these tasks are unlimited and i'll gonna have more and more.. so basically i was looking for a way to ...
I need to know the purpose of the use of MessageBodyReader and MessageBodyWriter in rest web service, why and when should I use them ? The conversion form java to xml and vice versa using jaxb, isn't it done automatically with rest web service(for example jersey RI) ? Waiting for you response B...
In angular the following happened to me function(){ $scope.varObj = {"name" : "john" , "age" : "20" }; $scope.tempVar1 = $scope.varObj; $scope.tempVar2 = $scope.varObj ; } Now if i change tempVar2 automatically the value of tempVar1 is changed. function(){ $scope.varObj = {"name" : "...
My String is ["Alchemy","Alchemy-w","Alchemy-b"] How can I made it to like Array ( [0] => Alchemy [1] => Alchemy-w [2] => Alchemy-b } Please help me, How I Can get this output in a Stranded manner else I have to cut it using sub-string or any other ordinary php fun...
i'm trying to make android food order for my thesis and because this error i'm running out of time :( error on logcat : Error parsing dataorg.json.JSONException: Value cannot be converted to JSONObject org.json.JSONException: Value to JSONObject here's my JSONParser : package com.maka...
we have the following structure on our webhost for a customer project. /var /www /application index.php --> Bootstrap of customers php app /cms index.php --> Bootstrap of the cms app The document root of the apache vhost points to "/var/www...
seen lot of libraries online such as: velocity vivus D3 svg js RaphaelJS walkaway etc I have never worked with svg js and I am learning angular js right now. Given a task to create work flow components and graphical views using any svg js libraries. As I am only aware of working with angula...
I try to access an array dynamically in a loop like array[n-i:-i] and it works fine as long as i != 0. In case i==0 I have array[n:0], which I would expect to output array from n to the end but it returns nothing (None i guess). How to archive the expected behaviour?
I am trying to add a clickable div to the sceditor. The basic requirement is to use a wysiwyg and programmatically add an element into the editor, which can display a popup when the user clicks on it. To do this I use: var text = "<div onClick='editdiv(this)'>"+name+"</div>";▓ $('.sceditor')....
I want send this activity to class but not work main.java : new Thread(new Runnable() { @Override public void run() { final LinearLayout lnrPost = (LinearLayout) findViewById(R.id.lnrPost); Cmd.readD(lnrPost, this)...
I came up with a program #include <vector> #include <algorithm> using namespace std; int main() { vector<int> a = {1,2,3,7,1,5,4}; vector<int> b = {6,7,4,3,3,1,7}; a.erase(remove(a.begin(),a.end(),a[0]),a.end()); b.erase(remove(b.begin(),b.end(),b[0]),b.end()); return 1; }...
Why is my console logging the $(this).data. As what it should be. But when i console log the variable i get undefined. I need access to chartType to move along with the code CODE: if ($(this).hasClass("points")){ chartType = $(this).data('chart-type'); console.log($(this)); cons...
So straight to the point. I am currently making a college project that consists on search a JSON file for specific words/sentences according to 2 types of research: Restrict which means case sensitive and Lexical which means case insensitive And return the occurrencies in bold format Currently i...
I need to develop Client/Server Application in VB.Net, Database is MySQL. So, Now I am doing connection testing. I created Connection string and it connected successfully in Server. Its working perfect. My Connection string is Dim myConnectionString As String ="SERVER=192.168.2.193;PORT=3306;UID=...
I tryed to find some applications for Oracle object types in a manner of languages which have 'ordinary approach' to objects (like C#, Java, JS, etc.). I ran into unexpected problems: When assigning an object variable into another variable - instead of a copy of reference I get a deep copy of ...
I want to modify the text between <title> & </title> and <p> & </p>. Also, it can repeat multiple times in the data. <title> DTC Descriptor </title> <p>This diagnostic procedure supports the following DTC:</p> <title> Conditions for Running the DTC </title> <p>This is good</p> Required outp...
Here is some code I am using to auto generate some regression fits; require(ggplot2) # Prep data nPts = 200 prepared=runif(nPts,0,10) rich=5-((prepared-5)^2)/5 + 5*runif(length(prepared)) df <- data.frame(rich=rich, prepared=prepared) deg = 1 # User variable lm <- lm(df$rich ~ poly(df$prepar...
I have a simple virtual machine which I made for fun. It works in a very low level and it doesn't have any notion of types. Everything is just an integer. There are some instructions for getting a pointer and accessing memory by a pointer. The problem is that these pointers are simply stored as u...
I am trying to implement a simple leaflet map in my angular test page. I am having the problem you see in the photo attached. My code is the code in this example: http://jsfiddle.net/tombatossals/4PhzC/ I have some other things in my page as for example bootstrap libraries to draw some list...
I am trying to make a Database of how much I paid for Items, so I can quickly find it when selling them again. I now have a batch file that automatically stores the Item name, and for how much I bought it. (works fine) Now I wanted to make another batch file where I can enter a name of an item an...
I've added Help pages Nuget package to create documentation for my Web API but it doesn't work for me, no API methods are shown. I uncommented line : config.SetDocumentationProvider(new XmlDocumentationProvider(HttpContext.Current.Server.MapPath("~/App_Data/XmlDocument.xml"))); I checked box ...
I want to Perform Validation on textbox if there is no value(empty). I want to display Tooltip on textbox if validation fails. This is my textbox: <input type="text" id="txtNo1" /> <input type="text" id="txtNo2" /> <input type="text" id="txtNo3" /> <input type="button" onclick="return Mani...
<div class="profile-usermenu"> <ul class="nav"> <li class="active"> <a href="#" id="navitem1" data-content="content-wrap1 "> <i class="glyphicon glyphicon-user"></i> View Profile <
In Java, the character data type, char, is represented with 2 bytes. The array of n characters, char[], is represented with 2n+24 bytes. In general, there is an overhead of 24 bytes for storing an array of n objects (at least if the objects are of primitive type). Why do we need these addition...
I need a way to make UIPageViewController reuse controllers to save memory, because I have a huge number of pages to show! I did the basic implementation of the UIPageViewController but couldn't manage to make controller reusable, please advice!
Can some one shed some lights on how can I resolve this problem? Using Devise in a rails app. A user is not signed in. He/she fills in a form and clicks the submit button. The login window pop ups before the create action: before_action :authenticate_user!, only: [:create] Problem: After t...
What is the proper way to manipulate final output before sending it to browser? (laravel 5.*) I have tried namespace App\Facades; use Illuminate\Support\Facades\Response as ResponseFacade; use Illuminate\Http\Response as ResponseHttp; class Response extends ResponseFacade { public static...
the problem is to fill Java object content, possible with collection of standart types(Long, Boolean, etc.) fields from a Map<String, List<String>>. Inspecting target object's fields via reflecton one can see which field is a Collection and which is not. In second case if Map element has a sing...
So here is the table: Name Indicator Amount Anson 1 3.5 Anson 2 2.6 Anson 4 8.4 Anson 5 3.2 Ben 1 7 Ben 3 4.7 Ben 4 3.6 how can i get the sum amount if the indicator is consecutive? th...
In my app i present an admob interstitial add like this: interstitial.presentFromRootViewController(view) Where view is the current viewController The interstitial add is shown on the entire screen and upon dismissal of this add the view controller ViewWillAppear and ViewDidAppear always get...
How to get the recently downloaded path in firefox using capybara selenium I am trying like this filepath = DownloadHelper.download_path But this is not the correct way and it was unsuccesful also guys please help me Any suggestion would be greatfull Thanks in advance
There is a very large image . Now this image is split into small size images. I want to map these small images to a face of a cube. So that it should look as the mapping the original image itself.
I am teaching Java myself for 3 months, and I can't solve this simple issue; I made this simple program by tutors and now I am trying to improve it; the problem is: I can't make it show the msg "Number out of range" when the user put a number out of (1 - 6). I tried different ways of code, but ...
I have a simple question the answer to which I have been trying to find out over the restricted internet connection in my office but to no avail. 1) How to create a restful web service in java preferably using netbeans that accepts xml and/or json as the parameter and how do I process it. 2) Ho...
I'm using backbone.js Collection fetch method to send request to return data based on offset and limit. First collection.fetch() method returns 5 models because LIMIT 0 and LIMIT 5 , and while calling again Backbone.Collection.prototype.fetch.call(this, options) its returns same data(previous mod...
I recently wrote a very basic node.js application and would like to build the client side in phonegap. However, I think the build fails with the node_modules in the src directory. I have a remote mongodb set up and not sure how to access that without my server.js file (which requires the node_mod...
I have some APIs on my laptop. They are visible on the internet through secure gateway service. The secure gateway destination is configured with TLS mutual authentication option. So APIs require TLS mutual authentication. I would like to add those APIs to API Management. I could not bind a S...
Hi guys Please help me... this is my script for create custom post type and it's taxonomy. it created successfully bust post fetching problem by category id. in my category have 3 post but can't get any one post. for create code : function man_ourteam_custom_init() { $man_labels = array( ...
In the following HTML file served via NGINX: <html> <body>Today is {{day}}</body> </html> I have the following JSON file: { "year": "2015", "month": "July", "day": "Thursday" } I would like the output to be modified by NGINX to the following: <html> <body>Today is Thursday
I don't know why this shouldn't work. It's an image slider but the problem seems to be that once all of the images have run out (current slide === slides.length) the slideshow doesn't restart by setting the margin-left back to 0. It just keeps going infinitely on. Thanks. var $slider = $('#...
I think this is my so difficult Task so please help me . when iphone connect to mac by usb then iphone camera open and this camera view show on mac.please help this is so difficult for me . I found one code but this is only chatting iphone to mac . from github rsms/peertalk Please give me soluti...
I am using image lib library of codeigniter to resize image. But resize function of image library produces broken image sometimes and also not getting any error. how to detect broken image.
For this simple circular queue, I want to support C++11's move semantics so the push() doesnt incur a memory copy if it doesnt need to. Circular<struct r, 1024> queue_; queue_.push( { r0, r1 } ); However I'm concerned my implementation, specifically the second push() below, is unnecessary or...
As I have started to use Python 3.4, I need pip to maintain libraries on both Python 2.7 and Python 3.4. How to select the appropriate pip quickly using terminal? Note: This question is NOT related to Virtualenv but with the default python2.7 and python3.4 that comes with Fedora 22 Workstation....
I am learning sitecore Rule and readthe material on Rule Engine Cook Book. I just want to show a message window on Item save. This is what I did so far: Added a Rule under /sitecore/system/Settings/Rules/Item Saved/Rules. Rule 1: where the item template is Address entry run Show Hello World ...
I've tried working this out and think "flatten" might be part of my solution but I just can't work it out. Imagine: case class Thing (value1: Int, value2: Int) case class Container (string1: String, listOfThings: List[Thing], string2: String) So my list: List[Container] could be any size b...
I am using @With(Action.class) annotation to intercept the calls to specific controller/actions. I am trying to retrieve the session from database on in the interceptor function; however the JPA helper class is not available in the Action.class interceptor method "call". Can someone please guide...
What are the benefits of using Azure for windows client(Tablet)? My application consists of the following development: Application to be developed on Windows tablet are WPF to consume webservices WCF hosted in Azure and SQLServer Database. In Azure to host WCF, SQL Server database, Web applicati...
When I call Imagick on a malformed PDF, I cannot catch the error. My PHP script hangs and never exits. try { echo " . New imagick($identifyfile)...\n"; $pdf = new imagick($identifyfile); } catch (ImagickException $e) { var_dump($e); die("Stop : Imagick"); } How can I catch ...
How to convert simlpe mp3 file directly into text using c# without having grammar file. i have tried many links and many times but couldn't succeed.
Is there a tool to have a Visual Database Design for SQLite for Mac? I would like to create a EER-Diagram from my SQLite file. So far I am using SQLite Pro to manage my db files. But I would like to have an EER-Diagram. Is there a tool that generates this for me or will I have to do this by myse...
I have a server which only accepts .tar.gz files or .zip files. Client side (in browser) I have a couple of Blob's in memory which I need to push back to the server. Is there any way I can archive these Blob's (i.e. adding to zip or tar.gz) file by streaming them directly to the server? I woul...
input +----+----+----+ | in | tn | 20 | +----+----+----+ | in | ka | 18 | +----+----+----+ | in | ap | 30 | +----+----+----+ | us | la | 12 | +----+----+----+ | us | ca | 20 | +----+----+----+ | us | ny | 5 | +----+----+----+ Output required +----+----+----+ | in | ka | 18 | +----+----+----...
I am trying to make a website (obviously) and I have an index.php file, a homeNav.php, and a style.css. From the index.php, I call display display_header_bar(); which is in the homeNav.php file. Then I try to display "hello world" and none of the CSS is applying to it. Upon looking at the inspec...
I have some buttons which filter content: http://www.example.com/?page_id=123&ajax=3&content1 This works fine, but when I view the console, I see this being return as an error: http://www.example.com/?page_id=123%3Fajax%3D3&content1 How I created the Url <?php $filterLink = get_the_permal...
I have a javascript function that need to return an array. Inside, i have another function that push values to array. Then it should return the array. function getFreeBusy(calID, date) { var array = []; gapi.client.load('calendar', 'v3').then(function() { var request = gapi.client.calendar...
Is there any way to share custom flash player on google plus. Like we share custom flash player on facebook,twitter using og tags and twitter cards.
I have this piece of code that is in need of some streamlining: SlopeSBS00<-lm(SBSNy$SBS00[c(1:10,17:41)] ~ Numbers[c(1:10,17:41)])$coeff[2] SlopeSBS01<-lm(SBSNy$SBS01[c(1:10,17:41)] ~ Numbers[c(1:10,17:41)])$coeff[2] SlopeSBS02<-lm(SBSNy$SBS02[c(1:10,17:41)] ~ Numbers[c(1:10,17:41)])$coeff[2] S...
I am trying to define my vector size with mysql database size in qt c++. After I execute my commands it returns 0 and get an error; QMYSQLResult::data: column 1 out of range in line: int dbSize = query.value(1).toInt(); However when I execute sql command in mysql-workbench it says 15 Here...
I want to create a library because I couldn't find one to convert seconds or milliseconds into time. By time I mean: 1) If I have 61 seconds the time format would be: 1:01 (not 1:1) 2) If I have equivalent of 1 hour and 1 minute I want it to display the same: 1:01:00 I achieved this by making ...
I am new to neural networks and do get the gist about how they work. I intend to create a neural network that recognize basic objects in a 3d scene and their positions in the image. From what i read so far, the typical approach is to create a neural network with the input number of neurons of i...
I have a Python dictionary, like so: {0: 'Initialised', 1: 'Processed', 3:'Finished'} I have a second Dictionary, like so: {0: 81, 1: 100, 3: 906} What I want is to get: {'Initialised':81, 'Processed':100, 'Finished': 906} What is the most efficient way to do this?
I have the below code to work with: function loopingFunction(){ if(typeof(foo)=="undefined"){ var foo = 0; } alert(foo); if(foo==0){ // some codes here } foo++; } The loopingFunction gets called multiple times, and each time my variable foo remains t...
i'm using php5-memcached (libmemcached version: 1.0.8) After reading this man page http://php.net/manual/en/memcached.constants.php i understand that keys passed at get and set methods are hashed while talking to memcached, and that the default hasing algorithm is "Jenkins has function" Mem...
I plan to implement a feature playing several videos in one screen simultaneously and videos can be scrolled. I added video views to ListView as its child views, but SurfaceView is not a choice for video view, because SurfaceView is not in the view hierarchy. Fortunately, TextureView was added t...
I am having two text files having comma separated data.I want to compare and find out the difference between these two files' content. How to do this with using PowerShell. I am getting the rows count as per below code: $rows = Get-Content "D:\FCA\FCA_node_final.txt" $rows.count $rows = Get-C...
i want to generate a random number from a specific rang in each iteration for (int i=0; i<10;i++) { v1[i] = rand() % n; } This code will generate a number between 0 to 9. However I do not want the selected number to be the same as the the index i. For example if I am in the first iteratio...
I have been trying to pass the following 2 parameters to a procedure during the form load it works with one but not with two can anyone advise? <body onload="UpdateButton(<%=esr_link%>,<%=job%>)"> function UpdateButton(Link,Title) { if (Link == 1) { alert('Updatebutton=1') docu...
Suppose that i have public IQueryable<Application> GetApplications() { var applications = _context.Applications.Where(v => v.Exported == false); // Now i want to flag exported = true because i am exporting them foreach (var application in Applications){ _context.Applications...
Ok I am trying to model baseline hazard using different survival models. For example I can model the cumulative baseline hazard using Cox as follows: library(survival) df <- aml cox <- coxph(Surv(time, status) ~ 1, df) cox.summary <- basehaz(cox, centered = TRUE) plot(cox.sum...
We have send a POST request to android web view , but the web view did some url decode automatically and the server side get a wrong data. Eg: we have a signature value like aedTH5634+hjsGT78-67ty when we POST this value through webview , webview automatically convert + value to space.SO in the ...
My generated makefile doesn't execute, instead it throws the following error: vbsp_linux32.mak:34: *** missing separator (did you mean TAB instead of 8 spaces?). Stop. I've read like 30 pages, which all come to the same conclusion (spaces in front of commands) which I am not able to find/solve ...
I am pushing logs to flume avro sink. Now I want to consume those events using java api. I know spark streaming supports this functionality, but I don't want to stream events from flume. I just want to read a few messages on user request. A similar question was asked in following thread How ca...
I have a table of Weeks that is joined to a property table, Weeks table looking like this:- PropID, WeekDate, Available 1 , 2015-07-04, Y 1 , 2015-07-11, Y 1 , 2015-07-18, N 2 , 2015-07-04, Y 2 , 2015-07-11, N 2 , 2015-07-18, N I w...
i have this function and I want to change the function so that there is no risk of injection. The function retrieves the form information : function retrieve(){ if(isSet($_POST['text'])|| $texte['text']==" ") return null; return $texte['text']; } Thanks you
Export-csv could generate a file opened by Excel, but I wish to merge different csv files(with different column defintion) into 1 file like, a excel file having multiple sheets, each sheet is different. Could powershell call excel dll directly and construct sheets? Like creating csv? Thanks.
I am trying to catch a SyntaxError in my code, but it does not get into catch block ( function(){ try { throw fn(){}; // I am trying to generate some syntax error here }catch (exception){ console.log(exception.message); } })();
I have the following code: #include <iostream> #include <vector> using namespace std; //fake declarations only for compiling! typedef long GUID; class CString { }; class CClassA { }; class CClassB { }; class CProvider { public: struct Element { private: GUID m_gu...
the Scenario is as follows: A text box is disabled for editing manually.To change a text value in a text box a button needs to be clicked. After clicking on a button,a window appears with a drop down list.select a value from drop down and then only text within disabled text box will change. I ne...
I'm making a form and i want when the fields are empty the border of the fields gets red but my code is not working please help ! i'm using bootstrap and jquery framework MY JQUERY $('document').ready(function(){ $("#form").submit(function(){ var username = $("#username").v...
How can i delete data from dummy table using json URL in android? I m using paytm wallet.when i was cancel order than i want delete my dummy table data. help me dear thanks in advance
I have a ES6 Setup working with jspm and system.js with a additonal registered endpoint for bower. I need that endpoint due to the fact that installing Boostrap via npm or github does not provide the necessary less files for Bootstrap (anymore). However, I want to use some of the Bootstrap Plugi...
I ma trying to install fat free crm on windows using these instructions http://guides.fatfreecrm.com/Setup-Microsoft-Windows.html I am on the part where we install mysql2 lib and libmysql.dll The command gem install --no-rdoc --no-ri mysql2 -v 0.2.7 -- with-mysql-dir=X: --with-mysql-lib=X:\bin...
Trying to create object in ORACLE PL/SQL but i get the error ORA-02303: cannot drop or replace a type with type or table dependents. i created the object address_ot to specify the address field in street or city or state or zip number. the values like firstname and lastname can be retrieved but t...
This is my loop: sure = input('Are you sure that you wish to reset the program?(y/n)') while sure != 'y' or sure != 'n': sure = input('Please awnser y or n, Are you sure that you wish to reset the program?(y/n)') The loop carries on looping even if y or n are entered Please Help
This has been discussed a lot but a lot of the 'loopholes' are closed. I am basically trying to set a cookie from domainA to domainB .. I actually only need the username from the cookie which is set by WordPress. To do this I have hidden an img tag on domainA which points to domainB.com/cross_d...
I'm stuck with strange behaviour of RX.Net schedulers (or have totally wrong understanding of the concept). There is one thread, which produces events, and I want to handle those events concurrently, on the thread pool. But all of the handlers are invoked on the same thread. Seems, that sheduler...
I am trying to put the date of delivery on our confirmation email. Due to the different shipping options I would like the email to say 'Estimated Delivery Date' if they choose the Standard FREE Delivery and if choose the other options then the email to say 'Delivery Date'. Below is the code that...
Recently I figure out one tool [SONAR qube] who helps me to find out the potential threats into code, I have addressed all issues reported by the tool. But it also gives me a potential threats issue for "protected void finalize()" method which is been override by me, tool displaying me a message...
I want to program in c with libnet in mac os. when I type in 'gcc *.o -o network -lnet', there's a error: library not found for -lnet. And when I use homebrew install linnet, is says: Warning: libnet-1.1.6 already installed.
I want to handled the backpress button in windows phone 8.1 app.I want whenever backpress is pressed navigate to previous page but when backpress is pressed at the second page(after the mainpage) i want the app to exit or asked to exit. i am using this code to navigate Windows.Phone.UI.Inpu...
I have a problem while using a watch, i want to watch an object of array , lets suppose if any of the array from the object changes then watch should be fired so i'm confused about what to use for this purpose. Can anyone help me to find difference between these two and suggest what to use in th...
« first day (610 days earlier) ← previous day next day → last day (464 days later) »