getElementById in Polymer element
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
15:36
Vote count: 0 How can I use getElementById in a Polymer custom element? Here is my element: <link rel="import" href="../bower_components/polymer/polymer.html"> <link rel="import" href="../styles/shared-styles.html"> <dom-module id="bb-calendar"> <template> <style is="custom-style" include="shared-st...
How to get Excel XML to keep leading zeros in strings?
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
14:14
Vote count: 0 I am trying to generate an XML file through Ruby: <ss:Cell> <ss:Data ss:Type="String">0000023</ss:Data> </ss:Cell> However my invoice numbers all display in Excel with a green (and ugly) comment triangle. When I then click the cell, the leading zeros are stripped and the comment disapp...
Working with styling in ReactJS
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
14:14
Vote count: 0 I want to implement CSS in reactjs, but from this url ReactJS - Animations I can't get what is happening? and how to style page through any CSS in reactjs? is there any resource available on net?? Any help will be appreciable. asked 23 secs agouser6002727 Let's block ads! (Why?)
Extract the content from Wikipedia JSON file
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
14:14
Vote count: 0 I am getting the content of "Sullivan County, Pe sylvania" in json format from wikipedia by following api url https://en.wikipedia.org/w/api.php?action=query&titles=Sullivan_County,_Pe sylvania&prop=revisions&rvprop=content&format=json Now i want to display the content in well HTML for...
R : get string between braces { }
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
12:42
Vote count: 0 I need to get the characters between braces { }. For example, a <- "{a,b} xyz {v}" Output : a,b and v asked 57 secs agoanz Let's block ads! (Why?)
How to just get php array values
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
12:42
Vote count: 0 I want to insert an array into my db but I just want the values. Right now it's giving me all of this a:1:{i:0;s:38:"ARRAY VALUE";} I just want the part "ARRAY VALUE" to insert into db. Thank you asked 38 secs agoDylan12 Let's block ads! (Why?)
sorting multidimensional array numerically and lexicographically javascript
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
12:42
Vote count: 0 I have been breaking my brain for the last 2 days trying to find a solution to the problem but I can't figure it out. I need to sort an array of arrays first numerically and then lexicographically. While a custom a < b function can solve the first, a normal array.sort() can do the seco...
How to make Pagination with Object array in Cakephp?
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
11:25
Vote count: 0 $this->paginate = array( 'paramType' => 'querystring', 'limit' => $limit, 'maxLimit' => 100, 'order' => array('id' => 'desc'), ); $conditions = array(); foreach ($arr as $key => $value) { // debug($value); $conditions[] = array( 'conditions' => array( 'Content.id' => $value )); asked 1...
Suggestion on logging with static class
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
11:25
Vote count: 0 I am currently facing an issue related to logging messages in my WPF application. I am keeping a static class for logging messages throughout my application which contains a function private SomeService service = new SomeService(); private void LogMessage(string message) { service.Log(...
Angular, get data from web service
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
11:25
Vote count: 0 I got service in angular with defined function: angular.module('services-data-service', []).factory('DataService', function ($resource) { retu $resource('rest/data/:method/', {}, { dictionary:{method:'GET', params:{method:'data1'}, isArray:false} ... }); }); I fetch data in controller ...
Switching Between Different Images Using Seekbar
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
9:25
Vote count: 0 I am trying to switch between six different images based upon the value of the seekbar (0-5). I am stuck and would welcome any suggestions/help. It compiles and runs, but the app crashes as soon as I try and click on question 1. Here is what I have for the seekbar: public void seekbar(...
How to recreate child collection on Entity Framework 7?
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
9:25
Vote count: 0 I have an entity with a child collection that I want to recreate on update. My approach is just to clear entity.Items and regenerate collection, then I update try to update the entity on database. Unfortunately I'm getting The instance of entity type 'TestProject.Item' ca ot be tracked...
How are Equals and GetHashCode implemented on anonymous types?
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
9:25
Vote count: 0 The Help says this: Anonymous types are class types that derive directly from object, and that ca ot be cast to any type except object. The compiler provides a name for each anonymous type, although your application ca ot access it. From the perspective of the common language runtime, ...
Hide all Relative Layout with a Function except one we choose
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
8:24
Vote count: 0 I have created 5 Relative Layouts in Android Studio Project (This will be more that 40) with same size. I also create Buttons so that if Someone Clicks on Lesson 1 button than Only layout1(id of first Layout) Layout Shows on the Screen and Other Layout automatically Hide, if user click...
GUI Tkinter: start button is working, stop button is not working
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
8:24
Vote count: 0 I was trying to use the "Start" and "Stop" button in GUI using Tkinter. I am using Raspberry Pi 3 and python 2.7 version, start button is working properly, stop button is not working. Someone, please suggest some solution. Thanks Mehnaz from __future__ import print_function, division i...
Large database needs reconciling
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
8:24
Vote count: 0 I have a very large database with a unique form_id key and a lot of other information. Some how some of the evaluations got put into the database with a space in front of the supervisor_name (i.e. 'test test' vs ' test test') so it is messing up search results of the same supervisor in...
What could cause EvoPDF "unable to render html" exception when deployed to Azure Website
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
7:16
Vote count: 0 Using EvoPDF for a .Net web application works locally, however once deployed to a Microsoft Azure website it throws a generic exception: "unable to render html". Stack trace: [Exception: Could not render the HTML string.] EvoPdf.HtmlToImageConverter.ᜀ(String A_0, String A_1, String A_2...
Get folder with highest number, add 1 to it
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
7:16
Vote count: 0 So, I have a simple batch program, but I'm having trouble with some code. Let's say I have this: set %expdir%=C:GameDeployment echo Enter Export Number, or Enter X for Automatic set /p basenumb="Number: " if "%basenumb%"=="x" ( goto foo ) else ( goto bar ) :foo rem //Calculate Biggest ...
View class and Activity class communicaction
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
7:16
Vote count: 0 I created a class that extends View, and I have a class, where MainActivity called the View. How I can change my listview, depending on what throws me my view class ?. code: this is part of my view class: public class ViewClass extends View { //... if (recognitionPlane(touchX, touchY) ...
How to draw an arbitrary shape using html canvas?
◷
تاریخ انتشار:
1395/5/4
|
ساعت:
6:12
Vote count: 0 I'm trying to draw this chart-like shape on an html canvas: 0 100 . . 200 . . . 300 . . . 400 . . . . 500 ................................. I can't see anything wrong with my shape's co-ordinates: (0, 500), (0, 400), (100, 400), (200, 300), (300, 200), (400, 100), (400, 500) Html/js: <...