Vote count: -1 I want to lea Ruby, and I want to get more experience doing Android development. Is using RubyMotion a good way to achieve both goals at once? What are the downsides of using RubyMotion? The primary goal is leaing as opposed to other considerations like integrating with an already existing body of Java code, taking advantage of my Java skills, etc. asked 2 mins agoKartick Vaddadi Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I would like to select the range of cells using rows and columns information. The idea is to select entire column and entire row and then make selection of the overlapping areas. Is it possible to do this in Excel VBA? The idea visualized here asked 2 mins agoJoel Kanerva Let's block ads! بخوانید...
ادامه مطلبVote count: 0 See Merging multiple custom observables in RX for background. My scenario is that I have a number of arbitrary sensors (hardware). I have written some pluggable modules that can coect to these sensors in C#. They currently each use a thread to run an acquisition routine on a timer. The larger goal is to change polling to RX as well once I understand how! There is a requirement to monitor these sensors in groups so I was thinking there would be an aggregated topic where a monitor could subscribe to for updates from a particular group of sensors (Temperature, Signal Strength etc) and potentially make changes to the behaviour of the system based on the readings from the sensors. A...
ادامه مطلبVote count: 0 the half circles baer I want to make I wish to make it on the head of my sites' homepage, like a decoration, but not necessarily in a fixed position. Thanks everyone! asked 1 min agoDummyMe Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have problem with using chained javascript on my form. I use table to add dynamic input. The add didn't works. for the example, look at this the html : Add -- BMW Audi -- 3 series 5 series 6 series A3 A4 A5 -- 1 2 3 here's the javascipt : $(document).ready(function() { var row = $('#tableID tbody:first').html(); $("#series").chained("#mark"); function addRow(tableID) { $(row).appendTo('#tableID'); var rowCnt = $('#tableID tbody>tr').length; $('#tableID tbody>tr:last #mark').attr('id', 'mark' + rowCnt); $('#tableID tbody>tr:last #series').attr('id', 'series' + rowCnt); $('#series' + rowCnt).chained("#mark" + rowCnt); } }); I don't know why the javascript didn't works. thank yo...
ادامه مطلبVote count: 0 I'm having a little issue with some XLST stripping out HTML tags in a podcast feed. Can anyone suggest a way of doing this so that the field retus plain text data? Here is my XSLT - -...
ادامه مطلبVote count: 0 I have a ScrollViewer that contains an ItemsControl where the ItemsSource could have no elements. I want to prevent that the ScrollViewer change its height when the ItemsSource is empty without using a fixed value. This is the code: Does anyone have some idea to solve this problem? Thank you asked 1 min agoMartinaLabMath Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am trying to create a .txt file in a folder which is not the directory the script is being run from. I have a folder where the script is, and I am able to create the folder in the same directory the script is in but It won't create the text file in the folder. I usually run in to one of two errors: PermissionError: [Ero 13] Permission deniedor, FileNotFoundError: [Ero 2] No such file or directory: This is for a password keeper btw, and to prevent five people telling me it's not secure, I am aware of this, this project is purely educational and I always use placeholders. Here is my code: def main(): import os import os.path abc = open("userpassfile.txt", "r+") userpassfile = a...
ادامه مطلبVote count: 0 I have looked at various solutions posted i.e. parsing, substrings and splitting and none of them either produce a value or the required value. The format received via Salesforce API is "2014-08-19T02:26:00.000+0000" Essentially I would like a custom function that can be used within Google Sheets to convert this date/time format and take daylight saving into consideration Thank you beforehand asked 2 mins agoGadget Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I want to create a series of different color sprites using a single gray scale image: For example, if I use blue color with blendingMode: .Color in a software (Sketch, AI, etc), I get: Then I create a subclass of SKSpriteNode, use init method like this: init() { let image = UIImage(named: "gem1") // let image = UIImage(named: "gem1")?.imageWithRenderingMode(.AlwaysTemplate) let coloredImage = image?.blendColored(someColor, blendMode: .Color) let texture = SKTexture(image: coloredImage!) super.init(texture: texture, color: UIColor.clearColor(), size: texture.size()) } But I get the sprite like this: Definitely not what I want. When I change the color blend mode to .Multiply I go...
ادامه مطلبVote count: 0 I am porting an Android app to Swift IOS. The Android app currently employs a custom split pane view as a child activity. The functionality of the UISplitViewController fits the bill perfectly for the IOS app, however Apple state: You caot push a split view controller onto a navigation stack. Although it is possible to install a split view controller as a child in some other container view controllers, doing is not recommended in most cases. Split view controllers are normally installed at the root of your app’s window. For tips and guidance about ways to implement your interface, Has anyone founs a way around this limitation using Swift? asked 47 secs agoRatatat Richie Let's b...
ادامه مطلبVote count: 0 This is my first steps in Swift (i usually use c#, ASP.NET) and I want to play stream audio from the inteet. I wrote code that plays stream but it don't have any buffer so if signal is weak application stop playing audio. This is my code: import UIKit import AVFoundation import MediaPlayer import AudioToolbox class ViewController: UIViewController { var playerItem:AVPlayerItem? var player:AVPlayer? @IBOutlet weak var PlayButton: UIButton! override func viewDidLoad() { super.viewDidLoad() var buffer = AVAudioBuffer () let url = NSURL (string: "http://radio.afera.com.pl/afera64.aac") playerItem = AVPlayerItem(URL: url!) player = AVPlayer(playerItem: playerItem!) } override func d...
ادامه مطلبVote count: 0 I want to increase UISlider height using color or any other way. I do not want to use image. I do not want to set setMaximumTrackImage & setMinimumTrackImage. How can i implement this ? asked 3 mins agoMoni_BQ Let's block ads! بخوانید...
ادامه مطلبVote count: -1 I am trying to build an app that uses Ideone API for compiling and ruing programs in C. It can be coected using WSDL and SOAP Protocol. But it requires API Password and I don't know how to get it. asked 1 min agohimi Let's block ads! بخوانید...
ادامه مطلبVote count: 0 i want to display google map on my vb project with web browser on toolbox, but when i start run the program why it show "You seem to be using an unsupported browser" please help me fix this problem asked 3 mins agoAlbaa Let's block ads! بخوانید...
ادامه مطلبVote count: -1 # This Python file uses the following encoding: utf-8 import random import itertools d = {'1':'first','2':'second','3':'third','4':'fourth','5':'fifth' } def main(): # Get first list and check for correct length, no duplicates, all integers, numbers are in range of 1-20, and there are no decimal numbers userInput1 = InputList('1') while not (CheckForLength(userInput1) and CheckForDuplicates(userInput1) and CheckForIntegers(userInput1) and CheckForWithinRange(userInput1) and CheckForWholeNumber(userInput1)): userInput1 = InputList('1') # Get second list and check for correct length, no duplicates, all integers, numbers are in range of 1-20, and there are no decimal numbers user...
ادامه مطلبVote count: 0 I am trying to update node values in a .xml file using a loop. The oXMlFile.SelectSingleNode line shown correctly updates a single node, but I don't know how to modify the code so that I can loop though all the nodes and update the values. Any help would be appreciated. Set oXMLFile = CreateObject("Microsoft.XMLDOM") oXMLFile.Load (ConfigFile) 'Update Node Attributes Dim ii, TotChan As String ii = 0 TotCh = 500 Do While (ii < TotCh - 1) Set CalibrationDateTimeNode=oXMLFile.SelectSingleNode("/HConfig/Signal[0]/CalibrationDateTime") CalibrationDateTimeNode.Text = "2016-04-16" ii = ii + 1 Loop asked 1 min agojmjaeckels Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Can anyone provide assistance for using a text field inside a UiCollectionView. What I'm trying to accomplish is a collection view that holds images for a user to post. With these images I'd like to give them the chance to caption each individual image. The issue that I'm having, which I'm certain other's are having is this; once a user types in a text field the input automatically fills a text field later on. Example: 5 Images with text fields. Image 1's caption user types "hello" Image 2's caption user types "there" Image 3's caption user types "how are you" Before user types anything in the text field for Image 4 it would read "Hello" I've found one posting on stack to be be...
ادامه مطلبVote count: 0 I have this method that retus true or false based on whether a website has any pages that have any exteal links. The method does work. However, it is incredibly slow. Like it takes about 5 seconds to process a 100 websites with a combined total of 5000 pages. protected bool WebsitesWithExtealLinks(int id) { var website = FetchModel(id); if (website == null) retu false; //retu true; var extealLinks = website.WebPages .Any(wp => wp.Links != null && wp.Links.ExtealLinks.Any()); retu extealLinks; } I've pinpointed the slowness is occuring somewhere in the linq query, but I'm not quite sure why it's happening. I have other linq queries that operate on WebSite and WebSage objects tha...
ادامه مطلبVote count: 0 I have a Swift iOS8+ app that receives remote push notifications from a 3rd party server over which I have no control. That server sends push notifications as JSONs with the usual "alert" and "badge", but does not send the "sound". Consequently, my app plays the default alert sound for push notifications. Is there any way to programmatically override the sound, so that I can play my own, custom remote push notification alert sound? Or even programmatically mute the sound? Remember, I caot force the sending server to change the push notification payload to include a different sound. I began by placing the sound file (ding.aiff) in my main bundle, but there seems to be no way of ...
ادامه مطلب