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

9:02 AM
0
Q: Parse: One app on parse.com will be accessed by multiple iOS apps. Does it work?

TO83we are about to finish our first app with parse.com. This first app is for the enduser. PushNotifications and everything are working fine. Now we want to create an app for our admins to manage everything. We want it to be a separate app. Therefore I was wondering: will this be possible? Two apps...

1
Q: SQL server connection using PHP

Raghav MotwaniI am trying to connect remote Microsoft SQL server using PDO. Before installing required drivers (SQLSRV30) my phpinfo()'s configure command section shows- cscript /nologo configure.js "--enable-snapshot-build" "--without-dblib" "--without-pdo-dblib" "--without-pdo-mssql" "--with-pdo-oci=C:\php...

0
Q: Posting data using ruby, json/nancy and C#

user3385136I'm working on a financial site and part of the functionality will be transfers between accounts. We initially developed it using Ruby on Rails referencing stored procedures on the database. Due to the need for a mobile app to be developed we have now moved to json/nancy. I am okay with getting d...

0
Q: How to pass KnockoutJS model between scripts on same HTML page

Denis VitezI have a single HTML page on which I would like to use 2 separate JS scripts. In my first script lets call it ScriptA I create a KnockoutJS model that is updated every second with AJAX call and return it. So model is then mapped to UI elements using data-bind attribute. Now since I want this page...

0
Q: How is the work divided amongst Storm Workers?

SandeepHow does Apache Storm Divide the tasks amongst it's workers, I read that storm does it by itself, and it's a function of parallelism, but what I don't know is how do I figure out which node does what and how many nodes would do which task, basically so that I can calculate the optimal number of n...

0
Q: Identify SVG element when another dragged over top

Tony WalshI have several SVG elements in a container. If I drag an element over the top of another element I want to move that element out of the way. I understand that with SVG I would need to redraw all the elements but I need to know the ID of the element I need to move to reposition it. Tried identifyi...

1
Q: My PHP Registration form wont work

Rodel GarciaI am trying to create a registration form and passing in mysqli_real_escape_string and salt on my form. However for some reason my codes won't go on. Even if I will enter the right information on my form it won't just process it correctly. Basically I created a function that will do the verificat...

1
Q: node.js - How does Busboy actually work?

