« first day (610 days earlier)      last day (464 days later) » 

8:15 AM
0
Q: Parse GeoPoints

Trip PhillipsI'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...

0
Q: Parse exception: com.parse.ParseRequest$ParseRequestException: invalid session token

MichaelOn 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...

0
Q: Instabug, is it possible to deactivate the shake for feedback, if there is no internet access?

rosu alinI 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,...

0
Q: Combining alert conditions in Graylog

schadenfreudeI 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.

-2
Q: I am getting variable might not have initialized for variables a,b and n. I am not able to figure out why.. What may be the reason for this?

aks_krishSorry 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...

0
Q: Add row to table inside a loop error

Tran Duy LinhI 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> ...

0
Q: ios - Compare the value of objects in array and put in same section

Tien vuim 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...

0
Q: How can i get the value of a variable from PHP to AngularJS?

Happy Fingers=== 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 ...

0
Q: Your iPhone is not available. Please select a different device and try again

samturnerI'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...

0
Q: How the consume can notify the JMS queue to hold the message

sleepyMy 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...

0
Q: how to set mobile as NFC tag with host-bsed card emulation ( HCE )

farshidI 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...

0
Q: SQL Server : append string not working if col is empty

fishmong3rI 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

0
Q: BlackLight - How to show more fields and process imported data

GybelleI'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...

0
Q: Correlating Java features with Wikipedia's definition of Polymorphism

Quest MongerWikipedia 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...

1
Q: Method that fails loudly vs silently

Max YankovI 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...

0
Q: How to access one WCF service from another?

user3559417I 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.

0
Q: How to set a screen background image in Kivy

Uros1234I 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...

0
Q: About env file extension

Zay Yanow, 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

-2
Q: mysql query showing error

