back soft

مطالب مرتبط با «How do» در back soft | نویسنده: استخدام کار

how to Generate download apk link in PLAYSTORE with PHP

Vote count: 0 how to Generate download apk link in PLAYSTORE with PHP for sample : https://play.google.com/store/apps/details?id=com.sec.android.app.music&hl=en id = com.sec.android.app.music and Download APK from ID or link asked 23 secs agoOms This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting....

ادامه مطلب

How to apply random.uniform to two columns of a dataframe?

Vote count: 0 How to apply random.uniform to two columns of a dataframe? df = pd.DataFrame(np.random.randn(6,4),columns=list('ABCD')) def f(x): retu random.uniform(x[0],x[1]) df['E'] = f(df[['A','B']]) asked 1 min agoMartin This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting....

ادامه مطلب

How does the callback to the servers `request event` work in node.js?

Vote count: 0 I am trying to use a curried fn with a closure as a callback to the servers request event. It works the first time a client makes a request (the html is sent and diplayed) but the second time the page is blank. Does node erase the closure after calling the cb once? // server.js var pype = function(self, arr, errorHandler, cb) { var i = 0, req, res, run = function() { arr[i].call(self, req, res, next); }, next = function(err) { if (err && errorHandler) { retu errorHandler.call(self, err, req, res); } i++ if (i < arr.length) { retu run(); } else if (cb) { retu cb.call(self, req, res); } } retu function(request, response) { req = request; res = response; run(); } }; var http = req...

ادامه مطلب

Does anyone know how i can create a clear all button (AC) on my calculator?