KosmetikaI'm a bit confused with Busboy module. I don't understand where it takes file data to stream as it accepts only request headers as parameter?! Take a look on example from docs: var busboy = new Busboy({ headers: req.headers }); busboy.on('file', function (fieldname, file, filename, encoding, mim...

0
Q: Unit testing a Django management command that exports data to csv

FranklineI have a Django command that takes data from the database and generates a CSV file to be used for summary. I wish to test this command to ensure that it generates the correct data. Some of the tests that I need are to: Ensure the correct CSV file is always generated The correct object count is ...

0
Q: Difference adapter and decorator

stellaI'm lerning design patterns and now I'm trying to understand the difference between adapter and decorator. Consider the following decorator on the List: Collections.synchronizedList(List<T> lst) creates a synchronized decorator on the specified List. The adapter pattern, in turn, also incapsul...

1
Q: Sql Statement Custom Class

Rey NavarraeI am new to programming, I tried to create a sub that contains a SQL statement in it using parameterized query. My code is not working, there might something lacking to it or am I doing it wrong. My connection string is in the app.config: <?xml version="1.0" encoding="utf-8" ?> <configuration>

0
Q: How to use Middleware in Multiple Login system

Avinesh MathurI have MUltiple login in laravel 5 with using differeent different controller like that Account controller and Admin controller . i want to use Middleware on route for authorize the user. what can i do ?

0
Q: set architecture for ios apps via cordova / phonegap build process

SushantDue to certain plugins I have to set architecture for my cordova iOS app to armv7. But everytime I build the I have to use X-Code to do that. Is there a way I can automate this process in cordova build or cordova compile phase

0
Q: How to check if user visit my iOS app first time or not?

Lalit KumarIf user is opening app first time, then i want to show some other (tutorial) view controller and then go to Main View Controller. But if user is already visited app before, then go to Main view controller. How to implement that check in AppDelegate? I am using Objective-c.

0
Q: Unity and Google Play Services error

BananaI am developing a simple multiplayer game in Unity3D and using Google Play Services to match player. Recently I started getting the following error: WARNING: RoomServiceStateMachine: Current room ChkKCAjOs5yzQhACEAEYACD___________8BENCzt-rG8cWA2wE does not match room ChkKCAjOs5yzQhACEAEYACD___...

0
Q: Why LocalBroadcast Service is not working?

khaleel_jageerI tried to learn LocalBroadcastManager. Searched in web and implemented a simple app with Two activity to perform LocalBroadcastManager. But it's not working. I can't found what's wrong with my code. please help me! here is my code. FirstActivity.java public class FirstActivity extends Activit...

0
Q: Typo3 - Extbase CommandController for scheduler task

d4ny3li ve created an empty extbase/fluid extension and added an ImportCommandController for a scheduler task. For some reason i am not able to load that task in my scheduler. ext_localconf.php <?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['e...

0
Q: node js local enviroment setup

bttbi m trying to create local enviroment for learning node.js i m following the link below http://www.tutorialspoint.com/nodejs/nodejs_environment_setup.htm i downloaded Windows Installer (.msi) on my computer and create a file named main.js console.log("main.js"); and i double clicked node.exe ...

0
Q: Moodle action menu and edit popup don't show with activity plugin

user1200794I created a moodle action plugin to embed videos and everything works fine. Expect the Action menu and other popups. So normally it should be shown like this But when I enabled my plugin on the click nothing happens. And it is not working until I uninstall the plugin completly. Uninstalling...

1
Q: facebook applink fallback not working

thestalkerI am not able to implement facebook applinks fallback which redirects it to google play store if the app does not exist on the device .. My applink works if app is installed on the device .I havent posted my applink due to privacy reasons... Please any help would be useful ... Thank u in advance ...

0
Q: What is wrong with this part of code?

NoneOk, i have this part of code but it not working and i dont know why. Any suggestion?I think that problem is in $viewContentLoaded that is not firing but how to do that? $scope.ConfirmTicketPayOut = function (ticketPin, username) { $scope.ticketPin = ticketPin; localStorag...

-1
Q: find the largest number in a given value

user2643961I am working on something very tricky, and I am wondering if anyone can help. here is my problem: Given a number 569 I want to find the largest number which means that I want to return 965 can anyone give me hands in that please

0
Q: Convert to timestamp from char in SQL loader

Jonathan IlamboI have in a file (cvs) a column with the following 2015051308384828 and i want to convert this char in my sql loader to timestamp and inser the value in database. I do this in my sql loader : DATE_MAJ TIMESTAMP "yyyymmddhh24missff" I have the following error : ORA-01821 Not recognized format...

0
Q: Plotting two data series in overlapping barplot (ggplot2)

matsI would like to plot two data series (same type and number of measures, but measured at two timepoints) in the same barplot. Preferably the first series is plotted in grey, with the second series plotted in colours with transparency such that the series 1 data is still visible. The data I have is...

0
Q: Storing multiple Info in one MySQL column cell

ARAI have a photo viewer with a comment function for it that everyone can give comment regarding that photo like Facebook. 1- My question is that is it possible to have all the comments in one cell of MySQL based on photo id, like: PhotoId | Path | Date | Comments 198 | p/car.png | ...

0
Q: Static storage class in header file

alishaCan we include static variable in header files. If yes,Can other files can access it ? Suppose we are including any static variable in file1.c and any function from file2.c is trying to access the same.if it is possible ?

0
Q: Google Visualization API for desktop applications

user1259768I need to create a Desktop application for visualizing data. I want to use Google Visualization API for this purpose. I haven't seen any such related thing on web, is it possible to do so?

0
Q: where shoud I put model saving event listener in laravel 5.1

refear99guys. The docs say I shoud put them in EventServiceProvider boot() method like this public function boot(DispatcherContract $events) { Raisefund::saved(function ($project) { //do something }); } But I have many model want to linsten, put all in here is a right way? thanks

0
Q: please explain me the below code why am i getting 4 as output after running code in visual studio 2010

sandeepint main() { int *pnPtr = new int; delete pnPtr; *pnPtr = 4; cout<<*pnPtr; } Ans) 4 while i tried to execute in visual studio 2010. please explain me how 4 is displayed as output?

0
Q: Excel VBA Performance Challenge / Retrieve from 100k items from dictionary takes 20 min

BuckTurgidsonCode below runs forever (something like 20 min) iterating over 100k keys. If I comment the 'Set Trade' line it runs instantaneously. Same if I uncomment 'Set sb' line. So it must be something in my 'GetItem' method that goes very wrong. But why it is so slow if I'm using dictionaries all the ti...

0
Q: what is the js equalent of php's strip_tags($input, '<br><br/>')?

Rameez Ramiwhat is the JavaScript equivalent of strip_tags($input, ''); in php. i already have tried jquery $('.class').text(); but i want strip only some tags. Thanks in advance.

-1
Q: Generating UUID client side for MongoDB - performance, security and collision implications

Yaron LeviWe want to design a system (server and clients) like so: The main reason for using this design is to make the synchronization process easier to implement and saves a lot of headache: When the client creates an entity, it first persists it to the local data store (SQLite/Core Data) with a l...

0
Q: How to create the round cross button for close popup in wpf?

Ashish JainI am working on wpf slider, i want a cross round button on the slider control, i have attached the image, can you please help me what style me should write to get attached ?

1
Q: Android- Multiple line notification is not working

afnfirstly, I read this and use this simple code to multiple notification: public static void notifyMessage() { NotificationManager notificationManager = (NotificationManager) context .getSystemService(Context.NOTIFICATION_SERVICE); int notifyID = 1; Notificati...

0
Q: Unwanted GridView spacing in Android

Alex WardI'm having a problem with spacing in Android while putting together a GridView. Essentially, I'm putting together a 9x9 gameboard. I've got a GridView working OK, but it's got unwanted spacing after each define square on the horizontal (vertical is OK) - so it doesn't fit the working area properl...

0
Q: ng-keypress="return press($event,'text')" return not working

bharathI am not able to return value in ng-keypress event. Idea is to prevent few characters being pressed. I Know I can do the same without returning true/false by event.preventdefault(). ng-keypress="return press($event,'text')" not working if ((charCode > 31 && (charCode < 48 || charCode > 57)) ||...

0
Q: Can anyone tell how can i put getter and setter on the below code, and what exactly getter and setter do

Anant Tyagipublic class perform{ public static void Main(String args[]) throws IOException { perform obj = new perform(); obj.run(); } public void run() throws IOException { String inputfile= "c:/file_adress"; List<String> field = null; ...

0
Q: How to access multidimensional object in javascript?

FreshManuHere my code: var obj ={ "item":{ name:"manu", nachname:"kostner", beruf:"astronaut" }, "item":{ name:"juliad", nachname:"sib", beruf:"mönch" } }; alert(obj.item[0].name); alert(obj.item.name); is working, but i dont want to give every i...

0
Q: how to make my select dropbox looks pretty?

LateBloomer <div> <label for="vehicie_type">Vehicie Type:</label> <select id="vehicie_type"> <option>11111</option> <option>22222</option> <option>33333</option> </select> </div> ...

0
Q: understanding why plugin initilizations are stored in variables

Alexander Soloniki was just looking at how the srollr.js plugin works and basically the following code was used to initialize the plugin :: var s = skrollr.init({ forceHeight: false }); ofcourse the plugin can also be initialized like so :: skrollr.init({ forceHeight: false }); now...

0
Q: Upload and read Excel file (Asp Web Api)

Alex DubovikMy task is: I need to download the Excel file, which can be a set of columns with different information about the students. I have a database "Students" in which one table called "Profile" with these fields (for example): name, surname, mobilephone, homephone. When you download a file, I had to e...

0
Q: import bootstrap-datepicker missing styles Rails 4.2

ZubiI'm pretty new to Bootstrap and i'm trying to get my datepicker to work. I use the bootstrap-datepicker-rails gem with bootstrap-sass. But it seems that there are some styles missing when i do the imports mentioned on the site. An import this way works: @import "bootstrap" But then all the b...

0
Q: Check which (if any) localisation is being used

Loic VerrallI have an app which I have localised into several languages. Part of the app involves speaking sentences (in the appropriate language) using AVSpeechSynthesizer. The problem is that if the device is in a region that I have not yet localised, it will use the Base localisation with the regional vo...

0
Q: Keyboard gets dismissed when tapping into UIWebViews

cjwirthI have some UIWebViews that I am using for rich text editing. They have a div that is contentEditable. The problem is that when switching between fields, the keyboard will get dismissed for a split second if the user taps into a UIWebView. Going from UIWebView to native UITextView, the keyboard ...

0
Q: Complex trinary operator

vijay kaniI have use this trinary operator. To check my length variable $len, based on that return values My length is taken from $len = strlen($indChar); // values up to 3 ... 8 when it pass the value of 3... it strangely returns 30 $lft = ($len <= 4) ? 10 : ((5 <= $len) && ($len <= 6)) ? 20...

0
Q: Swift: Animation always stops at original position

AntonSackI added an ImageView in the middle of my view (no constraints set). With this code I want to move this ImageView from its original position to a new one. Unfortunately, it moves from the new to its original position - why? let opts = UIViewAnimationOptions.CurveEaseInOut UIView.animateWithDurati...

0
Q: Qt tabbing order skipping custom widget contents

MozzieJoeI have set tab order in QT to go through the UI in a logical order for the user - but upon running the software and testing I found it was skipping custom widgets from the UI. It's meant to go into the custom widgets and go through the different combo boxes/spin boxes and other various UI object...

0
Q: JavaScript date displaying the wrong day and time

r3plicaI have this application where I want to use you date, but the problem is that the date is not working as I expect. I create a date object like this: // Get today's date today: function () { // Create a new date var date = new Date(); // Set to midnight date.setHours(0, 0, 0, 0)...

0
Q: ArrayList to sharedpreferences

Soniya MohanI'm new to android.I wanna to fill my SharedPreference from ArrayList.. how can I place details to preferences.. preference screen contain some edittext and radiobutton sections ArrayList<Info> infoList = new ArrayList<Info>(); InfoHandler infoHandler = new InfoHandler(); infoLis...

0
Q: How to create generic nested type dynamically in c#

mydeenaliThis is my usecase to raise custom fault exception with error code and description in WCF. new FaultException<CustomFaultException<CustomFaultExceptionCode>>( new CustomFaultException<CustomFaultExceptionCode>( ErrorCode, ErrorMessage); H...

0
Q: ASP 301 redirect ignoring URL after domain name

TimOI am attempting to redirect specific pages to their counterparts on a new replacement website, but the redirect is keeping the page name from the old website, resulting in a 404. For example, the redirect I am currently getting is: www.hadrianbooks.co.uk/about.asp -> www.barpublishing.com/about....

-1
Q: Not able to give inline CSS to Django form

Remaze BbHi i am working on Django project but not able to give Inline class. How to apply CSS class in class-base view form.

-3
Q: Spacing Button in android

Abel Pule ChilunguI have this layout with 2 buttons but they are attached side by side, How can I put a gap or spacing between them. And how can I make the buttons change color when I click <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_h...

1
Q: Gridview rowcomand

Tiagohi i have a little problem when i go to my gridview in website my button for row comand doesnt work i dont know why i will put the code here This is my code for the page protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Ver")...

0
Q: Opening multiple image files in a JScrollPane

A.S.I want to learn how to open multiple image files in a JScrollPane. I have looking for answers to this but haven't been to find much helpful data. Initially, I select multiple files using a Dialog Box and save those files into an array. The following code does that: JFileChooser fc = new JFileCho...

0
Q: TCP Dup ACK and TCP Spurious Retransmit pairs cause server not continue to respond

LoongNetwork topology serverA -> internet ---> router1 ---> router2 -> clientB Network topology is roughly like this, router2 is used to limit rate with tc. router1 insert a piece of content into tcp html packet . Both router1 and router2 system is Ubuntu. When tc is closed on route1 or insertin...

0
Q: How to get Key object Ng-Repeat Angular?

VicheanakI'd like to get the key of the ng-repeat in angular. In this case, I expect the result to be: "-JtltdrUg7cfaMeXvUmG" using firebase as data sample: https://sweltering-heat-772.firebaseio.com/users/simplelogin%3A53. I've tried 4 different ways, but no luck. Please help. 1st: <ion-item ng-repea...

0
Q: Number of Distinct substrings using Z function

LTimHow can i find the no. of distinct substrings of a string using Z-FUNCTION/Z-ARRAY ? Time complexity should be less than O(n2). I know there is a way using suffix array but i am more interested in solving this using Z-array/Z-function.

-2
Q: Website pdf embedded

Boy PanjaitanWhy I can't embeded pdf file in my website? I've try using tag but, when the page is load. My pdf file is automatically downloaded by browser. and the pdf doesn't appear. But when I use it on my local server like XAMPP, it's work

0
Q: Testing Private Methods Not Working

mike3875Here is my Test Class; <?php namespace stats\Test; use stats\Baseball; class BaseballTest extends \PHPUnit_Framework_TestCase { public function setUp() { $this->instance = new Baseball(); } public function tearDown() { unset($this->instance); } public function testOps() { ...

0
Q: Python Converting tab limited file into csv

aandroidtestI basically want to convert tab delimited text file http://www.linux-usb.org/usb.ids into a csv file. I tried importing using Excel, but it is not optimal, it turns out like: 8087 Intel Corp. 0020 Integrated Rate Matching Hub 0024 Integrated Rate Matchin...

0
Q: How to remove docker installed using wget?

BuyukI've installed docker following installation tutorial on docker.com, using wget https://get.docker.com/ | sh command. Now i need to remove it entirely. apt-get remove docker, apt-get --auto-remove docker, apt-get remove docker.io, apt-get --auto-remove docker.io or any other combination doesn't w...

0
Q: Make elements of a select box draggable to a text area

PebblesI am new to jquery and a novice in struts2. My current situation is this: Scenario I have a JSP Page where i am populating a select box with values(I am using struts 2 framework) Problem I need to make the the elements of the select box draggable to a text area on the page. Tried: I can't ...

0
Q: Umbraco IContentFinder Virtual Node

RastakI'm trying to load a node under a diffrent parent through the IContentFinder. I can locate the correct node by useing some kind of wildcard system. So an example: www.example.com/group1/overview/id www.example.com/globalOverview/id The node from group1 can be shown with the correct ...

0
Q: MSCaptcha Image Not Showing After Publishing the website

Tarek OsamaI have a problem with MSCaptcha. I'm using IIS7.0 when I host the website to the localhost It works fine. After I edit the binding and go live when I acces the website the captcha doesn't appear I checked the System.web , system.webserver sections in my web.config, they are correct <system...

0
Q: Symfony Loading data by association?

C0ol_Cod3rOk I am very new to the world of Symfony, but I have used CakePHP quite a lot, so I have a good understand of MVC. However when you bake in CakePHP, it goes away and maps all the associated IDs with there primary key. Symfony dose not seem to do that, or more Doctrine dose not seem to do more th...

0
Q: Not able to get the bitmap from View

androGuyIn my application i want the image which is inside the linear layout.So for that i have used view.setDrawingCacheEnabled(true); // this is coming as undefined view.buildDrawingCache(); // this is coming as undefined Bitmap cache = view.getDrawingCache(); //here am getting null But...

0
Q: Entity Framework TPT Inheritance Subtypes

narainHow can i determine the subtype of an entity with a TPT-Inhertiance? If i have a base class Person and two subclasses Manager and Customer, it should be possible to query all persons and then group by their subclasses through using the GetType-Method, yet the returned type is always person. E.g....

0
Q: How to create and configure Command objects from a dynamic context with variable (number of) arguments?

LopinaSO! I've reached an impasse regarding code-design. Here's the scenario. I am required to either copy, move or delete files. OK, sure, no problem. I can easily write it like this. public class SimpleFileManager { public void copy(String sourcePath, String targetPath) { ... } public void ...

-1
Q: Changing comma to point with AWK

bjornasmIn my question about sorting CSV files that you can view here: http://stackoverflow.com/a/31290947/2169327 I got an excellent answer from @fedorqui, which gave me the following code. It essentially just prints the values matching the coordinates into a new file. #!/bin/sh for f in *.out do ...

0
Q: Swift - Ask for permissions

Bengger ApplicationsI use the imagePicker and the mapKit in my app, using Swift. The new guidelines from apple says, you have to ask the users before you can access those services. Some big and great apps out there can ask for permission, but in a view before as example the maps are used. Some examples: http://pttr...

 
9:46 AM
1583 messages moved from testing room
 
0
Q: When should one use dynamic memory allocation function versus direct variable declaration?

user768421Below is an example of direct variable declaration. double multiplyByTwo (double input) { double twice = input * 2.0; return twice; } Below is an example of dynamic memory allocation. double *multiplyByTwo (double *input) { double *twice = malloc(sizeof(double)); *twice = *input * 2.0...

0
Q: What is the use of tableview's delegate method cellforrowatindexpath in swift?

Krish Solankii am fresher and i am doing my app in swift language and i want to know that what is the difference between func cellForRowAtIndexPath(indexPath: NSIndexPath) -> UITableViewCell? and func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell/ d...

0
Q: I have trouble with httpPost(android)

Adilkhan  AdilbekovAnd my code List<NameValuePair> params = new ArrayList<NameValuePair>(); params.add(new BasicNameValuePair("type", "android")); params.add(new BasicNameValuePair("token", "123")); HttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(url); httpPost.s...

0
Q: Using jQuery viewer pdf

silviaI need to use a Jquery script for using a viewer of pdf. But I don't know very well jQuery and I don't know how to use this script. What code I use for use this viewer pdf? I found this code but I don't see anything: <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/li...

0
Q: SqlAlchemy + MySql 1205, 'Lock wait timeout exceeded; try restarting transaction'

Being SrvI am trying to delete a row from two tables User and UserRoleMapping. UserRoleMapping is referenced to User table using User.id => UserRoleMapping.user_id. I need to delete a row from both the tables using the user specific id. My code session_delete_mapping = Session() session_delete_us...

0
Q: Errno::ECONNREFUSED: Connection refused - connect(2) for "bucketname.s3-eu-west-1.amazonaws.com"

NickI have a default file that upon signup of a new account, gets send to an amazon bucket. That worked. But suddenly, without changing any code, all my tests that use this method, fail with the error: Errno::ECONNREFUSED: Connection refused - connect(2) for "(bucketname).s3-eu-west-1.amazonaws...

0
Q: Accessing Companion Class variable from another class

Faheem SohailI am really new to scala. I am trying to access a companion class variable from outside the class. How do I do this if at all possible without creating an instance of the class. object Foo { private var counter = 0 private def increment = { counter += 1; counter } } c...

0
Q: Custom collections in SQL Alchemy

VekyI use Declarative flavor of SQL Alchemy with a PostgreSQL database. I have a ClaimAccount that manages Claim objects. Something like: class Claim(MyBase): manager_id = Column(UUID, ForeignKey(ClaimAccount.id)) manager = relationship(ClaimAccount, backref='claims') created = Column(DA...

0
Q: Visual Studio 2013 coverage XML file found(parsed) still Sonar 5.1.1 not able to produce code coverage

Rvy PandeyI'm using Visual Studio 2013 to generate coverage file and sonarqube-5.1.1 for viewing code coverage, after analysis by sonar-runner-2.4. The output of sonar-runner is: Sensor org.sonar.plugins.csharp.CSharpSensor@7aa9b038 (done) | time=33447ms Sensor org.sonar.plugins.csharp.CSharpCodeCoverag...

0
Q: How do I use an older version of Visual Studio Code?

YeatsThe latest version (0.5.0) comes with constant crashes, so I wish to go back to the previous version (0.3.0), which actually worked. How can I achieve this on a Windows machine? First, I embarrassingly don't know where to actually download the old version, and second, I don't know how to stop it...

0
Q: How to get type of the file from the Google Cloud Storage based on its blobkey?

LA_I have the blobkey of the file stored in the Google Cloud Storage. This is the only information I have. Having this information, I can read the file (but I don't know and can not get its filename). Is there any way to get the file type or read its metadata (Content type, for ex., image/jpeg) eith...

0
Q: no hiddenfields in intraweb?

MaurizioSeems that Intraweb 14.0.42 does not generate anymore hidden fields. I define one or more of them in the "HiddenFields" stringlist but they are not generated on the page. Is this true ? Thanks. Maurizio.

0
Q: Repeat a process

BeckyI have written a piece of code that produces an invoice statement on an 'Invoice' tab based on a selected Client ID with the data being pulled from the 'Data' tab. What I would like it to do is produce an invoice statement for each different ClientID. So the data from my data tab will be spli...

0
Q: I can't find out what is wrong here

Males SebastianThe paragraph "See more" doesn't move, it just stays in it initial position. I indicated : top: 270px and left 100px but nothing. The rest of the code is working, also if I try to give that paragraph the same color from the css file it returns to black. <!DOCTYPE html> <html> <head> <link ty...

0
Q: Target Specific File - NO-CACHE PHP

LevelI'm using the following code to prevent a page from caching a twig random() command. <?php header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Cache-Control: no-store, no-cache, must-revalidate'); header('Cache-Control: post-check=0, pre-check=0', FALSE); header('Pragma: no-cache'); ?> I...

0
Q: Whats does the .r stand for ?

dadaI'm doing this tutorial which is about scripting in VMD using TCL. At the 7th dot in step 5, what does mean '.r' in simdata($i.r) ? Thank you in advance.

0
Q: Does latest mail clients support Inline Image Embedding?

Syed NizamudeenI wanted to show an Image in an Email. Embedded image into HTML email message with image tag something like this <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACR0lEQVRYha1XvU4bQRD+bF/JjzEnpUDwCPROywPgB4h0PUWkFEkLposUIYyEU4N5AEpewnkDCiQcjBQpWLiLjk3DrnZnZ3buTv4ae2...

0
Q: Change format of csv file

SB77I have a csv file that is in the following format: name1 Date,Type 11/06/2015 18:13:42,Red name2 Date,Type 08/06/2015 18:53:38,Blue name3 Date,Type 10/06/2015 17:13:33,Yellow 10/06/2015 17:55:11,Green name4 Date,Type 15/06/2015 11:19:01,Blue 10/06/2015 13:45:05,Orange name5 Date,Type 10/06/2015 ...

0
Q: ionic want e.detail.scrollBottom

user3801671 .directive('scrollWatch', function($rootScope) { return function(scope, elem, attr) { var start = 0; var threshold = 150; elem.bind('scroll', function(e) { if(e.detail.scrollTop - start > threshold) { $roo...

0
Q: Getting Specific columns from csv which contains empty cells in between

Aravind SelvarajI am trying to parse specific columns from a csv using map reduce.I have some empty cells in my csv. When I am trying to run it shows some exceptions.But When i run a csv which has no empty cells I get my output. sss xx asdas sddf saq asdsds sdsds ewe zz asdsd ...

0
Q: Post json data with PHP curl and parameters

ninjaprogcan you please help me with this issue. I need to connect to json API and authenticate (connectorauth) via two parameters - key and connector_id. Key is the API key, and connector_id is just an id. I also have a url to extract the data from. All I know is that I have to get the data via post a...

0
Q: how to build nested array from other nested array php

rzezniki have array where each element is array of sql columns. One element of MAIN array looks like this: Array( [x] => a [x2] => b [x3] => c [x4] => d [x5] => e [x6] => f [x7] => g [x8] => h [x9] => i ) now i need to build nested array which looks like this: array( [x] => a [x2] => b ["KEY"] =>...

0
Q: when using different version of jquery it give uncaught Typeerror

user2339386I am using Following jquery in master page my project in asp.net. <script src="js/jquery-1.3.2.min.js"></script> <script type="text/javascript"> var $ = jQuery.noConflict(true); </script> <%--<script src="js/jquery.easing.1.3.js"></script>--%> <script src="js/jquery-galleryview-1.1/jque...

0
Q: How to get time in a very specific format

KamiI need to get time in the below mentioned format: 20150708T142052:635719620529014063 The real problem I am having is with so long miliseconds- 635719620529014063.

0
Q: javascript and jsp to get the javascript variable in to my jsp page

user2706147I have my javascript variable ass name array in this i have to print this selected values in to my jsp page. This is my sample code(For Example): <script> var namesArray = []; var checkBoxes = document.querySelectorAll('input[type=checkbox]'); for(var i = 0; i < checkBoxes.length; i++) { che...

0
Q: jsoup does not return all cookies when I login to a website

user3104142I'm trying to login to a website, but my code returns only 2 cookies instead of more than 10 cookies. Here is what I'm using: cookies = Jsoup.connect("https://www.e-cigarette-forum.com/forum/login") .userAgent("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KH...

0
Q: ARCGIS popupTemplate position for mobile

sundusI add to my map a popup var popup = new Popup({ fillSymbol: new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([255, 0, 0]), 2), new Color([255, 255, 0, 0.25])), titleInBody: true }, domConstruct.cre...

0
Q: How would your convert a std::string to BSTR*

xkmHow would your convert a std::string to BSTR*? STDMETHODIMP CMyRESTApp::rest(BSTR data, BSTR* restr) { RESTClient restclient; RESTClient::response resp = restclient.get(data); Log("Response Status code: %s", resp.code); Log("Response Body: %s", resp.body); *restr = // here...

0
Q: javafx Rearrange the children of a FlowPane by drag and drop

user3616468Is it possible to re-arrange the cells of a FlowPane by drag and drop operation. If possible, how can it be achieved?

0
Q: onmouse events not working in chrome app

gcoulbyI have created this code: window.onload = function() { for (var i = 10; i < 100; i += 10) { document.getElementById("overlayInner").innerHTML += '<div style="top:' + ((8 * i) - 15) + 'px;" class="number lat lat' + i + '">' + i + '</div>'; document.getElementById("overlayInne...

0
Q: C++ WInAPI Display bitmaps on the custom window frame

user3744204I have created a window with custom window frame using DWM with the reference to Custom Window Frame Using DWM. I tried to add a bitmap to the title bar using StretchBlt. Yet, it did not show properly. The image will be brightened if it is drawn on the frame (Image). How to solve this problem?

0
Q: Delete a coredata record(row) of a tableview on Swift

Guilherme Kunzler MaiaI am a bit stuck here. Tried many posts and ideas here from Stack, but could not get it to delete content from the table view. Neither deleting a record from COREDATA or a simple testing array. Apart from that the code works fine, lists data and displays in the tableview. This is the error I a...

0
Q: Select first ten elements using nth-of-type in jQuery

TotoroI'm trying to target the first ten images on my page which have a class of .lazy I'm using unveil to lazy load images, it waits for a scroll to load images but you can trigger all images to load with this line: $("img").trigger("unveil"); I want to trigger just the first 10 images to always s...

0
Q: org.dbunit.DatabaseUnitException: Exception processing table name='my_tbl'

ManeeshI am using DBUnit and Spring Test DBUnit to initialise my database into a known state for testing purposes. I have a my_tbl table in my H2 DB (as in memory db for ubit test.). --schema.sql CREATE TABLE my_tbl( [name] character varying(255) NOT NULL, `type` character varying(255) NOT NULL, lang...

0
Q: Haskell where into lambda function

Cosmin MihaiI'm having this function data NestedList a = Elem a | List [NestedList a] deriving (Show) flattenList::NestedList a -> NestedList a flattenList (Elem a) = List [Elem a] flattenList (List l) = foldl (\x y -> List ( x : unfoldedList) where (List unfoldedList) = flattenList y) [] l The problem ...

0
Q: Facebook share dialog callback not working in iOS

PremI'm implementing the share dialog using the Facebook SDK for iOS. Everything works fine except for the callback. This is the function that displays the dialog: FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init]; content.contentURL = <my content url>; content.contentTit...

0
Q: Run JS after div contents loaded from AJAX

AndyRob7There are a ton of proposed answers to my question, but even with all the answers I have found, I can not seem to get any to work. I can make the JS work by adding a delay in execution of the code, but I can't rely on a delay to execute the JS after div has finished loading it's HTML. I'm creati...

0
Q: How to sets the ui image (3 or more) for different ui cells

mandic_milosI have UI TableView and need to set 12 images in 12 cells,how to do that?!

0
Q: Dependecy error from Itext

Laura Abad AvilésFrom yesterday I have problems compiling with maven because of itext jar My project has a dependecy of jasperreports-2.0.1 that depends on itext-1.02b <dependency> <groupId>com.lowagie</groupId> <artifactId>itext</artifactId> <version>[1.02b,)</version> <scope>compile</scope> </d...

0
Q: How to optimize the code any further?

Bharat NanwaniA very good day to all of you. I have code which does exactly what a Excel Pivot does in the matter of few seconds. Whereas, my code does the same thing in not less than 30 minutes. I am awestruck with the difference! I am pretty sure I can optimize my code to make much faster than currently. ...

0
Q: Footer does not stick to the bottom

Phatehere's my plunker: http://plnkr.co/edit/HSVBuzzp1IIDjFdbuf4E?p=preview in short: I cannot find a way to put the footer at the bottom of the page. I tried to just rely on html: <footer></footer> I tried using bootstrap ui's class: <div class="modal-footer"> or <div id="footer"> <div cl...

0
Q: UIControlEventEditingChanged not calling with picker input

Code crackerI am using the UIControlEventEditingChanged to find the changes in textfield. But UIControlEventEditingChanged works only for keyboard input. I want to make it by picker input, asusually its not working. Is any alternative for UIControlEventEditingChanged.

0
Q: How to make random posts excluding current and from chosen date

user3748765I need to have 5 random posts on post page (http://7cuteoutfits.com/2015/07/08/suits-rachel-z-office-fashion/) excluding current post. Random posts should be on chosen dates (for example posts from last 2 months until yesterday ) I added a few lines of code to single.php of my wordpress and now h...

0
Q: spark number of tasks after shuffle isn't equal to the number of partitions of shuffledRDD

Mehdi ErkI have a question about how spark-on-yarn works. I have a spark program that compute some narrow transformations on a RDD of 62 partitions. So All of these transformations are done in a single stage, with 62 tasks. Then, I have a "groupByKey" transformation. So it starts a new stage. I've set de...

0
Q: contact form 7 not sending mail

Bhupender rathori have devlope wordpress site it's complete, but i have some probme, Site contact us page have h contact fotm 7 Plugin in this page not sending mail, show this Message "Failed to send your message. Please try later or contact the administrator by another method." check site page http://www.novelt...

0
Q: overriding template of multi user in RollerworksMultiUserBundle Symfony2

Mohammad  GholamiI use RollerworksMultiUserBundle over FOSUserBundle to handle multi user but i cant override template of each bundle seperatly I have 2 bundle AdminBundle DesignerBundle I override AdminBundle but DesignerBundle template was overrided ! I try to override DesignerBundle but this error accur...

0
Q: I am using itext to generate pdf and i have done it but when i am adding a watermark to this pdf, it displays nothing.

user3855182this is my jsp code by using itext libraries.Before adding watermark i was executing fine. I want to add a image as watermark in this pdf. try { Document document=new Document(PageSize.A4); if(str.equals("pdf")) { response.setContentType("application/pdf"); PdfWriter.getInsta...

0
Q: .NET - Regex. Replacing start and end tags based on attribute with same ends

apcHow can I replace tags based on the attributes when the end tags are the same? Example: <tag id='bold'><tag id='italic'>Hello World</tag></tag> to <b><i>Hello World</i></b> Is this possible with RegEx or will I need to write a custom parsing method? Note: This is a simplified example and ...

0
Q: AngularJS: Where am I going wrong?

LarsBeuteSo after watching some tutorials I created my first test app, but for some reason it is not working. The goal of the app is to get product info out of a json file and put it in a ng-repeat. My HTML code: http://pastebin.com/fa9iLHim My AngularJS code: http://pastebin.com/GJKzAwWZ My JSON data:...

0
Q: how to pause downloadmanager in android

Ahmad Shoaib RafaThe question is I have implemented android downloadmanager to download files from internet. how can i pause and resume the download? i have read lots of posts and searched google but could not find a working answer. Thanks DownloadManager.Request downloadRequest = new DownloadManage...

0
Q: How to wait for a file being installed to GAC before installing a service with wix

chenI'm using Wix to create my application installer and recently I remove the copy of a DLL to the local folder and instead installed it in GAC. My issue is when I executing the installation my service is not being installed cause it can't find this dll in the local folder and it's not being instal...

0
Q: Resolve named instance from Unity container

daviooohIn my MVC 5 application I'm using Unity for dependency injection. I have a controller having as contructor argument a Dictionary: public MyController(Dictionary<string, string> messages) {} In UnityConfig I registered this instance: var messages = new Dictionary<String, String>(); messages.A...

0
Q: angular js post request to nodejs json. key undefined express 4

Addie Vanhalahttps://codeforgeek.com/2014/07/angular-post-request-php/ Hi I was following the above link to give post request from angular js to node js. I received the data posted in below format when i give console.log(req.body); { '{"email":"test@test.com","pass":"password"}': '' } and when i try to g...

0
Q: Need to correct time span string format

WaqasI have a time span string as 1.21:00:00 it means 45 hours and i need it as 45:00:00 and i use following method from Need only HH:MM:SS in time span string it works perfectly for this above problem but when i change the string as 1.21:30:00 then mentioned code return me one hour more ...

0
Q: Signing requests with HMAC-SHA1 for flickr

qedFrom flickr API doc: Signing Requests You must sign all requests to the Flickr API. Currently, Flickr only supports HMAC-SHA1 signature encryption. First, you must create a base string from your request. The base string is constructed by concatenating the HTTP verb, the request ...

0
Q: How to serialize sympy lambdified function?

akaiThe title says it all. Is there any way to serialize (so that it can be loaded later) a function generated by sympy.lambdify?: import sympy as sym import pickle import dill a, b = sym.symbols("a, b") expr = sym.sin(a) + sym.cos(b) lambdified_expr = sym.lambdify((a, b), expr, modules="numpy") pic...

0
Q: Store Session in cache

OpenWorksRight now my login session is saved in filesystem using werkzeug.contrib.sessions.FilesystemSessionStore I wanted to store this session in cache system using RedisCache. Is there is any way to modify it?

0
Q: nw.js inject-js-end worked partially

Wild TangI want to load some external html page(below is google.com) in nw.js window and inject some context menus to that external html. My files content are below. file inde.html: <!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <script src="outerWnd.js"></script> </body> </html> f...

0
Q: java listening port os x

Mare_IugisI've written a simple java program that creates a ServerSocket and returns some html. The program seems to work properly, but I can only get a response from using a browser on the localhost and not external devices. Only when my mac (OS X 10.10; Yosemite) goes to sleep and then wakes up is when e...

0
Q: How to config Android emulator to connect to intenet

wenwenI've been straggled with how to config my Android emulator to connect to Internet, and of course I tried a lot of solutions such as disable the LAN card or add dns server, http proxy in eclipse. Unfortunately, those solution seems work very well for lots of people but not for me. Finally I found ...

0
Q: Hierarchical summing in python

GaborGiven the following array: a = [] a.append({'c': 1, 'v': 10, 'p': 4}) a.append({'c': 2, 'v': 10, 'p': 4}) a.append({'c': 3, 'v': 10, 'p': None}) a.append({'c': 4, 'v': 0, 'p': None}) a.append({'c': 5, 'v': 10, 'p': 1}) a.append({'c': 6, 'v': 10, 'p': 1}) Where c = code, v= value and p=parent t...

0
Q: swig converts a positive long to negative int

Inbal TadeskiI have code in python that integrates c++ code using swig. The c++ class has a field with the long value 1393685280 which is converted to python. The problem is that when calling the getter of this field from python I get the int value -2901282016 instead. How can I fix it? Thanks

0
Q: SQL injection - protection

voldemord147I am not using prepared statements and i dont want to use it if not necessary Example : $sqlServ = new mysqli(SQL_HOST, SQL_USER, SQL_PASS); $char = isset($_GET['char']) ? sanitize($_GET['char']) : null; $check = $sqlServ->query("SELECT name FROM player.player WHERE name LIKE '{$char}'"); func...

0
Q: Is it possible to install and use Genesys 8.1 with SQL Server 2012

Mouleswaran AI tried to install Genesys 8.1 with SQL Server 2012. I have made the configuration but when I tried to start CME it says Configuration server cannot be found. Please check the host and port In documentation I could see that for SQL Server 2008 and newer, it needs Genesys DB Server 8.1.2 or...

-1
Q: how to pass dynamic variables in json

Rizwanfunction createOrder($entityid, $customerid, $dateorder, $warehouse, $price, $qty) { $json = '{"orderNo":"$entityid",' . '"customerCode": $customerid,' . '"dateOrdered": "08-07-2015",' . '"warehouseId" : 103,' . '"orderLineList":' ....

1
Q: Array of IDs as fetchAll parameter

Karol HernikI have the following function: public function findByIds($ids = array()) { return Database :: fetchAll('SELECT * FROM foo_bar WHERE test = 0 AND id IN :ids', array( array(':ids', $ids) )); } But it doesn't work of course. The $ids variable has the following structure: array(3)...

0
Q: Nested expression in angularjs

suhebIs it possible to have nested expressions in angularjs? I tried to access a variable like {{item.{{model.key}}}} where item = { ac_no: "123" address: "Delhi" dob: "1990-02-24" first_name: "Joe" last_name: "Weller" } and model.key = 'ac_no' But it gave an error. How can I access a variabl...

0
Q: Delete Button Frame size

user2526811I implement CommitEditingStyle for UITableView. But Delete Button is not look good as shown below. I also try to resize button Frame as follow but not working -(void) layoutSubviews { NSMutableArray *subviews = [self.subviews mutableCopy]; UIView *subV = subviews[0]; [subviews removeObjectAtI...

0
Q: how to handle my files so I don't get a "fatal: Out of memory, malloc failed" on git rebase?

Robsonthis is not a duplicate of the many malloc failed around SO.let me explain the project firstI have these third party libraries that I use in my project, so I want to keep them on a GIT repository to be able to easily maintain the history and rollback the libraries to a previous version if somethi...

0
Q: how to hide the naespace <string xmlns="http://tempuri.org/"> in webservice?

noushad mohammedwhenever I am try to browse I want to hide default namespace <string xmlns="http://tempuri.org/">

0
Q: Why won't Vue.js display my data?

user4676723I'm playing with a simple cart system in Laravel, using PHPCart and Vue.js. When the user hits my basket route, Vue.js gets the basket data: new Vue({ el: '#basket', ready: function(){ this.fetchBasket(); }, methods: { fetchBasket: function(){ this...

0
Q: NURLSession batch requests with block. Post parameters changed

Albert Villanueva Carreras- (void)someMethodThatIsCalledTwice{ NSURLSession *session = [NSURLSession sharedSession]; NSString *noteDataString = [NSString stringWithFormat:@"album_id=%@&pic_id=%@", albumId,photoId]; NSURL *url = [NSURL URLWithString:stringUrl]; NSMutableURLRequest *...

0
Q: Navigate the user to the app info manager

Dror FichmanI would like to navigate the user to Settings-Application Manager-'My App'. No action value in : http://developer.android.com/reference/android/provider/Settings.html seem to allow that. The reason is to allow the user to easily turn "Show notification" on. Is it possible? This action was uns...

0
Q: Inheritance: Schema not updated properly - some columns are missing in the table

lampshadeThere are three classes: class A is abstract and a MappedSuperClass class B inherits from A class C inherits from B PHP-wise this works fine. Also generating getter and setter using php app/console doctrine:generate:entities App works. The Problem The problem comes when creasting the schema...

0
Q: Safari Scroll Bar in block element

monika mI have problem in with links with svg images. It shows it with scroll bar and i do not know why. I thought maybe it's becouse images are sprites, nut when I give them 100% instead of 200% it's still there. CSS #footer .Wrapper > div.col-4 ul.icons{border-top:1px solid #ededef; margin-top:25p...

0
Q: � Question mark in binded text in template

San Jay FalconWhile implementing angular translate i ran into French translation words such as: 'Propriété Catégorie' appearing in the view as Propri�t� Cat�gorie. Dont know what this means. Is it that the used font doesnt have this character implemented? I think not since writing the HTML name &eacute; parse...

0
Q: onkeyup javascript function not work properly on input field

user3909841i have a function to convert integer to indian rupees format. It is work on onclick event function and give it result, but when it is apply on onkeyup event it doesn't work. where is problem ? plz suggest i am new .thanks my function is below. function numberWithCommas(x) { x = x.replace(",...

0
Q: retriving blob object from data DB2.

Spandhana VunnamThere is a case where last name has 'Null' ex: name = 'Sachin Null'First name = 'Sachin' Lastname= 'Null'. when we store into the database string null is in the last name. and we store it as a blob object. while retreving i am getting an empty string "" as last name. Is the value string 'Null' i...

0
Q: Continues Excel spreadsheet generation results in "sheet name already existing error" Using JSF

kerZy HartI am using jsf as a font end to generate a Excel-spreadsheet.xslx. What i have done, Created a process.xhtml with command button named "Start Process". Created a managed bean called ProcessBean.java with session scope which contains a method called startProcess(long processId). when user...

0
Q: TCL max size of array

JGInternationalI'm working on an engineering application, and the interface is written in TCL TK. Everything went fine until I need to use a (extremely) large array. 370.000.000 of elements, each element from 2 to 10 characters length (linear grown). My question is, ¿where is the size limit for TCL arrays? ...

0
Q: How to mount Amazon S3 into my linux system without using FUSE?

RiteshI am trying to use Amazon's S3 as my backup storage. I have used FUSE till now and getting latency issues. So is there any other way to access S3 as storage from Linux system? Is there going to be any improvement if I use block device driver to access the S3 storage? Is there a way to mount S3 st...

1
Q: Disable all buttons whose ID attribute beigins with

murday1983I have a form with a table on it. The table lists multiple rows each one with a 'Create' button. The table itself uses a for loop and appends the rows value to the end of the buttons ID as shown below <button type="button" class="btn btn-default" id="create_<%: stck.Stock%>" onclick="SetupDisi...

0
Q: Saving path in String

oblivionprivate static final String BasePath = "/home/rafael/pesquisa/ImageSimilarity"; I am working on an Image comparison program, and found this line of code from somewhere. However in the above case, the path is set for a linux system, and As a Windows user I want to set my path for windows device,...

0
Q: How do I find the difference between two times in python in a format?

Dabn asI was wondering how can I calculate the time difference between two times which have PM and AM next to them for example. I have 12:16:44 pm and 01:01:45 pm but when I use this code: from datetime import datetime from datetime import timedelta s1=12:16:44 s2=01:01:45 FMT = '%H:%M:%S' tdelta = d...

0
Q: Multiple annotation validators produce the wrong message (Java)

user3412998I am using multiple annotations such as @NOTNULL @MIN(1) Integer x; Running an individual test works as expected, but when I run multiple tests, the message produced gets mixed-up, for example: When I send a number lower than 1, I get the "may not be null" message. I am resetting the client af...

0
Q: Core Data table view exception crash

Kreuzbergthis is a stack trace from Flurry crash analytics. Any Idea what is going wrong in my Core Data table view implementation? Full Stack Trace: 0 CoreFoundation 0x182d5c2d8 <redacted> + 132 1 libobjc.A.dylib 0x194a280e4 _objc_exception_throw + 60 2 Cor...

0
Q: Drop Down Navigation modifications

RobertIm trying to modify a current script that I've found on the internet for a navigation menu. Basically its just a navigation that when on click appears the sub nav but I'd like to be able to modify it to have a sub nav underneath appear when clicked that will be able to add another to be clicked t...

0
Q: Populate select box with json data from laravel db query

Adrian Constantini have a html select box that needs to be populated using jquery ajax with select options that come from a php (Laravel) database query. I tried many approaches but no result, i only get 'undefined' as result. The Laravel script: public function loturi($articol) { $loturi = DB::select("select m...

0
Q: Rabbitmq publish exception

Yatender SinghI am new to Rabbitmq and just doing producer-consumer implementation below is my producer which fetches data from API and push to queue, so problem is that for some time everything works fine but suddenly it throws exception (after 20-24 hours) and everything stops working. So I want is to work t...

0
Q: Reading From Files

EricI was bit curious if I was going about this the wrong way. I am trying to read numbers from two different lists, sort the numbers, and then output ALL the numbers to a3rd file. I understand getline is probably not the best option but I still would like to use it. list1 = 1,4, 5, 18 list2 = 2, ...

0
Q: ActiveMQ uses 100% CPU

KacuI use AMQ v 5.9.0 with non-persistent message and below settings: <policyEntry queue="foo.bar.>" memoryLimit="500mb" producerFlowControl="false"> <pendingQueuePolicy> <fileQueueCursor /> </pendingQueuePolicy> </policyEntry> Heap Size below ...

0
Q: Fixing background issue on jQuery animation

Florin PopThis is the website where I have the issue: http://florin-pop.com/work/ The body has the following CSS: body { height:100%; font-family: "Open Sans",sans-serif; background-image: url("bg.jpg"); -webkit-background-size: cover; background-size: cover; b...

0
Q: ctrl+c to kill a bash script with child processes

18446744073709551615I have a script whose internals boil down to: trap "exit" SIGINT SIGTERM while : do mplayer sound.mp3 sleep 3 done (yes, it is a bit more meaningful than the above, but that's not relevant to the problem). Several instances of the script may be running at the same time. Sometimes I wa...

0
Q: Data binding to syncfusion grid using custom service not working

Gomtesh HatgineI have used syncfusion grid and i want to bind data to syncfusion grid from API but data binding to syncfusion grid is not working here is HTml code for grid <div ng-controller="ContactsController as contact"> <div id="Grid" ej-grid e-datasource="contact.Cdata" e-columns="contact.columns" ...

0
Q: opening a usb-serial port using the device VID/PID

PandreiIn Linux usb-serial converters usually show up as a node in the /dev directory: /dev/ttyUSBx. To use the serial converter the first step it to open the port, then configure it and so on. port = open("/dev/ttyUSB0", O_RDWR); If you want to use a serial device (I2C or SPI), ftdi offers devices...

0
Q: MsTest- ExpectedException fails in base test class, testInitialize

XerxesI have a base test calss with a testInitialize method which invokes the unit method I want to test. In one of the tests I am expecting an exception but since the test initialize method is invoking the unit of execution the exception is thrown and I feel that it never reaches my child classes tes...

0
Q: Java thread safe heavy object, advice needed

Ivan PavićHi I'm an absolute beginner in high-performance Java programming, so bare with me if you please. I have clients that request from my application same data basically every 5 seconds. ATM i am going to DB for every user... As You can see this is a sh..y approach. I a am considering creating thre...

0
Q: Having some issues with ProgressDialog. cant make it appear

user1232726Iam having some problems with the ProgressDialog in android. I thought it would be relatively easy to use but it turns out otherwise LOL. basically i have an Instance of progreesdialog in my activity "RegistrationActivity". I press a button and registration commences by showing a progressdialog w...

0
Q: Facebook review and detection if app is installed?

User3I am using facebook ShareOpenGraphObject to share a custom object, I am sharing this story with an image and this only makes it feasible to work with a facebook app installed on the device. Now I have two questions: I want to submit my app for review for the custom share object I have created f...

0
Q: Where can I find the typings file "zone.d.ts"?

camden_kidThe file globals.d.ts references the file typings/zone/zone.d.ts but there isn't a typings directory in the repository nor is there a zone directory in Boris Yankov's DefinitelyTyped repository. Where can I find zone.d.ts or the typings directory zone? Google doesn't produce any results.

0
Q: Retrieve Javascript File with PHP

JoePI have two websites hosted on the same server: www.examplea.com and www.exampleb.com Example A is the primary site, and holds lots of files that Example B uses, however their root directories are parallel. Example A = public_html/examplea Example B = public_html/exampleb Whenever Example B wa...

0
Q: With open as file along with for line in open

Akshay HazariI have to read a line from a file do some computation and write to another file. I have done something like this fd= open("abc.txt","w") for line in open("test.txt","r"): Do something Here fd.write(modifiedline) I have usually used with open and for open for line by line operations....

0
Q: SharePoint 2010 Custom ListForm(WebPart) with ListFieldIterator fails in displaymode

user1646064i have created a quite extensive solution contained in a visual webpart. From within this webpart i open up a Telerik RadWindow and open another webpart in it to display/edit//create a new item (list[s]). This webpart is supposed to replace the default list forms but is again quite heavy customi...

0
Q: <h:inputFile> Tag Library supports namespace: http://java.sun.com/jsf/html, but no tag was defined for name: inputFile

Jambui am Using JSF 2.2, Jboss 7. While running its just keep saying " Tag Library supports namespace: http://java.sun.com/jsf/html, but no tag was defined for name: inputFile" this error.. Anyone help me to solve this problem.. Below is that xhtml file. the error is on "" this line. index.xhtml: <...

2
Q: MsSQL convert string to DateTime

Dmitrii StebliukWhy in MsSQL some milliseconds are rounded to next? For example: SELECT CONVERT(datetime, '2006-04-25 15:50:59.996', 120) Produces 2006-04-25 15:50:59.997

0
Q: PHP- Failed to save Base64 string to an image file

nicI have to save base64 file on my local drive, but image corrupted when I have use file_put_contents. I am able to see the image in my browser using following tag, but when I am using file_put_contents so it's not working. $data = '<img src="data:image/png;base64,'.$image.'"/>'; code: $data = '<

0
Q: showing current location in Google Maps API V2, this map in one of sliding tabs

tuan tranI tried to do app with sliding tabs, i did by this tuto by this site http://www.android4devs.com/2015/01/how-to-make-material-design-sliding-tabs.html And then i wanted add map to 1 of tabs, and this map will show current location by this tutorial: http://wptrafficanalyzer.in/blog/showing-current...

0
Q: WPF: Mystery with RichTextBox and KeyDown Event

lomedBefore I explain, I will present code, because it is the best way to express the question in this case. a simple WPF window, his base node contains this: <StackPanel> <Menu> <TextBox x:Name"A" Width="200" /> </Menu> <TextBlock Margin="0,10,0,0">--richTB--</TextBlock> <R...

0
Q: I have a domain name and an installed Certificate, that I want to assign to a running localhost application

Atif WaqarI have : A running application on localhost:8080 A domain name "www.domain.com" An installed SSL Certificate Now my first Issue is that, I want to access my application from url: http://www.domain.com and second part is to assign the certificate, making the url: https://www.domain.com How c...

0
Q: Java Two ArrayLists from One ArrayList

Rajyalakshmi SI have a List where I am storing 2 ArrayLists inside this. metadataList.addAll(countryList); metadataList.addAll(languageList); In the other method, I want to access these two lists. I am trying this code: List<String> countriesList = metadataValues.get(0); List<String> langu...

0
Q: Using Sleuthkit API in Linux returns error

JackzI have installed sleuthkit library in my Ubuntu 14.04 system and I am developing a C++ program using eclipse IDE. My program compiles without any error.. However while running it throws an error as : undefined symbol: tsk_img_open_sing. The corresponding statements in my program is : char* ws = ...

0
Q: Jquery ajax request fails with empty error message

MeesterPatatThe following ajax request fails with empty error message: $.ajax({ type: "POST", url: loginUrl, data: JSON.stringify({login : u, password : p}), contentType: "application/json; charset=utf-8", success: function(data){ console.log("========================== succes ====...

0
Q: Add points to grouped bar plot (ggplot2)

matsI have a dataset containing measurements at two timepoints. I have made a barplot of the data of the first timepoint, and would like to add points for the second timepoint (this is just meant as a reference). As you can see below the points are there, but they are not in the correct x-axis positi...

0
Q: String on stack

B. NadolsonIs there a better way to temp alloc a string of unknown length in C in a way that doesn't require cleanup? I currently use the following, which does use alloca/_alloca or insert the name your compiler likes for this function #define stackdup(s) \ memcpy(memset(_alloca(strlen(...

0
Q: Java acquire documents as image

JAndroidI must develop a web application java based and in that application i want acquire a lot of documents as pdf with physical scanner. I need to know if exist opensource api that can help me. How can do it with java?

0
Q: Error Converting circular structure to JSON

afeefproblem im implementing bookmark functionallity when ic click on heart symbol it throws Converting circular structure to JSON. html code <a href="javascript:void(0)" onclick="dataLayer.push({'event':'addtofav'})" class="fa-heart-o favourate_dextop" data-toggle="tooltip" title="" id="...

0
Q: Scala Set with a Tuple of 3 Elements

user3102968How can I put in a tuple containing 3 elements to a Set? Say, I have a Set of type: Set[(String, String, String)] How can I simply add 3 String's to my Set definition? The following has the compiler complaining? set + ("a", "b", "c") Why is the tuple treated differently? It is just like a...

0
Q: How to display divs side by side inside a list (inline-block doesn't work)

facebookI have a list of items where an item is some text and a button. I want text to be aside the button. I used inline-block but it doesn't work. Note that I want text to wrap too. <ul> <li> <div class="inline-block"> Side by side </div> <div class="inline-block"> ...

0
Q: HTML Template Django counter for buttons

dk1990I have to panels one with the current data and one to update. I need a smart way to update the number for tab5 and tab6 for each element. Without repeating any of the numbers. The Tab only works if the 2 Numbers are only there. I tried calculating inside the template with |add but that works onl...

0
Q: Community SQLite Plugin for MvvmCross

sisterrayI am trying to use/install the Community SQLite plugin. Using nuget everything seems to install OK, e.g I get no errors. However,in my Core project there are no references to the plugin. In the iOS and Android references there are references to the plugin. Do I need to reference the plugin expl...

0
Q: Delete Item from NSUserdefault and TableviewCell with Swipe Deleting in Swift (Frist Time Terminated , 2nd work)

user3097950Please Help , i get always Error , Terminated App and more Error , Error , Error.. Where is the Error pls ? var mutableeItems:NSMutableArray = NSMutableArray() override func viewDidAppear(animated: Bool) { var userDefauls:NSUserDefaults = NSUserDefaults.standardUserDefaults(...

0
Q: MongoDB Aggregation - return default value for documents that don't match query

Kyran EagleI'm having trouble figuring out the right aggregation pipe operations to return the results I need. I have a collection similar to the following :- { "_id" : "writer1", "Name" : "writer1", "Website" : "website1", "Reviews" : [ { "Film" : { ...

0
Q: using Spreadsheet::SimpleExcel

sangramjit basuFor experts this might seem little naive but i am trying to learn to use perl modules in my scripts. So basically I need to sort an excel file based on two columns and write it to a fresh file, which i can acheive using Spreadsheet::SimpleExcel $excel->sort_data($file,12,'ASC'); $excel->sort_dat...

-2
Q: Parse error: syntax error, unexpected 'md5' (T_STRING)

Maruf Ahmadhere is my PHP code. $query = "INSERT INTO user (email, password) VALUES('".mysqli_real_escape_string($link, $_POST['email'])."', '"md5(md5($_POST['email']).$_POST['password'])"')"; I cann't avoid this lines error report like this: Parse error: syntax error, unexpected 'md5' (T_STRING) i...

1
Q: Whats ist the difference between these two javaScript syntaxes?

ViennaBoth of them works without errors, is there any difference? (function(){}()); (function (){})(); here are some working examples: console.log( (function (a) {return a*2;}(3)) ); console.log( (function (a) {return a*2;})(3) );

-2
Q: RPG Battle, monsters health after attack with dictionaries

IncarninI've asked about this before, because I'm still not too familiar with dictionaries, but what's happening is every time I attack the monsters health resets automatically: #MONSTER STATS corpsefinder_stats = { "corpsefinder_strength" : 7, "corpsefinder_speed" : 1, "corpsefinder_mana" :...

0
Q: upload yii advanced application from local developement serve to live server?

AkkiHow to upload my vendor folder to live as while commiting the project to bitbucket. it ignores the vendor folder of yii2 advanced application tamplate.

0
Q: Google extensions Native messaging host not found

IcetI have got problem with native messagins. When I try to connect with native app I'm getting this error: Connecting to native messaging host com.google.chrome.example.echo Failed to connect: Specified native messaging host not found. First native application C# static void Main(string[] args...

0
Q: SimpleInjector Ioc DBContext with EasynetQ message life cycle

Michael CarrI have an issue with the EF's DBContext's life cycle using SimpleInjector , I have a worker service that is running continuously but I want the DBContext to be initialized during the messages' lifespan and not for the life time of the worker service application. There are examples on how to do...

0
Q: how to install gitHub enterprise in linux/linux server?

Pratik RajI want to install GitHub Enterprise on Linux/Linux server. I am getting help for installing on virtual box , clouds ,Azure but I want a GitHub enterprise on my Linux server.

0
Q: Amazon Elastic beanstalk - Environment Properties Change

Damien GallagherI have an Elastic Beanstalk environment that is running the following version 64bit Amazon Linux 2015.03 v1.3.1 running Tomcat 8 Java 8 When I added an environment variable for the word ENVIRONMENT and value TEST - it shows up in the process in unix as follows - which is as expected -DENVIRONM...

0
Q: android studio auto complete: how to display contractors with parameters

Eng. Samer TThe auto Complete in eclipse displays all constructors with parameters, but Android studio doesn't. For example see the following screenshot in eclipse, it displays all constructors of Intent class. While auto complete in android studio for Intent class is displayed without parameters as fol...

0
Q: Qt5 and MacPorts: missing links

Algebraic PavelI'm wondering if somebody has also a similar "problem" while installing Qt5 from MacPorts. I've installed a frech MacPorts distribution yesterday (on Yosemite) and installed the ports qt5-mac and qt5-creator-mac. First, I have noticed that (compared with my previous experience) there is no longe...

0
Q: Android USB Host. How do I get permission to use USB devices without displaying a dialog?

VitaliyThere android device without a screen. When connecting the USB device automatically appears the system dialog to permit the use of USB. It is necessary to obtain a permit without using the device's screen. It is assumed that the device application will be installed in advance, and when the USB de...

 
11:05 AM
0
Q: Excel VB Macro Help? - 424 Run-time error

iZodiacI'm fairly new to VB Script - been learning it since last week and I wanted to review my findings and I know this is the silliest thing you're going to come across. I keep getting a '424' run-time error and then saying 'Object Required'. Here is the code: Sub Button1_Open() Button1.OnClick M...

-5
Q: Add string[] to List<string[]> c# .Net

kPuckI have a List<string[]> parsedData. I have another List<string[]> newData = {n, 1, 2, 3}. The strings in parsedData seems to be stored the following way: 1. a b c 2. 1 2 3 3. 1 2 3 Which is perfect. When I add the newData to parsedData it becomes like this: 1. a b c 2. 1 2 3 3. 1 2 3 4. n ...

0
Q: SQL * PLUS EDITOR IN 10g

GaneshI have installed Oracle 10g on my machine but not able to run ed for edit option error: SP2-0110: Cannot create save file "afiedt.buf" Please, help me out to solve this. I have already tried so many options for fix it. Thanks in Advance.

0
Q: Integer Linear Programm Library 100% Java Open Source

BenjaminI am looking for a "Integer Linear Programming" (ILP) library which is open source and 100 % Java. [As an alternative a 100 % Java SAT-Solver would also work. Currently I am using SAT-4J.] What I've searched so far: I've found wrapper like 'lp_solve, glpk, ..' which are not 100%-Java, since ...

0
Q: Not able to check any radio button wp8.1

MayankI am using the following code to create 2 radio buttons. <StackPanel HorizontalAlignment="Center" Margin="0,40,0,0" Width="300"> <RadioButton x:Name="rbTargetURLTypeHttps" GroupName="rgTargetUrlType" Foreground="Black" BorderBrush="#A0A0A0" Content="HTTPS" IsChecked="True"/> <RadioButton...

0
Q: Ruby aws-sdk gem configuration hash is converted to string

Himanth KumarI am trying to use amazon S3 for storing and retrieving files from my rails application, have setup the changes in configuration file for aws_credentials, but what is supposed to by sent as hash to the below configuration.rb file is being sent as string. Credentials in development.rb in my appli...

0
Q: Boost.Spirit Lex token definition ignored

Mr. WonkoI'm experiencing a weird lexer behaviour in Boost.Spirit: I have a rule to match the UTF-8 BOM, R"(\xef\xbb\xbf)", that correctly works. But once I introduce certain additional rules, for example R"(\"([^\n\"\\]|\\[\"nrt\\])*\")", I get no matches whatsoever. Am I missing something or is this a b...

0
Q: How to show it in Apache poi?

Vladislav Borisovany ideas how to show this numbers 5106'1' -- 1356'2' -- 56'3' 1,2,3 are subscript.? cell = row.createCell(cellindex++); cell.setCellStyle(cellStyle3); cell.setCellValue(new HSSFRichTextString(String.valueOf(values.get("recurrings"))));

0
Q: Replacing multiple nodes in Roslyn syntax tree

Roger AlsingI'm trying to replace a couple of nodes in a syntax tree using roslyn. But the immutable nature of it seems to get in my way. public static string Rewrite(string content) { var tree = CSharpSyntaxTree.ParseText(content); var root = tree.GetRoot(); var methods =ro...

3
Q: PHP not displaying time from database correctly

Timothy CoetzeeI have a script that count downs the time until an event start Start date and start time is retrieved from a database. My Problem Days is calculated correctly but hours are the same for each event and does not get calculated correctly while(){ $gameDate = $row['event_date']; $time=$row['eve...

-1
Q: How to disable "Your edit was saved" popup?

Paul LittlefieldWhen using the MediaWiki software, how do you disable the popup saying "Your edit was saved." from appearing?

0
Q: The model item passed into the dictionary is of type 'System.Int32', but this dictionary requires a model item of type 'IMS.Models.Dealer'

ShaharyarI know there are a lot of similar questions here, but none of them could solve my problem. When I access the URL: http://localhost:42626/dealer/edit/2 Error occurs: The model item passed into the dictionary is of type 'System.Int32', but this dictionary requires a model item of type 'IMS....

0
Q: Swift 1.2 SpriteKit coordinate system origin

Ömer SakaryaI don't know if it is a problem started in Swift 1.2 or not. I am new to both swift and SpriteKit. I was watching an online tutorial and the guy there was able to put a green box on the bottom-left corner of the screen by doing the following: let greenBox = SKSpriteNode(color: UIColor.greenColor...

0
Q: excel conditional formating

help I am trying to conditionally format an excel spread sheet. I have two columns J and K with 5 rows 10, 11, 12, 13, 14 and 15. I want to make it so that if K10 is greater than J10 it turns green, if K11 is greater than J11 it turns green etc. so in effect:if Kn > Jn for values of n between 10 and...

0
Q: blender save as game engine runtime doesn't work

Maor2871i built a game engine with blender and now i want to export it as exe file. i opened the user preferences and in game engine i chose the "Game Engine: save as game engine runtime" then i pressed file -> export -> save as game engine runtime i also pressed file -> external data -> pack all into...

0
Q: Intecepting Rest Controller responses

MfswiggsI am building a REST service using spring boot. My controller is annotated with @RestController. For debugging purposes I want to intercept the ResponseEntity generated by each of the controller methods (if possible). Then I wish to construct a new ResponseEntity that is somewhat based on the one...

0
Q: openlayers-3 change external wms layer styles

user1939481Is it possible change the style of a external wms layer?? im trying to use this layer: https://firms.modaps.eosdis.nasa.gov/wms/?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=fires24&width=400&height=250&BBOX=-26,34,35,82 with this code on openlayers3 var fill = new ol.style.Fill({color: 'G...

0
Q: Best way to add sub module ignored content

gregsethI'm using a repository (B) as a submodule of my project (A). In that repo (B), there is an ingored directory, dedicated to local config files for that project. I'd like to version the content of that directory from my own project (A). Since those files are gitignored from (B), I thought I could...

0
Q: #1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation

LachieHello, I am currently having an issue with MySQL! What's going wrong here? I am a cPanel user, and yes I have searched this and found no definitive answers. It appears this is more specific than other people with the same error codes issues. Please add a detailed response that I can follow along...

0
Q: Why spark broadcast doesn't work well when I use extends App?

RenkaiThe first code throws null pointer exception. object TryBroadcast extends App{ val conf = new SparkConf().setAppName("o_o") val sc = new SparkContext(conf) val sample = sc.parallelize(1 to 1024) val bro = sc.broadcast(6666) val broSample = sample.map(x => x.toString + bro.value) broS...

0
Q: Rails production asset compress and integration

CannaFast Example, lets say, i have this js file, test.coffee alert 'test!' my goal is, I dont want this code to be loaded in every pages so i manually included where i want, <%= javascript_include_tag 'test'%> but the tragedy happens in production mode, this test.coffee is not minified in ...

0
Q: Does LibGit2Sharp support initialize shared repository?

Rifkyi want to use Bonobo git server and want to initialize --shared --bare repositories. i check the source code of bonobo git server and by default it creates bare repositories. i need to include --shared as well, but there is no function in LibGit2Sharp.init(path, bare) with shared option. i chec...

0
Q: How to skip a end in a nested if loop - Matlab (probably easy)

Giovanni RinaldiI have a nested if loop like this: if (condition 1) if (condition 2) statement end else if (condition 3) statement end en...

1
Q: Laravel-5 Queueing mail

V4n1ll4I'm trying to queue mail using Laravel-5. The code I am using is below. I was expecting the mail to get stored in the database in the 'jobs' table but it just gets sent instantly. Mail::queue('emails.orderthankyou', ['first_name' => 'My Name'], function ($m) { $m->to('me@myemail.com')->sub...

0
Q: How to use MySQL like with order by exact match first

Mohit BumbI'm using MySQL 5.5 so that's why I can't use FULLTEXT search so please don't suggest it. What I wanted to do is if user I have 5 records for example : Amitesh Ami Amit Abhi Arun and if someone searches for Ami then it should returns Ami first as exact match then Amit & Amitesh

0
Q: Facbook upload video ad: Error Code : 1363030. "Your video upload timed out before it could be completed"

TalK25I'm getting the following error in when I'm trying to upload video ad: Error Code : 1363030. "Your video upload timed out before it could be completed. This is probably because of a slow network connection or because the video you're trying to upload is too large. Please try again" the connection...

0
Q: iOS bluetooth connect and talk to bluetooth device

JInnI am developing an app that uses bluetooth to connect to my self made device and send simple text commands. Device's bluetooth is 2.1 version (profiles like SPP, HID, HDP supported, but LE not supported). Is there any way that my iPhone (4s and later) could talk to this device(MFI needed?)? Or I ...

0
Q: Measure occurrences in MS Access SQL

DemetrisI was wondering whether it is possible (and if it is, the way) to perform the following task in Microsoft Access: there are two tables; first one consists of three columns 1) ID 2) tweet text and 3) date. Second table is a single vector of words, like a lexicon. For every row of the first table, ...

0
Q: How to show an animated loading form while executing code in Windows Forms C#

Cristian MI want to display an animated loading form while executing some code in the main form. The animated form is used only to show the user that an operation is executing and I want to close it once the operation finishes. The code that I'm using is: public partial class Form_main_admin : Form ...

0
Q: How to solve Update environment operation is complete, but with errors. For more information error in AWS Elasticbeanstalk

RamRajVasaviI am using AWS Elasticbeanstalk for my project.When I uploading new version app it is giving error Update environment operation is complete, but with errors. For more information, see troubleshooting documentation My IAM role has AWSElasticbeanstalkFullAccess Then why I am getting this error...

0
Q: context.Database.ExecuteSqlCommand - Error code 701 - Microsoft Azure

Jimmyt1988I have the following code in the migration configuration seeding method: string sqlQuery = // 22 mb file contents context.Database.ExecuteSqlCommand( sqlQuery ); The ExecuteSqlCommand function is making Azure throw this error: The service has encountered an error processing your request. P...

0
Q: How to call a class method using ajax in c#

Shaiwal TripathiI have a class in my c# project. Let's say Sample.cs I want to call it's method using ajax, but don't know how to use class name in url of ajax, I am doing like this, but it's not working $.ajax({ type: "POST", url: "Sample.cs/MethodName", ...

0
Q: How to validate price range value in c#

RhymI'm working on my Add Materials for my Sales and Inventory. So far I need a validation where when adding a material, Selling Price must be greater than Purchase Price. Here is my code and I'm getting an error in the if/else statement where the values of my txtPurchasePrice and txtSellingPrice ar...

0
Q: display file content line by line in textview

Med Amine BejaouiI have this code below: I want to view every line by line in textview but there is a problem, public class Resulat2 extends Activity { private Handler h = new Handler(); private Handler mHandler = new Handler(); public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstance...

0
Q: Catch all Groups in document

Michał WolińskiI am looking for way to ungroup objects in MS Publisher 2010. For now I've noticed that groups are not catched by foreach (Publisher.Shape vShp in vPage.Shapes). Do you know how to catch them, or ideally ungroup? File for reference if needed: https://drive.google.com/file/d/0BxCNBW0W1-ZUQmVYSXc...

0
Q: Ajax call does not go into the success handler

Codehelphere is a scenario that I am stuck at: What I have A MVC ActionResult that's returning a Json: public ActionResult GetUpdates(string productId) { var updatesForProduct = _repository.GetUpdates(productId); if (updatesForProduct.Count != 0) { return Json( ...

0
Q: change attributes value using jquery

RajeevUSing jquery how to chnage the attributes ng-click and Create to Update of the following html <a class="btn pull-right btn-link" ng-click="create()" ng-class="{'btn-link-disabled':isSaveAndContinue,'btn-link':!isSaveAndContinue}">Create</a> $(".btn .pull-right .btn-link").attr() The final ou...

 
11:23 AM
@Moosebot unicorn @UnicornsAreVeryVeryYummy
 
user280395
@Mooseman Unicornification is unavailable for absent or non-existent users.
 
0
Q: TryUpdateModel ignoring properties in Visible="false" columns of GridView

MarkFlSo I have my UpdateMethod here: public void gvProducts_UpdateItem(Int32 ProductID) { ProductListModel model = new ProductListModel(); Product product = db.Products.Find(ProductID); if (product == null) { // MAF: The item wasn't found ModelState.AddModelError("",...

0
Q: An error occured to read the PNG file from file system on AWS Lambda

NoriI am using AWS Lambda and will read some file from Lambda function. A text file can be read, even though A png file can not be read. It seems to be kind of strange. Does AWS lambda can not read the PNG file? I did the following process: In order to upload to AWS Lambda, archiving a project. ...

0
Q: Does database partitioning also make sense for small tables?

Patrick FrombergOften you have a data model with many tables sharing a date column as part of the composed primary key for e.g. and you want to partition your data by that column. If you use a filegroup for each partition it make sense to also have the small tables partitioned in this model. This makes it easy ...

0
Q: How to get keyboard input of "CTRL L" command in VB

Adobe_14Is this the correct way of taking input from the keyboard (CTRL L)? dim WshShell set WshShell = CreateObject("WScript.Shell") wait(2) WshShell.SendKeys("^108") wait(2) or dim WshShell set WshShell = CreateObject("WScript.Shell") wait(2) WshShell.SendKeys("^l") wait(2)

0
Q: Dart Polymer core-selector advanced usage

Tom RussellI'm using the core-selector for multiple selection in this way: <core-selector> valueattr="label" value="{{foo.bar}}" on-core-select="{{selectFoo}}"> <core-item repeat="{{foo in foos}}" label="{{foo.bar}}> </core-item> </core-selector> Foo is defined like so: class Foo...

0
Q: Kodeine blade template extension not working

RahulI have used kodeine for Laravel user roles and permissions. No problem in installation and all the migrations. In documentation of kodeine/laravel-acl there is Blade Template Extension so the code to check users role is : // @if(Auth::check() && Auth::user()->is('admin|moderator')) // would be @...

0
Q: Extract the text using awk

user3834663I have the following information in input.txt file I would need to extract only below details from the input.txt file with out the "" (double quotes), Can some one help me on that please ? name="abc.net" model="Virtual" configuration="Server" text=""> name="def.net" model="Virtual" configura...

0
Q: Empty Property Dialog with Visual Studio 2013

ThomasL.I migrate my system from Visual Studio 2010 (VS2010) to Visual Studio 2013 (VS2013) by installing VS2013 side by side to VS2010. Then I opened a VS2010 project where I didn't convert it to VS2013 file format. When I open the property dialog it is empty. And deleting the .suo files didn't fix the ...

0
Q: Loop through Resultset in php

AFZAL KHANI am new to php and i am using PDO for db operations through a query i get the result set which is printed using print_r() function Output looks like Array ( [0] => Array ( [selection_id] => 8947562 [price_difference] => 1.02 [one_miniute_price] => 4.20 [on...

 
@Moosebot restart
 
user280395
@Mooseman One death and respawn coming right up!
 
user280395
Moosebot has been activated.
 
11:26 AM
@Moosebot unicornify @UnicornsAreVeryVeryYummy
 
user280395
@Mooseman Unicornification is unavailable for absent or non-existent users.
 
7 messages moved from Shadow's Den
 
0
Q: Proper implementation of singleton in javascript

Akshay Vijay JainI came across following implementation of singleton design pattern in javascript. var Singleton = (function () { var instance; function createInstance() { var object = new Object("I am the instance"); return object; } return { getInstance: function () { if (!instance){ ...

0
Q: Usergrid module of node.js fails while execution

Sushank Dahiwadkari am using usergrid module of node.js on my one machine, but now i got my new laptop, and installed all the required packages on laptop, but here the execution of usergrid module fails, while the same code and same modules gets executed on my machine. can anyone help me with this? and what i am...

0
Q: iOS Simulators in Xcode 6.4 showing multiple versions and have long "id" in the name

DirectXI have Xcode 6.4 installed and I also have Xcode 7 beta installed. Recently I launched Xcode 6 and I showed multiple versions of the iOS simulators and they had long id/like uuid looking ids in the names. Some of them do not work. Has anyone seen this and does anyone have an idea of how to fix...

0
Q: Adding specific class to image_tag within link_to in rails

David GeismarI wanted to add an image with text inside my link_to so I wrote this piece of code that is working fine : <%=link_to image_tag('fleche_droite.svg') + "Ajouter un joueur à la liste", invite_player_path(@tournament), class: "btn btn-success", id: "convocation-submit" %> the problem is that I nee...

0
Q: How to create a Prolog compiler in pure PHP language?

0mfI am using pure PHP language for my amateur programming, now. And, I am using Prolog language for logic courses, too. Many weeks ago, I found this interesting topic (2D1456), some Prolog interpreters in PHP (on GitHub). I don't want to use complex interpreters as available interpreters on GitHu...

0
Q: linq left right joins

Gytis SI'm trying to make all B, S, M table combinations with all joins. B in S in M from var0 in ctx.B join var1 in ctx.S on var0.B_id equals var1.parentId into var1Group from var1 in var1Group join var2 in ctx.M on var1.S_id equals var2.parentId B in S le M from var0 in ctx.B join var1 in ctx.S ...

0
Q: two way chat application in java using MVC

NeelGuys can any one help me to create two way chat application in java using MVC. Me done with windows application using Socket programming but now i have to develop same thing in web application. Please provide me some stuff which can help me to move forward...

0
Q: How can I populate attributes of a POJO by maps key and value

user3386493Say I have a Map<String,String> and a POJO like below class Model { String name; String value; } I need to populate the name and value of Model by key and value of EntrySet of Map. Apart from iterating over the Map and doing the same is there any API available that can convert this map t...

0
Q: Multiple web applications in IIS with one of them as default

tompIs it possible to achieve the following web application infrastructure in IIS? I would like to have a web site with 3 or more applications in it: Foo Bar Site (Web Site) ScheduledServices (Web Application) Administration (Web Application) Store (Web Application) URLs that look like http:/...

0
Q: How to import data from a .sql file which has gzipped content on windows

user2086520I have used the below command to compress and backup my data in a Linux server. mysqldump -u root --triggers --routines --all-databases | gzip > MyDBs.sql Now i would like to have all these data restored in my local machine which is a windows 7 machine. When i tried importing the same in MySQL G...

0
Q: Should I include compressed files in subversion system?

revaxartsI compress all my JavaScript files and CSS files with YUI Compressor yuicompressor -o '.js$:.min.js' *.js -v Should I keep the minified files in my subversion system or not? I know both is possible but I'm searching for "best practice" and the pros and cons

0
Q: Enable Javascript on Windows Server 2008 R2

Meraj Ahmed SiddiquiI have developed a C#.Net desktop application to import/export invoices from XERO, using XERO API. Connectivity with XERO is perfect when application executed on Windows 7 or Windows 8 machine. But when executed on Windows Server 2008 R2 it fails. Message displays on the page... "Xero requires...

0
Q: How to add an auto increment column in java?

Ankush TyagiI want to add the database from my jform and there's a column which will be auto incremented, like when i click done, the data will be inserted and a column 'receipt_no' will have a value 1. Next time i click done then this value should be 2 and so on. So the problem is, i have created a table wi...

0
Q: uploading sketch in arduino

Pankaj Kumarhey i am working on making an interface between matlab and arduino. in other words , i want to send some data from matlab to arduino. i have written programmes both in matlab and arduino ide. matlab programme: c = 1; if (c ~= 0 ) f = 1; else disp('vhxhjf'); end disp(f) arduino=...

0
Q: Selecting An Element In Web Browser VB

HudsonWY<td class="data-display-field" width="20%" valign="top"> <table class="printtotal" cellspacing="0" cellpadding="0" width="100%" ><tbody> <tr class="list-row"> <td class="data-display-field" width="60%" style="font-weight: bold" align="center" colspan="2">Order Totals</td> </tr> ...

0
Q: SAS EG or Proc Sql

Arun VinoI have data like this. recode raw_model start_date stop_date. I wanna find out any Raw Model with more than one Recode where the the manufacturing Start and Stop dates overlap between recodes (two are active at the same time using SAS EG or proc sql. Any help would be really appreciated. Thanks

0
Q: Out of memory permgen space when running as service

George-Blackstar7I have Jboss 7.1.1 AS and when I run it as service, after some time when I use jasper reports I get exception: java.lang.OutOfMemoryError: PermGen space Notice that this does not happen at all when I run it from Jboss developer studio. What should I do ?

0
Q: matlab: inputdlg dialog box comes with tick labels

Ugur ParlatanI have a user input request box basically written as matlab suggests in http://www.mathworks.com/help/matlab/ref/inputdlg.html . prompt = {'Enter spot number'}; dlg_title = 'Input'; num_lines = 1; def = {'9'}; answer = inputdlg(prompt,dlg_title,num_lines,def); handles.count = str2double(answer{...

0
Q: paintComponent dont work cant find the reason

TiciusI know, this is a very basic question but i have no idea why my paintComponent does nothing. Its main functionality should be to draw an image but it not even draw a rect or circle. So please help me -.- Class with JFrame: public class JuliaView extends JFrame implements Observer{ //:::: ACTIO...

0
Q: Creating cms block and calling in phtml

MZ GameI just created a cms block from magento admin panel and now I want to get it into the phtml I tried this way: $this->getLayout()->createBlock('cms/block')->setBlockId('ostore_footerb1-it')->toHtml(); But its not working for me showing nothing.

0
Q: Are there any inbuilt GUI modules in python 3.4?

Chand SethiI am learning python from a video tutorial series that uses a GUI called 'simpleGUI'. It is not inbuilt in python so I had to download install a similar module called 'simpleGUITK'. I'm new to python and I wish to know if there is any inbuilt module that I can import without any installation ...

-1
Q: How to use onchange function select tag for javascript

Süleyman KI am trying to update my combobox values while user changing it. in html codes: <select class="combobox" id="recs" name="recs" onchange="changeRecs"> <option value=5>5</option> <option value=10>10</option> <option value=20>20</option> </select> javascript codes: $scope.changeRecs...

1
Q: Why this code throws an NullPointerException?

amarim new to Java. I found this example in a book. I expected it to print "ab" or "abc", but it throws exception instead. Can somebody explain why it happens? Thanks in advance. public class Test { class A { String str = "ab"; A() { printLength(); } ...

0
Q: Combining of Multiple columns in Where clause

Jayanth SrivastavWHERE (K.PATH OR K.ITEM_NAME) LIKE '%File Delivery and Specialized Product Team (CSTART)%' Is this a valid query for WHERE clause?

0
Q: Mysql Query Not Working giving duplicate records

zeeshan MushtaqI have two table tblclients and mod_autorenewdomain tblclients columns which I required: id firstname lastname mod_autorenewdomain columns: id userid autorenew days I have inserted in mod_autorenewel table, next I want to show the clients which are not added in mod_autorenewel table The q...

0
Q: How to create android app using html5

aman aliI am new to android. I heard we can create android applications using HTML5, is it true ? If yes, which software i have to use to create and test applications.

0
Q: Regex to replace all occurences of space with plus sign within the href attribute in mod_substitute

Karan AmarnaniHere's my problem. I want to change all the occurrence of blank spaces in the href attribute of the response HTML to the plus (+) sign. href="example.com/sites/site-name/index.page?path=categotry1/category2/sub category1/file.xml" should get change to: href="example.com/sites/site-name/index....

0
Q: Reading multiple csvfiles faster into data.table R

CarloI have 900000 csvfiles which i want to combine into one big data.table. For this case i created a forloop which reads every file one by one and ads them to the data.table. The Problem is that it is performing to slow and the amount of time used is expanding exponentially. It would be great if som...

0
Q: How to traverse a directory in python?

王王王def traverse_dir(fd): for dir_path,subpaths,files in os.walk(fd): print dir_path,subpaths for file in files: print "file:%s" %file def traverse_func(arg,dirname,files): print dirname for file in files: print "file:%s" %file os.pa...

-1
Q: list of tuples as input in neural network with pybrain

user2007716I am trying to find a way to give a list of tuples, for example the following one: [((1,2), (4,5)), ((1,4), (5,6))] as input to a neural network using pybrain.

0
Q: How to load a partial view in dynamically created tab on a view without using Iframe concept

Dilip Kumar TripathyI have left link in my project and i want to create tab dynamically and load a view or partial view in the same tab while click on left link.

0
Q: how to reffer non static variable from static method?

borraQ)i got one compile error 10::non-static variable this can not be refferenced from the static content what to do now?? class Computer { void method() { System.out.println("this i objects"); } public static void main(String[] args) { Laptop mtd = ne...

0
Q: Bootstrap fixed sidebar example

Anuj BatweTry the bootstrap dashboard example http://getbootstrap.com/examples/dashboard/ My interest is primarily in using their fixed sidebar template. But interestingly, the sidebar and its contents disappear when you switch to a smaller viewport (in case of desktop, smaller window screen). Is it rea...

0
Q: How to read properties file from meta-inf folder from plain java class

sahoo1989How to read properties file from meta-inf folder in a web application from plain java class.

0
Q: unable to find driver - lamp debian

micheleThis is my php sample script: <?php try{ $db=new PDO('mysql:dbname=_mydb;host=localhost', 'root', 'xxxxxx'); }catch(PDOException $e) { echo "Error: ".$e->getMessage(); } ?> And I have returned: could not find driver Also: user@nbook:~$ php -i|grep PDO PDO PDO support => enabled PD...

0
Q: Prevent scrolling

André MataI have this div, and i need it to be fixed, but i can't use position fixed (the site goes to the left when i push a button, and if the div it's fixed, t will stay in the same spot)... How can i do it? #baar{ height: 56px; width: 100%; background: linear-gradient(top, #e3e3e3 0%, #f9f9f9 100%); ...

0
Q: Can hadoop job use jars on hdfs?

sleeEverytime I run my mapreduce job, I will create a fatjar which is very big and time consumption. I wonder whether hadoop provides an option that I can put dependent jars on hdfs like spark-addjars option.

0
Q: Mediaelement js not working with cloudfront

user430926I have problem to play video (ts file & m3u8) from cloudfront. I used https://s3.xxxx/bucketname/live.m3u8 and it's working it can play using mediaelement.js, but if I use https://xxx.cloudfront.net/live.m3u8 is not working. If I use browser to download the m3u8 file using both urls from s3 or c...

-5
Q: Logo shows under image

user3071261As you can see in the image, my logo is partially under my image. How can I display it fully above it? Z-index doesn't seem to work..

0
Q: How to pass edittext value from android to java RESTFUL webservice url

AppuIm very new for android,Im using java restful webservice for login purpose.. Webservice url: http://localhost:8084/TestWebApp/webresources/userbay/signin?mobile=username&code=password Here username and password Edittext value from android. My question is ,How to pass the Edittext value from a...

0
Q: Play 1.2.5 ConcurrentModification exceptions

user12384512Strange multiple exceptions in Plya logs (1.2.5) Java. Any reason of such behavior ? play.exceptions.UnexpectedException: Unexpected Error at play.mvc.ActionInvoker.invoke(ActionInvoker.java:264) at play.server.ServletWrapper$ServletInvocation.execute(ServletWrapper.java:561) ...

0
Q: How to get rid of gradient color system in Tableau line chart

Hariharan AnbazhaganIm getting gradient colored lines over the chart. How can I bring them to single color ? TIA

0
Q: System denies access to Win32_Processor using ManagementClass from c#

a.torabyI've written this code to get cpu Id for creating a fingerprint, So I can use it for generating a request code and software activation: System.Management.ManagementClass m = new System.Management.ManagementClass("Win32_Processor"); System.Management.ManagementObjectCollection moc = m.GetInstanc...

0
Q: NSError domain check condition fails in iOS 8

Pankaji am using WKWebView for iOS 8 devices and wants to check if the error occuring is NSURLErrorDomain then I want to make some changes, till now, I have added below code, but somehow the compiler goes into else part, now sure why. - (void)webView:(WKWebView *)webView didFailNavigation:(WKNavigatio...

0
Q: Preflight CORS check on every request with Authorization header

Ben SmithI am making successful xDomain requests with appropriate CORS headers. As soon as I introduced the Authorization header, Chrome started making the preflight OPTIONS request before every API request. I'd really rather not go make the authorization token part of the query string. Preflight check ...

0
Q: How to use function which return array and I need just first element - OOP

AnduritI have a function which returns something like this: return array($row['city_for_work'],$row['id'] ); Where city_for_work is string which need to be unserealize and id is simple integer. If I return just city_of_work I can simply use this, but i cant right now becuase it expect string and get...

0
Q: Elasticsearch indexed search template generates empty strings in array

Evaldas BuinauskasFirst of all, this is taken from documentation: Passing an array of strings GET /_search/template { "template": { "query": { "terms": { "status": [ "{{#status}}", "{{.}}", "{{/status}}" ] } } }, "params": { "status":...

-2
Q: VBA Outlook - Extract Outlook Properties of a sender of a mail

hedidev1i want to extract properties, like phone number, society, email,... from an e-mail which is in my inbox ! Thanks a lot !

0
Q: Unable to delete and update entry in SQLite database while selecting through list view

Sudarshan sridharMy app similar to todo application where list of todos are associated with a tag Ex: tag1: "Sunday" todo list: Task: "wake up late" info: "task1" Task: "break fast" info: "task2" tag2 : "Monday" todo list: Task: "wake up at 6" info: "to early wakeup" Task...

0
Q: Advanced filtering across multiple sheets VBA

user2438434I need to filter different sheets. I'm using Advanced Filters and it works with one sheet but now I need to add the other sheet. Is this the right way to do this because I'm getting the 438 error:"object doesn't support this property or method" ? Sheets(Array("RawData", "RawData2")).Range("Tab...

0
Q: PHP not detect GET language from rewrite url

PerspolisI have this multi language rewrite url from .htaccess: RewriteEngine On RewriteBase /pms/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^((fr))/([A-Za-z0-9-]+)/([0-9]+)/([A-Za-z0-9-]+)/?.html$ article.php?page=$3&id=$4&title=$5$lang=$1 [NC,L,QSA] in articl...

0
Q: How to connect force directed graph to a simple rectangle in d3?

thirdknifeI need to attach a force directed graph to set of rectangles arranged together using d3. You can see the reference image http://i.imgur.com/x8E70S2.jpg for the desired result. Looking forward for answers.

0
Q: Using Mocha with synchronizedjs

kedritschI'm trying to use synchronizedjs in my testcaes, but now any test passes. test.it("Clicking previous week button, causes loading previous week",()=>{ sync.fiber(()=>{ var currentMondayText = sync.await(driver.findElements(webdriver.By.className("date"))).getText(); ...

0
Q: count of comments by each user - mysql

GuruSuppose on facebook a user puts his status and then others comment on that status. So, a situation like this evolves: User 1 : My status 1 FB user 2: comment1 FB user 3: comment2 FB user 2: comment3 FB user 4: comment5 User 2 : My status 2 FB user 2: comment6 FB user 3: comment7 FB user 2: com...

0
Q: Java, Dropbox : Get access token without copy pasting by user.

We are BorgI am working on a Spring-MVC application and I would like to integrate Dropbox functionality into it. As I read the examples, I saw that there is some code which I can use. But this involves the user copy pasting the access token, which is not applicable in real world applications, plus I cannot...

 

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