paypal integration in codeigniter
-
تاریخ: 1395/5/9 ساعت: 11:40
Vote count: 0 I am trying to integrate paypal in codeignitor in normal method. My notify url is a method of a controller. All works fine and payment is success.And retu ed ipn variables correctly in begi ing of the function. But global variables like fullipn are not getting correctly in logTrans() f...
Can You Override the getSimpleName method?
-
تاریخ: 1395/5/9 ساعت: 11:40
Vote count: 0 I have a bunch of classes and I want their string representation to have symbols in it, unfortunately I can't put symbols in their class names so i've been using .replaces to edit this. e.g. " " + getClass().getSimpleName().replace("Flat", "_b").replace("Sharp", "_#"); However, I think...
ArrayList infinite in both directions
-
تاریخ: 1395/5/9 ساعت: 11:40
Vote count: 0 I love working with ArrayLists, since they are infinite(virtually) and all, and I was wondering, is there an implementation that goes in both directions? i.e, if you give it a negative index it still retu s, the list just keeps going down past zero. Now I know that whole "out of bounds...
How to redirect to URL unless some conditions is not met using HandlerInterceptor in a Spring Boot Web MVCApp
-
تاریخ: 1395/5/9 ساعت: 10:34
Vote count: 0 I am using Spring Boot for a WebMVC App. There are many url that i serve in my app like /company /level /student etc. Problem is How do i redirect to '/company' whenever any request is made and company has not yet been register. I have tried using HanlderInterceptor like this public cl...
running a batch script across different drives
-
تاریخ: 1395/5/9 ساعت: 8:27
Vote count: 0 I need to run this bat script on an F:/ drive. Cd "c:WindowsSystem32inetsrv" appcmd stop apppool /apppool.name:mywebsite.com TIMEOUT /T 10 appcmd start apppool /apppool.name:mywebsite.com Is there a way to make it work? When I run this script ( from c: to c: ) , it works. But my watch ...
How can I translate Facebook user data into records on my database?
-
تاریخ: 1395/5/9 ساعت: 8:27
Vote count: 0 I'm using the omniauth-facebook gem with devise to set up Facebook login on my website. I'm at the point of importing Facebook user data into my database, but I'm having some weird issues. Here's my method used to import the data: #User.rb def self.from_omniauth(auth) where(provider: a...
ancestry path with 'path_id' or 'group_id" and 'level' in graph sql server 2008
-
تاریخ: 1395/5/9 ساعت: 8:27
Vote count: 0 I have the following table: pairID source_issue_id destination_issue_id 1 J I 2 B C 3 J M 4 F I 5 A B 6 A E 7 N O 8 J L 9 C D 10 P Q 11 G H 12 B F 13 L K 14 C N 15 A G 16 E F representing nodes in a graph. I'm not using pairID, since does not seem useful. I want to get the ancestor pat...
When I add an ng-if conditional in the html, does angular constantly check to see if the condition passes or fail?
-
تاریخ: 1395/5/9 ساعت: 7:06
Vote count: 0 if it does or does not, how can I make angular constantly check the conditional method or on the other hand make angular not constantly check ng-if. If I have an async call, how would I make angular recheck the ng-if method after async call is finished? asked 1 min agochonglawr Let's b...
Angular 2 data service
-
تاریخ: 1395/5/9 ساعت: 7:06
Vote count: 0 I'm building an observable data service based on the following article: https://coryrylan.com/blog/angular-2-observable-data-services In the article he used an array as an example, here I will use the user object since I'm developing the user service. Here's what I got: import { Inject...
MS Access Variable String Search
-
تاریخ: 1395/5/9 ساعت: 7:06
Vote count: 0 I want to create a query that identifies entries where a long text string does not contain any of a list of substrings. What I have is... SELECT [other necessary data], [Long text string] WHERE [Long String] NOT LIKE "*[substring1]*" AND [Long string] NOT LIKE "*[substring2]*" AND [Lon...
For Each Loop outputs only 1 result; Trying to output 3 results in array then stop looping
-
تاریخ: 1395/5/9 ساعت: 5:54
Vote count: 0 My For Each Loop outputs only 1 result. what I am trying to do is output 3 results from foreach loop then essentially break/stop the loop. <?php $i=0; foreach($feature_event as $event): $i++ ?> <?php if($event["end"] >= $now && $i==3): ?> ... CODE HERE ... <?php endif; ?> <?php endfore...
C# - Change Color Of Something On Another Program
-
تاریخ: 1395/5/9 ساعت: 5:54
Vote count: -2 I wondered how to change the color of something on another program, like Skype etc. So from the form you could choose a color scheme for it, then apply it. I have no idea how to do this, so please explain. Thanks. asked 2 mins agoTobias Rasmussen Let's block ads! (Why?)
haskell function association and precedence
-
تاریخ: 1395/5/9 ساعت: 5:54
Vote count: 0 I am lea ing functional programming using Haskell, and im doing some exercises and im struggling with the function association and precedence, for what i have noticed it is left associative, but it starts gathering the functions or parameters as they are available as they match, but i ...
Chat Bot for Facebook Messaging
-
تاریخ: 1395/5/9 ساعت: 4:53
Vote count: 0 I would love your opinion on the possibility and then any help creating a Facebook Messaging Chat Bot. The idea behind this would be to switch this on, targeting a specific person and the program would be able to hold a small conversation with the selected person. I know it would be di...
How to replace a value in an ArrayList (with multiple columns) with a new value, in JAVA
-
تاریخ: 1395/5/9 ساعت: 4:53
Vote count: 0 I have read many posts about updating a certain value in an ArrayList, when the ArrayList is single column. In my case, I have a multi-column ArrayList which is done by using the following JAVA code. Class A{ private List<double[]> ArrayList; double[] _array = {0.0, 1.0}; ArrayList.add...
Re-render wicket component from backend
-
تاریخ: 1395/5/9 ساعت: 4:53
Vote count: 0 I am working with a wicket page where i need to allow a backend process to instruct a component on a page to refresh. I don't want to refresh the entire page, just a single component, so i am guessing that i'm in Ajax territory. I have found a few different Ajax timers like AjaxSelfUpd...
Fitting data into a ggmap frame using google's maps
-
تاریخ: 1395/5/9 ساعت: 2:40
Vote count: 0 I need to plot my ggplot2 data onto a terrain maptype using ggmap. My data ( geom_points for stream samples) will not fit into the frame. "osm" fits perfect but does not have terrain. "stamen" will not load due to the pngjpeg error. Google would be best. Here are the three methods I ha...
search option in PHP
-
تاریخ: 1395/5/9 ساعت: 2:40
Vote count: -1 "; $g_info = str_replace('.jpg' , '.txt', $img_filename); $filename = 'ginfo/'.$g_info; $fp = fopen($filename, 'r'); $show_grile = 'Y'; while(true) { $line = fgets($fp); if (feof($fp)) { break; } $pos = stripos($line, 'City:'); if ($pos !== false) { $city = substr($line,5); $city = tr...
firefox_profile.set_preference("network.cookie.cookieBehavior", 2) does not work?
-
تاریخ: 1395/5/9 ساعت: 2:40
Vote count: 0 I am trying to disable all cookies in firefox selenium on python. I do not want first party cookies and I do not want third-party cookies. According to this stack overflow post, the way to disable cookies is like this: from selenium import webdriver fp = webdriver.FirefoxProfile() fp.s...
SharePoint site is not working on Android webview
-
تاریخ: 1395/5/8 ساعت: 22:41
Vote count: 0 I am making an Android app using SharePoint, but I facing some issues when I am opening a site on web browser it working fine, but trying to link with android webview it's giving a unknown host, also I have configured a proxy Url is asked 1 min agoNik Varma Let's block ads! (Why?)