Vote count: 0 basically all i want to do is get my AC button working so that it clears the equation in the box, and sets it back to 0. I currently have a "C" button that clears the users last entry entered e.g 567 would become 56. I just need to add on an "AC" button that clears everything. Any ideas? from tkinter import * class Calc(): def __init__(self): self.total = 0 self.current = "" self.new_num = True self.op_pending = False self.op = "" self.eq = False def num_press(self, num): self.eq = False temp = text_box.get() temp2 = str(num) if self.new_num: self.current = temp2 self.new_num = False else: if temp2 == '.': if temp2 in temp: retu self.current = temp + temp2 self.display(self.cur...

ادامه مطلب

-Perform doesn't show up when creating a custom segue

Vote count: 0 When with custom segues in Xcode 7.3 the -perform method doesn't show up when trying to type override func perform() {} the -perform method doesn't appear. Even if I just type it the sourceViewController and destinationViewController are not available. I am using a cocoa touch file and the subclass is UIStoryboardSegue. asked 17 secs agoHayden Bowden Let's block ads! بخوانید...

ادامه مطلب

With arangodb AQB how do you get out/inEdges an from/toVertices? in a query?

Vote count: 0 Suppose the following query from fluent query interface thats removed as of v3.x: var tens = graph._vertices(lst).outEdges().restrict("knows").toVertices() .inEdges().restrict("works").fromVertices().inEdges().restrict("owns") .fromVertices().toArray(); here lst is a simply a list of vertices obtained from a prior query, and the vertices in lst may have outgoing edge relationships one of which is of type knows, and the vertices pointed to by these outEdges have incoming edges of type works in tu, how would this be written with AQB? the two (AQB and fluent query interface are supposed to overlap and thats why one was removed). Iv looked at the documentation on github but im not ...

ادامه مطلب

How do you indicate certain elements in list of list and vectors based on list characteristics in R

Vote count: 0 For example testList0. If I run sapply(testList,function(x)is.list(x) & x[[3]]>1) I get Error in x[[3]] : subscript out of bounds. But really the problem is that the x[[3]]>1 should only be applied to the lists, not the vectors. The boolean needs to be of length testList. Any simple way of doing this? asked 40 secs agoColinTea Let's block ads! بخوانید...

ادامه مطلب

I create a UIColor with IBInspectable but I do not know How to set the default color?

Vote count: 0 I create a UIColor with IBInspectable,but not all view need set different color, so I want set default color. thinks! enter image description here asked 1 min agonewfun Let's block ads! بخوانید...

ادامه مطلب

SailsJS skipper uploading files as root, how do I upload as the app's owner?

Vote count: 0 I'm using skipper to upload images and the images keep uploading as being owned by root, not the desired outcome. The sails app is in a sub-folder in user X's home directory, in which all files are owned by user X. I am ruing "sudo sails lift" to start the app, so maybe sudo has something to do with it. Here's the code for the upload: req.file('images').upload(function ( error, files ) { if ( error ) { retu res.serverError( error ); } retu res.json({ message: files.length + ' file(s) uploaded successfully!', files: files }); }); How can I make sure the files are uploaded as user X? asked 20 secs agoAndrew Rockwell Let's block ads! بخوانید...

ادامه مطلب

How do I replicate pythons logging library in a better way?

Vote count: 0 I want to create a library similair to logging in python. Example from python api below: import logging import mylib def main(): logging.basicConfig(filename='myapp.log', level=logging.INFO) logging.info('Started') mylib.do_something() logging.info('Finished') if __name__ == '__main__': main() import logging def do_something(): logging.info('Doing something') INFO:root:Started INFO:root:Doing something INFO:root:Finished Notice how logging was able to get its config set in one module and have the other module use it without the second module repeating. Currently, I can make something similar with global variables in the library... but that just feels sloppy. str = '' def setStr...

ادامه مطلب

How to generate Javadoc HTML in Android Studio?

Vote count: 0 I wrote Javadoc style comments like this in my project /**Description.. * @param ... * @retu ..... How do I generate Javadoc HTML from Android Studio? asked 28 secs agoCenxui 1 Answer Vote count: 0 In Eclipse you can "Project -> Generate JavaDoc In Android Studio you can "Tools -> Generate JavaDoc" answered 28 secs agoCenxui Let's block ads! بخوانید...

ادامه مطلب

How do I validate an implementation of python's IOBase?

Vote count: 0 Is there an existing test suite I can make use of to test an implementation of IOBase? If possible, I would like to exhaustively test a new implementation, but there are a lot of tests that would need to be manually written. For instance, say I have a non-seekable, non-writeable stream. I want to validate that my implementation of read is compliant and that all other methods raise the right kinds of errors. Such a class might look like this: import io class NonSeekableReader(io.RawIOBase): def __init__(self, b=b''): super(NonSeekableReader, self).__init__() self._data = io.BytesIO(b) def seekable(self): retu False def writable(self): retu False def readable(self): retu True def...

ادامه مطلب

How to configure windows salt minion for rabbitmq module?

Vote count: 0 We're ruing several windows server with RabbitMQ and salt minion on it. Our aim is to control and configure RabbitMQ via salt. The first problem with which we had been confronted was 'rabbitmq' __virtual__ retued false After digging in the source code, we solved this by adding the rabbitmq sbin folder to the PATH. The next error ERROR: password is a required argument for runas on Windows was pretty easy to solve. Just add a runas="" after your call and it's fine. ... or not ERROR: Unable to run command '['rabbitmqctl', 'status']' with the context '{'timeout': None, 'with_communicate': True, 'shell': False, 'bg': False, 'stderr': -2, 'env': {'TMP': 'C:\Windows\TEMP', 'COMPUTERNA...

ادامه مطلب

Google Search Console API: How do you implement multiple OR filters?

Vote count: 0 After much fiddling, I've finally got the Search Console API working. Unfortunately, I can't figure out how to add multiple OR filters. I presume this is what dimensionFilterGroups[].groupType will eventually be for, but 'or' is not yet an option. Basically, how do you implement a series of filters where the results are retued when any are true? I've tried the following, but none seem to work: "dimensionFilterGroups": [ { "filters": [ { "dimension": 'query', "operator": 'equals', "expression": 'lockers' }, { "dimension": 'query', "operator": 'equals', "expression": 'shelving' } ] } ] "dimensionFilterGroups": [ { "filters": [ { "dimension": 'query', "operator": 'equals', "expres...

ادامه مطلب

How to find jar does not have a given string in linux

Vote count: 0 I want to get list of jars which are not having a particular string in their classes. I used the following command for getting string "hello" matching jars. find . -iname '*.jar' -printf "unzip -c %p | grep -q 'hello' && echo %pn" | sh. So I tried by putting the following command for not getting "hello" matched jars, which is not working. find . -iname '*.jar' -printf "unzip -c %p |!( grep -q 'hello') && echo %pn" | sh asked 24 secs agojey Let's block ads! بخوانید...

ادامه مطلب

How do I perform 2 different ActionResults in the same controller within the same view?

Vote count: 0 I am trying to remove a role from my application user on ActionLink click and when it is successful send a Viewbag message. The issue I am having currently is that when I try to remove the user from the role, the page is being refreshed. The reason for this is because I want the admin to be able to get a list of roles he is requesting and delete from the same page, to keep the application lean. Here is my controller action: public ActionResult DeleteRoleForUser() { var list = _context.Roles.OrderBy(r => r.Name).ToList().Select(rr => new SelectListItem { Value = rr.Name.ToString(), Text = rr.Name }).ToList(); ViewBag.Roles = list; retu RedirectToAction("GetRoles"); } [HttpPost] ...

ادامه مطلب

how do I map/plot my polygon onto a Europe map in matlab

Vote count: 0 I have a shapefile with a transverse mercator projection. It also has false northings/eastings values associated with it in ArcGIS. I am trying to map the polygons onto a Europe map,but they are not showing up on it. When I use worldmap world the polygons show up in Africa...even though they are supposed to be in Ireland. How can I plot my polygons in the right place? They have Lat Lons associated with them, so I think it has to be the projection. S = shaperead(polygons.shp','UseGeoCoords', true) h=axesm('tranmerc','FalseEasting',60000,'FalseNorthing',750000,'Grid','on','Frame','on', 'MlabelParallel',0,'PlabelMeridian',0) When I try to plot the lat lons, they end up in Africa: ...

ادامه مطلب

How does GWT RPC work? (set of URL)

Vote count: 0 i have problems with understanding parts of the RPC mechanism. RPC Plumbing diagram I don't understand what exactly YourServiceProxy and ServiceDefTarget is doing and which role this class/interface plays. Somebody told me ServiceDefTarget defines the URL of my service. But in my project we also have the part "@RemoteServiceRelativePath("stockPrices")". I thought this is setting the URL? I'm confused about that and if somebody could give me a short explanation it would be awesome :) Cheers asked 30 secs agotillev Let's block ads! بخوانید...

ادامه مطلب

how do add keyboard functions to a bash command

Vote count: 0 I want to execute a command which requires to include keyboard functions, SHIFT + X, in order to execute it. However I am not sure how to include these keyboard functions to my command. For example I was trying something like this: command="path/myfile SHIFT + X". Please let me know how I can do this. Thanks asked 35 secs agokevin Let's block ads! بخوانید...

ادامه مطلب

How do I convert a Week Number to From date of the week in oracle

Vote count: 0 Suppose I enter WeekNo: 14 the query should retu the From Date: April 4th 2016, since the week 14 starts from 4th April to 10th April select to_date('14','iw') FROM dual; asked 21 secs agoHarshil Shah Let's block ads! بخوانید...

ادامه مطلب