id
stringlengths
5
11
text
stringlengths
0
146k
title
stringclasses
1 value
doc_23519900
"autoload" : { "psr-4" : { "MyMVC\\" : "app/" } }, Above is my directory structure. In my Core/Config.php file i have class Config that is under namespace MyMVC\Core. (Just taking Config class as example in question, this is same for all classes). Now in my Config/config.php file i am using below code...
doc_23519901
I am passing a customobject from classA to classB, now i am wanting constructor of customobject in classB and call it classA customclass objCustomclass; classB mClassB; mClassB.getConstructorAndCall(objCustomclass); classB public void getConstructorAndCall(Object objCustomclass); try { Object filledObject = ob...
doc_23519902
package { import flash.display.Sprite; import flash.display.InteractiveObject; import flash.events.Event; import flash.events.MouseEvent; import flash.display.InteractiveObject; import flash.geom.Rectangle; import com.greensock.TweenMax; import com.greensock.easing.*; import flash.utils.setTimeout; public class Flick...
doc_23519903
I now have code which works very well for this except for one problem. I need the fields to be language aware. forms.py class ClimateForm(forms.Form): ... param1 = forms.ChoiceField(choices=PARAM_CHOICES, label=_('Y axis one'), initial=_('Not Specified'), widget=forms.Select(attrs={"onChange":'a...
doc_23519904
@RestController class Handler(){ @GetMapping(path = ["method"]) fun handlerMethod(){ //... } } Also I have email service where I need to send some email with link to my endpoint (in that case http://host/method) @Service class EmailService(val config: Config){ fun sendEmail(){ // send ...
doc_23519905
CREATE OR REPLACE FUNCTION gen_category_counts() RETURNS VOID as $$ BEGIN CREATE TEMPORARY TABLE category_stats ON COMMIT DROP AS WITH PC as( SELECT category_id, COUNT(*) FROM forum_posts fp INNER JOIN forum_topics ft ON ft.forum_id = fp.forum_id ...
doc_23519906
NSMutableArray *section1 = [champs lastObject]; NSArray *oldSection1 = [NSArray arrayWithArray:section1]; [section1 sortUsingComparator:^NSComparisonResult(id obj1, id obj2) { NSDictionary *dictA = (NSDictionary *)obj1; NSDictionary *dictB = (NSDictionary *)obj2; NSString *champName1 = dictA[@"name"]; ...
doc_23519907
for example : If someone wants information "Fruit" is "Guava" in "Pune District" then they will get data for guava in pune district. htt//api/?fruit=Guava&?district=Pune If someone wants information "Fruit" is "Guava" in "Girnare Taluka" then they will get data for guava in girnare taluka. htt://api/?fruit=Guava&?...
doc_23519908
Since we want to build a state-less API server for manipulating our data store, we want to provide our users with an auth token (a 'ticket to ride') which will be included in each call to the API. Question is how to generate this token in a secure way. [idea 1] - The user requests an auth token by sending (user-id,pas...
doc_23519909
My JSON looks like this: data= [ { "flowId": 7079, "flowName": "jackson-demo", "version": 1, "CreatedDate": "2020-04-02", "UpdateDate": "", "LastRunDate": "2020-04-02", "active": false, "properties": [ { "id": 7080, "key": "country", "value": "in", "category": "General" ...
doc_23519910
In this project, I am accepting one time payments using STRIPE. I understand I can not store card details on my side but I want to create new feature such as Payment method similar feature referencing UBER EATS where a user will be able to store card details for future orders payments. Please provide me some ideas or ...
doc_23519911
Now, for some reason, when I create that dictionary, R copies into the console it as normal but does not create the dictionary. No error, but no object in the environment. Then, if I run the code again, I get the following error: Error: unexpected symbol in: "n of small businesses hope*", "federation of small business...
doc_23519912
I have read the vsCode guide on using Python venvs and the vscode guide on getting started with python I'm not understanding the link between how the Terminal window displays its in the venv and how vscode shows its using the selected virtual interpreter. I want to make sure I know which one I am working in so that I c...
doc_23519913
I get the "HiQPdf Evaluation". Which prove the code works. I added my serial number: PdfDocument resultDocument = new PdfDocument(); resultDocument.SerialNumber = "AU***************-OA=="; // this line is not in the help PdfDocument document1 = PdfDocument.FromFile("c:\\temp\\doc1.pdf); resultDocument.AddDocument(docum...
doc_23519914
There are multiple cameras on the scene and there is camera I would like to draw last for post effects. But whatever value I set for the depth of the camera, That camera will be rendered first on Profiler. Therefore, the rendered object is not displayed. How can I change the rendering order? A: I solved it myself. Whe...
doc_23519915
I've managed to get around that by writing a mini-set of manipulators (the wcusT() in the code below).. but I find I'm getting stymied again with GetModuleFileNameEx. I have not been able to natively run GetModuleFileNameEx() This function is defined in <psapi.h>, but there seems to be nothing for it to link to. That i...
doc_23519916
I want to make the file path configerable. Please suggest. I am using file node to trigger the flow. So if anybody can suggest me that how to trigger groovy alone then there will be no need to use file endpoint. Please suggest any solution. A: What you want to do here is configure a file endpoint like so and use this ...
doc_23519917
A: Have you tried using PointToScreen(Mouse.GetPosition(this)) ? (in the System.Windows.Input namespace)
doc_23519918
for i in range(channel_count): if not result[i] is None: result[i] = array('f', result[i]) return result Is there any other faster way to create arrays in python 2.7, so it takes less time to execute the code. A: Just define an empty list and use list's append function to append the resul...
doc_23519919
I want to splice my inputs in my child.vue after clicking on a button in my parent.vue. But every time I delete something in my parent.vue - which I can promise that it's working - only the last Input element in my child.vue will be deleted. If you want to try it do following (you can copy paste the code and run it): ...
doc_23519920
(1) Retain weekly/monthly/yearly snapshots of data to comply with various regulations (2) Recover entire database to a back-in-time picture While traditional databases offer flexibility in terms of backups for recovery, I am trying to understand any backup options beyond cloning and timetravel that customers use to fac...
doc_23519921
PHP Notice: user_id was called incorrectly. Order properties should not be accessed directly. Backtrace: WP_List_Table->display, WP_List_Table->display_rows_or_placeholder, WP_Posts_List_Table->display_rows, WP_Posts_List_Table->_display_rows, WP_Posts_List_Table->single_row, WP_List_Table->single_row_columns, WP_Pos...
doc_23519922
area Case 5 A 51 X 5 B 51 Y 5 C 5 D And I need this: Max=4(area 5), min=2(area 51), average =3((4+2)ocurrences/(2)areas So basically, I need a way to extract Statistics from occurrences of the area field. Thanks in advance! A: We can use table tbl1 <- table(d...
doc_23519923
$ ng build --prod Hash: 1d8a022611a079fc4d52 Time: 15057ms chunk {0} polyfills.6a841d7989dfdd57acf1.bundle.js (polyfills) 249 kB {5} [initial] [rendered] chunk {1} styles.872c1a24be4bf9c1223c.bundle.css (styles) 546 bytes {5} [initial] [rendered] chunk {2...
doc_23519924
I've been trying to do this using link_to remote: true, but I can't seem to get it to work. Documentation online is fairly unclear on this question and with the changes between Rails 2 and 3, some things like :with are no longer supported. I've copied what I have so far, but I know its far from even coming close to a ...
doc_23519925
Here is the table (exam_record) which contains some records of marks. In this result I want to say John is in position 1 out of 3 students. Anyone please help. id name math history history geo pds average total_marks 003 John 90 100 90 100 88 93.6 468 002 Joan 100 60 70...
doc_23519926
stack new myproj I want to install a package lens. If I use the following command, the package will be installed, but it's not being added to package.yml stack install lens The problem is that if I sync the code somewhere else, and run stack install, lens won't be installed. Is there something similar to what nodejs ...
doc_23519927
I have changed my code below. The table holds integers in columns titled "2" and "3". When changing the value of the QSpinBox, I want the numbers in the table to get multiplied by the value from the QSpinBox programatically. Question: How can I programmatically multiply the values in these columns by the spinbox multip...
doc_23519928
Root Exception stack trace: com.mulesoft.weave.engine.ast.dynamic.UnexpectedOperationTypesException: Type mismatch for 'mapObject' operator found :array, :function required :object, :function I use two Dataweaves to build the request. The first builds the prompts used in the SOAP request from the parameters. Th...
doc_23519929
How to achieve this ? Give me sample code for this A: One way is using HttpClient, and there are examples from Apache. Also see this blog post for an Android specific example. A: If the java.net package is available on Android, you can use the URL class. import java.net.*; ... URL url = new URL("http://example.com...
doc_23519930
var re = /^([a-zA-Z0-9 _-]+)$/; if (!re.test(form.titulo.value)) { alert("Error: Input contains invalid characters!"); form.titulo.focus(); return false; } the problem is, I want to allow ' too. So I can type something like: Ana's house, don't... I try to just add ' in the regex, but it didn't work: /^([a-...
doc_23519931
EXEC master..xp_cmdshell 'bcp "[D001Test.Restore].[dbo].[GeneralComments]" in "<DataFile>" -q -c -t "|_|" -r "|+~+|" -k -V80 -a33000 -E -STest' When the database name I am importing into (in this case D001Test.Restore) has a "." in the name, the bcp command fails. Is there any way around this? I have tried both with a...
doc_23519932
What is Max VM count ,we can create in one subscription. Thanks A: You can create as many VMs as you want till your resources are not exhausted (I believe you are not asking for the approach how you are going to create the VMs)There is a limit/constraint for - fixed no of VMs in a cloud service OR fixed number of vh...
doc_23519933
a = df.at('x', 'y') should this return the value of the cell in the row containing 'x' and the column header 'y'? should it matter that the row containing 'x' is not either the name of the row or in the first column? If it doesn't matter can anyone suggest what might be the problem here. Here is some sample data ...
doc_23519934
E:\Nisarg\ZendSkeletonApplication>php composer.phar create-project --repository- url="http://packages.zendframework.com" zendframework/zendframework c:\wamp\www \zc It show me the error that shown below [Composer\Downloader\TransportException] The "http://packages.zendframework.com/packages.json" file could not b...
doc_23519935
I would appreciate any advice you could give me. from sympy import * var('x') p1=Piecewise((0,x< -1),(1,x>=5)) p2=Piecewise((0,x< -1),(1,5<=x)) p3=Piecewise((1,x>= 5),(0,x<-1)) i want output example p2 : Piecewise((0,x< -1),(1,5<=x))) ---> Piecewise((0,x<-1),(?,x<=5),(1,5<=x)) p3 : Piecewise((1,x>= 5),(0,x<-1)) ---> P...
doc_23519936
To make things more complicate the report renders as expected in BIDS, report Builder 3.0 and Firefox. The report has worked before from the Report Manager via Internet Explorer (IE) and only recently started to fail. There have only been minor changes since it last ran well form Report Manager via IE and I have invest...
doc_23519937
<div class="cta_main"> <div class="cta"></div> </div> with the styles like this: .cta { width:1000px; height:350px; margin:0 auto; background-image:url(../images/images/cta_reg_07.png); background-repeat:no-repeat; z-index:100; } .cta_main ...
doc_23519938
1. 123,134,256,345,789..... 2. 123,256,345,678,789...... . . I would like to find the count of all the pair of words/items per row in the file using q in kdb+. i.e. any two pair of words that occur in the same row can be considered a word pair. e.g: (123,134),(123,256),(134,256), (123,345) (123,789), (1...
doc_23519939
Every time calling function findElement() my local proxy server that shows three request to tracking sites, total nine unnecessary requests for code below. HTML := FileRead("page.html") findElement(HTML, findStr) { HTMLFile := ComObjCreate("HTMLfile") HTMLFile.write(HTML) DOMElements := HTMLFile .getEleme...
doc_23519940
Now, I want to extract those values from it and want to save them in few int variables.I have been trying to do it but could not succeed, if some one can please help me in it, I will be really grateful!!! So far, i have tried to do int firstintfrombuffer = *((int*)(buffer)); and int firstintfrombuffer =(int) buffer[0...
doc_23519941
{#792 ▼ +"cities": array:346 [▼ 0 => {#454 ▼ +"name": "XXX" +"id": "1" } 1 => {#452 ▼ +"name": "ABC" +"id": "2" } 1 => {#452 ▼ +"name": "ABC" +"id": "2" } 2 => {#433 ▼ +"name": "XYZ" +"id": "3" } etc... And a string (a text value in the ...
doc_23519942
How i can find the coorinates of the other corners? enter image description here
doc_23519943
<div class="row header"> <div class="title col-lg-11 col-md-11"> <h2>Some long dont interesing title</h2> </div> <div class="blackListLink col-lg-1 col-md-1"> <a href="#">Administrator</a> </div> </div> .header { display: table; margin-left: 15px; ...
doc_23519944
The database and websites are on the same server. Are there any pros or cons for each configuration? A: I think it depends if you're the only one that's accessing the database, and what kind of website it is. If you're making websites for clients with WordPress for example, or any other CMS where the database credenti...
doc_23519945
examples.forEach((ex, i) => {const button = document.createElement("button"); button.classList.add("toggle"); button.innerHTML = "výsledek"; button.addEventListener("click", () => toggle(i)); card.appendChild(button); }); I need add specific ID to each button. I think i could use the "i" and us...
doc_23519946
I'm thinking that I would have to create a column for each of code type, so far I' have a column for a primary dx and then secondary dx and that belongs to the medical entry model to limit it to just two for simplicity, but with the CPT column I think it will be a problem since a provider typical will have several CPT ...
doc_23519947
My problem is, when I check with CanGoBack I get the answer true, then I call GoBack. Before calling GoBack I'm able to let the page check it's validity and returning false in case it is invalid. Then I do not call GoBack. So far so good. Unfortunately if a TextBox has still the focus from the last input, the LostFocus...
doc_23519948
i ve followed some tutorial but it's not working too this.mdf.on("getFiles", (res: any) => { let results = res.object.get('results'); results.forEach(element => { let millisecondes = (new Date).getTime(); let folder = fs.knownFolders.documents(); console.log('folder ',fol...
doc_23519949
Many tutorials either use the Navigation-based template or View-based template, but I would like to try building tab bar applications. Tutorials either use the App Delegate or rootViewController (being the navigation controller), but since my tab bar is my rootViewController, I always run into an issue. I'm also unable...
doc_23519950
public class SalesOrder { public static SalesOrder fromJSONObject(JSONObject o) { SalesOrder sa=new SalesOrder(); sa.setOrderNumber(o.getString("order_number")); sa.setCustomerName(o.getString("customer_name")); sa.setOrder_files(o.getJSONArray("order_files")); return sa...
doc_23519951
dim ws as worksheet set ws = thisworkbook.sheets("master sheet") with ws .range("V2:V91004").formula = "=vlookup(C2,sheet2!$A:$B,2,0)" end with I want to remove the Range ie 2:V91004 and let my code take the range itself because my lookupvalue (column C)row number varies from 75000 to 100000. Pls suggest.. A: I have ...
doc_23519952
But I can't understand how should I extend Backgrid.Header to achieve this. Any help would be appreciated. A: See this ticket on the official repository.
doc_23519953
Cast from 'MDLMaterialProperty?!' to unrelated type 'PFUser' always fails The offending line seems to be the "if let" clause below. I've commented the old line which worked fine in the previous version of Swift for comparison. With respect to what this is actually doing - I've passed an array of Parse objects into...
doc_23519954
calling lockcanvas after calling getholder() in onCreate and also tried same from the method but I got error. here is mainactivity: public class MainActivity extends AppCompatActivity { private Main2Activity contentView; Tester tester; @Override protected void onCreate(Bundle savedInstanceState) {...
doc_23519955
Below are screenshots of the 3.5" size and the 4" size. On the 4" size, I've added a line. Left of that line, none of the buttons receive click events. To the right of that line, all buttons behave normally. The left side of buttons 2, 5, and 8 do not respond to clicks, but the right sides of those buttons do respond. ...
doc_23519956
define host { host_name my-host address ip display_name my-host hostgroups windows,windows-process-count use windows-server _PROCESSNAME my-process1.exe _PROCE...
doc_23519957
Initially I am fetching lat and long by default, and loading markers, which is working fine. Now, after a form submit, I am taking the input values and fetching data from database and calling a JS function with the newly created array as parameter and calling the initmap(). Now, the crazy part is I have achieved what m...
doc_23519958
com.facebook.react.common.JavascriptException: Error: Requiring module "582", which threw an exception: TypeError: null is not an object (evaluating 'l.default.createNode'), stack: h@2:1476 <unknown>@1379:1054 h@2:1585 <unknown>@1378:183 h@2:1585 <unknown>@1377:139 h@2:1585 <unknown>@1349:654 h@2:1585 <unknown>@1348:13...
doc_23519959
record_to_string(#roster{us = {User, _Server}, jid = JID, name = Name, subscription = Subscription, ask = Ask, askmessage = AskMessage}) -> Username = ejabberd_odbc:escape(User). .... . A: They are related to Records in Erlang. Infact every operation like creation,accessin...
doc_23519960
What do other people use for running unit tests against .net projects? I have googled other apps including MBUnit and the Unit test App from Nunit.org and wondered what comes out on top for people. A: I use the separate NUnit GUI, that is shipped with NUnit. The down side is that you have to alt-tab to it, but I like ...
doc_23519961
I have been trying to replace the "$" at the start of a users prompt's with a "#" This is due to us revoking root access to these users, The users are fine with the limited access. However some of the users are generating support calls because they no longer see the hash at the start of the prompt's, Thus thinking the ...
doc_23519962
This would be the first page that someone sees when launching the App, and would have an "Enter" button leading into the firstviewcontroller ideally i.e. the first tab of the tab bar. I cannot find how to do this at all - have explored Splash screens (but understand this is not what it's meant for). And all the codes t...
doc_23519963
A: ActionBarActivity is in an Android library project, not a JAR. There are instructions in the Android developer documentation for how to add an Android library project to your environment and attach it to your application project. A: You have to update your Support Library through your SDK and then navigate to the ...
doc_23519964
{ "_id" : BinData(0, "RUBR58qePxvfGqR7WjpkiQ=="), "creation_date" : ISODate("2020-02-05T18:30:14.152+0000"), "retention" : NumberInt(24) } I want to select all items where creation_date + retention < NOW How can i do ? A: I think this aggregation pipeline should do the trick: [ { $redact: { ...
doc_23519965
declare var thing: ThingStatic; export default thing; I reference npm module in my TypeScript: import thing from 'thing'; ... thing.functionOnThing(); When I transpile the TS (targeting ES6) it looks something like this: const thing_1 = require("thing"); ... thing_1.default.functionOnThing(); This then throws an err...
doc_23519966
This is the from the tutorial in the admin form with a slightly changes (remove the vote to appear in the form and limit the choices to 5) class ChoiceInline(admin.StackedInline): fieldsets = [ (Choices, {'fields': ['choice']}), ] model = Choice max_num = 5 class PollAdmin(admin.Mode...
doc_23519967
<iframe width="600 height="450" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?key={{keys}}&q={{var.address}} " allowfullscreen></iframe> where key would be your API key and q(query) would be the place queried and it will display the map. Is there a similar way to do it with OSM? I l...
doc_23519968
_, err := kms.ScheduleKeyDeletion(... ev, ok := err.(awserr.Error) deleted := false if ok { switch ev.Code() { case "KMSInvalidStateException": deleted = strings.Contains(aerr.Message(), "pending deletion") case "NotFoundException": deleted = true } } Basically, want to ...
doc_23519969
$li = "Hello World";; Why is PHP not throwing a syntax error even though there are two semicolons? Is PHP really this loosely typed? Ugly. A: The parser has no concept of white space so that's the equivalent of this: $li = "Hello World"; ; Which of course is fine, because empty statements are valid syntax. (And no, ...
doc_23519970
I've done this through thresholding and getbbox: import matplotlib.pyplot as plt import matplotlib.image as pli from skimage.filters import threshold_otsu as otsu from PIL import Image cnh_gray = Image.open("cnh.jpg").convert('L') cnh_gray.save('cnhgray.jpg') img = pli.imread('cnhgray.jpg') imagem = Image.open('cnhgr...
doc_23519971
The second problem to solve is I have to take only diff from CodeId 22 to 23, I have to discard the Diff between CodeId from 23 to next 22. I CodeId = 22 is GO, and 23 = Stop, I have to compute the driving time. Fecha Driver CodeId Diff 2014/03/01 14:00:00, 7168, 22 , 0 2014/03/01 14:30:00...
doc_23519972
Is there a way to disable this? I just want to chart as it is. No movements. I tried to set animation to false. But it does not work. Jake He A: The initial animation is hidden under a different "animation" option: plotOptions: { series: { animation: false } }, Here's a JSFiddle u...
doc_23519973
We are currently migrating from Vaadin framework 8.0 to 8.3.2. One of the reasons of doing is that there's a requirement of using tree for the menu. Since 8.0 doesn't have tree, the workaround for generating a menu is by instantiating an inner Button class with the help of an Enum class in a loop (for user permission c...
doc_23519974
The script need to import an image and then positioned nicely on other images. For example a text image overlaid on other product image such as shirt, phone case, etc. Yes, this can be done through basic canvas mannipulation. The main problem is if the other product is a 3D image such as a cup, bottle, ball, or any ro...
doc_23519975
An error occurred while installing openssl (2.2.0), and Bundler cannot continue. Make sure that `gem install openssl -v '2.2.0' --source 'https://rubygems.org/'` succeeds before bundling. along with Installing openssl 2.2.0 with native extensions Installing cppjieba_rb 0.3.3 with native extensions Gem::Ext::BuildError...
doc_23519976
videoCamera = [[CvVideoCamera alloc] initWithParentView:_imageView]; videoCamera.defaultAVCaptureDevicePosition = AVCaptureDevicePositionBack; videoCamera.delegate = self; videoCamera.defaultAVCaptureSessionPreset = AVCaptureSessionPreset640x480; videoCamera.defaultAVCaptureVideoOrientation = AVCaptureVideoOrientationP...
doc_23519977
A: A. You should use GGmpeg for Android, for example. Here you have some questions like yours. * *question with code *more detailed tutorial *Google Group *another question B. Another approach, although limited, is Android SoundPool. Check documentation here. The sound pool requires you to manage multiple fil...
doc_23519978
public class BinaryTree<T> { TreeElement root; public BinaryTree() { root = null; } public BinaryTree(T data, BinaryTree<T> bl, BinaryTree<T> br) { root = new TreeElement(data); if (bl != null) { root.left = bl.root; } if (br != null) { ...
doc_23519979
The problem I'm having is that with a certain payment method (via a gateway-module) the payment method field in the pdf is empty. The strange part is that if I resend the e-mail, the field is properly filled. I have searced google to find only similar problems. A: What happens if you output the PDF at the point of att...
doc_23519980
As you can tell, there are plenty of blanks. I want to propagate non-null values forward (so for example, in the first row 1029 goes to 1963.02.12 column, between 1029 and 1043) but only up to the last entry, that is it should stop propagating when it encounters the last non-null value (for D it would be the 1992.03...
doc_23519981
It looks like this: ID Product Value Produc01 Value01 0 A 1,20 a 2 1 A 3,30 b 9 2 B 5,50 c 4 3 B 4,30 d 2 4 B 450 Nan Nan 5 B 6,30 Nan Nan 6 C 9,30 Nan Nan and I'd to look like this: ID Product Value 0 A 1,20 1 A 3,30 2 B 5,50 3 B 4,30 4 B ...
doc_23519982
The Part I am trying to do is where the profile picture is. I am trying to add a div that is positioned over another div and I really have no idea where to start. I have the nav and the blue container but not sure how to create the div on top like shown. http://www.bootply.com/v7fKXw63nh Any ideas? A: Try using the r...
doc_23519983
var listToBecomeArguments = ["foo","bla"]; myFunc(listToBecomeArguments); when called would do something like this: function myFunc(arg1, arg2) { // arg1 is "foo", arg2 is "bla" } A: For your function function myFunc(arg1, arg2) {...} use the .apply() method like this: myFunc.apply(null, listToBecomeArguments)...
doc_23519984
my schema is like this name : { type: String, trim : true }, pictures: { type : Array, required : false }, and in my database it looks like this { "_id" : ObjectId("5eb67e7c74b35b205362b7f4"), "title" : "john doe", "pictures" : [ "img1.jpg", ...
doc_23519985
HTML <body class="index m-scene" id="main"> <!-- // Start HTML \\ --> <header id="header" class="fixed"> <div class="container_12"> <h1 class="grid_4"> <a href="#" class="logo backtotop"> <img src="images/logo.png" alt=""> <span>Maurice Draait</span> ...
doc_23519986
A: try creating a function returning table , with all your conditions met. maintain a table variable ( say @tab1 ) inside steps, insert interim values to this table ( or append ) , and finally return that variable. this way you may use this function inside sql queries A: If by "action" you mean "set a value in a col...
doc_23519987
Some code: foreach ($socialstream as $key => $social) { //filtering in here $result= $this->search_objects($social); .... } My function search_objects: function search_objects($objects) { $filters = array('word', 'test'); foreach ($objects as $key => $value) { if (is_array($value) || is_obj...
doc_23519988
Thanks in advance! Ike A: It is not possible to check in javascript in the browser, whether a file exists or not. A file upload form does not give you the path to the file it is uploading (otherwise, it'd be a security hole!). There is no reason why the browser needs to check the client side's file system. An alterna...
doc_23519989
pBar = new ProgressDialog(context); ((TextView) pBar.findViewById(android.R.id.message)).setText("dfdf"); pBar.setTitle(title); pBar.setMessage(msg); pBar.setProgressStyle(style); pBar.setProgress(100); but i want to modify the message text size and color,can you give me some ad...
doc_23519990
"The certificate is not trusted because the issuer certificate is unknown. The server might not be sending the appropriate intermediate certificates. An additional root certificate may need to be imported." All software versions are as follows: Firefox - 60.0.2 Python - 3.6 Selenium - 3.12.0 Gecko driver - 20.1 T...
doc_23519991
from scipy.integrate import ode import numpy as np A0= [10**-4, 0] t0 = 0 B0 = 10**-4 + 0j coeff = np.complex(0.145,-0.088) coeffr = np.real(coeff) coeffi = np.imag(coeff) def f(t,A): return [(A[0]**2 + A[1]**2)*(- coeffr*A[0] + coeffi*A[1]), (A[0]**2 + A[1]**2)*(-coeffr*A[0] - coeffi*A[1])] def jac(t,A): ...
doc_23519992
I am using vscode to debug and want to do the same thing (This is different from the watch window, which will only show variable values after a breakpoint has been hit). Is it possible? I can manually add a breakpoint by clicking the '+' and enter &variable but it never becomes active and says the module has yet to be ...
doc_23519993
I cleaned the build folder, restarted the device, Xcode and the Mac, nothing helps. I also tried everything that's mentioned here: Install claimed to have succeeded, but application could not be found on device How do I force a re-installation? A: I had a similar issue after one of Carthage/XCode updates. It means iOS...
doc_23519994
def entries return lang # lang is a hash end inside def initialize @lang = Hash.new return entries end But it is returning an empty hash. At the end of the code, I have @query = Book.new @query.add('sea') @query.include?("sea") How do I get the stored value. So I can call include? on @query itself....
doc_23519995
git log --pretty='%C(yellow)%h%Creset %s' --abbrev-commit gives me a yellow commit id and white subject line, but in powershell (with posh git) I get no yellow commit id (it's the default white). Why ? A: It turns out PowerShell's console renders System.ConsoleColor.DarkYellow as white: [Enum]::GetValues([ConsoleColo...
doc_23519996
Below is an example where this occurs when using integers as keys: Using tuples: print timeit.timeit(''' for (int1, int2) in indexes: x[ int1, int2 ] ''', setup=''' x={} indexes = [] for int1 in xrange(1000): for int2 in xrange(1000): x[ int1, int2 ] = 'asd' indexes.append((int1, int2)) ''', num...
doc_23519997
This what i have tried with my login page router.post("/login",passport.authenticate("local", async (req, res, next) => { const { usernameOrEmail, password } = req.body if (!usernameOrEmail) { var err = new Error("username is required!"); err.status = 403; next(err); } else if (!password) { var err = new Error(...
doc_23519998
orders ----------+--------------+-------------+-------------+-------------+ Id | Username | Item1Id | Item2Id | Item3Id | ----------+--------------+-------------+-------------+-------------+ 1 | a@aa.com | 8000001 | 8000002 | 800003 | ----------+--------------+-----------...
doc_23519999
// Adjust image when browser is resized $(window).resize(function(){ base.resizeNow(); }); How can I do this? A: you get the viewport dimensions of your page, and then wrap your resize function inside an if statement: $(window).resize(function() { var currentViewPortHeight = $( window ).height(); var current...