id
stringlengths
3
6
prompt
stringlengths
100
55.1k
response_j
stringlengths
30
18.4k
346444
I want to display an object if the condition is false for which I was doing something like this in my stateful component return statement. ``` { !this.state.searchCoin ? {displayCrypto} : null } ``` For this, it is throwing the following error > > Objects are not valid as a React Child > > > My display c...
First of all number your rows, so get the first and fourth per `M_PACK_REF`. Then compare. ``` with numbered as ( select m_pack_ref, m_nb, m_xpfwspt, row_number() over (partition by m_pack_ref order by m_nb) as rn from gather ) select * from (select * from numbered where rn = 1) first join (select ...
346591
So I have a PHP array "$shared" with values [0, 1, 2] (I'm just using this as an example). I want to insert and retrieve this array from my MySQL database, but its not working. Currently I'm using this code to insert it: ``` mysqli_query($dbhandle, "INSERT INTO table (arraytest) VALUES ('$shared')"); ``` And after ...
I have to question why you would want to do this, but the simplest answer is to serialize the array. ``` "INSERT INTO table (arraytest) VALUES ('" . serialize($shared) . "')" ``` Then you can use `unserialize` when you retrieve it from the database --- You should properly parameterize your queries to prevent injec...
347315
I want to write a bash script : ``` schedsim.sh [-h] [-c x] -i pathfile ``` Where : • -h: print the current username. • -c x : get an option-argument x and print out (x + 1). If no argument was found, print the default value is 1. • -i pathfile: print the size of pathfile. The pathfile is a required argument. ...
A rewrite: ``` while getopts ":hc:i:" Option; do case $Option in h) echo "$USER" ;; c) x=$(($OPTARG + 1)) ;; i) if [[ -f $OPTARG ]]; then size=$(wc -c <"$OPTARG") else echo "error: no such file: $OPTARG" ...
347857
I like the way Xfce works on top of Linux Mint 14 Nadia (Quantal) - but I also like LXDE that I want to have in parallel. Mint 14 has no LXDE "version" now, and that is too bad. I heard that installing multiple DE is not a problem. But ... problems may occur. After installing LXDE (and I am not sure this is the real ...
The cause of this may be in a way related to LXDE but not directly: it is the Xfce's session manager that seems to be the real problem, and switching between different DE sessions might have triggered this. For some reason `xfwm4` does not start or does not work properly at the start of an Xfce session. Browsing the in...
348007
I'm creating a map editor for a little game project that I'm doing. Considering that the map editor isn't going to be intense, I simply used java 2d, which I hate. Anyways, here is my map.java, tile.java, and my TileList.java code. FIXED, I modified my TileList.java code (set function) to this: Alright, I fixed it: I ...
Can you search for the element using the search bar at the top of the firebug window?
348013
Let's say I'm running a mill deck. I have some kind of infinite mill combo ready and available (e.g. [Semblance Anvil](http://gatherer.wizards.com/Pages/Search/Default.aspx?name=%2b%5bSemblance%20Anvil%5d) imprinting a creature, [Myr Retriever](http://gatherer.wizards.com/Pages/Search/Default.aspx?name=%2b%5bMyr%20Retr...
You are not allowed to execute this entire combo, either using a shortcut or playing it out explicitly. You cannot execute this combo with a shortcut because of the way shortcuts are defined in rule 720.2a of the [Taking Shortcuts](https://mtg.gamepedia.com/Shortcut) rules section: > > At any point in the game, the ...
348088
From UK-relevant results: 1. <http://careers.stackoverflow.com/jobs/8762/network-rail-graduate-programme-network-rail?campaign=List> 2. <http://careers.stackoverflow.com/jobs/9324/begin-a-career-in-consulting-now-accenture-uk?campaign=List> 3. <http://careers.stackoverflow.com/jobs/10410/immediate-graduate-opportuniti...
Wow... Great post! You bring up lots of good points. Rather then responding to them one by one, I'll respond in broader strokes. I agree that tags and the Joel test make for better postings, yet I'd be hesitant to build a sorting algorithm out of them. Users should be able to determine what they want to look at rath...
348380
I did not find any way to set the access tier of a blob when I upload it, I know I can set a blob's access tier after I uploaded it, but I just want to know if I can upload the blob and set it's access tier in only one step. And if there is any golang API to do that? I googled it but I got nothing helpful till now. H...
The short answer is No. According to the offical REST API reference, the blob operation you want is that to do via two REST APIs [`Put Blob`](https://learn.microsoft.com/en-us/rest/api/storageservices/put-blob) and [`Set Blob Tier`](https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-tier). Actually, al...
348634
It seems impossible or very complicated to keep the original elements in webdriver of selenium after moving another page via a link generated by javascript. How can I do this? I'm trying to do web scraping for a particular web page using the following components: * Ubuntu 18.04.1 LTS * Python 3.6.1 * Selenium (Python...
Even you return the same page, but selenium don't know it's the same page, selenium will treat it as an new page. The `links` found before the for loop is not belong to the new page. You need to find the links again on the new page and assign them to the same variable `links` inside for loop. Using index to iterate to ...
348722
Using a Jetty web server, started from maven, which includes iBatis, Spring, Jersey, a little of this and a little of that, I get logging output with a host of formats. Some are from maven: ``` [INFO] [war:war] [INFO] Exploding webapp... ``` Some are from Jetty: ``` 2009-03-25 21:01:27.781::INFO: jetty-6.1.15 200...
This is possible using the logback library and its bridges. It basically consists to remove any log4j commons or alike jars from the classpath, stick logback jar file and bridges jars for log4j and alike. Spring, jersey and maven will use the bridge factories to instantiate loggers which in turn will use logbak produci...
348963
I see lots of current accounts have switching bonuses - is there generally any limit to how soon after opening a new account you can switch and get these? More specifically: say I opened a current account like [this FirstDirect one](http://www1.firstdirect.com/1/2/banking/current-account?fd_msc=PCS0000003&WT.mc_id=FSDT...
No, to follow up on your example First Direct won't care (and I suspect won't even know) how long you held the account you are switching to them so if you don't want to switch your main current account to them you can just open a new one and switch that. To get the bonus you just need to make sure you meet the require...
349941
In my React native app I am using "react-navigation": "^3.11.0". I have top level bottomTabNavigator ```js const TabNavigator = createBottomTabNavigator({ Main: { screen: balanceStack, navigationOptions: { tabBarLabel: I18n.t("balanceTabLabel"), tabBarIcon: ({ tintColor}: {t...
``` private JLabel gameArea; ``` A JLabel does NOT have a method runGame(). Your code should be: ``` private GameArea gameArea; ``` Then you will be able to use `gameArea.runGame()`. But the real question is why are you even doing this? You can just invoke `setText(...)` on the label to change the text. There i...
350381
**Request description:**. I want disable jaeger client remoteReporter, I don't nee send to agent, Because istio would make it. **Tried:**. Add `quarkus.jaeger.sender-factory` prop in my application.properties but I not has lucky, and can't find when use this prop in source code. **env infomation:** java versio...
It seems like `io.jaegertracing.internal.senders.SenderResolver` which determines the Sender to use is pretty broken, which is why `quarkus.jaeger.sender-factory` isn't being taken into account. One way to achieve what you want is to add a service loader file, i.e. add a file named `resources/META-INF/services/io.jaeg...
351559
I'm using *`virtualenv`* and I need to install "psycopg2". I have done the following: ``` pip install http://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.4.tar.gz#md5=24f4368e2cfdc1a2b03282ddda814160 ``` And I have the following messages: ``` Downloading/unpacking http://pypi.python.org/packages/source/p/...
If you using Mac OS, you should install PostgreSQL from source. After installation is finished, you need to add this path using: ``` export PATH=/local/pgsql/bin:$PATH ``` or you can append the path like this: ``` export PATH=.../:usr/local/pgsql/bin ``` in your `.profile` file or `.zshrc` file. This maybe vary ...
351610
I've posted this question in the MS forums, but the only response (create a macro and extrapolate from the VBA code) didn't help. The only vague hint I got was to use TickLabelPosition -- which apparently is something only useful if you're using VB, and I'm using C# What I'm trying to do SHOULD be the most simple and ...
ALthough it's completely undocumented, this command will work: chart.Axes(2).CrossesAt = chart.Axes(2).MinimumScale;
351764
Simply prefixes a # to the field name I am using Laravel Breeze, which by default sets the `password` and `remember_token` fields to hidden. ``` class User extends Authenticatable { use HasFactory, Notifiable; protected $fillable = [ 'username', 'email', 'password', ]; protec...
That's because these fields are only hidden when you convert your model to array or JSON. From the documentation: > > Sometimes you may wish to limit the attributes, such as passwords, that are included in your model's array or JSON representation. > > > The whole documentation about this topic is available here...
351955
MAJOR EDIT: Reframing question as this might be easier to solve... I am trying to generate JSON microdata using PHP code in Wordpress. I'm currently using the foreach() method to cycle through a list of posts on a page, put their thumbnail, title and link data into an array, and I'll later encode that array into JSON ...
Use this ``` $array_details['associatedMedia'][$i] = $post_details[$i]; ``` instead of ``` $array_details['associatedMedia'] = $post_details[$i]; ``` **Update :** Keys of array elements should be unique. Use any of the below format to get the desired results. ``` foreach( $posts as $post ) { .... $arra...
352524
First of all I'm playing with Retrofit for the first time in Kotlin Android. **So the Logic i want is like this:** 1. I want send a **username** to the Rest API. 2. Then check if it is exists or not. 3. if it exists I want to make a Toast message saying **true** if it does not exist **False**. So, I have this JSON ...
Change this ApiInterface ``` interface ApiInterface { @GET("users") fun check( @Query("username") username: String ): Call<FakeUserModel> } ``` When username is present you will get response like below Url - <https://jsonplaceholder.typicode.com/users?username=Bret> ``` [ { "id": 1, "name": "Leanne Graham", "use...
352889
Why I can not access my variable `p` in `mull` class's `iterate` method? ``` public class mull { public static void main(String[] args) throws InterruptedException { final JPanel p = createAndShowGUI(); Timer timer = new Timer(1000, new MyTimerActionListener()); timer.start(); try { ...
Declare `p` as a static field to the class: ``` private static JPanel p; ```
353292
i want dynamically create ascx files, to partial render them. but as i know, ot show them , i at least need dummy method: ``` public ActionResult test() { return PartialView(); } ``` how can i create this method for each new ascx file? upd: i need factory?
you might find the following questions to be of use: [What are some good resources for learning about Artificial Neural Networks?](https://stackoverflow.com/questions/478947/what-are-some-good-resources-for-learning-about-neural-networks) [Open-source .NET neural network library?](https://stackoverflow.com/questions/...
353583
I am trying to make a program that sends a message after a user makes a choice, but after the choice is made then it just closes cmd. Here's the program. ``` @echo off title Get A Life cd C: :menu cls echo I take no responsibility for your actions. Beyond this point it is you that has the power to kill yourself. If ...
well i tried a few ways to see the possibilities on how to inputs through different objects and i explored it in 4 different ways ``` public String input1() { System.out.println("enter the input"); Scanner sc=new Scanner(System.in); String s1=sc.nextLine(); return s1; } public String input2()throw...
353672
I am currently struggling with a mathematical problem and can't seem to get it solved. I have a bunch of rotated rectangular polygons (solution should also work for non-rectangular polygons) in different shapefiles. I want to (automatically) find the lower left corner of each of the polygons using python (arcpy). Fi...
Here's a very simple approach that offloads all the processing into the [Sort](http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/sort.htm#GUID-26359B3D-A0C8-4666-B99B-40C8B4D91449) GP tool. Since you have access to an Advanced license, sorting by shape and starting at the lower left corner gives...
354252
I have a strange problem with mysql count. When I execute ``` SELECT a.inc AS inc, a.cls AS cls, a.ord AS ord, a.fam AS fam, a.subfam AS subfam, a.gen AS gen, aspec AS spec, asubspec AS subspec FROM a WHERE (ainc = 11) ``` I obtain: ![](https://farm9.stat...
> > I know that count distinct doesn't count zero values. > > > I don't know where you got that idea, but it is not correct. Perhaps you are thinking of NULL values? One way to get the results you desire is to treat the 0s as NULL in your distinct count. Try something like this (I also removed the group by, which...
354314
I am putting together a build system for my Qt app using a qmake .pro file that uses the 'subdirs' template. This works fine, and allows me to specify the order that each target is built, so dependencies work nicely. However, I have now added a tool to the project that generates a version number (containing the build d...
I currently use qmake to exec my unit tests automatically for two years - and it works fine. Have a look here - I made a mini-howto for that: [Qt: Automated Unit Tests with QMAKE](http://www.3dh.de/?p=97) Abridged summary: ================= --- Structure --------- ```none /myproject/ myproject.h myproject...
354433
I have used `Lehigh University Benchmark` (LUBM) to test my application. What I know about `LUBM` is that its ontology contains 43 classes. But when I query over the classes I got 14 classes! Also, when I used Sesame workbench and check the "Types in Repository " section I got 14th classes which are: ``` ...
From what you have said I don't think you are doing anything wrong with respect to using Telerik controls. However please try the following; 1. Remove all the middle 'html' in between the 2 controls and try 2. Render the page in Chrome and check the console for any rendering issues 3. Check the rendered Html to verify...
355489
A subset $X$ of $\mathbb{N}^n$ is *linear* if it is in the form: $u\_0 + \langle u\_1,...,u\_m \rangle = \{ u\_0 + t\_1 u\_1 + ... + t\_m u\_m \mid t\_1,...,t\_n \in \mathbb{N}\}$ for some $u\_0,...,u\_m \in \mathbb{N}^n$ $X$ is *semilinear* if it is the union of finitely many linear subsets. > > What are the techn...
$A\_n$ is normal in $S\_n$ and $S\_n / A\_n$ is the group of order 2. The kernel of the quotient map $\theta : S\_n \longrightarrow S\_n / A\_n$ is $A\_n$. So under $\theta$, $S\_n \setminus A\_n$ maps to the element of order 2 in $S\_n / A\_n$. Hence every element in $S\_n \setminus A\_n$ must have even order.
356174
This is my current `.htaccess` file: ``` RewriteEngine on # remove trailing slash RewriteRule (.*)(/|\\)$ $1 [R] # everything RewriteRule ^(.*?)$ /handler.php?url=$1 [L,QSA] ``` However, this doesn't work, it throws a `500 Internal Server Error` My previous `.htaccess` file looked like this: ``` RewriteEngine ...
The error is saying that your project depends on google\_Play\_Service\_Lib and android studio is not able to find that dependency, but what android studio did is giving you the path where you can paste that library and then you will able to import that project. first download google\_service\_lib from <https://githu...
356690
I'm looking at [TensorFlow implementation of ORC on CIFAR-10](https://github.com/tensorflow/models/blob/master/tutorials/image/cifar10/cifar10.py), and I noticed that after the first convnet layer, they do pooling, then normalization, but after the second layer, they do normalization, then pooling. I'm just wondering ...
It should be pooling first, normalization second. The original code link in the question no longer works, but I'm assuming the normalization being referred to is batch normalization. Though, the main idea will probably apply to other normalization as well. As noted by the batch normalization authors in [the paper intr...
357073
I am learning AWS CloudFormation. Now, I am trying to create a template for VPC and Subnets. I am now creating a VPC. This is my template: ``` AWSTemplateFormatVersion: '2010-09-09' Description: "Template for Networks and IAM Roles" Resources: Vpc: Type: AWS::EC2::VPC Properties: CidrBlock: '10.0.0.0/...
There are way too many sub-questions to answer each of them individually here. Instead I can write this. CIDRs for VPC are selected from three [common ranges](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html#VPC_Sizing): * 10.0.0.0 - 10.255.255.255 (10/8 prefix) * 172.16.0.0 - 172.31.255.255 (172.16/...
357161
Writing an application which sends 4 ints over socket, trying the following but getting 0s at receiving end... I assume this is something to do with the way I'm passing them signedness & endianness etc... ``` int _send(int sock, int c, int x, int y, int w) { int cc, xc, yc, wc; char buf[16]; int offset; ...
``` buf[offset] = htonl(c); buf[4] = htonl(x); buf[8] = htonl(y); buf[12] = htonl(w); ``` this is broken. you should declare array of `int`egers. Reason is that `buf[i] = x` meants put a byte at i-th cell, and if it doesn't fit then truncate. That is what is happening.
357845
I have mysql-table called products with the following structure/contents: ``` id (int), public_id (int), deleted (bool), online (bool) 1 1 0 1 2 1 0 0 3 1 1 0 4 2 0 1 5 ...
based on Sachin's answer and your comment, maybe this can help: ``` select * from products where id in ( select max(id) as id from products where sum(deleted) = 0 group by public_id ) and online = 1 ``` **Edit by Pentium10** The query can be rewritten into ``` SELECT * FROM products p JOIN (S...
358161
> > This is My XML Format > > > ``` <Formsxml CM="7" CW="3"> <Forms GroupName="Kingfisher" PRONME="Kingfisher" TBONUSP="6000" NACRES="45" TP="133.333333"> <Form M="1" GroupName="Kingfisher January" PRONME="Kingfisher" TBONUSP="1000" NACRES="7.50" TP="133.333333" /> <Form M="2" GroupName="King...
I'm afraid your effort of twelve `xsl:choose` instructions is totally vain and logically wrong. You can obtain the wanted result with less effort, but you need a lookup table for the months. The following transform is just a "get-started". Give it a run and you will notice that: * For each Forms group only the requir...
358385
I'm a new Ruby/Rails guy. Here's one question puzzling me: Can we find the exact module lists mixin-ed for a class in Rails from the API doc? For example, if we have an instance of one subclass of ActiveRecord::Base, we can use validates method in this class such as following: ``` class Product < ActiveRecord::Base ...
in console : ``` ActiveRecord::Base.included_modules ```
358536
I use the current event to update the RecordSource property of a subform based on the ID of the record on the parent form. The problem arises in new records, because the ID field (which is an autonumber) is null. I test for the null ID to avoid errors, but I need to update the RecordSource as soon as the record is crea...
There is an After Insert event that will do what you want-- it fires after the record has been inserted and therefore the ID is in existence.
358688
I have troubles to add some data to my Mysql Data base : i work with redhat jboss and wildfly 9.x server i generated my entities , so it seems like my server work fine, but when i started to add some data in my client project , it keep show me an error that is No EJB receiver available for handling . this is my Service...
You have a couple of issues. 1. `socket.connect` doesn't return anything. It returns `None`. You think it returns a tuple of `conn, addr`. Python tries to deconstruct whatever is returned into a tuple by iterating over it and you get the error: ``` TypeError: 'NoneType' object is not iterable ``` 2. socket.sendall a...
358923
I am having an undefined value when I tried to convert my canvas to a blob. I have this code below which works fine, but when I tried to move the console log below to the function then it gives me undefined. Here is the working code: ``` const handleSave = (params) => { let previewUrl; previewCanvasRef.c...
Use this: ```js document.getElementById("clickCount").addEventListener("click", function() { document.getElementById("showMe").value++; }) ``` ```html <input type="number" id="showMe" value="1"> <button type="button" id="clickCount">Click Me</button> ```
358971
I have this IF clause snippet from a PHP script that is basically a small search engine: ``` if(isset($_REQUEST['search'])){ $search_term = trim($_REQUEST['search']); if(strlen($search_term) <= 0){ $website_search_dynamic -> error($website_search_dynamic->label("Please enter a search query."),true); ...
``` $insert_cust=mysql_query("INSERT INTO tb_cust(cust_id,cust_name,cust_add) VALUES(NULL,'$cust_name','$cust_add')"); mysql_query($insert_cust); ``` Why did you run mysql\_query twice? As you try to run `mysql_query` again which is nonsense, you can't get a valid insert id I think. At the end you use `echo`...
359325
This is my first question, so I'll try to be as detailed as possible. I'm working on implementing noise reduction algorithm in CUDA 6.5. My code is based on this Matlab implementation: <http://pastebin.com/HLVq48C1>. I'd love to use new cuFFT Device Callbacks feature, but I'm stuck on **cufftXtSetCallback**. Every t...
Referring to the [documentation](http://docs.nvidia.com/cuda/cufft/index.html#callback-overview): > > The callback API is available in the statically linked cuFFT library only, and only on 64 bit LINUX operating systems. Use of this API requires a current license. Free evaluation licenses are available for registered...
359471
I cannot go pass the black screen and the following shows up on my screen after upgrading and rebooting with the Ubuntu update manager from 11.10 to 12.04: ``` ata_id [27]: HDIO_GET_IDENTITY failed for '/dev/sdb/': Invalid argument *stopping save kernel messages Setting up X font server socket directory /tmp/.font-...
You could try booting from Grub with the option: ``` xforcevesa ``` This should boot ubuntu in failsafe graphics mode. If you have a proprietary driver you can then fix it under additional drivers. If this isn't the case, you could try reinstalling xorg and its drivers: ``` sudo apt-get remove --purge xserver-xorg ...
360292
If I have the following methods: ``` public bool Equals(VehicleClaim x, VehicleClaim y) { bool isDateMatching = this.IsDateRangeMatching(x.ClaimDate, y.ClaimDate); // other properties use exact matching } private bool IsDateRangeMatching(DateTime x, DateTime y) { return x >= y.AddDays(-...
I agree with Chris that > > But if you have Date1 as Oct1, Date2 as Oct6, Date3 as Oct12. Date1 == Date2, and Date2 == Date3, but Date1 != Date3 > is a strange behavior and the Equals purpose is not what you should use. > > > I don't really know if you are developping something new and if you have a database co...
360881
I have a WPF application, which uses a custom implemented ForEachAsyncParallel method: ``` public static Task ForEachParallelAsync<T>(this IEnumerable<T> source, Func<T, Task> body, int maxDegreeOfParallelism) { return Task.WhenAll(Partitioner.Create(source).GetPartitions(maxDegreeOfParallelism).Select(partition...
Your problem can be solved by replacing the [`Task.Run`](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task.run) with the simple `Run` implementation below: ``` static async Task Run(Func<Task> action) => await action(); ``` The `Task.Run` method executes the supplied delegate on a `ThreadPool`...
361213
I have a `UILabel` which added in `UIView` and this view add as subview of `UIScrollView`and zooming is enabled. Working every thing fine but when I zoom in then UILabel and other properties too and this look quite odd.I also added following code for flexible size. ``` userResizableView.autoresizingMask = (UIViewA...
Using command substitution as a fake comment is both expensive (you still have to fork a shell and parse the comment) and possibly dangerous (command substitutions can be nested, and those will still be executed). A better way is to store your arguments in an array where there is no chance of inadvertent execution. ``...
361429
rpmbuild generates RPM under which directory? I checked the RPMS directory:- ``` [root@tom adil]# ls /usr/src/redhat/ BUILD RPMS SOURCES SPECS SRPMS [root@tom adil]# ls /usr/src/redhat/RPMS/ athlon i386 i486 i586 i686 noarch [root@tom adil]# ``` How to decide rpmbuild outputs in which of the above sub-dir...
Following on from your last comment, by default the RPM will go into the subdirectory that matches the platform you're building on. You can override this by passing the --target parameter to rpmbuild, but this only applies where valid; for example, you can use --target i386 on an x86\_64 system to build a 32-bit RPM, b...
361513
I have web services built with ASP.NET and ASP.NET clients consuming them. When consuming the webservices, how would I to force the clients to use https? I don't want to force the whole site to use https by turning on require SSL in IIS. Can I use the IIS7 URL rewrite module to re-route http requests to https?
Since the HTML is not coming from a live URL, you need to include a `<base href=...>` tag in the HTML itself so relative links can be resolved correctly.
361651
I have list of **Processes** and i want to execute them like, **Ten processes per minute**. I tried `ExecutorService`, `ThreadPoolExecutor`, `RateLimiter` but none of them can support my case, also i tried `RxJava` but maybe i cannot figure out how ti implement it correctly. --- Example ------- I have list of `Runn...
If you know the name of the peer network just add the location: `peer_network = "projects/PEER_PROJECT/global/networks/PEER_NETWORK"`
361797
OK, I know a bit of C++ (very basic syntax), and I want to do physics simulation in C++, like stuff like (also the things mentioned [here](http://www.falstad.com/mathphysics.html)): * Ripples and waves over a 2-d surface * Vibrating string/membrane * Various electric/magnetic fields (as per my wish) in 2d/3d * Gas mol...
I think you are missing a very important and crucial step that lies exactly between the physics and simulation: the mathematical model. In order to model any physics, one has to formulate the mathematical description of the physical phenomenon. Depending on the goals of the simulation, different approximations and ass...
361826
After a great deal of searching and head banging, i'm asking this question. I started a new Windows Forms Application in Visual Studio 2010. Gave it a name and stored it in a location. Nothing added or edited in the same. No changes in the project properties either. [Here](http://i299.photobucket.com/albums/mm298/aab...
You should use `display: table-cell;` for the parent element and than use `max-height` and `max-width` properties for your `img` tag.. This way you can align the images vertically as well as horizontally. [**Demo**](http://jsfiddle.net/m9VGB/) ``` div { width: 300px; height: 300px; display: table-cell; ...
362090
I have a method that limits the items in a list via LINQ. The list contains items with two boolean properties: bool\_a and bool\_b. The list contains items where bool\_a is true and bool\_b is false as well as items where both are false. My expectation is that once I have limited the list only records where bool\_a i...
This line ``` records = records.Where(x => !x.bool_a && !x.bool_b); ``` Results in records only having items that have !x.bool\_a so logically the next line has no x.bool\_a items. This is true because you state that all x.bool\_b are false therefore the statement is really no different to: ``` records = records.W...
362112
I have a query that's giving me the results I want, but for each item with a given ID\_UNIDAD\_EXPERIMENTAL there are two rows, one with column "Alt" with a value and column "Dap" with null, and the other one with "Alt" null and "Dap" with a value. My question is: How can I group them so each element with a given ID ju...
Color by Value -------------- ```vb Option Explicit Sub ColorByValueTEST() Dim rg As Range: Set rg = Range("B2:B21") ColorByValue rg, 100, -1, vbGreen End Sub Sub ColorByValue( _ ByVal rg As Range, _ ByVal GreaterThanValue As Double, _ ByVal ColumnOffset As Long, _ ByVal Desti...
362367
After following part of [***this tutorial***](http://www.androidbegin.com/tutorial/android-parse-com-image-upload-tutorial/) and the [***second answer of this question in SO***](https://stackoverflow.com/questions/9107900/how-to-upload-image-from-gallery-in-android), I managed to save a photo that I chose from my galle...
You need to use a positive lookahead assertion. ``` ([A-Z]{3})=(.*?)(?=[A-Z]{3}=|$) ``` [DEMO](https://regex101.com/r/uI0fW4/2)
363108
I notice that Apple has what seems to be duplicate variable names: 2 properties and two ivars. Why does Apple do this? ``` //.h file @interface TypeSelectionViewController : UITableViewController { @private Recipe *recipe; NSArray *recipeTypes; } @property (nonatomic, retain) Recipe *recipe; @prop...
What you're seeing here is relatively old code, and there's not much need to do this anymore, thanks to Objective-C auto-synthesis. Nowadays, when you issue a `@property (nonatomic) NSArray *foo;`, you *implicitly* get a `@synthesize foo = _foo;` in your implementation file and an instance variable declaration in your...
363660
git push heroku master was rejected. i did some digging in the log and here is what i found. i have never seen this before. this was the first thing in the log that looked like it did not go well. everything before was successful. ``` rake aborted! Invalid CSS after "*/": expected identifier, was "/*!" (in /tmp...
It seems there is an issue with nested comments being poorly handled by the sass compiler during asset precompilation. <http://www.madflanderz.de/madblog/archives/307/heroku-rake-assetsprecompile-failed-invalid-css/> Removing nested comments in CSS (// lines within /\* \*/ blocks) should solve the issue. This may be ...
364216
I want to display an error on the same page if any field is empty. I've got this, which works but the empty error is displayed as soon as the page is loaded instead of appearing once empty fields are submitted. ``` <?php // Required field names $required = array('triangleSide1', 'triangleSide2', 'triangleSide...
If you have an input you know will always be submitted with the form, such as a hidden one: ``` <input type='hidden' name='formsubmit' value='1'> ``` Then you can test for this before validating the other inputs ``` if($_POST["formsubmit"]) { // Required field names $required = array('triangleSide1', 'triang...
365101
> > **Possible Duplicate:** > > [Is close() necessary when using iterator on a Python file object](https://stackoverflow.com/questions/1832528/is-close-necessary-when-using-iterator-on-a-python-file-object) > > > ``` for line in open("processes.txt").readlines(): doSomethingWith(line) ``` Take that code ...
Files will close when the corresponding object is deallocated. The sample you give depends on that; there is no reference to the object, so the object will be removed and the file will be closed. Important to note is that there isn't a guarantee made as to when the object will be removed. With CPython, you have refer...
365451
After numerous failed attempts I am really hoping someone can with my problem. It theory what I am trying to do sounds easy enough but I have spent hours on it today with no success. I have tried all the possible solutions from this thread but to no avail: [Excel vba Autofill only empty cells](https://stackoverflow.co...
Please, try the next code: ``` Sub FillDownFormulaOnlyBlankCells() Dim wb As Workbook, ws1 As Worksheet, rngBlanc As Range Set wb = ThisWorkbook Set ws1 = wb.Sheets("Copy From") On Error Resume Next Set rngBlanc = ws1.Range("B2:B" & ws1.rows.count.End(xlUp).row).SpecialCells(xlCellTypeBlanks) On Error GoTo 0 ...
365698
Is there any flag in DataGrip that enables showing caution message of running **write** SQL queries(*UPDATE/INSERT/DELETE*). E.g. saying that Reason: it's so easy to run queries in DataGrip with `Cmd`+`Enter` and not paying attention what query you are running.
To prevent changes from being immediately committed to your DB, you can turn off "Auto-Commit" by connection/console. This can be turned off from the toolbar, as shown in the image below, or in the bottom right of the connection properties window. From the properties window there is also a checkbox for "Read Only" if...
365833
Here is the code snippet ``` string search = textBox1.Text; int s = Convert.ToInt32(search); string conn="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\\Data.accdb"; string query="SELECT playerBatStyle FROM Player where playerID='" + s + "; OleDbDataAdapter dAdapter=new OleDbDataAdapter (query ,conn ); OleDbCommand...
You had an unclosed single quote in your where clause. Try this instead: ``` string query = String.Format("SELECT playerBatStyle FROM Player where playerID={0}", s); ```
366203
Basically i need a program that given a URL, it downloads a file and saves it. I know this should be easy but there are a couple of drawbacks here... First, it is part of a tool I'm building at work, I have everything else besides that and the URL is HTTPS, the URL is of those you would paste in your browser and you'd...
You can do this easily with the requests library. ``` import requests response = requests.get('https://websitewithfile.com/text.txt',verify=False, auth=('user', 'pass')) print(response.text) ``` to save the file you would type ``` with open('filename.txt','w') as fout: fout.write(response.text): ``` (I would s...
366333
I am following a documentation and executing some commands in Windows 10 command prompt. I have executed the first two commands using `setx`, since `setx` is the Windows' equivalent for export and when I try the third command `$OPENAI_LOGDIR` is not properly detected. Can someone help with the equivalent of this in wi...
It depends on the shell. The $ symbol starts a name and indicates that's a variable in most Unix shells. To do the same in Windows cmd use `%OPENAI_LOGDIR%`. In Windows PowerShell use the same syntax as bash, i.e. `$OPENAI_LOGDIR`. However if it's an environment variable in PowerShell you need to access use the `env:` ...
366458
I have two SQL tables in a SQL Server 2008 database that look like the following: ``` Customer -------- ID Name Order ----- ID CustomerID Total ``` I need to figure out what the most number of order placed by a customer has been. At this point, I've gotten here: ``` SELECT MAX([OrderCount]) FROM ( SELECT COUNT(o...
You are basically there: ``` SELECT MAX([OrderCount]) FROM ( SELECT COUNT(o.[ID]) as 'OrderCount' FROM [Order] o GROUP BY o.[CustomerID] ) t ``` You need the alias at the end. Another way to write this without the subquery is: ``` SELECT top 1 COUNT(o.[ID]) as OrderCount FROM [Order] o GROUP BY o.[Cu...
366783
I've looked everywhere including [Apple's sample app](https://developer.apple.com/library/content/samplecode/PotLoc/Listings/Potloc_WatchKit_Extension_StreamLocationInterfaceController_swift.html#//apple_ref/doc/uid/TP40016176-Potloc_WatchKit_Extension_StreamLocationInterfaceController_swift-DontLinkElementID_11). But ...
The user can only grant access to their location on their iPhone. It cannot be done on the Apple Watch. If the iPhone to which the Watch is connected is unlocked, the prompt asking for location usage authorization will be displayed on the phone; you don't need to run any code for this on iOS. From the [App Programming...
367149
> > By inspection, find the inverse of the given one to one matrix > operator > > > 1.The reflection about the $xy-plane$ in $R^3$ > > > 2.The dilation by a factor of 5 in $R^2$ > > > 3.The reflection about the $z-axis$ in $R^3$ > > > 4.The contraction by a factor of $\frac{1}{3}$ in $R^3$ > > > 5.The rotai...
*Hints:* a) The transformations here are * reflection * dilation, contraction (scaling) * rotation These are linear transformations, so you can restrict yourself to $\mathbb{R}^{2\times 2}$ matrices for the 2D vectors and $\mathbb{R}^{3\times 3}$ for the 3D vectors. (The more general case would involve affine tran...
367193
I'm interested in registering my view controller for KVO notifications on a model object's properties. The "member" property of the view controller is an NSManagedObject subclass and uses Core Data's provided accessor methods (via `@dynamic`). It has four properties: firstName, lastName, nickname, and bio, which are a...
So the answer to my problem is an issue with my unit test. In my setup method, I'm creating the Managed Object Context, inserting a Managed Object into it, and then the context is getting dealloc'd at the end of my `-setUp` method. If I hold onto the MOC as an ivar in the test suite, the notifications come in as expec...
367624
I must integrate: $$ \int \int\_D x^2y^2 dx dy$$ in the first quadrant. This is a triangle with vertices in $(0,0)$, $(0,1)$ and $(1,0)$. I tried to draw it in mathematica with implicit region: ``` R = ImplicitRegion[{x + y <= 1}, {x, y}]; Plot[R, {x, 0, 1}, {y, 0, 1}] ``` This is wrong and in addition I want to ...
Try: ``` reg = ImplicitRegion[{x + y <= 1, x >= 0, y >= 0}, {x, y}] ``` You can then visualize the region with `RegionPlot[reg]`, or use it as the domain of an integral: ``` Integrate[x^2 y^2, Element[{x, y}, reg]] (* Out: 1/180 *) ```
367882
There are many ways to verify the schema of two data frames in spark like [here](https://stackoverflow.com/questions/47862974/schema-comparison-of-two-dataframes-in-scala). But I want to verify the schema of two data frames only in SQL, I mean SparkSQL. **Sample query 1:** ``` SELECT DISTINCT target_person FROM INFOR...
Schema can be queried using `DESCRIBE [EXTENDED] [db_name.]table_name` See <https://docs.databricks.com/spark/latest/spark-sql/index.html#spark-sql-language-manual>
367921
The following code simulates finding the closest pair but when I generate a random amount of pairs greater than 250 it throws a stack overflow error. But 250 pairs and any even amount under seem to work fine. Any ideas? The error occurs at the recursive call of ComparePoints under the if statement. ``` public class D...
Sounds like you're exceeding the the amount of stack memory allocated for your program. You can change the stack size with the -Xss option. E.g `java -Xss 8M` to change stack size to 8MB and run your program.
368599
I am attempting to Impersonate an administrator account from a LocalSystem Service in order to get data from administrators HKEY CURRENT USER registry - in order to impersonate I am using the codeproject code found at the following site written by Uwe Keim: [Impersonator](http://www.codeproject.com/KB/cs/zetaimpersonat...
Everything I've read on the subject seems to indicate that impersonation should get you access to the HKEY\_CurrentUser for the impersonated account. However, it could be a quirk in the .NET Registry implementation. This is just a hunch, and an untested one at that, but have you considered using Registry.Users instead...
368673
I am uploading a file to an api, and I have to copy my requestStream to a FileStream in order to post the file to the API. My code below works, but I have to save the file to a temp folder to create the FileStream, and then I have to clean up the temp folder again after the operation. Is there a cleaner way of doing th...
The problem is that your call to `event.respondWith()` is inside your top-level promise's `.then()` clause, meaning that it will be asynchronously executed after the top-level promise resolves. In order to get the behavior you're expecting, `event.respondWith()` needs to execute synchronously as part of the `fetch` eve...
368751
Several days ago, I asked a question in serverfault. It is a question related to a problem I'm having in an Ubuntu proxy server. No one gave me an answer for two days, not even a comment or a clue. So I headed to the Serverfault chat room, [The Comms Room](http://chat.stackexchange.com/rooms/127/the-comms-room), and as...
This question is about a tool that few people use and is pretty long. This is an observation, not a criticism. I think it's well-written, you give a lot of facts, and they're (potentially) relevant. Unfortunately, such a question is not exciting: it isn't applicable to a wide audience, it isn't easy to understand. I ex...
368843
I've an image and its pixels are in grid blocks. each pixel occupy 20x20px block of a grid . here is the image [![enter image description here](https://i.stack.imgur.com/l7ARA.jpg)](https://i.stack.imgur.com/l7ARA.jpg) I want to read color of each block of that grid. Here is the code which i tried. ``` Bitmap bmp =...
I've finally figured out myself by using [Palette](https://developer.android.com/reference/android/support/v7/graphics/Palette.html) class in android I've used its nested class Palette.Swatch to get all color swatches in the image. here is how i did this ``` ArrayList<Integer> color_vib = new ArrayList<Integer>(); B...
368872
Resuming from Hibernate on my Windows 7 desktop takes an awefully long time, I'd guess 5 minutes. It is an Intel DP35DP with 64 bit Intel Core2 Duo E6750, 2GB and 2x320GB RAID0. Sony Lin's blog post [Fixing Windows 7 can't return from stand by (sleep) or hibernate when Readyboost is used](http://www.sonylin.net/Comput...
The problem may also be that your hard disk and the ReadyBoost is has different formats (e.g. HD is NTFS and the USB/Flash Fat32). Reformat (the latter). See: [Microsoft Answers](http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/black-screen-after-hibernation-with-readyboost-sd/1d679969-7888-47c5...
369238
In a database that contains many tables, I need to write a SQL script to insert data if it is not exist. Table **currency** ``` | id | Code | lastupdate | rate | +--------+---------+------------+-----------+ | 1 | USD | 05-11-2012 | 2 | | 2 | EUR | 05-11-2012 | 3 | ``` ...
If you're not going to need any methods specific to `B`, in other words, you're strictly going to use it as an `A`, it's an advantage for readability to state so. But the main advantage comes to light when you use the general type in a method declaration: ``` public String resolveName(A a) { ... } ``` If you used `...
369305
I am writing a html document in which the output is as follows: ![enter image description here](https://i.stack.imgur.com/ZdweT.png) I have two problems with it: 1. I want to line up the first three input fields. 2. Radio buttons are not working properly. My html code is: ``` <!DOCTYPE html> <html> <head> ...
Pass the URL to the cron script, for example as environment variable or CLI argument: ``` */1 * * * * SITE_URL=example.com /usr/bin/php /pathto/send.php # or */1 * * * * /usr/bin/php /pathto/send.php example.com ``` In the script: ``` $siteURL = getenv('SITE_URL'); // or $siteURL = $argv[1]; ``` That's a bet...
369500
I need to add a quantity increment button in cart page and mini cart popup like this. [![enter image description here](https://i.stack.imgur.com/meUfu.png)](https://i.stack.imgur.com/meUfu.png) I added the button but I can't assign the functionality. This is what I did *app/code/Amsi/UserManagement/view/fronte...
app/code/Amsi/UserManagement/view/frontend/templates/cart/item/default.phtml I have added For both increment and decrementing quantity. You can add the button near Quantiy using below code. ``` <div class="control qty"> <input id="cart-<?= /* @escapeNotVerified */ $_item->getId() ?>-qty" name="cart[<?= ...
369561
I have got the Header values in Header Object. but I need "Last-Modified" into the string object for comparison. Please could you tell me how should I get the last header into the string. ``` HttpClient client = new DefaultHttpClient(); //HttpGet get = new HttpGet(url); HttpHead method = new HttpHead(url); HttpRespon...
In many circumstances, you get just one Last-Modified header, so you could simply use: ``` String lastModified = response.getHeader("last-modified"); if (lastModified != null) { // in case the header isn't set // do something } ``` For multiple values, the JavaDoc says: *If a response header with the given name...
369714
`ACPI PCC Probe Failed` is the error that pops up instead of the default GRUB loader after I updated my kernel to 3.19. I searched around and couldn't find much information except that it is a known error and it is registered in kernel.org's launchpad <https://bugzilla.kernel.org/show_bug.cgi?id=92551>. My question is...
Apparently it is a harmless message related to a 'PCC' driver: > > So it looks like you build the PCC mailbox driver which is new in 3.19-rc and > that driver fails to load, because it doesn't find hardware to work with. > > > The message is harmless, but it also is not useful. The driver in question > seems to b...
369901
I'm attempting to change the body color using the options provided in a dropdown menu and saving those changes so when the user refreshes the page, the background color will be equal to what they set it as. However I'm having a problem in changing the background color according to the dropdown menu options. **HTML** ...
You are over complicating things here, you can achieve this in the `onchange` event of the dropdown, by getting the color with `$(this).val()` . ``` $('select[name="colors"]').change(function() { $('.bdy').css('background', $(this).val()); localStorage.setItem('background', $(this).val()); }); ``` **Note:** The...
370189
This is my main class, wherein run(), I am calling one another method install setup() which is for exe files. ``` public static void main(String[] args) { launch(args); } public void startSetup() { Runnable task=new Runnable() { @Override public void run() { try { ...
Runtime.exec has been obsolete for many years. Use [ProcessBuilder](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/ProcessBuilder.html) instead: ``` ProcessBuilder builder = new ProcessBuilder("C:\\path\\setup.exe"); builder.directory(new File("C:pathfolder\\01_Setupexe")); builder.inheritIO();...
370543
I have a file structure that looks like this; ``` / /public -index.php -login.php /config.php /init.php /classes/ClassGroup/ClassName.class.php ``` \_\_autoload is defined in config.php, with absolute path to classes. config.php is required in index.php, but when I try to initiate a new class; ``` $user = new U...
I found the problem, apparently this function is not being called automatically. Here is the fix; ``` spl_autoload_register('__autoload'); ``` This worked.
370871
Being pretty new to React, I'm facing an issue with navigating between 2 components. My app is as follows: App.js: ``` <div className="App"> <AuthProvider> <ThemeProvider theme={theme}> <CssBaseline /> <CartProvider> <SiteHeader/> <div> <Route...
### `react-router-dom` v6 Route components rendered via the element prop don't receive [route props](https://v5.reactrouter.com/web/api/Route/route-props). You can use hook for getting the state given you are navigating to that page by passing some state value as follows: ``` const location = useLocation(); const sea...
370906
I'd like to be able to link to certain portions of my page using URL fragments, eg: ```html <h3 id="overview">Overview</h3> ... <a href="#overview">Go to Overview</a> ``` Unfortunately the IDs i set from within LWC templates get overwritten, so my links don't work. Is there any way to define the ID attribute so it ...
Assuming you want to scroll to an element you have access to, you could always use scrollIntoView: ``` this.template.querySelector("h3").scrollIntoView(); ``` You can basically use any valid CSS selector to find a specific element (e.g. based on a data-id or another attribute). As far as I can tell, from a lack of ...
371230
I am trying to build an image with stunnel. My base image OS is, > > Linux 2338b11efbe1 4.9.93-linuxkit-aufs #1 SMP Wed Jun 6 16:55:56 UTC > 2018 x86\_64 x86\_64 x86\_64 GNU/Linux > > > Installing libssl as below. ``` RUN apt-get -y update RUN apt-get -y install libssl1.0.0 libssl-dev && \ ln -s libssl.so....
The failure mode suggests that your `libssl.so.10` is a broken symlink. Meaning the file `libssl.so.1.0.0` does not exist. A command such as `ln -s libssl.so.1.0.0 libssl.so.10` will succeed even if the target of the symlink does not (yet) exist. Plain `ls` on the broken symlinks will not report anything untoward eith...
371415
So I am trying pass in parameters to my "buttonClicked" function so that I can dynamically control what happens when you click the button. Every way that I try to do it on my own just breaks my code. I have searched many different sites and answers on stackOverflow, but I can't seem to find an answer. I am fairly new t...
You can't use multi-parameter methods with `addTarget:action:forControlEvents:`. Instead you might set the button's `tag`, then look up information later based on the tag.
371745
I am trying to call scheduled job from my UI action in my scoped application. But it gives me an error saying "SncTriggerSynchronizer is not allowed in scoped applications". Here is my code: ``` var rec = new GlideRecord('sysauto_script'); rec.get('name', 'Load Micello Files'); SncTriggerSynchronizer.execu...
For scoped apps you need to change: ``` SncTriggerSynchronizer.executeNow(rec); ``` To: ``` gs.executeNow(rec); ```
371806
Running PHP 5.3.1 on a Windows server, I have to modify a PHP script to access XML files on a network share. For various reasons the files cannot be placed on the PHP server, and I am not allowed to create a mapped drive on the PHP server so I have to modify the open\_basedir parameter in PHP.ini to include the UNC pat...
I'm looking everywhere for the best answer for this. Here what I found. ``` @media (min-width:320px) { /* smartphones, iPhone, portrait 480x320 phones */ } @media (min-width:481px) { /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */ } @media (min-width:641px) { /* portrait tablets, portrait ...
371829
Regarding [this question](https://electronics.stackexchange.com/questions/32833/suggest-a-timer-chip). In the question was asked for a solution for monitoring a voltage over a long time. The question contains hints to a microcontroller solution, and a couple of answers also covered that, but the real question didn't n...
I can tell you about my experience with Jennic [JN5148](http://www.jennic.com/products/wireless_microcontrollers/jn5148), which I'm now using for my thesis. It's a module embedding a microcontroller and a 2.4 GHz transceiver, working with ZigBee and JenNet, a very simple proprietary protocol. Plus, it embeds error chec...
372166
Reports are deployed and working, verified in Report Manager. My application is an MVC2 app with my report on its own aspx page. This page worked with version 8 of the report viewer control, but we moved to new servers, upgraded sql server, and are trying to update our website to match. The servers are Windows Server...
I found a quick and dirty workaround - to your web config add this: ``` <location path="Reserved.ReportViewerWebControl.axd"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location> ``` I saw in fiddler that for some reason when page requested Reserved.ReportView...
372450
Problem: from a json file, read it up from disk and add a field to a child object and print it back to disk. File: ``` { "name": "api", "script": "index.js", "instances": "1", "env": { "PORT": 3000 }, "env_production": { "PORT": 3000 } } ``` So i've managed to pipe it and add the field: ``...
Adding onto Luc's answer; In your config you should change your 'response.headers.server' to '' or something custom to hide the version in browser headers as well. You can edit the template code as well to remove the Powered By. For example this will replace it with a ''. ``` cherrypy.__version__ = '' cherry...
373154
I have an excel spreadsheet with sports data - a header row with things like Team, Result, Date, etc, and rows with all of the teams in them (for example, if baseball, the first 162 rows are individual games for one team, then the next 162 are for another, etc). I'm able to read these into python with XLRD easy enough...
According to the [express docs](http://expressjs.com/th/api.html#req) it looks like the differences between `req.query` and `req.params` are just as you mentioned, in that they are a different way to achieve a similar end result. Which you choose is really just a matter of your personal preference for how you want to p...
373569
I have two physical volumes ( /dev/sda3 and /dev/sdb1 ) connected to one volume group (fileserver). When I boot up my computer and open up the file explorer, on the left, I see a Devices pane that says my volume group. However, I cannot connect to this server from any client until I click it. Clicking the volume group ...
Okay, I figured it out finally. Here's what I did: 1. First, I made sure I had the right Logical Volume name by running `lvdisplay` in terminal. 2. Then, I had to edit the `rc.local` file in `/etc/rc.local`. I added the command there because I couldn't run a command as root in the Startup Applications (I would have to...
183693
``` Int32 number = new Random().Next(); Console.WriteLine(number); Func<Int32> GenerateRandom = delegate() { return new Random().Next(); }; Console.WriteLine("Begin Call"); GenerateRandom.DoAsync(number => Console.WriteLine(number)); Console.WriteLine("End Call"); ```
``` Dim number As Int32 = New Random().[Next]() Console.WriteLine(number) Dim GenerateRandom As Func(Of Int32) = Function() New Random().[Next]() Console.WriteLine("Begin Call") GenerateRandom.DoAsync(Function(number) Console.WriteLine(number)) Console.WriteLine("End Call") ```