Aafreen FirdausMySQL query SET \`products_id\`=(SELECT COALESCE(APR. \`productid\`, BPR. \`productid\`, CPR. \`productid\`, DPR. \`productid\`, ...

0
Q: printf() without '\n' doesn't work in libev

reavenisadeskPost 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...

0
Q: error : is a field but used as a type

Rajnamespace 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...

0
Q: Unable to define onActivityResult(int requestCode, int resultCode, Intent data)

Rick RoyI 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)...

1
Q: Changing color in Jquery

Altay Mazlumcan I use css command in JQuery to change a div's color slowly? <script> function myFunction() { $(document).ready(function () { $("#square").css({ backgroundColor: 'blue' }); }); } </script>

0
Q: Spiting and Merging large files (size in GB) in Java

Vishal ZanzrukiaSuppose, 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...

0
Q: Change multiple properties of a DOM element with javascript

Ivanka TodorovaI 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...

0
Q: Responsive Gallery: overlayed captions will not line up to edges of images

ghotiI am putting together a simple responsive gallery using twitter-bootstrap. I would like to have captions appear overlayed onto the images. They should be aligned to the bottom, right corners of each image. I cannot get them to align, they exceed the edges of the images. HTML <div class="c...

 
@nicael Why?
And continue this on the tavern
 
8:33 AM
0
Q: why :w filename is not working to write file in vim

Rana ZubairI 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 ...

0
Q: How to fix The following classes could not be instantiated in android

BujjiDeepuI 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...

0
Q: Passing by constant reference in lambda capture

P45 ImminentI'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...

0
Q: ERROR [WsdlTestCase] Failed to create test step for [X]

TygerKrashI 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...

0
Q: Cannot access AppDelegate while testing Xcode project

iphonerfunc 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).

0
Q: JSF 2 - commandLink in autocomplete primefaces not working

SG87I'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'] =...

0
Q: Qt 4.8 windows 7 how to show tablet pc input panel

user3532190I 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...

-1
Q: Character vs strings in C

gfcThe 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 ...

0
Q: 'OldSample' object has no attribute '__getitem__'

ImoThe 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...

-1
Q: how to stop running default sms app when one sms with special word receive

m kHow 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.

0
Q: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update [Due to Unique Constraint]

Ishwar LalError: 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...

-1
Q: Pattern library - tech to use

user1801944I'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...

0
Q: ExtJS multiple listeners

Benirving92I 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.

0
Q: How to validate SMTP server certificate through java mail API?

geekprogrammerWe 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...

0
Q: About Archive app from xcode

王志忠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...

0
Q: Orchard CMS, Html Rich Text Editor (TinyMCE) & Hexa Decimal Values Exception

ImranSome 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 { ...

0
Q: Where is Spring MVC context path set?

testing testI'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...

0
Q: Input type=date format in HTML

RecepI 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...

0
Q: How to resize web view when keyboard appears on iOS (Cordova)

user276648On 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...

0
Q: Ports forwarding

MeME55I 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...

0
Q: I get errors when typing the @SidedProxy. What happened?

PlantsguyI 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...

0
Q: Check 7th bit is 1 with bash

jyu429I'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.

0
Q: Getting class objects using ICoreprofiler

The GuruI 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...

0
Q: PHP: Add video tag to youtube link fron content

Zamalek ManI 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.?

-1
Q: how to put a mysql record in a value in dropdown list?

kier kierI 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> <

0
Q: Transition only on the y value of a line point?

RobertI 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. ...

0
Q: UITableView freezes when calling reloadData very often

turingtestedI 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...

0
Q: Nuget restore not downloading dll in lib folder

JonnyI 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...

0
Q: Linq Contains with array of enum

JensI 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...

0
Q: GWT-JSNI passing a JavaScriptObject in an external JS library

HahuhaI'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...

0
Q: How use varies transitions for var minWidth

Artem ShabanI 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.

0
Q: Encounter an error when selecting a value from a drop-down option using selenium python

Jianwen Jini 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...

0
Q: Redis PUB/SUB: how to ignore own messages?

OlegThe 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?

0
Q: php while loop redirect each slide to different location

user3059581I 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...

0
Q: Failed to open document. Memory full

jayveeThis 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

0
Q: How can I tell why Meteor autorun is triggered

SawyerI 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?

0
Q: path variable: why it was still there when echo %path%, after the deletion?

John MccandlesI 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?

-2
Q: How can I launch the iOS Simulator from Terminal?

Alex ChestersI can build using the Xcode command line tools, is there any way I can actually run the application using them? (E.g. the equivalent to pressing Cmd+R in Xcode)

 
8:55 AM
jk
 
-2
Q: I want get the distance between two points but the output code is 0.0 for each values

developerI 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...

0
Q: Why is my CSS wrapper not applying to my HTML code

JojothescoOk, 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>

-1
Q: Jquery Object get value and key

Abdallah BoodhunI 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?

0
Q: Negative Match in perl

user2268152I 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?

0
Q: Play Framework how to set jdbc properties after startup

SubbyIn 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...

0
Q: Is there a difference Ord operator on lists in haskell?

AleksandarI 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...

0
Q: Sharepoint 2013 modal popup Forcing Responsive Media Queries in IE

Arpan Pratik KumarWhen 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.

0
Q: SSH: Understanding Algorithm Negotiation

StalkI'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...

0
Q: Subclassing vs Extension in swift

RSDI 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 !

-2
Q: optimize query in sql

Vipin SinghalI 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

0
Q: How to reference an opened not active workbook ?

ianstewartI 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 ?

0
Q: 4.7 Flash Builder Not Supporting Design View

Shashank PathakI 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

0
Q: Rails, Heroku, visit records aren't saved to Postgresql db

NagasakiI 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...

0
Q: Clean R script to make it more streamlined

KhalidNI 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...

-1
Q: Cant compile an arduino file

electronicsalimI 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...

0
Q: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails

Ghalii 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...

0
Q: Speed issues in a mysql query

Pánfilo GonzálezI'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...

0
Q: How to dynamically change template of popover in angular-strap

Arshdeep SinghI 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...

0
Q: escape-data mysqli function wont work

maxelcatI 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...

0
Q: Slick Init - slickPause undefined

Dean WhitehouseWhen 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, ...

0
Q: Unity2D collisions and some physics

JustasmigI'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...

0
Q: pulling data from external source and getting a No 'Access-Control-Allow-Origin' header is present on the requested resource

js learnerI 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...

-1
Q: how to echo $_SERVER['PHP_SELF'] within a string

KevinGullingI 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?

0
Q: issue with condition in angular with if

Papouche GuinslyzinhoIn 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 ...

0
Q: OpenDL Build Errors on OS X 10.10.3

dbl001I 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...

1
Q: Combine tables using row values as column LINQ C# SQL

Reece KenneyI 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 ...

0
Q: Melt everything except for select columns in R

MorganI 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?

0
Q: Is there any way to get filtered table model?

AMIT VISHWAKARMAI want updated filtered model data of sap.ui.table.Table after applying filter in any column.

0
Q: Asking for the action of this 'for-loop'

Ivy ChanI 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...

0
Q: Cannot find symbol" error:

MesogiI 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 ...

0
Q: XCode unable to recognise the distribution profile present in my keychain

mm24In 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...

0
Q: Espresso & Junit 4 imports are not getting added to android studio project migrated from eclipse

Bipin Vayaluimport 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...

-1
Q: Using .fadeout('slow') for CSS display function

VeryIpsumI 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...

0
Q: Search with a variable in array

Nabil GhulamI 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...

0
Q: Deprecated methods in JasperReport

PRO_gramistaI 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?

0
Q: WPF Datagrid format one cell based on conents of other cell

czarny855I 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...

0
Q: Boost serialization of class wrapping a pointer

coincoinI 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...

0
Q: RSpec 'change' can't spot a difference

roflomglolI'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...

0
Q: SEO friendly and pretty URL .htaccess

EstirpicidadesI 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...

-3
Q: Can't login to websites through iphone

krishnakumarCan't login to websites through iphone, shows user blocked by administrator. But it is possible to login from web.

0
Q: Mongoose sort by populated field

Javi Blanco Martinezwell 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...

0
Q: How to apply the xslt(not xslt path whole xslt) in the xml file in sharepoint 2013 Hosted Apps

Chandan GuptaI 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

0
Q: how to pinvoke SLGetWindowsInformation from c#

user3761832i 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...

0
Q: Resource not found Jersey 2.x

Hitesh BhutaniI 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...

0
Q: WordPress : Nested Submenu in Admin

Syed ObaidUllah NaqviHow 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

0
Q: Can we implement Amazon SES in Google App Engine?

Naresh MNeed 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...

-1
Q: How to retrieve grid item data from arrayList in android

Exigente05I 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 ...

-3
Q: How do i pass objects between AngularJS and jQuery?

SeggieI 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?

0
Q: How to change size and style of a caption in inno-setup

KushalI have the this script. I made some changes in the script,Now I want the caption will look like the following image : Is it possible to change the size and style(bold) the caption Completed(I change it from caption Done). How to do the changes in the caption in inno setup. Thanks!

 
9:20 AM
Hi
 
0
Q: Suggest a better way of using this conditional statement

black9999Is 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]); }

0
Q: Datastax DES jar location

IdobI 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

0
Q: insert data into database while typing

Shan Bagam.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...

0
Q: Request.ServerVariables("SCRIPT_NAME") does not match with actual path in classic ASP with VBScript

sharleneI 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 ...

0
Q: Google sheets messed up little bit

Compumit Grouplast 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...

2
Q: Turn off screen updating and turn it back on if it were on to start with?

user1283776When 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...

0
Q: How to generate flowchats using python?

Moorthi Muthui 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.

0
Q: How to use ASM.visitTypeAnnotation

ClashsoftIn 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, ...

0
Q: Active directory LDAP query - want to filter out disabled users, but property missing

getsetcodeI'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...

0
Q: How to Change Dns in Android for 3G mobile network?

user3762198For 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...

0
Q: If window height < change css

thomahawkI 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...

 
9:37 AM
0
Q: Why are stackoverflow errors chaotic?

Alexandre de ChampeauxThis 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...

0
Q: Remove all spaces occurred in between of a string in SQL Server

Pranav-BitWiserMy 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 ...

0
Q: Alignment Slider and TextBlock together inside ListView column

mark yerI 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"/> ...

0
Q: Bootstrap navbar menu item li a change the active class when in the specific page

diannielleUsing 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...

0
Q: Teminating a process created by java application

Rahmoune Med El-habibI 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...

0
Q: Android: onActivityResult is not called

mridulaI 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); ...

0
Q: Operation synchronisation challenge in iOS

JánosI 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...

0
Q: Word Counter Code giving me undefined error

abhasyi 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

0
Q: Windows Store (Phone) App 8.1 developement - SSH library

Neal4114I'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...

0
Q: Spring binding and form field naming

Adrian BerI 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...

0
Q: Unresolved external SHCreateItemFromParsingName referenced VCL.LIB / Dialogs on C++Builder XE8

SagaI 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...

0
Q: redirect bounced mails, and read the attached filename from the bounced mail

AceI 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...

0
Q: Checkbox returning two values

Johnathon64I 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...

0
Q: C# / Mysql Quiz only 5 Questions

MyruI 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...

0
Q: Undefined method when creating an object FactoryGirl.

Stefan HanschI 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...

0
Q: OCR for Phonegap - Cloud Based Android

user3383301I 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...

0
Q: Using 3rd Party Apps in my application

rebulanyumMy 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...

0
Q: Getting two values from one range

marcusI 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

1
Q: Get categoryname and parentid and change parentid to categoryname

RK26Sorry 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 ...

-2
Q: Advancing semi-monopoly game for local and network capabilities - Java

SepehrOur 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...

0
Q: Slim Framework in Magento to use Amazon Product Advertising API

Hari ViswadeepHi 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...

0
Q: Sublime Text 2 - Is the shortcut CTRL+SHIFT+K assigned twice or is there an error in the documentation?

hamena314I 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...

0
Q: Many to Many SQL Query Join

macmilmAm 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...

0
Q: How to Fetch date and Check-box data in PHP CRUD Edit operation

sunnyI 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...

-2
Q: Php Code Convert to C#

Atul Rawatfunction 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...

0
Q: MVC Entity Framework - Relaciones muchos a muchos

Raquel Rodriguez GonzalezBuenos 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...

0
Q: Want to add attribute to Unit Test to determine if database should initialize

user2736022So 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...

0
Q: Assigning the return value of a C function to a python variable

Mohanad Y.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...

2
Q: Display user messages upon ajax success

user3733831I 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...

0
Q: Unable to use glyphicon in next&prev buttons of fullcalendar

Hikaru ShindoI'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...

0
Q: Communicate to BLE Peripheral incase the iOS app is not running on iOS device

TENSRII 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 ...

1
Q: android navigation Drawer button not working

Ghost riderIn 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...

0
Q: C# Window Form Online Database

Piston BlockTheres 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...

0
Q: Restart a Tomcat on Jelastic automatically

RomanVProI 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...

0
Q: Connecting n number of devices dynamically

RaghuveerWe 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...

0
Q: Created a sandbox account recently then Paypal will not return the values in php

sachin BhaleraoI 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...

0
Q: How can I add namespace decalarations in SOAP Envelope

user1354678In 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...

-1
Q: Pictures taken after first shot have low lighting

StormbringerI 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...

0
Q: C# winforms: folder large icons style (icon image and followed by text below) button

user2463036I 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.

0
Q: (JavaScript) Compare Timestamps daily (over span of 2 years)

mrlolococoI 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...

0
Q: Regular expression not working for name in asp.net mvc5 on client-side validation

toxicI 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...

0
Q: BigDecimal rounding not working properly in Jasper iReport

LLFLLLFLI 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....

0
Q: How to insert duplicate key in entity framework

Shibli SadikI 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...

-1
Q: TypeError: documents must be a non-empty list

JotaI'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 ...

0
Q: Twitter data using tweepy and Python

Dhinesh BHere 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['...

0
Q: Android layout issue. Missing three dots menu button

KamChoI'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.

0
Q: Python- How to return dictionary from function

michellechu93I 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.

0
Q: How to parse files in Android from a public directory on the server

Rafael RuizI'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'...

0
Q: Message box that tells me which items on my list are missing data if any

GabrielDear 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...

0
Q: How can set the title color of button?

Nisha GuptaHow 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]; ...

0
Q: NHibernate fetch many to many with queryover

Vladimír Pokorný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...

0
Q: Get start and end coordinates of a google maps encoded polyline in Javascript

user700077I 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?

0
Q: Send ArrayList<String> from BaseAdapter to Activity

Bruno JamalI 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...

0
Q: Building production environment for Java Server Faces application on server

NichoDiazI 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...

posted on July 02, 2015 by Ntlzz93

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

0
Q: Redis to Pymongo: converts dict to string

AmitI 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...

1
Q: Mysql table disappear after reset of AUTO_INCREMENT

Dumitru GutuMysql 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...

0
Q: Spatial hashing in Cuda/Thrust

user2521472Currently 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...

0
Q: FPDF encoding in footer

RaccoonI 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...

-1
Q: Mangeto 1.7 How can I delete Credit Card information of users

user829174With 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.

0
Q: R: 'Missing Value where True/False needed'

biochirrupSo 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 <-...

0
Q: MarkerManager visible markers

user1278159i'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...

1
Q: prop.table doesn't work in a for-loop?

MaZeThis 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...

1
Q: Add annotations in MS chart (e.g. (10, 20) (20, 39) etc) and horizontal Scroll Bar

user1089345I 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...

3
Q: Mapping runtime types to a parallel class hierarchy … with templates

amonI 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...

0
Q: How to .On() an event after .Off() this in Jquery

Andry ShevchenkoI'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" }) ...

-1
Q: Chossing between visual c++ and gcc to compile c++ programs mainly for studying purposes

rahul tyagiI 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++ .

0
Q: How to play a unique medielement in a ListView in XAML/Windows Phone 8.1

Abhiram ChennuruI 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...

0
Q: Add a class and remove the current one so that a button in J Query may be re-used for a different function

Samer KadihI'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...

1
Q: how to download video from youtube faster with quality choice in ios

hardik vyasi want the code for download You-tube video with choice like "High" "Low" "Normal" and download you-tube video faster.

0
Q: Remote removing admin rights for application

Евгений Кравцов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...

-3
Q: how can i stop to paragraph to overflow to next until current page is not filled

user2308549I 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.

0
Q: how to rename or refactor android package name using ant?

nitin***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...

0
Q: Change image of Imageview in toolbar

Anand SavjaniI 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...

0
Q: Adding item to Dictionary within loop

KayI 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...

0
Q: Dynamics CRM 2013 Import option-set mapping with multiple values

ImranI 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,

0
Q: How to change the Session cookie value in Cakephp

HareeshIn 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 ...

0
Q: MS Access VBA freeze/crash on Export

user5073297The 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 ...

-1
Q: Sum of points and rank according to points with join three tables

Kulbir SinghI 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...

0
Q: Line Simplification image processing

NooberI 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')...

0
Q: Spring boot additional Crash Command

François RosièreAccording 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...

0
Q: XHR response blocked by Chrome, because of mixed content issue (http/https)

Jos van LeeuwenI'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...

0
Q: How to customized the responsive search bar with the bootstrap

user782104I 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...

0
Q: Jquery .load() does not work within Django template

Chang MayThe 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 ...

-6
Q: Block your website to be visible on phones

John KarverFor 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...

0
Q: PhantomJS 2.0 is slow

RuubWI'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...

0
Q: Perl: how can I split a string on an unquoted instance of a character

SpacemooseIn 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

0
Q: Wordpress: Display users through get_users('orderby=post_count') custom post type

rolexI 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...

0
Q: error: ‘struct arphdr’ has no member named ‘ar_sha’

AniruddhaI'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...

0
Q: Compare data attribute value and add class name to div container

TDGNeed 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. ...

-1
Q: How to display RSS Feeds on a website, the other way?

Edi GolfgonI 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.

0
Q: Express route does not match without wildcard

Rahul NanwaniI 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....

0
Q: Emulator with read only sdcard

hasanghaforianIs 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) ?

0
Q: java.lang.NullPointerException jdbc big error

SmygolasI 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...

0
Q: Embed Search Box in Navigation Bar in Google Chrome

faisal abdulaiI 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...

0
Q: Relative layout is shifing when progress bar running

Kishore KumarI 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...

0
Q: Batch ErrorLevel 1 Issue While Using "diskpart /s"

Rick SibleyOk, 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 ===================...

0
Q: Node js distribute lots of smalls tasks over mutiple threads and process

dev.mrajWhat 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 ...

0
Q: REST/Jersey Rererence implementation

TheBlackI 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...

0
Q: Create temp values in AngularJS

Yokesh TIn 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" : "...

0
Q: PHP: Convert array string to an array in php

vikujangidMy 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...

-3
Q: Error parsing dataorg.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject

Ferial Adriani'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...

0
Q: Redirect to different document roots

user3206961we 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...

0
Q: Which svg js libraray works well with angularjs

AngularDirectiveseen 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...

3
Q: python dynamic array access [:0]

user2504380I 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?

0
Q: Inserting a popup DOM node into WYSIWYG

Sudhanshu ShekharI 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')....

0
Q: Android: send activity ( this ) to class in Thread not work

MohammadI 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)...

0
Q: vector::erase(remove(....)) is not working

Madhu KumarI 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; }...

-2
Q: Hey all...Thanks for any insight

Jason NasoWhy 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...

0
Q: Regex for searching a inputed sentence but including special characters

Ricardo CruzSo 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...

0
Q: Unable to connect to any of the specified mysql hosts VB.NET MySQL

user1606021I 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=...

0
Q: Oracle. Can I use objects not for storing in database?

diziaqI 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 ...

0
Q: Modify content between two specific words in R

Karan PappalaI 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...

0
Q: R - automatically convert polynomial to expression in ggplot2 title

JoeHere 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...

0
Q: Cast between a pointer and integer in x86_32/64

xiver77I 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...

0
Q: Leaflet angular error not render properly

BiribuI 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...

0
Q: Batch findstr error

SchmixI 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...

0
Q: Web API Help Pages always empty

goran85I'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 ...

0
Q: How to put bootstrap tooltip on textbox if validation fails for that textbox?

Lacy JonesI 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...

-1
Q: i have a bootstrap left side menu ..but when i click the menu the content shows right side container Div Any one knows?

Ravi varma <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 <

2
Q: What is the reason for the overhead in memory usage for arrays in Java?

blazsIn 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...

0
Q: how to make UIPageViewController reuse controller like tableview reuse cell?

MKAlatrashI 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!

0
Q: Devise: submit form after successfull login

tokhiCan 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...

0
Q: Manipulating Laravel html response just before sending it to browser

Adam ZygadlewiczWhat 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...

0
Q: Fill Java object from Map<String, List<String>>

Aeterosthe 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...

0
Q: How can i get the total amount with consecutive indicator?

gsqlSo 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...

0
Q: ViewWillAppear and ViewDidAppear dont fire ipad-mini

Michael AIn 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...

0
Q: Get the recently downloaded file path using capybara

DarshanHow 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

0
Q: Multiple textures to one face of a cube using Three.js

GopinathThere 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.

0
Q: This Game doesn't show the message it was suppose to show

Paulo ZumachI 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 ...

1
Q: restul webservice with xml or json as parameter

wibI 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...

0
Q: Backbone Collection fetch() method override previous models on repeat call

Amit SahI'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...

0
Q: phonegap node.js - build fails because of node_modules

Tommy D' NuttinI 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...

0
Q: IBM API Management Service - How to bind a SSL profile to a Proxy API?

sotoiwaI 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...

0
Q: get post by category id in custom post type with custom taxonomy

Mansukh KhandharHi 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( ...

0
Q: Nginx: Replacing response text, with text from another text/JSON file

RSVIn 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

0
Q: Setting margin-left to 0 usnig .css() not working

dunn_riteI 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 = $('#...

-1
Q: ios/iphone camera stream send to os x/Mac send connect phone via USB to the Mac

Nishant ChandwaniI 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...

0
Q: broken image while resizing image in codeigniter

snehaI 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.

0
Q: std::vector move semantics in a data structure

FDSFor 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...

0
Q: How to switch between python2 and python3 pip on Fedora 22?

NaranRajAs 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....

0
Q: Hello World for Rules and Actions in Sitecore

KamiI 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 ...

0
Q: How to combine Lists of an Objects inside another List of Objects in Scala

Roy WoodI'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...

0
Q: Play Framework: Using JPA entityManager in Interceptor Action class

user1242321I 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...

0
Q: What are the benefits of using Azure for windows client(Tablet)?

user1987064What 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...

-1
Q: New Imagick hangs when converting PDF to JPG and cannot catch error

user1924725When 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 ...

-4
Q: Convert MP3 file into text in C#

Khan Taimoor MalikHow 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.

0
Q: Visual Database Design (EER-Diagram) for SQLite on MAC

Silve2611Is 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...

0
Q: Add blob to tar and stream to server with JavaScript

cecemelI 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...

0
Q: SQL Query to fetch multiple least values

kiraninput +----+----+----+ | in | tn | 20 | +----+----+----+ | in | ka | 18 | +----+----+----+ | in | ap | 30 | +----+----+----+ | us | la | 12 | +----+----+----+ | us | ca | 20 | +----+----+----+ | us | ny | 5 | +----+----+----+ Output required +----+----+----+ | in | ka | 18 | +----+----+----...

-1
Q: CSS Class not applying to my HTML div tag

swallis1I 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...

1
Q: Url with query string returns a 404 with ajax

Keith DoneganI 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...

0
Q: How to add number of identical line next to the line itself?

e271p314I have file file.txt which look like this a b b c c c I want to know the command to which get file.txt as input and produces the output a 1 b 2 c 3

0
Q: Function return empty aray

Adrian C.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...

1
Q: Sharing custom flash player on Google Plus

Navjot SinghIs 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.

0
Q: Code cleanup in R

KhalidNI 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...

0
Q: How to get database size with Qt?

goGudI 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...

0
Q: Java convert seconds into time in a smart way

Pavel MarianI 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 ...

0
Q: Google donut chart for unknown number of variables

AkshaySo I'm trying to build a google donut graph, in which the number of cordinates are variable. Here's the problem statement, I have to make a graph showing how many contacts per admin was added into the database. Example data :- Admin 1 :- admin1@test.com Number of contacts :- 4 Admin 2:- admin2@...

 
11:19 AM
0
Q: Search for patterns/images inside other images using neural networks

Badescu AlexandruI 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...

0
Q: Create a Python Dictonary by taking joins of two dictionary

randomnessrandomlyI 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?

0
Q: How to store variable when looping a function - javascript

wasiim_devI 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...

1
Q: Why php memcached layer is not hashing my key as expected?

nullli'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...

0
Q: Use SurfaceTexture and View to play video stream on Android of API level 11

dragonflyI 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...

1
Q: comparing two text files' contents using PoweShell

SaMolPP pI 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...

0
Q: generate random number in c++ in a range

user4871626i 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...

0
Q: Calling a procedure and passing 2 parameters Javascript

Ter-ann GrangeI 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...

0
Q: Remove context awareness from Web API controller

IezekielSuppose 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...

0
Q: Predict Weibull instant hazard

user2498193Ok 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...

0
Q: Android webview automatically decode string

vksWe 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 ...

0
Q: Makefile: missing separator (did you mean TAB instead of 8 spaces?)

floubeMy 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 ...

0
Q: java client to read events from flume avro sink

Hafiz MujadidI 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...

0
Q: Laravel Eloquent, return rows where both conditions are True

Paul WrightI 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...

-1
Q: avoid injecting risk on php

asm95i 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

0
Q: Powershell: could powershell generate an plain excel file with multiple sheets?

vik santataExport-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.

0
Q: How to catch a SyntaxError in JavaScript

mehrasI 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); } })();

0
Q: C++ new auto not initializing contents of vector elements

sergiolI 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...

0
Q: How to get a text from disabled text box in selenium IDE?

vibhathe 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...

0
Q: Form Fields Validation Through Javascript

danial pervaizI'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...

0
Q: How can i delete data from dummy table using json URL in android?

sunder sharmaHow 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

0
Q: How to shim a Bootstrap Plugin installed with jspm / system.js needing global jQuery

fspeckmaierI 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...

0
Q: fat free crm installation mysql error

Prabhjot Singh kainthI 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...

0
Q: Oracle PL/MYSQL dividing location into street,city

Stark46 GoaTrying 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...

-1
Q: Python while loop with or not giving expeted output

Jago Strong-WrightThis 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

0
Q: Cross domain cookies in Safari

GoodBytesThis 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...

0
Q: Why does Rx.Net OnNext handler is invoked on the only thread

VladislavI'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...

0
Q: Date on confirmation email

user3160842I 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...

0
Q: How to address the "Do not override the Object.finalize() method" issue

Pravin008Recently 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...

0
Q: How to install and use libnet in mac os?

WangXhI 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.

-1
Q: handling backpress event in windows phone 8.1

Aman BhardwajI 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...

0
Q: Difference between these watch methods in angularJS?

upendra singh sengarI 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)      last day (464 days later) »