How to do Python Replace Syntax?
◷
تاریخ انتشار: 1395/5/1 | ساعت: 20:28
Vote count: -1 I'm new to Programming so please forebear with me. I'm trying to do a replace syntax in Python but the syntax keeps showing an error. I've done research on the community and have tried various tactics and techniques suggested all resulting in futile. Please provide insights!!!!!! Than...
QGraphicsPixmapItem rotate only the image
◷
تاریخ انتشار: 1395/5/1 | ساعت: 20:28
Vote count: 0 Well after looking for hours on the web i couldn't find anything. So i was trying to make a towerDefence game and the towers are moving around the enemy. Anyway i tried the following code: this->pixmap().transformed(QTransform().rotate(90)); But it is not rotating at 90 degres :( Maybe...
Static resource reload with akka-http
◷
تاریخ انتشار: 1395/5/1 | ساعت: 18:00
Vote count: 0 In short: is it possible to reload static resources using akka-http? A bit more: I have Scala project. I'm using App object to launch my Main class. I'm using getFromResourceDirectory to locate my resource folder. What I would like to have is to hot-swap my static resources during deve...
Bootstrap: responsive utitlities is not working
◷
تاریخ انتشار: 1395/5/1 | ساعت: 18:00
Vote count: 0 I expected this div: http://www.bootply.com/yjJo9wg1Xa# to be hidden when I press the mobile phone icon on the right. asked 25 secs agoziiweb Let's block ads! (Why?)
How to call a xslt from a xslt?
◷
تاریخ انتشار: 1395/5/1 | ساعت: 18:00
Vote count: 0 I'm looking for a possibility of calling a 2nd xslt from 1st xslt. My xml-Input looks like <xml> <Subject name ="A1" type="a"> <Subject name ="B2" type="b"> <Subject name ="C1" type="c"> <Subject name ="A2" type="a"> <Subject name ="B1" type="b"> <Subject name ="C2" type="c"> <Subject ...
How Makefile split string into individual words?
◷
تاریخ انتشار: 1395/5/1 | ساعت: 15:03
Vote count: 0 I write a Makefile like this: all: @echo $(wildcard $(include)/*.sh) @echo $(include) .PHONY:all I input make "include=~" and output is /home/ubuntu/caps_esc.sh /home/ubuntu/ss.sh /home/ubuntu But when inputing make "include=~ "(note the white space!) the output is /home/ubuntu /home/u...
datetime checker using if else condition c#
◷
تاریخ انتشار: 1395/5/1 | ساعت: 15:03
Vote count: 0 i use this code check date availability from the database and so i use one textbox which is linked to a datepicker ui and a dropdownlist to select time. the problem is if i select a date and fullday and if it is in database table already it shows date unavailable as its supposed to sam...
Give Permission to Users in Alfresco
◷
تاریخ انتشار: 1395/5/1 | ساعت: 15:03
Vote count: 0 I want to give different type of permission(eg- read, write) of specific folder or documents to different different users in alfresco. For example there is a folder called A, I want to give read permission for user1, write permission for user2 like that. Please some one suggest me how ...
In a play framework config (hocon), how do I use an environment variable or a default?
◷
تاریخ انتشار: 1395/5/1 | ساعت: 14:03
Vote count: 0 In application.conf, how do I use a environment variable to set a value, or a default if said environment variable is empty? asked 27 secs agoReactormonk Let's block ads! (Why?)
React - flux - Store dont react on dispatch() but another do
◷
تاریخ انتشار: 1395/5/1 | ساعت: 14:03
Vote count: 0 I have 2 Stores a lot similar. First listen react on dispatch() right but another dont. My dispatcher: var Dispatcher = require('flux').Dispatcher; var JustDispatcher = new Dispatcher(); JustDispatcher.handleAction = function(action){ console.log('dispatcher',action); this.dispatch({ s...
How to use redis as message queue in asp.net core 1.0?
◷
تاریخ انتشار: 1395/5/1 | ساعت: 14:03
Vote count: 0 How to use Redis as message queue in asp.net core 1.0? How to co ecting Redis in asp.net core 1.0? asked 19 secs agoNeallin Let's block ads! (Why?)
onCreateDialog depreciated in Android licensing lvl
◷
تاریخ انتشار: 1395/5/1 | ساعت: 12:37
Vote count: 0 To correct the following by removing the deprecated code, would you use a dialogue fragment? Or is there is different/cleaner way to update this? I am fairly new and after much reading, I am wondering if I am over-complicating this? protected Dialog onCreateDialog(int id) { final boole...
How to check for difference in previous and next value in React?
◷
تاریخ انتشار: 1395/5/1 | ساعت: 12:37
Vote count: 0 Was working with the code below for sending a list of values to another component - React.createElement("ul",null, this.state.stock.map(function (value){ retu (React.createElement(Price, { price: value })) }) ) and then the values will be send to the component below - var initialPrice ...
JQuery can you show a different element on each subsequent click?
◷
تاریخ انتشار: 1395/5/1 | ساعت: 12:37
Vote count: 0 I have a really simple idea... have a button (class="upload") that on each subsequent click, I want it to show a new div, for a set maximum number of times. For example: $('.upload').click(function() { $('.upload_block2').show(0); }, function() { $('.upload_block3').show(0); }, functio...
Google Apps Script - Publish app as me, but still get active user's email
◷
تاریخ انتشار: 1395/5/1 | ساعت: 11:27
Vote count: 0 I am using a google sheet as a database and all I need is to get the user's identity to display the proper info. I included the following code to retrieve the user's email address:var userEmail = Session.getActiveUser().getEmail(); But all it gives me is a blank string since I publishe...
UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 3131: invalid start byte
◷
تاریخ انتشار: 1395/5/1 | ساعت: 11:27
Vote count: 0 I am trying to read and parse twitter data from json file using python 2.7.12. Code I used is such: import json import sys reload(sys) sys.setdefaultencoding('utf-8') def get_tweets_from_file(file_name): tweets = [] with open(file_name, 'rw') as twitter_file: for line in twitter_file: ...
How to sell items live on google spreadsheets?
◷
تاریخ انتشار: 1395/5/1 | ساعت: 11:27
Vote count: 0 I have a list of 960 items with a count for each. I am sharing a spreadsheet with 20 people who want to buy these items (Price is not a conce here). I need the spreadsheet to automatically update the number of items once someone enters say they want some items (1,2,3 any number less th...
C++11 variadic function without template type?
◷
تاریخ انتشار: 1395/5/1 | ساعت: 8:59
Vote count: -3 Is it possible to have a function with a variadic number of non-template-type parameters? For example, a function that takes an arbitrary number of strings std::string concat_all() { retu ""; } std::string concat_all(std::string const& s, std::string const&... t) // won't compile { re...
PHPUnit mocked method returns null
◷
تاریخ انتشار: 1395/5/1 | ساعت: 8:59
Vote count: 0 I am trying to test the below class using PHPUnit class stripe extends paymentValidator { public $apiKey; public function __construct ($apiKey){ $this->apiKey = $apiKey; } public function charge($token) { try { retu $this->requestStripe($token); } catch(StripeErrorCard $e) { echo $e->g...
How to make ios config file?
◷
تاریخ انتشار: 1395/5/1 | ساعت: 8:59
Vote count: 0 How to make objective-c in ios config file not plist file? This file would be used by complete application for configuring variables. Do i need to write a object class for that ? asked 13 secs agoManzoor Let's block ads! (Why?)