Two terminal commands in one line OS X - تاریخ: 1395/5/31 ساعت: 18:37
Vote count: 0 I am ru ing a command. After ru ing it, the terminal asks me for a password to proceed this command (no admin password). Now I have to type the password manually into the terminal. Is it possible to create a command which contains the password so that the command runs automatically? as...
Enable asp.net core request validation - تاریخ: 1395/5/31 ساعت: 13:35
Vote count: 0 Am I missing something or asp.net core allows to post script tag in user text fields? In Previous versions of asp.net mvc I needed to allow it by [AllowHtml] attribute. Is there a way how enable validation agains potentially dangerous values? I'm free to submit value like <script src='...
Dynamic CSS with jQuery? - تاریخ: 1395/5/31 ساعت: 13:35
Vote count: 0 I've created a custom dropdown element. The number of options it can have is based on a Database Table (I haven't created the Table yet). Like the number of options can be 4 or even 5 or anything for that matter. I'll use PHP to give the number of options for the dropdown. Each of the ...
Not able to pass logical answer received from Form to NullBoolean model - تاریخ: 1395/5/31 ساعت: 13:35
Vote count: 0 My model is like class mymodel(models.Model): param1=models.NullBooleanField(blank=False) My form is class MyForm01(forms.Form): LCHOICES=[(True, 'Yes'),(False,'No')] answer=forms.ChoiceField( label='Question', choices=LCHOICES, widget=forms.RadioSelect(), help_text='Help text') I am t...
Android: Show a Canvas on a View - تاریخ: 1395/5/31 ساعت: 8:31
Vote count: 0 I am trying to create a Canvas, draw stuff on it, and then show it on a View. My code below runs with no errors, but the Canvas doesn't show. All I see is a blank, black screen. I know there are other ways to do this example, but what I am actually trying to do is draw a bunch of stuff...
AWS Mobile Hub Device token APNS - تاریخ: 1395/5/31 ساعت: 8:31
Vote count: 0 Got the certificate and provisioning and the app to download. But it doesn't work because it mentions device token invalid when I checked the logs. How do I get the correct device token ? I just want to test out push notification on AWS Mobile. I read somewhere it changes everytime you...
mysql remove dupe from query e select last insert - تاریخ: 1395/5/31 ساعت: 8:31
Vote count: 0 qith a query I nedd to join 2 table and from result to remve dupe records but I need to show last insert (is.pr). I try this, but not work : $query="SELECT is.cf, is.ps, is.pr, is.pn, dati.ma, dati_uni.age, dati_uni.code FROM (SELECT * FROM is ORDER BY is.pr DESC) as temp INNER JOIN da...
When I run my app on xcode, my image views and buttons won't appear in the simulation - تاریخ: 1395/5/31 ساعت: 3:30
Vote count: 0 [[When I run my app on xcode, my image views and buttons wont appear in the simulations. They show up in the storyboard, but, they do not show up in the simulation. My buttons and image views have images, and they are png files. I haven't put any serious code in the app yet because I w...
Error while creating SPARK RDD (of file on HDFS) and calling Action - تاریخ: 1395/5/31 ساعت: 3:30
Vote count: 0 val manager=sc.textFile ("hdfs://localhost:54310/user/training/employee_dir/employeeManager") manager.first ERROR: java.io.EOFException: End of File Exception between local host is: "localhost.localdomain/127.0.0.1"; destination host is: "localhost":54310; :java.io.EOFException; For mo...
Lambda calculus - evaluating these lazy parameters - تاریخ: 1395/5/31 ساعت: 3:30
Vote count: 0 I'm reading about lambda calculus. From the end of section 2.1 here http://www.toves.org/books/lambda/: (λx.(λx.λy.x × y) 3 ((λz.x + z) 2)) 1 ⇒ (λx.λy.x × y) 3 ((λz.x + z) 2) where x = 1 ⇒ (λy.x × y) ((λz.x + z) 2) where x = 3 ⇒ x × y where x = 3 and y = (λz.x + z) 2 ⇒ x × y where x = ...
Populating an array using user input(JAVA) - تاریخ: 1395/5/30 ساعت: 22:24
Vote count: 0 So I have made a 'Student' class which has some data members,and methods....What I want to do is get input from the user using a form and then initialize a student object using the values entered by the user. I used the following code but somehow every Student object has the same value...
Azure connection timeout with Saving Attachments - تاریخ: 1395/5/30 ساعت: 22:24
Vote count: 0 My application is hosted on azure, and it is having issues when uploading large files,I'm saving the files to sql sever, It works great if it is small files, but if the size is around 40MB it fails with transaction timeout. I have increased the timeout of the co ection to 180. asked 38...
How to make angularJS controller be active at all times? - تاریخ: 1395/5/30 ساعت: 22:24
Vote count: 0 I am developing an angularJS application where my geocordinates from the device are taken and sent to my REST service every few seconds. Code for geo coordinates sending is located in just one controller. It means that geolocation is only updated in my server if the template page for t...
Complex array in AutoCompleteTextView - تاریخ: 1395/5/30 ساعت: 17:20
Vote count: 0 I have a list of the countries stored into XML, as follows: <?xml version="1.0" encoding="utf-8"?> <resources> <string-array name="nation_array"> <item>Afghanistan</item> <item>Albania</item> <item>Algeria</item> <item>American Samoa</item> <item>Andorra</item> <item>Angola</item> <ite...
between query on mongodb - تاریخ: 1395/5/30 ساعت: 17:20
Vote count: 0 i have this collection { "_id" : ObjectId("57b8277cd48b97d6e38d9eb2"), "student_id" : "326598", "sem" : "sem1", "marks" : [ { "title" : "english", "from" : 2, "to" : 15 }, { "title" : "maths", "from" : 5, "to" : 18 }, { "title" : "science", "from" : 10, "to" : 20 } ] } { "_id" : Object...
How to add actions to my notification's button? - تاریخ: 1395/5/30 ساعت: 17:20
Vote count: 0 Here is my code for notification:- public void showNotification(String Name, String Rate, int Image_Source, int PandP, int Repeat) { RemoteViews remoteview = new RemoteViews(getPackageName(), R.layout.notification_layout); PendingIntent pi = PendingIntent.getActivity(this, 0, new Inten...
Updating Google Calendar and Contacts from Google Ford - تاریخ: 1395/5/30 ساعت: 12:13
Vote count: 0 I'm not a programmer of mode languages, I graduated from college with a > programming degree in 1987 but got employment in computing hardware not > software. I slightly modified the following code to update my calendar from a google > form. The code works great but now I'd like to add ...
php shell_exec() change user or navigate to user folder - تاریخ: 1395/5/30 ساعت: 12:13
Vote count: 0 I would like to know if it was possible to use shell_exec as an other user. The point is to access directly to the user folder (in home/user/) Or, is it possible to navigate from var/www/ to home/user/ folder using shell_exec? Thank you for your help! asked 1 min agoorugari Let's block...
What are the arguments of this ASM function? And how to run? - تاریخ: 1395/5/30 ساعت: 12:13
Vote count: 0 I have this dissasembled function: And I am not sure of what all of the arguments mean? Also, how would I run this? Would I have to use C or C#? And then how do I set that up? asked 49 secs agoMadyson Let's block ads! (Why?)
python iterate over dictionary emptys it - تاریخ: 1395/5/30 ساعت: 7:01
Vote count: 0 I have some code I'm analyzing. But I've found that iterating over a dictionary empties it. I've fixed the problem by by making a deepcopy of the dictionary and iterating over that in some code that displays the values, then later use the original dictionary to iterate over that to ass...

برچسب‌های مرتبط

how can i check serial numbers on guns | how can i check premium bond numbers | how can i check my powerball numbers | how can i check my lottery numbers | how can i check license plate numbers | how can i check old premium bond numbers | how can i check my premium bond numbers | how to convert pdf to word | how to convert pdf to jpg | how to convert degrees to radians