Unable to search for directory using isdir when folder name had on numeric using Python
◷
تاریخ انتشار: 1395/2/11 | ساعت: 15:01
Vote count: 0 I am creating folder after checking non-existance of folder with same name. However I am unable to check for the folder using 'isdir' if folder name contains only numbers. print(os.path.isdir('D:Git_FileIAutomationdir4534565')) True print(os.path.isdir('D:Git_FileIAutomation4534565')) ...
Laravel 5 join table with extra condition
◷
تاریخ انتشار: 1395/2/11 | ساعت: 13:55
Vote count: 0 Hi How can i generate query like this in Laravel ELoquent SELECT expenditure_heads.name, budget_details.budget, budget_details.id FROM expenditure_heads LEFT JOIN budget_details ON (budget_details.expenditure_head_id = expenditure_heads.id AND budget_details.budget_id = 1) I tried DB::...
Inventory issue with node.js steambot
◷
تاریخ انتشار: 1395/2/11 | ساعت: 13:55
Vote count: 0 I have tried to deposit 56 items using node steam, and on accepting Trade it retu s only 29 Items as new items. I am using getReceivedItems() to get the Items with update assetid. Here is the link, https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOffer#getreceived...
Raspberry pi home automation
◷
تاریخ انتشار: 1395/2/11 | ساعت: 13:55
Vote count: -1 I am a newbie in IoT and applications of Raspberry Pi. I am working on a small home automation project which consists of following sensors: 1. Pressure 2. Proximity 3. Temperature 4. Current 5. Vibration I have codes for all the sensors and I can read sensor data when they are co ecte...
cant connect to xmpp server with xmpphp library
◷
تاریخ انتشار: 1395/2/11 | ساعت: 12:53
Vote count: 0 while i am trying to co ect xmpp serverr with xmpphp library it showing a waning . <?php // activate full error reporting //error_reporting(E_ALL & E_STRICT); include 'XMPPHP/XMPP.php'; #Use XMPPHP_Log::LEVEL_VERBOSE to get more logging for error reports #If this doesn't work, are you ...
How to scrape lazy loading images using python scrapy
◷
تاریخ انتشار: 1395/2/11 | ساعت: 12:53
Vote count: 0 Here is the code which i used for crawling a web page. The site I want to scrape has images lazy loading enabled, so scrapy can only grab 10 out of 100 images, the rest are all placeholder.jpg for item in items: listing = Item() listing['image'] = item.css('div.product img::attr(src)')...
Update fields of Mongoose document object from request body
◷
تاریخ انتشار: 1395/2/11 | ساعت: 12:53
Vote count: 0 The question(Mongoose save all parameters from request body) shows how to create new mongoose document object with request body in a line of code.Extending this question, I want to know how to set all fields of mongoose document object at once. router.route('/car') .put(function(req, r...
compare answers in database php
◷
تاریخ انتشار: 1395/2/11 | ساعت: 11:47
Vote count: 0 hi i have an exercise on doing quiz in database. below is my requirement that has been done. -i have done retrieve question randomly from database -user can select answer *there is a problem when i have to compare the answer selected by the user with my database. in my database, i have...
What to use Map , Reduce and filter in js to convert fahrenheit to celcius
◷
تاریخ انتشار: 1395/2/11 | ساعت: 11:47
Vote count: 0 I have an array of temperatures and i have to convert them to degree celcius , i was told i need to use map/reduce in javascript . I have looked through the documentation but i cant seem to figure out how to do it. Here is my array : var fahrenheit = [0, 32, 45, 50, 75, 80, 99, 120]; a...
listboxes in html, javascript and css
◷
تاریخ انتشار: 1395/2/11 | ساعت: 11:47
Vote count: 0 I found this JSFiddle which does what I want. However, I wanted the boxes to be inline and buttons as arrows. So I modified above fiddle into this JSFiddle. 1) However, this is not working. Can someone please help with what am I doing wrong ? I am not able to move elements from left to...
Recycler View update few row every x sec
◷
تاریخ انتشار: 1395/2/11 | ساعت: 10:43
Vote count: 0 i have view pager . view pager have 3 section/tabs which have same fragments .fragment contains recycleview. in recyclerview i have custom layout for row . row contain textview and imagers . for textview its timer which should update every 1 sec . so for now i am using timer with fixe ...
Questions on method return values and arguments after do
◷
تاریخ انتشار: 1395/2/11 | ساعت: 10:43
Vote count: 0 sorry for this noob question I am just not able to understand ruby/rails grammer, In rails 2.x, I read the following code, def localized_input_form_for(record_or_name_or_array, *args, &proc) options = args.extract_options! args << options.merge(:builder=>LocalizedFormBuilder) concat('<...
gulp serve command with different port
◷
تاریخ انتشار: 1395/2/11 | ساعت: 10:43
Vote count: 0 I want to try using gulp and I've made a simple project similar to this examplewhat I want to do is to serve the project using different port, I've tried to follow this costum-port example and my gulpfile.js looks like this : var gulp = require('gulp'); var browserSync = require('brows...
Error in Data Export to SQL Azure
◷
تاریخ انتشار: 1395/2/11 | ساعت: 9:42
Vote count: 0 I have a local MS SQL Database and corresponding Azure database with only 1 table each. The Azure table schema is created by generating schema scripts automatically from local database. Interesting thing is that export works if the Azure table is empty. But once it has rows then the in...
Using vectors in R to change the output of a function
◷
تاریخ انتشار: 1395/2/11 | ساعت: 9:42
Vote count: 0 I'm looking for a way to use different scales for different variables within a function. This is a follow on question from A simpler way to achieve a frequency count with mean, sum, length and sd in R Given # create the summary function summaryStatistics <- function(x,levels) { xx <- n...
Replace cell values in data frame based on column name and variable match
◷
تاریخ انتشار: 1395/2/11 | ساعت: 9:42
Vote count: 0 I would like to replace the value in a data frame cell based on the column name matching a row variable, as in the example code. I know enough to know that the nested loop is not the preferred way to do this (and that a more efficient solution is probably quite simple), but haven't bee...
How to exclude modules from google play services library?
◷
تاریخ انتشار: 1395/2/11 | ساعت: 8:08
Vote count: 0 I'm trying to exclude modules from gms because I exceeded the limit of methods that can be referenced: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536 The documentation shows an example using gradle, but the project I'm working on doesn't use gradle. Is t...
Using jquery in google apps script 2
◷
تاریخ انتشار: 1395/2/11 | ساعت: 8:08
Vote count: 0 I know my question is duplicated in Using jquery in google apps script, but as I ca ot comment, I ask again. I want to do the same but ca ot solve the problem. I tried all jquery versions, and the code proposed by Michelem, but nothing happens. JQUERY is not working at all. asked 1 min...
Integration issue gvissankey from googleVis package in a Shiny App
◷
تاریخ انتشار: 1395/2/11 | ساعت: 8:08
Vote count: 0 I’ve a custom built function in R that takes few inputs and retu s a data frame as an output. I use the output data frame to plot a Sankey using gvissankey function in googleVis package. So far, all these work well. Now, I’m trying to integrate the function, plot from gvissankey into a...
In-Memory Database Predictable Latency
◷
تاریخ انتشار: 1395/2/11 | ساعت: 7:03
Vote count: 0 I'm doing some research on In-Memory databases and am wondering what type of applications would benefit the most from the predictable latency characteristic of In-Memory databases. I can imagine online gaming, such as first person shooter games. I'm just wondering what other type of ap...