id
stringlengths
5
11
text
stringlengths
0
146k
title
stringclasses
1 value
doc_26200
Thanks! A: I've seen Marionette used in a number of highly styled, animation heavy apps in the last year. Not the least of which is the Halo Waypoint website for Halo 4: https://app.halowaypoint.com/ Most of the Backbone frameworks out there would be good choices, I would think. Very few of them really restrict you in...
doc_26201
I installed the Eclipse CDT the other day and when i restarted Eclipse my toolbar was updated to show several new (but useless) buttons on the top left hand corner of the toolbar. I've looked in my toolbar customization to try to remove the buttons (bigger build button, launch button, stop button, and the dropdown menu...
doc_26202
<button class="btn btn-default delete-btn">Delete</button> Here is where I modify the background-color for my CSS selectors: .delete-btn:hover, .delete-btn:focus, .delete-btn:active { background-color: white; } This works just fine for a focus or hover event. However, when the mouse clicks on the button, it chang...
doc_26203
https://toplinetalent.co.nz/vendor/phpmailer/phpmailer/get_oauth_token.php Getting error: This page isn’t working toplinetalent.co.nz is currently unable to handle this request. HTTP ERROR 500
doc_26204
Users { user : "Luis", key1 : 23, key2 : 29 }; { user : "Juan", key1 : 53, key2 : 22 }; { user : "Paco", key1 : 26, key2 : 42 }; And I'm trying get the results order by key1 - key2 I have tried different queries having Mongo complex sorting? in account, but it didn't help me. User.find({}).sort(function(doc1,doc2){re...
doc_26205
Possible Duplicate: Random long long generator C++ Random long long using boost I have an 8 bytes long buffer, i need to fill it pseudo-random bytes, how can i do it using C++ and maybe boost. Thanks! A: Try this: #include <iostream> #include <boost/random/random_device.hpp> #include <boost/cstdint.hpp> int main (...
doc_26206
I ask this because you can't associate an XML file to a service Chronometer mChronometer = (Chronometer) findViewById(R.id.chronometer); My goal is to vibrate phone after the prox sensor has been keep covered for at least 5 seconds. A: In onNear i would like to start a chronometer and do something if the object is s...
doc_26207
I found it is different because of bitmap(?) so I'm trying to fix it from other answers which persons already asked, but I failed.. How to find the correct position of the mouse? Here is my HTML code (I use bootstrap) <div class="col-sm-10"> <canvas id="c" width="900" height="500"></canvas> </div> This is js (pe...
doc_26208
HttpClient http = new HttpClient(); HttpResponseMessage response = new HttpResponseMessage(); response = await http.PutAsync(url, new StringContent(temp)); Any ideas on how to handle that? A: I managed to find a workaround to the problem by setting AllowAutoRedirect to false and then making a call to the redirect man...
doc_26209
1st: Where's the Table names constants? The place where we could ask for the same of a certain table using intelisense... 2nd: Same as the above but for the table columns... where are they? This is very useful mostly when you need to pass those names as string... it you need to refactor your DB we don't need to look th...
doc_26210
public class Team { private Athlete[] athletes; public int MaxTeamSize { get; set; } public string TeamName { get; set; } public static int TeamSize { get; set; } public Sport TeamSport { get; set; } ...
doc_26211
So i wanted to test the campus samples with my ie- they dont even load. (in firefox all ok) Tested it on 2 different pcs. No Error Msg, just the Loading sun. Any idea what the problem could be? A: Time passed fast, but finaly im back on that task. Im not sure how the status of the campus samples, but i found the sourc...
doc_26212
I would like to use Jquery and Ajax to create a Div element to show the number of items that are in a customers basket. When the page loads I would like the Div to show "Your basket contains 0 items". As the user clicks the add button the data is sent to a PHP page to so that an item is added to the database. Then a ro...
doc_26213
HttpClient client = new HttpClient(); client.DefaultRequestHeaders.Accept.TryParseAdd("application‌​/json"); string response = await client.GetStringAsync(new Uri("mylink")); Maptemp = JsonConvert.DeserializeObject<ObservableCollection<MapDet>>(‌​response.ToString())‌​; A: I wish you were more descriptive with y...
doc_26214
This application have a file upload utility. Under this utility user enters some basic information regarding file in a HTML form and gives path to file on local machine using browse button. When User clicks on Submit button the data in form is saved in database and the file is gets uploaded on server on a fix common lo...
doc_26215
@Injectable() export class HttpInterceptorService extends Http { onError: EventEmitter<Response> = new EventEmitter(); constructor(backend: XHRBackend, defaultOptions: RequestOptions) { super(backend, defaultOptions); } request(url: string | Request, options?: RequestOptionsArgs): Observable<Response> { ...
doc_26216
matrix1 = tf.constant([[3., 3.]]) matrix2 = tf.constant([[2.],[2.]]) product = tf.matmul(matrix1, matrix2) When I print the product, it is displaying it as a Tensor object: <tensorflow.python.framework.ops.Tensor object at 0x10470fcd0> But how do I know the value of product? The following doesn't help: print product ...
doc_26217
The problem is that I can access only the status of the last group created, and not for the previous group. When clicking on one of the checkButtons of any group, I'm expecting to get the list of checkbuttons check in the group (by using method chkGrpGetValue with is the command parameter of each checkbutton) However, ...
doc_26218
I am able to track the ball quite accurately. However the issue is with the prediction part. Here is the code of euler's method which I am using: def euler(euler_center, euler_velocity): euler_center[0] = euler_center[0] + euler_velocity[0] * timeStepSize *gTimesteps *0.707 euler_center[1] = euler_center[1] + euler_ve...
doc_26219
Most recently I have been trying to make a search component, which uses the Spotify API to search for a track, but have been running into synchronisation issues which I can't quite figure out how to solve using the js synchronisation tools that I know of. I come from a Java background so am more familiar with mutexes/s...
doc_26220
How can I do that? <li v-for="(item, index) in paginated('items')" :key="index" class="flex-item"> <div id="article" v-html="item.details_en" target="blank">Explore More</div> I need an explore more button to get a new tab and to see the item.details_en A: You can achieve when click Explore more button the deta...
doc_26221
I have two divs. * *<div id="var" draggable="true"> *<div id="area1" contenteditable="true"> The 1, has some css and all the functions for dnd attached. The 2 is where I want to drop the <div id="var"> I want to unite this two behaviors: My divs: <a id="var" href="#"> variable </a> <div id="area1" contente...
doc_26222
I have a variable of type JavaUtilArrays_ArrayList returned from a call cy# l "[<FieldDescriptor: 0x170a74fc0>, <FieldDescriptor: 0x170a75a00>, <_FieldDescriptor: 0x170a76200>, <FieldDescriptor: 0x170a76240>, <FieldDescriptor: 0x170a76280>]" I would like to iterate over this list to access the elements (preferably w...
doc_26223
If value can be found, it will show the column in the worksheet. And then click Ok to carry on searching in next worksheet or Cancel to exit the search. I believe this part is working. However, when value can't be found, I wish it can search through the every worksheet and return with message box "Not found" at the end...
doc_26224
I'm trying to get a Mac OS X application to communicate with an Android application. Nothing more complicated than a chat client type application where text is typed in Android and sent to OS X (maybe via Cocoa or even a Java app). I'm lost how to accomplish a Wi-Fi based communication between the two. I looked into Bl...
doc_26225
Here's the user.js model code: module.exports.example = function() { var query = User.find({}).lean().exec(function (err, users) { return JSON.stringify(users); }); } and here's my express routes file: router.get('/everything', function (req, res) { var q = User.example(); var x = JSON.parse(q...
doc_26226
I have created abc.BAT @ECHO off sqlplus -S scott/tiger@orcl ECHO SPOOL text.out select * from emp; ECHO SPOOL OFF But i am not able to get any output when i execute abc.bat ,Whats wrong in this? A: I suspect that you want to separate the SQL*Plus commands from the BAT file. For example, if you crea...
doc_26227
I've got code that loads ImagePlus objs, and saves them. But I can't figure how to paste an image into another image. A: I interpret the problem as taking multiple images and stitching them together side by side to form a large one where the images may have different dimensions. The following incomplete code is one w...
doc_26228
A: There is nothing built into Firebase Authentication for storing key pairs for the user. You'll typically want to use a secondary data store (like Firebase's Realtime Database, or Cloud Firestore) for that and associate the keys with the user's UID.
doc_26229
Error: stat_bin() must not be used with a y aesthetic I'm not sure what the error could be, i'm very new to r and ggplot2. Code: library(ggplot2) p<-ggplot(data=english, aes(x = reorder(V1, -V3), y=V3))+ geom_bar(stat="identity", fill="steelblue", color="black", width = 0.8, ...
doc_26230
.image-icon img { max-width: 70%!important; margin-left: -50px; } Can anyone tell me what to change? A: the example of what you need to do have no borders around the elements any way you can create a border around elements by three ways 1.[border:1px solid #cc;] borderSize BorderStyle BorderColor, 2.[outline:1px sol...
doc_26231
1.The Map has only one layer. 2.The features are filtered with attributes. Below is the code where I tried,stuck with the part where I can loop through the features in the feature selection set but not able to set the active view extent to zoom to show all the selected ones. P.S: this is similar to doing the right clic...
doc_26232
I find it strange that the FileDialog class doesn't allow this because Word, Excel and Access all have this exact SaveAs feature built-in. I realise that the FileDialog can created as a FilePicker (msoFileDialogFilePicker) which does allow filters, but then this doesn't allow a file to be selected that doesn't yet exis...
doc_26233
import lxml.etree as Etree Root = Etree.Element("svg", nsmap={None: "http://www.w3.org/2000/svg", "xlink": "http://www.w3.org/1999/xlink"}) Link = Etree.SubElement(Root, 'a') Link.set("{xlink}href", "#") Etree.SubElement(Link, "text", y="12").text = "test" print(Etree.tostring(Root,...
doc_26234
I am using python get data from an api trying to get a process, host name, start time of the process, user name, ip address, domain, and time stamp of each connection. Each process can have multiple results for the following columns that needs to move down each row. What is happening is that everything is being written...
doc_26235
Either my subclass TileLabel is incorrect or I don't use the layout and constraints the right way. I think the last one because I can't see what would be a problem in such a minimal subclass. This is how it looks using JLabel (L represents a label): (MenuBar) L L L L L L L L L L L L L L L L L L L L L L L L L L L This ...
doc_26236
I need to then convert this so that it can be added to a MySQL field that is of type date How would I go about doing this in PHP? A: MySQL displays the DATE type as 'YYYY-MM-DD', so you could do something like: date("Y-m-d",strtotime("10/18/2013")); A: My variant: $mysql_date = date('Y-m-d', strtotime(str_replac...
doc_26237
--SiftExtraction.use_gpu=false Is there any way to use GPU inside docker ? Thank you
doc_26238
%Geometric Distribution% N=100;%Number of simulation P=0.1; X=zeros(N,1);%simulation data Ti=0;%Counter for Ti=2:N U=rand(1); a=log10(U); b=log10(1-P); c=(a/b); d=1+round(c); X(Ti)=d; Ti=Ti+1; end t = 0:N-1; hist(X); A: hist(X,min(X):max(X)) A: Plotting a bar graph with log scale is tricky. See: How...
doc_26239
To make it more clear take following example code, where all Entities are mapped with Id(e => e.Uid).GeneratedBy.GuidComb();. public class Aggregate : EntityBase<Guid,Aggregate> { // ... public virtual ISet<SubEntity> SubEntities { get; protected set; } public virtual SubEntity DoSomethingThatCreatesASubEnti...
doc_26240
SELECT * FROM (SELECT * FROM comments WHERE postID='$id' AND state='0' ORDER BY id DESC LIMIT 3 ) t ORDER BY id ASC what this does is selects the last 3 comments on a post, then orders them in another way (so they show up in the correct order, old to new) Now this is the query for echoing out th...
doc_26241
I have some projects that required employees with a certain skillset per project, defined in a matrix project_skill_demand. The projects demand certain (wo)manpower to be maintained, eg. 1.5 (150%) of a FTE. Developers may work no more than .8 across all projects they are assigned to, and the total project demand must ...
doc_26242
Background: I designed API that always response in the following structure public class ApiResponse<T> { private T data; private Map<String, String> extraInfo; ... constructor / getter / setter } I have an Angular 8 client that consumes this api response. I am going to design a method to send excel byte...
doc_26243
Xaml of my window contains this code to display FlowDocument: <FlowDocumentScrollViewer Name="LeftFlowDocumentScrollViewer" Height="200" /> Code behind that fills in the document: var doc = new FlowDocument(); doc.Resources = new ResourceDictionary(); var bigTextStyle = new Style(); bigTextStyle.Setters.A...
doc_26244
let players = []; for(var i=0; i<22; i++){ players.push($(".card > button").eq(i).attr("value")); } Below is the node.js code. const express = require("express"); const bodyParser = require("body-parser"); const mySql = require("mySql"); const app = express(); app.use(express.static("public")); app.use(bodyParser....
doc_26245
I've looked on other implementations, but they can't fit, because my image is hardly fit in the memory, so I wouldn't use another library. I rolled my own parser, but it uses too much of system resource. Question is how could I optimize this to have lower CPU load. This is an OpenWRT based system, so I only have Lua 5....
doc_26246
There i am facing some problems i have put the .so file in JNILibs folder. but the native methods in the .so file did not successfully loaded and give error that the Can not find the corresponding JNI Function. so how i can solve this problem i have checked different solutions like Call shared library (.so) methods wit...
doc_26247
All the files are exactly the same except the variable uniqueurl at the end of url url = 'https://www.google.co.in/alerts/feeds/*uniqueurl*' resp = requests.get(url) soup = BeautifulSoup(resp.text, 'html.parser') output = [] for entry in soup.find_all('entry'): item = { 'Title': entry.find('title', {'type...
doc_26248
# !pip install torch==1.9.0 # !pip install torchtext==0.10 # !pip install transformers==4.7 # !pip install fastai==2.4 from fastai.text.all import * from sklearn.model_selection import train_test_split import pandas as pd import glob from transformers import AutoTokenizer, AutoModelForSequenceClassification hf_token...
doc_26249
sub f { state $n++ } say f; # OUTPUT: «0» say f; # OUTPUT: «1» say f; # OUTPUT: «2» I'm aware of two ways to "copy" a function that has internal state: First, I can assign it to a new &-sigiled variable with code like my &f1 = &f. This results in &f1 effectively being an alias to &f and means that they share state – ...
doc_26250
$ workon ]7;file://new-host.home/Users/Me/.virtualenvsaugpy I don't know why that is - maybe it is confused about the shell I'm using? I am currently using zsh (5.0.2, OSX 10.8) plus oh-my-zsh as my default shell. When I type workon in bash, I get the correct result (and autocomplete also works): $workon augpy Is the...
doc_26251
<video width="320" height="240" preload="none" src="http://techslides.com/demos/sample-videos/small.mp4"> <object width="320" height="240" data="/media/editors/tinymce/jscripts/tiny_mce/plugins/media/moxieplayer.swf" type="application/x-shockwave-flash"> <param name="src" value="/media/editors/tinymce/jscri...
doc_26252
{ property1: null, property2: null } How can I determine if ALL the properties within this object is null? If they are all null then return false. At the moment I'm using lodash to check for the first case where the object is simply {} empty. But I also need to cover the second case. if (isEmpty(this.report.device...
doc_26253
Is there any better solution? A: Add a time-killing job that runs 5 minutes between job1 and job2. The cluster's running order will be job1 -> job (for waiting 5 mins) -> job2. A: The best way to do this is through job dependencies. You can submit the jobs: job1id=`qsub script1.sh` qsub script.sh -W depend=after:$job...
doc_26254
print(mains.hi()) import parsogv2 print(parsogv2.gets()) priliv = mains()/parsogv2() I have this trouble 'module' object is not callable. I want to split the values I get in modules How to do it better ? Combine them into one module or can I do as I wanted in the code ? A: If what you've been trying to do is div...
doc_26255
What I am hoping to get is in my test case to turn of fixture.detectChanges() but still set variable values from it that can be picked or that is not possible? component: export class TravelRequestComponent implements OnInit { fieldType : number = null; ngOnInit(){ this.fieldType = null; } setFieldType(fieldT...
doc_26256
top = Snap("#workspace"); inner = Snap("#child"); top.add(inner); Then inner does not respond to events, i.e. inner.click(function....) or inner.drag() don't do what's expected. Here's a JSFiddle. The dots object is not dragable, while block is. A: You can't drag/transform an svg element itself, so that wouldn't work...
doc_26257
I had the habit of setting those values independent of the current build configuration (in its own ItemGroup, together with DocumentationFile, etc). When I'm setting up my configuration in the new .NET core .csproj like this... <OutputPath>bin\$(Configuration)\$(Platform)</OutputPath> <DocumentationFile>$(OutputPath)$(...
doc_26258
So far I have used following code: update kyc5 set [STATUS_] = 'Scanned' where customer_wallet = jewel_scan2.CUSTOMER_WALLET but the error message shows: The multi-part identifier "jewel_scan2.CUSTOMER_WALLET" could not be bound. Any solution for this? Should I use update with inner join? Any help will be highly...
doc_26259
my rails project running apply css loading is no problem. but if using sass files convert to css, syntax error message in web browser. This is my OS and kernel environment and ruby on rails running informations. Linux localhost.localdomain 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86_64 x86_64 x86_64 ...
doc_26260
Basically, I want to change some things in my custom keyboard in specific apps Maybe I can customize the keyboard traits to my use? Thanks A: This is not possible unless it is one of your own app, or you have some kind of collaboration with the running app. A custom keyboard and a running app can communicate with Dar...
doc_26261
Something like ... WHERE TO_STRING(numerical_attribute) LIKE '%' || my_substring ... So, for instance, if query the entries where the decimal attribute beings with "92", I'd like to recover, for instance, those entries where the attribute = 92, 924, 92.40, 92345592, etc. Is there anyway to write that in the FetchXML f...
doc_26262
My Vars: "Variables": { "CurrentYear": "", "OutstandingInvoices": [{"InvoiceNum": "100", "Total": 100.00, "DaysPastDue": "5", "InvoiceMonth": "May", "InvoiceYear": "2021"}], "CustomerID": "", "CustomerName": "", "InvoiceYear": "", "InvoiceMonth": "" } } My Template Code: {% for invoice in ...
doc_26263
I tried the below code but doesn't work: web.find_element(By.XPATH,'//*[@id="HUI_i_0"]/table/tbody/tr/td/a').click() It gives me error: selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="HUI_i_0"]/table/tbody/tr/td/a"} A: Try...
doc_26264
But unfortunately, my selection, insertion & updation operations do not work. Only deletion works fine. Could somebody guide me in understanding where I am going wrong? Below are various files I have written: home.php (The main file) </body> </html> <script> $(document).ready(function(){ function fetch_data() ...
doc_26265
My table can have values like these - 1.00 0.00 23.10 - 35.00 - 22.00 0.00 0.00 I would it to be sorted like this (all hyphens should be in the end) - 1.00 22.00 23.10 35.00 0.00 0.00 0.00 - - Or even this will be fine (all hyphens in the beginning, at least they are separate from the others) - - - 0.00 0.00 0.00 1...
doc_26266
I have a problem on an i368 system. The code works on an intel atom ubuntu system. But on an intel xeon with ubuntu this doesnt work anymore. Could that be a problem o little/big endian? I used the code of the mentioned post from Erik. I am using this method to convert int convert(std::string str, unsigned char*& cha...
doc_26267
data.txt CheckUpdate: 110 CheckTechNotes: 11 CheckUpdate: 220 CheckTechNotes: 21 CheckUpdate: 330 CheckTechNotes: 31 Used below code: public class PropertiesFile { public static void main(String[] args) { Properties prop = new Properties(); InputStream input = null; ...
doc_26268
For example, take a family tree: I'd like to start at "James" (node id 4), and get a response with rows for each node along with the edge data defining that node's relationships. If I do something like: MATCH (p:Person)<-[r:Related]-(p2:Person) WHERE id(p)=4 RETURN p, r, p2 I get To get rid of the duplicated data, I...
doc_26269
do { printf("A:"); scanf(" %d", &cm); printf(" %d od x\n", 100*(Info20-Info10)/cm); } while (cm != 0); int V; for(V = 0; V <=100; V += 8) { printf("V: %d.\n", V); } ... The problem is the transition from the do-while loop to the for loop below, the exit key is 0 and after getting that input, the progr...
doc_26270
I don't want user/hacker to discover that key and build his own application that could send false data to server. What are the best options to secure that 'string' inside application? Here are the options I was thinking of: 1) Hard-code that string inside application and obfuscate assemblies. I think that still some d...
doc_26271
beforeEach(() => { TestBed.configureTestingModule({ imports: [ FormsModule, routing ], declarations: [ DashboardComponent, Ellipsis, FavouritesComponent, FormatDuration, LoginComponent, SearchComponent ], }); this.fixt...
doc_26272
task warRelease(type: War) { webInf { from 'src/release/resources' into 'classes' } duplicatesStrategy = DuplicatesStrategy.WARN } unexpected there are two database.properties in the war file $ jar tf build/libs/project.war | grep database WEB-INF/classes/database.properties WEB-INF/classes...
doc_26273
X 1 8 2 4 3 2 4 5 5 3 6 2 7 1 8 5 Using the values in this column I want to create a new column Z that uses the following formula to calculate the new values: So for example, to calculate Z1, the calculation would look like this: and Z1 would have a value of 0.005. Similarly, Z2 would have a valu...
doc_26274
So each of my view models has a different view, but this is common among all of them and will be styled the same just the text is different. So how can I define that and add the things that are different instead of everything every time? Basically I have three sections one for IIS settings one for user accounts, and on...
doc_26275
I then created a interface that has some methods - I then have a service class which looks something like below: public class MyService : IMyService { private readonly ExternalServiceClient _serviceClient; public MyService() { _serviceClient = new ExternalServiceClient ("WSHttpBinding_IMyService");...
doc_26276
id created_time faid 0 21 2019-06-17 07:06:45 FF1854155 1 54 2019-04-12 08:06:03 FF30232 2 88 2019-04-20 05:36:03 FF1855531251 3 154 2019-04-26 07:09:22 FF8145292 4 218 2019-07-25 13:20:51 FF0143154 5 219 2019-04-30 18:50:2...
doc_26277
ul-tag seems not to work. https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.3 A: Afaik it´s not possible at all to format the feed message in any way, or to include HTML tags. You can try action links as described in this thread, but i am not sure if they still work with the feed dialog: action ...
doc_26278
The business logic code calls intercepted methods which have AOP logic and hence there is a dependency on remote-client. Obviously, I don't want to connect to the remote-client from within unit tests. I think I need to mock the implementation of method push() which connects to remote-client. What I'm unable to figure o...
doc_26279
Original solved problem: There are 6 public speakers and 6 rooms. Each speaker should be assigned to a room, with no room left empty and each speaker in one room only. Solutions here: Google OR-Tools & MiniZinc Help with this adaptation: There are 3 public speakers and 6 time slots (i.e. one room). Each speaker should ...
doc_26280
RcppArmadillo has a similar debug macro that can be turned on for bounds checking. Does Rcpp have something similar for classes like Rcpp::NumericVector or Rcpp::IntegerVector? A: Yes it does: > Rcpp::cppFunction("IntegerVector foo(IntegerVector v) { v.at(11) = 42L; \ return v; }") > foo( 1:10 ) E...
doc_26281
DROP DATABASE IF EXISTS my_data; CREATE DATABASE my_data; DROP USER IF EXISTS u; CREATE USER u WITH PASSWORD 'secret'; GRANT ALL ON ALL TABLES IN SCHEMA public TO u; GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO u; GRANT ALL ON ALL FUNCTIONS IN SCHEMA public TO u; \c my_data; CREATE TABLE users ( ID SERIAL PRIMA...
doc_26282
For example, let's say that one of my features needs to: * *Ask for some data to a Web service *Parse such data and map it to my data model entities *Perform some checkings and operations on such entities, and update both the View and the Model with the results *Handle a timer that triggers some more updates and ...
doc_26283
$data = DB::select('select * from toronto where id = ?', array($id)); What I want to do is to start using Eloquent. I am new to Laravel and was just wondering if its possible to have one model work with several tables, smth like: class City extends Eloquent { protected $table_a = 'toronto'; protected $tabl...
doc_26284
I have the next code: query = f"UPDATE \"client_plan_feature\" SET subscription_end = \'{text_until_date}\' WHERE client_id={client_id} AND subscription_start IS NOT NULL", where until_date is a string and client_id is an integer. I want to get: 'UPDATE "client_plan_feature" SET subscription_end='2022-05-10' WHERE clie...
doc_26285
I have few methods to get job done for me. * *findUser() - verifies user entered mandatory fields or not and resolves Mongoose object when data is found *ValidatePassword() - It is chained to findUser() and converts mongoose object to JS object In validatePassword method, i want to delete unwanted fields like passw...
doc_26286
I'm facing two problems: * *The first is that the archive can only be extracted using a compression software (7zip for example) but cannot be accessed through windows 10 functionality: Error message: "windows cannot open the folder. The compressed (zipped) folder 'xx' is invalid" The other zip files on my machine...
doc_26287
When a User create a Product, I want that if the User has a Location, the Product is linked to the same Location. So here is my question : Can we transform this : class Location < ActiveRecord::Base belongs_to :localizable, polymorphic: true end class User < ActiveRecord::Base has_one :location, as: :localizable...
doc_26288
//.h @interface embEmailData : NSObject { NSArray *to; NSArray *cc; NSArray *bcc; NSString *subject; NSString *body; NSArray *attachment; } @property (nonatomic, assign) BOOL optionsAlert; -(void)setTo:(NSArray*)to; -(NSArray*)to; -(void)setCc:(NSArray*)cc; -(NSArray*...
doc_26289
This is how I am trying to find it: try: PublishAPostButton = WebDriverWait(Driver.Instance,30).until(lambda d:Driver.Instance.find_element_by_xpath("//div[@class='articles-actions']/a[starts-with(text(),'Publish a post')]")).is_displayed(), "Link still not exists" except: print("Publish a post link not availa...
doc_26290
I've looked at the commerce tab inside the Spacesquare which has an option to connect stripe but there are a few problems. * *The products that I've created in Stripe aren't synced. *The user should first be signed-in through Cognito and there doesn't seem to be an appropriate plug-in that solves this problem accord...
doc_26291
I've tried so far: * *creating a user with IAM, gave him AdministratorAccess, create a bucket, enable transfer accelerate, got this (via the CLI): An error occurred (AccessDenied) when calling the PutBucketAccelerateConfiguration operation: Access Denied * *same thing via the console, same error. *same thing wi...
doc_26292
However, I compiled the following code and it did not get any error. Could you explain about this? #include <stdio.h> void function(int); int main(void){ int m = 0; scanf("%d", &m); function(m); return 0; } void function(int i){ int array[i]; } input: 5 output: nothing. but got no error. A: Added from C9...
doc_26293
I don't get why I'm getting error here. And worse, googling doesn't help.. Below is the output when I try sending "from math import sqrt" to Python by C-c C-r >>> emacs.eexecfile("/var/folders/qy/qyS-532mGoWXHKmsdumelk+++TI/-Tmp-/py1850AbJ") File "/var/folders/qy/qyS-532mGoWXHKmsdumelk+++TI/-Tmp-/py1850AbJ", line 1 ...
doc_26294
{"error": "Shell form does not validate{'html_initial_name': u'initial-js_lib', 'form': <mooshell.forms.ShellForm object at 0xa965bac>, 'html_name': 'js_lib', 'html_initial_id': u'initial-id_js_lib', 'label': u'Js lib', 'field': <django.forms.models.ModelChoiceField object at 0xaaeb76c>, 'help_text': '', 'name': 'js_li...
doc_26295
Say I have a folder containing 40 individual .txt files and I would like to convert them into .csv format. To have an end product : a new folder with 40 individual .csv files. I have seen similar question posted and their code, however the code did run but the .csv files is nothing like the orginal .txt file: all the...
doc_26296
I'm came up with this regex to perform to look for matches. message = re.findall('(?<=[A-Z]{3})[a-z](?=...[A-Z]{3})', data) What I think this does is: * *Look for 3 uppercase letters before a lowercase letter. *Look for 3 uppercase letters after a lowercase letter. *Return said lowercase letter. Is this right?...
doc_26297
Imagine the following situation: amount = 0.053 withdraw = 0.00547849 print(amount - withdraw) >>> 0.047521509999999996 Here, I would actually like to receive 0.04752151, so a more rounded version. However, I do not know the number of decimals these numbers should be rounded upon. If I knew the number of decimals, I...
doc_26298
If I run the app the first time, all is good - The app believes it is the first time launched. (no NSUserDefaults, etc) If I then tap/hold to delete the app in the simulator, then re-run, all the data is there again- Ergo it's NOT a clean install launch at this point. Anyone figure out how to really remove the app from...
doc_26299
I am a vendor so I can't alter the clients html to use ULs. The goal is to have the content div's opacity fade on hover. What is happening is, the img and text within that parent div are also fading on hover. I can't use .css because it is an abrupt change and I don't believe duration can be set. css .content { posi...