Removing Known Characters From End of String
◷
تاریخ انتشار: 1395/5/6 | ساعت: 3:32
Vote count: 0 I am writing an HTML file using file_put_content(), but want to be able to add additional content later by pulling the current file contents and chopping off the known ending to the html. So something along these lines: $close = '</body></html>'; $htmlFile = file_get_contents('someUrl'...
ElasticSearch create an index with dynamic properties
◷
تاریخ انتشار: 1395/5/6 | ساعت: 1:59
Vote count: 0 Is it possible to create an index, restricting indexing a parent property? For example, $ curl -XPOST 'http://localhost:9200/actions/action/' -d '{ "user": "kimchy", "message": "trying out Elasticsearch", "actionHistory": [ { "timestamp": 123456789, "action": "foo" }, { "timestamp": 12...
Azure - Deployed application still not shown in Azure
◷
تاریخ انتشار: 1395/5/6 | ساعت: 1:59
Vote count: 0 I created a simple web application and i published it to Azure. I have added multiple files and published that again.But, i still get this blue screen: asked 53 secs agoeg16 Let's block ads! (Why?)
How to use ngPattern to validate an input containing restricted characters?
◷
تاریخ انتشار: 1395/5/6 | ساعت: 1:59
Vote count: 0 I try to validate the input of restricted characters. The input field only accept alphabet, dash and underscore characters. When I test the code below, the first character is accepted, but the second one raise a patte error. My RegEx: /^[a-zA-Z_-]$/ HTML code: <input ng-model="inputTex...
Rails newbie - how to structure a guitar chord generation app
◷
تاریخ انتشار: 1395/5/5 | ساعت: 23:10
Vote count: 0 I'm new to rails and am struggling to try to find the best solution with models and model associations for a hobby project I am working on. Basically, I want to create a guitar chord generation app that helps a user generate their own guitar chord libraries. A rough demo version is ava...
How to prevent form action in case of validation error?
◷
تاریخ انتشار: 1395/5/5 | ساعت: 23:10
Vote count: 0 I have implemented js to check for the valid fields in the form.In case of any improper/blank input,the error message pops up as expected.But i'm unable to prevent it to move to the servlet which handles DB co ectivity and eventually, blank or improper data gets saved in the table.Can ...
Where can I store uploaded files of a file sharing site?
◷
تاریخ انتشار: 1395/5/5 | ساعت: 23:10
Vote count: 0 I would like to create a file sharing site for my personal use. When i upload a file, there should be a specific url for each file like in torrent sites. I don't know how to do that. Please explain about that. There is a file name, Description, uploaded date for each file i'm uploading...
Use both Recursive Feature Eliminiation and Grid Search in SciKit-Learn
◷
تاریخ انتشار: 1395/5/5 | ساعت: 20:52
Vote count: 0 I have a machine lea ing problem and want to optimize my SVC estimators as well as the feature selection. For optimizing SVC estimators I use essentially the code from the docs. Now my question is, how can I combine this with recursive feature elimination cross validation (RCEV)? That ...
How can you match URLs using wildcards in Ruby/Rails?
◷
تاریخ انتشار: 1395/5/5 | ساعت: 20:52
Vote count: -1 For example: *.google.com === www.google.com/q?=query * === anydomain.gov *.facebook.* === www.facebook.com asked 53 secs agoRamon Maciel Let's block ads! (Why?)
5554 call 5556 No response. send message No response
◷
تاریخ انتشار: 1395/5/5 | ساعت: 20:52
Vote count: 0 I started two emulator, you want to call each other or send text messages, but do not have any response. Check that both emulator, are able to link network, use the console to be called, and why can not the two emulator calling and texting it? 5554 call 5556 No response. send message N...
How to package and distibute Node Webkit NW.js app in windows
◷
تاریخ انتشار: 1395/5/5 | ساعت: 19:15
Vote count: 0 I have read various different instructions but am struggling to get my app set up as a single executable file which can be added to any desktop. None of the instructions I have come across give simple step by step instructions. My app is very simple in that it is just JQuery and HTML5....
php7 fail on windows multicore server
◷
تاریخ انتشار: 1395/5/5 | ساعت: 19:15
Vote count: 0 My application was getting error of $_GET variable don't exists on Windows 2008 R2 with 4 CPU cores. So I created this simple code to test. <?php if(!isset($_GET)){ error_log("_GET is not set"); echo "ERROR"; }else{ echo "OK"; } And created a simple JMeter test to call it with 15 threa...
schedule GPU jobs in Matlab
◷
تاریخ انتشار: 1395/5/5 | ساعت: 19:15
Vote count: 0 I want to schedule 10 instances of a GPU-heavy script, using 10 different input parameters: task1 = createTask(job1, @myscript, 0, {{1}, {2}, ... {10}}) I only have one GPU device and each script occupies it whole, therefore I would like the tasks to be executed one by one. How can I d...
SimpleXMLElement gete element or convert to array
◷
تاریخ انتشار: 1395/5/5 | ساعت: 18:06
Vote count: 0 I have SimpleXMLElement and I neeed get content filed (10) I try $xml = simplexml_load_string($summContent); $array = json_decode(json_encode((array) $xml), 1); $array = array($xml->getName() => $array); but have xml - false and array - false $summContent = {SimpleXMLElement} [6] id = ...
Timeout for request through https proxy
◷
تاریخ انتشار: 1395/5/5 | ساعت: 18:06
Vote count: 0 I'm trying make request through proxy. It's my code. var proxyList = [ 'http://use ame:pass@hostname:65233', 'https://use ame:pass@hostname:65233' ]; var ADDRESS = 'https://google.com'; var TIMEOUT = 5*1000; var rp = require('request-promise'); var url = require('url'); function check(...
I just made an app and I need your advice
◷
تاریخ انتشار: 1395/5/5 | ساعت: 18:06
Vote count: -1 Hi just made an app and in 6 months I have 350 downloads but it is not working anymore due to hosting errors I would like to find out from you guys if it is worth it to get paid hosting and start advertising the app ?? asked 1 min agoJacques Pieterse Let's block ads! (Why?)
OpenPop not workin as expected in windows server 2012
◷
تاریخ انتشار: 1395/5/5 | ساعت: 16:56
Vote count: 0 Recently we have migrated from windows server 2003 to windows server 2012. We are using OpenPop to get the mails from the mail box and convert it into xml files. Application was working fine in windows server 2003. but we are getting an xml invalid error windows server 2012. Below is t...
Caching requests in node.js
◷
تاریخ انتشار: 1395/5/5 | ساعت: 16:56
Vote count: 0 When a browser does XHR requests it uses a cache that works with headers like maxAge etc. to minimize the number of requests. I'm wondering if there's a node library or so that reads these headers for requests to other servers and implements caching for them, at least in-memory, as lon...
XMI File Reading using Asp.net C# and show in tree view
◷
تاریخ انتشار: 1395/5/5 | ساعت: 16:56
Vote count: 0 How I can read XMI file in asp.net C# and show in tree view. XMI have different format with XML , I want to read XMI file data with following format in asp.net C#. Format for XMI given bellow. Can any one please suggest how I can read this format and convert this XMI to Tree format in ...
How to get value of Select Box (which is a component) in react js?
◷
تاریخ انتشار: 1395/5/5 | ساعت: 15:51
Vote count: 0 I have created SELECT drop down reusable component, which I am using in a form at different page by importing that component. How do i get the value of selection on submit of form? import React from 'react'; export default class Combobox extends React.Component { render() { retu ( <div...