Jamil

0

votes
0

answer
3

views

signalr core - how to call hub method from client

I'm adding SignalR to my app. I can send messages from server to client, but can't call hub methods from client. Here's my hub interface: public interface IGeneralHub { Task BroadcastMessage(HubMessage msg); //string type, string payload); Task JoinHub(List ids); } and hub client: public class Aucti...
Jamil
1

votes
3

answer
2.6k

views

Laravel - select row between start date and end date using eloquent

I want to convert this query into laravel eloquent, select * from schedule where (now() between start_date and end_date); I tried using whereBetween, but I got some error. $schedule = Schedule::whereBetween(Carbon::now(), ['start_date', 'end_date'])->get(); the error looks like this QueryException i...
0

votes
0

answer
9

views

Refused to evaluate a string as Javascript in chrome extension, in pdfjs

I am working on a chrome extension which uses PDFJS, but PDFJS latest release have some javascript which is returning JS as string Function("return this")() which is not allowed in chrome extension. so it giving following error Uncaught EvalError: Refused to evaluate a string as JavaScript because '...
Haris Jamil
1

votes
1

answer
3.2k

views

Onsen UI show a datepicker on ng-click

I'm wondering if there is a way to show DatePicker by clicking on some div tag? shows a native datepicker.
Danish Jamil
1

votes
2

answer
966

views

Searchkick / Elasticsearch exact match

I am using elasticsearch through searchkick I have a field called "detail" thats analyzed using "standard" analyzer ... now just like in google we do "several words" search to get exact match .. can we do the same in searchkick? I am not looking for fields: [{detail: exact}, name] because then it w...
Jamil Khan
1

votes
3

answer
4.6k

views

Calling a function through a button

