Upload,read and display the image with Tkinter and Opencv-Python
◷
تاریخ انتشار: 1395/1/27 | ساعت: 17:37
Vote count: 0 I want to upload this file using tkinter method and read it using cv2.imread and display .But i have a problem,this is the code i am using: wid=Tk() def myown(): file = tkFileDialog.askopenfile(parent=wid,mode='rb',title='Choose a file') if file != None: data = file.read() b=cv2.imread...
Laravel 5.2: How to know a file is downloaded successfully?
◷
تاریخ انتشار: 1395/1/27 | ساعت: 17:37
Vote count: 0 I am using Laravel 5.2.I would want to record file's downloading,there are 3 tables:users , files , download_records , users id name password email 1 Jim ****** Jim@example.com 2 Charles ****** Charles@example.com files id file_path 1 /var/www/uploads/001.jpg 2 /var/www/uploads/002.doc...
Visualization in expanders or other collapsed UI elements
◷
تاریخ انتشار: 1395/1/27 | ساعت: 17:37
Vote count: 0 I've got an ItemsControl that displays a collection of exapnders with some summary information. The user can expand them to show more detail, if needed. An item of the "more detail" is a latex formula component i've constructed using WPFMath. The point is, it's not fast. Without the fo...
No source code is available for type org.quartz.CronExpression; did you forget to inherit a required module?
◷
تاریخ انتشار: 1395/1/27 | ساعت: 16:24
Vote count: 0 My application is based on GWT. I am trying to validate the cron expression using org.quartz-scheduler.quartz-2.2.1.jar to validate the cron expression. But when i try to put a maven build I got below error. [INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all...
Why canvas undo not working correctly?
◷
تاریخ انتشار: 1395/1/27 | ساعت: 16:24
Vote count: 0 I'm working on a drawing page where I have multiple buttons. My problem is with the undo button. When I draw 3 lines on the canvas, and then click on undo, everything works great. But when I'm trying to draw again, the undooed lines are appearing again. Can anyone please help me with t...
DateTimePicker error
◷
تاریخ انتشار: 1395/1/27 | ساعت: 16:24
Vote count: 0 i have this query to make where I have to use two DateTimePicker. The DateTimePicker works but whenever I click the Search button to get the information I want with the ranged dates, there's this error that says, "the commandtext has not been properly initialized. Please help. thank yo...
Android cannot execute restful url
◷
تاریخ انتشار: 1395/1/27 | ساعت: 15:01
Vote count: 0 I want to pass some parameters to a php script sitting on a webserver. The url is http://tom.byethost3.com/gcmapp/gcm.php?shareRegId=true. On the php script side, it is supposed to detect with GET that shareRegId is not null and then gather the other information via POST.A text file wi...
Is there a way to ban IP addresses from accessing my parse-server?
◷
تاریخ انتشار: 1395/1/27 | ساعت: 15:01
Vote count: 0 If a particular computer is making tons of accounts or flooding my server with other requests, could parse-server automatically check this behaviour and block the specified IP address? Built-in rate limiting would also be a nice alte ative, although it doesn't really solve the problem ...
How can I run dart2js dynamically in a Dart server web app?
◷
تاریخ انتشار: 1395/1/27 | ساعت: 15:01
Vote count: 0 I want to compile dart code to JS on-the-fly without invoking dart2js at the command line. Eg., (written in Dart) read in some dart code from a file and transform it to JS (must be in memory, filesystem is not writable). I thought maybe dart2js would effectively just be a cli over a pu...
How to save selected option(dropdown box) in AngularJS
◷
تاریخ انتشار: 1395/1/27 | ساعت: 13:51
Vote count: 0 I want to save selected color in $scope.color. Index.html: <label class="item item-select" name="selectName"> <span class="input-label">What is your favourite colour?</span> <select id="colorid"> <option ng-repeat="x in colorList"{{x}}</option> </select> </label> controller.js: var col...
windows 6.1 files in my C drive
◷
تاریخ انتشار: 1395/1/27 | ساعت: 13:51
Vote count: -2 Windows unknown/unused files Can anyone say what are these files which is taking up my space of Windows Local Disk C:? The unknown folders has the windows 6.1 files which are unable to open. Note: I am not sure in which category to post this question so have posted it in stack overflo...
AngularJS - Value on a dropdown list not binding to ng-model if no changes are being made
◷
تاریخ انتشار: 1395/1/27 | ساعت: 13:51
Vote count: 0 Please see my plunkr here https://plnkr.co/edit/QRQQmxf3ZDyh6o0CqtrD?p=preview I have a from with a dropdown list that gets populated as shown below: <form name="frmAccount" role="form" ng-submit="submit()"> <div class="row"> <div class="col-md-6 col-md-offset-3"> <div class="form-grou...
char x[2048] and cache line issue
◷
تاریخ انتشار: 1395/1/27 | ساعت: 12:39
Vote count: 0 The following is the simple c source code , which char x[2048] is global var and func1 is called by thread1 , func2 is called by thread2 : char x[2048]={0} , y[16]={0}; void func1(){ strcpy(x,y); } void func2(){ printf("(%s)n",x); } int main(int argc, char **argv){ st cpy(y,argv[1],siz...
Sudden web form positioning problems on VS 2010
◷
تاریخ انتشار: 1395/1/27 | ساعت: 12:39
Vote count: 0 I have an asp.net 2.0 web site project (not web application) in VS 2010 that was working all along. I was trying to change the html source of a web form when all of a sudden, the positioning is messed up on all web forms in the designer and also in the development server. All the butto...
Django mixins for class-based-generic views
◷
تاریخ انتشار: 1395/1/27 | ساعت: 12:39
Vote count: 0 I am trying to implement staff_member_required mixins: Here are the two ways I found on how to do so: First: class StaffRequiredMixin(object): @method_decorator(login_required) def dispatch(self, request, *args, **kwargs): if not request.user.is_staff: messages.error( request, 'You do ...
TIME_PERIOD_SHORT - from Events.Record
◷
تاریخ انتشار: 1395/1/27 | ساعت: 11:05
Vote count: 0 I have a request to the Google play games API Events.record that always retu s with the error TIME_PERIOD_SHORT. Below is the Event Record Request Resource. Can you help me spot my error? { "timePeriods": [{ "timePeriod": { "periodEndMillis": 1460691042546, "periodStartMillis": 1460691...
error in BNF fparsec parser
◷
تاریخ انتشار: 1395/1/27 | ساعت: 11:05
Vote count: 0 I have made the following parser to try to parse BNF: type Literal = Literal of string type RuleName = RuleName of string type Term = Literal of Literal | RuleName of RuleName type List = List of Term list type Expression = Expression of List list type Rule = Rule of RuleName * Express...
Read QR Code from webcam automatically
◷
تاریخ انتشار: 1395/1/27 | ساعت: 11:05
Vote count: -1 I need to build a function on my website using .Net that can read QR Code automatically using webcam without clicking a certain button. The website that has similar capabilities is : http://www.the-qrcode-generator.com/scan Any ideas how to make that function ? Any ideas is appreciate...
Andriod - Getting NullPointerException when a new SQLiteOpenHelper child is instanciate
◷
تاریخ انتشار: 1395/1/27 | ساعت: 9:31
Vote count: 0 There is the SQLiteCreate that extends SQLiteOpenHelper to create the database and SQLiteController to control the values. On the debug i saw that the variable "banco" in the SQLiteController constructor is getting NULL when I create an object of SQLiteController. SQLiteCreate class: p...
Export more than 10k records to excel returns "file not found error"
◷
تاریخ انتشار: 1395/1/27 | ساعت: 9:31
Vote count: 0 I am using below code to export datatable to excel and it just works fine if the rows count is less than 10k and it throws "404 - File or directory not found." error if records count exceeds 10k limit. Please let me know if any idea on how to solve this. DataTable dt= GetDataFromDB(); ...