require script files and then compiling them into 1
◷
تاریخ انتشار: 1395/4/2 | ساعت: 17:05
Vote count: 0 I have a single HTML file in which I load a bunch of script files, like so: index.html <script src="bower_components/angular-ui-router/release/angular-ui-router.min.js"></script> <script src="bower_components/angular-local-storage/dist/angular-local-storage.min.js"></script> <script sr...
Two in
◷
تاریخ انتشار: 1395/4/2 | ساعت: 16:04
Vote count: 0 I have following translation in my Java project: my.translation={0} ... {1} I want to put parameters inside my fmt:message tag. I have found out that this works with one parameter, e.g.: <fmt:message key="my.translation"> <fmt:param value="${oneParam}"/> </fmt:message> but not with two...
angular send post request but servlet keep showing nul value
◷
تاریخ انتشار: 1395/4/2 | ساعت: 16:04
Vote count: 0 i have angular controller which triggered with ng-click: app.controller('showAllWorkersContoller', function($scope, $http){ $http.get("/SafetyManager/workers").success(function(response){ $scope.workers = response; $scope.workerInfo = function(id){ $http({ url: '/SafetyManager/workers'...
How to create a PHP environment proxy? (or two layer proxy with PHP+cURL)
◷
تاریخ انتشار: 1395/4/2 | ساعت: 16:04
Vote count: 0 My code environment is PHP. I have 2 proxies - Proxy A and Proxy B. Proxy A is the only IP Proxy B should see. How do I implement this in PHP / cUrl? I have tired using variations of the standard PHP + cURL setup with proxy options enabled - however always shows the server IP instead o...
bring button in the centre of the screen
◷
تاریخ انتشار: 1395/4/2 | ساعت: 15:03
Vote count: 0 I have designed a Pedigree tree using storyboard on a "iPad Pro Full Screen". When I run it on a iPad Pro Simulator , the root node stays in the middle, which it is suppose to , but other than that when I run it on other simulator the view shift right, example in iPhone 6 screen the ro...
linux scheduling clock vs clock_task
◷
تاریخ انتشار: 1395/4/2 | ساعت: 15:03
Vote count: 0 Discovering scheduling on linux, I observed that on 'mode ' ke el the struct rq does have 2 members called 'clock' and 'clock_task'. Does someone knows the semantic difference between the two ? On 2 crashdump I got 3.x and 4.x this 2 members always have the same values Thanx in advance...
PHPUnit does not generate clover.xml report file
◷
تاریخ انتشار: 1395/4/2 | ساعت: 15:03
Vote count: 0 (phpUnit Newbe) These are my configs: phpunit.xml <!-- http://phpunit.de/manual/4.1/en/appendixes.configuration.html --> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd" backupGlobals="false" colors=...
How to toggle ul class when anchor tag is clicked using jquery?
◷
تاریخ انتشار: 1395/4/2 | ساعت: 13:46
Vote count: 1 I want to keep a toggle function for ul li a. In magento I used the below coding to fetch level 1 and level 2 subcategories in layered navigation: <ul class="level0"> <?php foreach ($cats as $cat): ?> <li class="level1"> <a href= "<?php echo $_helper->getCategoryUrl($cat) ?>" > <?php e...
iOS 10 beta : URL scheme is not working but works in IOS 9 all versions
◷
تاریخ انتشار: 1395/4/2 | ساعت: 13:46
Vote count: 0 In one particular scenario I am taking the user to passcode settings page . below is the code used for this - [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=PASSCODE"]]; After upgrading to iOS 10 beta version I am no longer taken to settings passcode page ...
Let PHP send string to Python, and Python return the process result to PHP client. (Use socket)
◷
تاریخ انتشار: 1395/4/2 | ساعت: 13:46
Vote count: 0 Forgive me, I am a newbie. I've surveyed some solution. But it is so hard for me to understand and to modify that.(Many people have his different usage.) I have a demand. On PHP client, user can write a SQL Syntax string(So the string's length may be very long, is there any length limi...
Redirect Subdirectory HTTP to Same Subdirectory HTTPS
◷
تاریخ انتشار: 1395/4/2 | ساعت: 12:13
Vote count: 0 I have googled for an hour about this, but none of the alte ates are working for me. My goal: 301 Redirect from http://www.domain.com/guides/men/ to https://www.domain.com/guides/men/ I have tried both of these solutions suggested on other pages and neither worked. I keep seeing the ht...
Results vary with size of dataset in classification
◷
تاریخ انتشار: 1395/4/2 | ساعت: 12:13
Vote count: 0 So I have searched for this problem but what I found is people are facing this problem with their training dataset size and I understand that results may vary because of the size of dataset at the time of training a model. But my problem is different. I am classifying data using a trai...
Updating object parameters appends ID to URL & throws error
◷
تاریخ انتشار: 1395/4/2 | ساعت: 12:13
Vote count: 0 I have a users object in my rails app with a custom URL route. When I submit the update form, the user ID is being appended to the URL for some reason, and I'm getting a routing error. routes: get 'myaccount' => 'users#show', as: 'user' get 'myaccount/edit' => 'users#edit' patch 'myacc...
Is Factory pattern have dependent value C#?
◷
تاریخ انتشار: 1395/4/2 | ساعت: 11:05
Vote count: 0 Today I create a factory for operator based Expression. but when I create my factory it have some dependency on comparison value. Here is my code public LambdaExpression GetPredicate(FieldType fieldType, GigFilterOption value) { switch (fieldType) { case FieldType.PriceNumeric : retu n...
Javascript function not being recognized for call to save data in local storage
◷
تاریخ انتشار: 1395/4/2 | ساعت: 11:05
Vote count: 0 So I currently have some HTML code for a button which is supposed to save data in local storage. here is a section of it <div class="col-lg-6"> <h2>Drinks<span class="label label-default"></span></h2> <form id="drinks" class="form" role="inputs" > <div class="input-group-lg col-xs-12">...
Get AD attribute using .net 1.1
◷
تاریخ انتشار: 1395/4/2 | ساعت: 11:05
Vote count: 0 This below code works perfectly in vb 2005 but can't work in .net 1.1. Private Function GetActiveDirUserDetails(ByVal use ame As String) As String Dim dirEntry As System.DirectoryServices.DirectoryEntry Dim dirSearcher As System.DirectoryServices.DirectorySearcher Try dirEntry = New Sy...
how to let the container scroll down from top to bottom
◷
تاریخ انتشار: 1395/4/2 | ساعت: 10:01
Vote count: 2 i wa a implement this html effect like this: from this website image show from top to bottom with scrolling, pretty cool. but my implement is : http://codepen.io/devbian/pen/dXOvGj <div class="container container0"> <img src='http://special.porsche.com/microsite/mission-e/assets/images...
Array coding challenge that needs to be solved in O(n) complexity
◷
تاریخ انتشار: 1395/4/2 | ساعت: 10:01
Vote count: 0 We are given an array consisting of N numbers, and a number X. We need to find an index K in this array that divides the array into two parts(0 to K-1, and K-1 to N-1) as such: Number of elements equal to X in the first part = Number of elements not equal to X in the second part. Examp...
how to prevent webpage instead index.php
◷
تاریخ انتشار: 1395/4/2 | ساعت: 10:01
Vote count: 0 i have installed my website build in code igniter (PHP), every url will be accessed with url/index.php/uri i need to implement 2 rules in my htaccess : 1. i need my url looks more beautiful without index.php => url/uri 2. i need to block other uri instead index.php i have 2 htaccess fo...
Emulator is running, but not executing my program
◷
تاریخ انتشار: 1395/4/2 | ساعت: 8:20
Vote count: 0 I'm new in using android studio. I don't have any error, whenever I run my program and the emulator runs... it doesn't execute my program and stays like this asked 48 secs agoandroidNewbie29 Let's block ads! (Why?)