How to do Python Replace Syntax?
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
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
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...
How to call a xslt from a xslt?
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?
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#
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
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 ...
React - flux - Store dont react on dispatch() but another do
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...
onCreateDialog depreciated in Android licensing lvl
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 sell items live on google spreadsheets?
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?
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
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?
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?)