Angular cache not caching
-
تاریخ: 1395/5/11 ساعت: 15:16
Vote count: 0 Im using angular-cache library to cache my rest query to browser in AngularJS, angular.module('fbc') .service('OrganizationService', function (CacheFactory, $http) { // Service logic var settings, organizationCache, baseURL = "https://api.myapp.com/1"; if (!CacheFactory.get('organizati...
how to create apex trigger class using metadata api in java?
-
تاریخ: 1395/5/11 ساعت: 15:16
Vote count: 0 in salesforce how to create apex trigger class using tooling api in java? like i have created apex class using tooling api in java. the code is: ApexClass apexClass1 = new ApexClass(); apexClass1.setBody(classBody); // class body is string ApexClass[] classes = { apexClass1 }; SaveResu...
Create Pdf from Razor View and send in Attachment
-
تاریخ: 1395/5/11 ساعت: 15:16
Vote count: 0 I am working on a asp.net MVC application and i have requirement for sending email on a cretin time by the system with a Pdf file in attachment. I am using Quartz for sending these emails. Now i have a razor view which i want to convert as Pdf and attach in email. but i have problem wi...
how to change view, update and delete url on action column in yii2
-
تاریخ: 1395/5/11 ساعت: 13:50
Vote count: 0 I have create action on update and view in controller, but this action does not change on action column in index page public function actionLeadView($id){ $id = $_GET['id']; $model = Leads::findOne($id); retu $this->render('viewlead', [ 'model' => $model, ]); } public function actionLe...
Any Sample Apps or links to trim video using collection view to add frames in it and save it in swift 2.0?
-
تاریخ: 1395/5/11 ساعت: 13:50
Vote count: 0 How to trim video in swift using collection view, and after dragging to left or from right with labels having start time and end time.? asked 22 secs agoLaxmi B Let's block ads! (Why?)
I can not compare elemets by fields in two Lists
-
تاریخ: 1395/5/11 ساعت: 13:50
Vote count: 0 I have Entity User class User{ private Long id; private String Name; private List<SomeClass> someClass; } And Entity SomeClass class SomeClass{ private Long id; private String Name; } I have two object User user1 and user2 user1.getSomeClass().size() == 5; user2.getSomeClass().size() =...
django order by clause with filter and values clause
-
تاریخ: 1395/5/11 ساعت: 12:49
Vote count: 0 I need the result of query ordering by class name and section name like: 1A 1B 2A 2B 3A 4A . my django query is: data = Class.objects.filter(id=val['class_id']).values('class_name','section_name','id').order_by('class_name', 'section_name') but my query is not sorting the data. Please ...
Overriding ParentModel class method in Child class
-
تاریخ: 1395/5/11 ساعت: 12:49
Vote count: 0 I have Parent Model class and viewModel class. Parent Model class has GetViewModel() class and I am trying to inherit Parent class and override the GetViewModel().However, it throws an infinite exception. Parent ViewModel Class: public class ParentViewModel { public IEnumerable Choices...
Future of Microsoft Azure
-
تاریخ: 1395/5/11 ساعت: 12:49
Vote count: 0 I'm a 2 year experienced Teradata developer. How good would it be if I start working on Microsoft Azure since TD is almost obsolete here. It'd be appreciated if a clear insight on future of Azure be given. Thanks Simmie asked 20 secs agoSimmie Let's block ads! (Why?)
Softlayer API -- how to check whether my request is accepted or not
-
تاریخ: 1395/5/11 ساعت: 11:41
Vote count: 0 I placed a order to upgrade a virtual machine's hardware by api(python) "placeOrder", it retu ed successfully. And I used "wait_for_transaction"(function in VSManager) to wait this transaction to be finished. After a few minutes, it also retu ed successfully. However, when I login the ...
Is it possible to communicate between pages that set 'X-Frame-Options' to 'SAMEORIGIN'?
-
تاریخ: 1395/5/11 ساعت: 11:41
Vote count: 0 In the context of a user script, for example executed by Tampermonkey, is it possible to communicate between two pages of different domains, which set 'X-Frame-Options' to 'SAMEORIGIN'? I know about this way of sending messages from one page to another by using iFrames and postMessage,...
why is ^A|bA slower than negative lookbehind with grep -P, but fast with grep -E?
-
تاریخ: 1395/5/11 ساعت: 11:41
Vote count: 0 These are equivalent: grep -E '^A|bA' grep -P '^A|bA' grep -P '(?<![^b])A' But the second one, grep -P '^A|bA', is multiple times slower. Why? They all find the same thing: a line with an A at the begi ing or after a b. (Equivalently, a line with an A not preceded by anything other tha...
How to draw a custom menu on MFC SDI dynamically
-
تاریخ: 1395/5/11 ساعت: 10:40
Vote count: 0 I am trying to draw a custom popup menu on MFC single-document interface (SDI) project.From here, I found The framework calls this member function for the owner of an owner-draw button control, combo-box control, list-box control, or menu when a visual aspect of the control or menu has...
Django + caching REST response + images
-
تاریخ: 1395/5/11 ساعت: 10:40
Vote count: 0 I have 2 questions regarding cache. 1- I'm using Django rest Framework and I would like to cache one my request and automatically update the cache every minute. I want the user to always use whatever is in cache. Only my server can update the cache not user requests. --> what is the be...
How to find latest folder start with Language Not end with Failed
-
تاریخ: 1395/5/11 ساعت: 10:40
Vote count: 0 There are several folders in the folder "C:/MyTest/Result" I have to create a .BAT file to find, the latest folder, which start with "Language" and not end with "Failed". Please help me to create the windows command for this. asked 13 secs agoBanukobhan Nagendram Let's block ads! (Why?...
Jenkins Job DSL and MultiSCM plugin
-
تاریخ: 1395/5/11 ساعت: 9:25
Vote count: 0 My Job DSL / Multi SCM integration has suddenly stopped working. When i apply something like multiscm { git { remote { name('origin') credentials('00000001-0000-0000-0000-000000000001') url('git@bitbucket.org:user/path.git') } branch('*/dev') extensions { cleanBeforeCheckout() } } git ...
Why in JavaScript does the array reduce function change parameters after the first iteration?
-
تاریخ: 1395/5/11 ساعت: 9:25
Vote count: 0 Sample code with actual results and Browser version (user agent): > [{count:1},{count:2},{count:3}].reduce(function(prev,curr){console.log(arguments);retu 5;}) [Object, Object, 1, Array[3]] [5, Object, 2, Array[3]] 5 > navigator.appVersion "5.0 (Macintosh; Intel Mac OS X 10_11_5) Apple...
Makefile usage about pattern rule and header file dependencies
-
تاریخ: 1395/5/11 ساعت: 9:25
Vote count: 0 We can add patte rules such as %.c or %.o which mimics *.c or .o in bash (it searches for all files that have extension .c or .o. This is very useful if you have several targets, so you don't have to write all rules. I would like to know how to use this trick if your target files (.c o...
AWS Cognito IntitiateAuth: Missing required parameter UserName
-
تاریخ: 1395/5/11 ساعت: 8:17
Vote count: 0 When initializing an authentication to AWS Cognito, the API is rejecting my request: InvalidParameterException: Missing required parameter UserName status code: 400, Here is the content of the request (yes, I tried putting it everywhere, no success). params := &cognitoidentityprovider....
minimize csv file size python
-
تاریخ: 1395/5/11 ساعت: 8:17
Vote count: 0 I have a csv file (19MB) with 500 000 + rows. One example row looks like this: 6AH8,F,B,0, 60541765, 60541765,90.52, 1 I have already fixed so that the index 0 - 6AH8 and index 1 and 2 - F,B gets to be minimized by exporting them to 2 different list(index0List and index12List) with ind...