How can I call this function through a button module.controller('MyCtrl', function($scope, $cordovaSocialSharing) { $cordovaSocialSharing .share(message, subject, file, link) // Share via native share sheet .then(function(result) { // Success! }, function(err) { // An error occured. Show a message t...
jamil
1

votes
3

answer
78

views

Replacing characters within a text with regex in c#

I am trying to replace few characters from a text. These characters maybe from start or end or it may be in middle. The problem is that it hasn't any white space at starting or ending. For example i want to replace "text" from this text with, for instance, "abc". input: Thisisatextbox output: Thisi...
Jamil
1

votes
1

answer
861

views

is PdfPKCS7.loadCacertsKeyStore() deprecated

Is the PdfPKCS7.loadCacertsKeyStore() deprecated in the last iText version 5.5.6? It seems yes, so my question is how to verify the authenticity of the certificate and the certificate chain without using load then apply PdfPKCS7.verifyCertificates like we did before? Any new sample code? Best regard...
Jamil Nour
2

votes
1

answer
28

views

Flip Image in Processing 3.4 [duplicate]

This question already has an answer here: Processing mirror image over x axis? 1 answer How can I flip (mirror) an image along the Y-axis in Processing 3.4? I have tried scale(-1,1) but that just makes my image disappear.
Jamil Mahmoudian
5

votes
1

answer
3.3k

views

Onsen-UI using sliding menu with navigator

Ok, The problem is I have a working sliding menu with pages. Now one of my page has an ons-list. By clicking on ons-list-item I want to navigate to a new page with back button. I have searched everywhere but didn't find any proper solution to my problem. Here is my code. Home Browse Hotels Special O...
Danish Jamil
1

votes
3

answer
973

views

How to get date from week number and week day C#

How can I get date from week number and week day number in C#. Using calendar week rule. For example I have week number 43 and week day number 3. Now I want the date. Thanks In advance.
Ajmal Jamil
2

votes
0

answer
208

views

line-height is not working in phonegap developer app

I'm using Onsen ui to build a phonegap app. There are default styles for everything. Like toolbar navigation etc. Toolbar has three components left center and right. Toolbar's height is 44px by default so is the line-height. Everything is working fine in a desktop/mobile browser. But, not in phonega...
Danish Jamil
1

votes
2

answer
1k

views

Real time audio conversation iOS

I am designing an iOS app for a customer who wants to allow real-time (with minimum lag, max 50ms) conversations between users (a sort of Teamspeak). The lag must be low because the audio can also be live music, played with instruments, so all the users need to synchronize. I need a server, which wi...
Umar Jamil
1

votes
2

answer
739

views

ajax function not working

Using Codeigniter on click ... .. some code.... $.ajax({ url: 'locations/getmap', dataType: 'json', type: 'POST', data: location_data, success: function (data) { alert('hi'); //morecode} CONTROLLER location/getmap public function getmap(){ $type = 'ok'; echo json_encode($type); Nothing happens on...
Jamil Khan
6

votes
1

answer
3.5k

views

Stretch video on AVPlayerLayer

I am using the following code to show a full-screen video on my UIView: - (void)playMovie:(NSString *)name :(NSString *)type { NSURL *movieURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:name ofType:type]]; self.movieAsset = [AVAsset assetWithURL:movieURL]; self.movieItem = [[AVP...
Umar Jamil
2

votes
1

answer
979

views

Onsen UI menu.toggle() is not working after adding navigator with sliding menu

I want to add a page before my sliding menu page. I succeeded to accomplish that. But, now I can't access menu.toggle(); I logged the menu object, that says undefined. And I've also tried navi.menu but that also doesn't seem to work. This is the closest solution I've got but no menu.toggle Onsen UI...
Danish Jamil
15

votes
3

answer
17.5k

views

How to enable auto word completion in the MATLAB Editor?

I can use auto word completion at the MATLAB command prompt by pressing tab, but I can not do that while using the Editor for an m file. Is there any way to use tab completion in the Editor?
Syed Jamil
5

votes
3

answer
5.8k

views

How do I keep a responsive UI while processing large amounts of data?

I am creating winform to process (convert txt files to tiff) large amount of files. I put all the code behind a button (btnProcess). Is this a good idea? It works but I noticed when I go away from the winform and come back to this I see blank window until the process is complete. I heard about backg...
Jamil Ferdaus
1

votes
2

answer
4.5k

views

Custom UITabbar issue in IOS 7

My way for customizing the UITabbar was working fine in IOS 5 and IOS 6,but in IOS7 the Tabbar did not show any image. IOS6 Result: IOS7 Result: After doing some research i try to fix the existing code,but did not succeed.here is my code which was working fine in ios6 #import @interface CustomTabB...
jamil
19

votes
9

answer
126.5k

views

XAMPP on Windows - Apache not starting

I have installed XAMPP on my windows 7 machine but can't get Apache to work. On start I get the following errors: 13:09:21 [apache] Apache Service Detected With Wrong Path 13:09:21 [apache] Uninstall the service manually first 13:09:21 [apache] Possible problem detected! 13:09:21 [apache] P...
Jamil
5

votes
3

answer
2.8k

views

How to post image on Pinterest?

i want to post image on pinterest using this link but i change coding Little bit according to my own Requirement here is my MainClass code - (void)pInterest { UIImage *myImage; myImage=imgView.image; WebViewController *webViewController = [[WebViewController alloc] initWithNibName:@"WebViewControl...
jamil
5

votes
1

answer
1.5k

views

Multiple where clauses in rails searchkick

I have a very basic question about searchkick. What if you want you join multiple where statements in searchkick query using if statements. Much like query-builder @product = Product.all unless request.end_date.nil? @product = @product.search, where('created_at
Jamil Khan
20

votes
5

answer
34.2k

views

Where to get macos SDK 10.6 for Xcode?

I am having Xcode 4.4 on OS X Lion. I'd like to install the Mac 10.6 SDK - also known as macosx10.7 SDK - because I need to compile openFrameworks. I found that I need to download additional tools from this site. However I didn't find any 10.6 SDK there. I also tried looking in Xcode Preferences ->...
Umar Jamil
4

votes
3

answer
119

views

Finding maximum amount of approximately same number c#

I am getting a list of RGB colors from a bitmap image. Now i want to separate the maximum 'approximate' same numbers. i.e 245, 230,230 and 235, 230, 230 should be considered as the same (maximum difference is 5). I am succeeded in extracting the same numbers and obviously also knew how to find th...
Jamil
6

votes
3

answer
7.5k

views

UITextView, scroll while editing?

I've got a big UITextView, nearly full screen. If I tap it, the keyboard pops up and I can edit the text. However, the longer I type, eventually the text runs down the view, behind the keyboard. I can no longer see what I'm typing. How do you deal with this? Do you have to track the cursor position...
jamil
2

votes
1

answer
3.1k

views

Add some text to particular area in UITextView programmatically?

I create an instance of UITextView programmatically. I want to add some text to particular area in UITextView programmatically. Here is my code to create UITextView. UITextView *textView =[[UITextView alloc]init]; textView.frame=CGRectMake(0,0,282,210); [textView setReturnKeyType:UIReturnKeyDone]; [...
jamil
5

votes
2

answer
1.1k

views

Ajax success message returns HTML of my homepage

Using ajax and wordpress (trying to do it properly). It is rather new to me but I had this working before with more flair. Seemingly-randomly started having issues so I broke my code down to the most basic level, and I can't even get that to work!!! I feel like i'm just getting frustrated and it's f...
jamil
2

votes
2

answer
655

views

How to Read PDF file which is in subfolder of Resourse folder in webview?

I have some PDF formate document in subfolder of Resourse folder in my application.i have try to read these document like this way.here is my code. NSString *path = [[NSBundle mainBundle] pathForResource:chapter ofType:@"pdf"]; NSURL *targetURL = [NSURL fileURLWithPath:path]; NSURLRequest *request =...
jamil
2

votes
1

answer
1.9k

views

Cannot create a pointer to an unsaved ParseObject

I am having troubles referring to a "User" object from inside a query. I have the following code: Parse.Cloud.define("getTabsBadges", function(request, response) { var UserObject = Parse.Object.extend('User'); var user = new UserObject(); user.id = request.params.userId; // Count all the locked mess...
Umar Jamil
3

votes
1

answer
3.2k

views

iOS Notifications not sent using PushSharp. No event is raised either

I am trying to use PushSharp to send notification to various devices. My Server-side app registers notifications to send to a table in MSSQL, so that another app (Bot) will process those notifications and send them to Apple servers. I am using the following code: static DataEntities Entities; static...
Umar Jamil
2

votes
1

answer
195

views

git submodule code review with main

I have a repo called main with a submodule called sub. What I want to do is when I make changes in main or sub for them to be a part of the same Code Review in gerrit. Is there any way to perform this? I can't seem to find any information to make this work. Thanks
Jamil Seaidoun
5

votes
1

answer
375

views

How can I get data from my import.io api servers

I'm trying to get data from import.io servers but till now I got nothing. But when I use another api from another server with same code I get the data. Can you tell me what I'm doing wrong. This is working code, the problem is that I got nothing from import.io servers. but when I use another url fr...
jamil
2

votes
0

answer
576

views

App Crash due to Receive memory warning in CGContextDrawImage?

my app Crash due to Receive memory Warning.when i run app with instruments then i get the following leak memory issue . here is my full code of this method. - (UIImage *)resizeImage:(UIImage *)orignalImage newWidth:(int)width newHeight:(int)height bgColor:(UIColor *)bgColor { CGRect newRect; if((ori...
jamil
2

votes
1

answer
75

views

if 800k record takes 50 secs all http pending request in queue would block for 50 sec as sever become ideal

if 800k record takes 50 secs all http pending request in queue would block for 50 sec as sever become ideal . var http = require("http"); var url = require("url"); var MongoClient = require('mongodb').MongoClient http.createServer(function(request, response) { if (url.parse(request.url).pathname =...
waqas jamil
2

votes
1

answer
327

views

strncpy behavior differs from sprintf's

I am using the following code to create a 'Key' to be used to test a hash table (in particular, I am testing the time required to remove items): void remove_keys() { for (int i = 0; i < NUM_ITEMS; i++) { char temp_key[20]; sprintf((char *)&temp_key, "Key: %d", i); size_t key_len = strlen(temp_key) +...
Umar Jamil
3

votes
1

answer
2.8k

views

Automatically updating a JAR in Intellij IDEA

I have an android project in IDEA that uses external JAR. I have attached the source with the JAR using the File -> Project Structure. Now I can browse the class definitions however if I decide to modify a class belonging to the jar, how can I automatically compile the source and replace the jar wit...
Jamil
2

votes
1

answer
46

views

How to match multiple languages

I am writing a regex in golang to capture hashtags that might appear in different languages. For example obvious one is english, but there might be latin or arabic users who will try and create hashtags using those character set. I am aware of the unicode character class name but how can you use mu...
Jamil Seaidoun
-2

votes
0

answer
15

views

Golang attach method to slice of interface

I have a interface type MyInterface interface {/** method signatures here */} and I want to define a method on a slice of my interface type MyInterfaces []MyInterface func (m *MyInterfaces) Foo() {} but all implementation of MyInterface don't receive this method. What is the best approach for this?
Jamil Seaidoun
0

votes
0

answer
2

views

WSO2 EI send an email with attachment, CC and BCC recipient

I am following this tutorial to enable the MailTransportSender and MailTransportListener. I manage to send an email to the DevNullSMTP, SMTP Server. My question now is. How to add CC and BCC receipient ? I try with the following at the Endpoint URL but still no luck: Please teach me master !
ameruddin jamil
1

votes
1

answer
4.8k

views

Modbus4J Modbus RTU master

Currently I am working with the Schneider Power Logic electrical device. I want to read the data from the device and show the value in my system. So far, I discover J2mod, Jamod and Modbus4Java library. I used all modbus4java to connect and get the device's data. Actually I still confuse whether I...
ameruddin jamil

View additional