_id
stringlengths
2
6
text
stringlengths
4
46k
title
stringclasses
1 value
d8701
Use backticks to escape column (and table) names, not quotes INSERT INTO highscore(`Name`,`Score`) VALUES (@Name, @Score) A: Single-word column names don't need to be escaped (I don't think MySQL allows it, but I may be wrong);therefore, this should work: INSERT INTO highscore(Name,Score) VALUES (@Name, @Score); Yo...
d8702
Surely it should be Default 960px and up? with 60*12 + 20* = 960px? If you allow for 20px padding before the first column, 20px between each each column and 20px after the last column the total is 12*(60+20) + 20 = 980px should the size of my PSD be 940px still (as it would normally?) or should it be 960px? Yes, d...
d8703
Is this an installation using IBM Installation Mananger? If you've used it to install Worklight on Tomcat then it has also deployed a worklight.war file during installation. Make sure you undeploy this .war file via the Tomcat Manager view (typically http://localhost:8080/manager). I would also go to the file system an...
d8704
You are right that LowerCaseTokenizer will remove all non-letters. It would very useful (as far as providing a meaningful answer) to see your schema, as I don't believe just using the lowercase filter factory should generate a Tokenizer of any kind. At any rate, though, there are plenty of other options for tokenizers...
d8705
try this, instead of appending, try to access the index of the array. $data[] = array( 'check_date'=>$this->input->post('check_date'), 'device'=>$this->input->post('device')[$i], 'ip_address'=>$this->input->post('ip_address')[$i], 'nat_ip'=>$this->input->post('nat_ip')[...
d8706
Tinkered around and a solution: Go to Phpstorm Preferences (on Mac, 'Settings' on PC) > Editor > Colors & Fonts > PHP > PHP Code > Background On my Mac the background color was set incorrectly to white (inherited). I then unchecked "Use Inherited Attributes" and set it to black. Problem fixed. I don't know why...
d8707
Knife-Reporting plugin is used to analyze the reports sent by clients to the server. [knife runs help ] run this command to find the new functionalists given by knife reporting. Question Seems to be a similar question. chef doc has the code for handling the report and sending it to the server. It has to be shipped wit...
d8708
I suggest to use Activity instead of FragmentActivity.Hope it works
d8709
If you're working with a pure memory table, there should not be any problem to query record count by the RecordCount property. Maybe you expect having NULL and empty value records included in a filtered view when having filter Value LIKE '%%', but it's not so. When having dataset like this: ID | Value 1 | NULL 2 | ''...
d8710
Seems you can use map padding GoogleMap.setPadding(): public void setPadding (int left, int top, int right, int bottom) Sets padding on the map. This method allows you to define a visible region on the map, to signal to the map that portions of the map around the edges may be obscured, by setting padding on each of th...
d8711
If you clear the app data, shared preferences will also be cleared, you have to store in your database or cloud. A: there is a trick for that, it is not a normal way but works: <application android:label="MyApp" android:icon="@drawable/icon" android:manageSpaceActivity=".ActivityOfMyChoice"> by addi...
d8712
The cleanest way would be to use sqlite databases. Using SharedPreferences is much easier, especially for beginners. You could do it like that: You save a 3rd item, the actual entry count as SharedPreference. Everytime you save a new entry you increment this counter. Then you append the current counter number to the TI...
d8713
Let's have the size of the screen size of 480 (pixels), with the original diameter of the ball being 10 pixels. Original size of ball = bOriginal = 10 Distance represented by screen = s = 480 Distance ball has travelled = x Diameter of the ball = b = bOriginal You would have a flag for when the ball reaches a certain ...
d8714
You can use moment-timezone. * *Install the moment-timezone: npm install --save moment-timezone *Install types: npm install -D @types/moment-tipes *Import to your service: import "moment-tipes" In your angular service: public convertDate(selectedTimezone: string): void { this.date = moment(this.date).tz(select...
d8715
This is a bug with MetPy's wet_bulb_temperature function in handling NumPy scalars, so thank you for identifying the issue! A pull request fixing this has been submitted, which should make it into the upcoming MetPy v1.3.0 release. For now, you will need to somehow override the array shape recognition that exists in we...
d8716
I think you can to do two separate groupby: df = df.sort_values(['team','round']) out = (df.groupby(['team','home_dummy']).tail(6) .groupby(['team','home_dummy'])['points'].mean() .unstack('home_dummy') .add_prefix('mean_home_') ) out['mean_total'] = df.groupby('team').tail(6).groupby...
d8717
The timestamp query parameter is added only in development mode, i.e. if you start the next.js app with: npx next dev To start a production build, run: npx next build npx next start This will allow caching of all JS files, as well as make them much leaner and faster by removing all of the development and debug tools.
d8718
Try this # add a white space before MDF if location is MDF so that MDF locations come before all others # (white space has the lowest ASCII value among printable characters) sorted(dev_dict.values(), key=lambda d: " MDF" if (v:=d['location'])=='MDF' else v) # another, much simpler way (from Olvin Roght) sorted(dev_dic...
d8719
in Java String literals are not allowed more than one line . so you can do using '+' like String sql= "SELECT m.month,IFNULL(x.cnt, 0) AS cnt FROM "+ " (SELECT 1 AS month UNION SELECT 2 UNION SELECT 3 UNION SELECT 4 UNION SELECT 5 UNION SELECT 6 UNION SELECT 7 UNION SELECT 8 UNION SELECT 9 UNION SELECT 10 UNION SELEC...
d8720
Did it! Okay so API.get doesn't like body's being passed in. Instead, it wants a query parameter. So the lambda params looks like: var params = { TableName: event.stageVariables.user, FilterExpression: "handle = :handle", ExpressionAttributeValues: { ":handle": event["queryStringParameters"]["handle...
d8721
Observing the methods on the other scanned classes, they are protected methdos, so I change it to public to solve the problem.
d8722
@XmlTransient works, but with getter. I tested it with EclipseLink/MOXy 2.7.7. So try @XmlTransient public Parent getParent() { return parent; }
d8723
The "push" is just a synching between two git repositories. In a typical case its the synching between the copy of the git repo on your local machine to a central repo. AFAIK the push is not really recorded as an artifact in the git meta data. So you cannot refer a push by any identifier. So to get to your question, y...
d8724
I guess I just found a solution, I added a term that if the mouse moves to do nothing, my new code: private void LateUpdate() { //When mouse button is released if (Input.GetMouseButtonUp(0)) { //If the mouse moves after clicking if (Input.GetAxis("Mouse X") < 0 || (Input.GetAxis("Mouse ...
d8725
The return value is available in Jest v23. Apps bootstrapped using create-react-app with react-scripts-ts as of today (Aug 1, 2018) are using Jest v22. create-react-app will be updated to use Jest v23 in the near future. In the meantime, testing the return value is possible using Sinon fakes. In this case the updated...
d8726
What if you match your output with: { $match: { "SubCategory.Brand.Offer": {"$exists": true} } This should return only documents the have a Brand and an Offer. You can check here: mongoplayground EDIT: to remove also the Offers that are empty, please check this option here: mongoplayground_2
d8727
Use word-wrap: break-word to break the text up in the middle of a word: .container { width: 200px; word-wrap: break-word; }​ Demo: http://jsfiddle.net/8yL6j/1/ A: It seems that you would like browsers to put as many characters on a line that fit there and then break, with no regard to normal line breaking beh...
d8728
int Math.Sign(Double value) returns an integer ... (-1/0/1). Double.Nan doesn't seem like an integer. Probably that's the main reason why it throws an exception. It could also be discussed why Int.NaN doesn't exist, we already had that discussion at Why is Nan (not a number) only available for doubles? The behaviour ...
d8729
The hardcoded values of 200 and 550 will not work when the navbar dimensions are adjusted for diffeerent size screens. I've changed it to retrieve the offsetWidth and offsetLeft of the (.navbar-toggle button or .nav-item[0]) and .navbar-brand image to bounce back. body { margin: 0; padding: 0; } di...
d8730
please check this, hope it will work :-) var slider = document.getElementById("myRange"); var output = document.getElementById("dynamicSet"); var isShow = true output.innerHTML = slider.value update=()=>{ output.innerHTML = slider.value; // Display the default slider value console.log(slider.value) } //...
d8731
Test with this: general.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if(isChecked){ silent.setChecked(false); } } }); silent....
d8732
It seems that you have been relying on the description of NSData returning a string of the form <xxxx> in order to retrieve the value of your data. This is fragile, as you have found, since the description function is only meant for debugging and can change without warning. The correct approach is to access the byte ar...
d8733
I think the issue is caused because the save() function isn't bound to the correct object, so instead you can use Angular component interaction features. You can use @Output decorator and emit an event that will be handled by parent component. First, update your TopbarComponent to add that event: topbar.component.ts ...
d8734
If the shell is started as it is stated in the docs: vertx run -conf '{"telnetOptions":{"port":5000}}' maven:io.vertx:vertx-shell:3.2.1 it wont be able to commuicate with other verticles, as it is not in any cluster. The solution is to add --cluster and --cluster-host flags: vertx run -conf '{"telnetOptions":{"port":5...
d8735
I have found some information about how to do that, although you need to have root permissions to inject events in the system or another app running on it. Here you can find further information : http://www.pocketmagic.net/2012/04/injecting-events-programatically-on-android/#.UReb1KWIes0 http://www.pocketmagic.net/2013...
d8736
Object names in an Access database are limited to 64 characters (ref: here). When creating an ODBC linked table in the Access UI the default behaviour is to concatenate the schema name and table name with an underscore and use that as the linked table name so, for example, the remote table table1 in the schema public w...
d8737
At the .cproject file you can find the tool id (use the superClass field, without the number) and for each tool you can find a list of options ids. At the invocation line you need to specify the tool id, the option id and the value for the option, like in the following example (adding my_lib_location to the libraries s...
d8738
It is usually not a good idea to mix RewriteRule and Redirect 301 directives. They can conflict with each other in unexpected ways. You depend of RewriteRule so you should implement your redirects with more of them. Redirect 301 can't redirect based on query strings (?...) in the URL, so you need to implement RewriteR...
d8739
Without actually knowing what the code is doing it looks like the WPF rendering thread is not catching up, I would suggest you try a few things: * *Try this on different machines / graphics cards and see if the same behavior is happening *Can you check is your CPU is doing extensive work? *Check if your memory is ...
d8740
You could try these: * *Go to VSCode settings and go to extensions, and then find Python. Then find Default Interpreter Path. If the path it says is python, change it to your installation path. *Check your PATH and see if Python is in it. *Reinstalling VSCode or Python. A: It's an issue with the Python Extension ...
d8741
NSTimeInterval timeInterval = date.timeIntervalSinceReferenceDate; NSDate *anotherDate = [NSDate dateWithTimeIntervalSinceReferenceDate: timeInterval]; Try the code below. date and anotherDate will be identical. NSCalendar *calendar = [NSCalendar currentCalendar]; calendar.timeZone = [NSTimeZone timeZoneForSecondsFrom...
d8742
in Android Studio you can click on Analyze in the toolbar at the top > Inspect code > Whole Project after AS is finished you will have a list of lint errors you can go through
d8743
The only problem that I found was " = 'wb'"; so put a comma instead: import requests import os ebert_review_urls = [ 'https://d17h27t6h515a5.cloudfront.net/topher/2017/September/59ad9900_1-the-wizard-of-oz-1939-film/1-the-wizard-of-oz-1939-film.txt', 'https://d17h27t6h515a5.cloudfront.net/topher/2017/September...
d8744
Use h:outputText to display the data and not the implicit JSF output. Check this related question and see if it solves your problem.
d8745
Your have two problems in your original code: * *"closePanel()" is a string. *closePanel() attempts to (or would if it wasn't a string) call the function and assign it's output to xButton.onclick It should be this instead: xButton.onClick = closePanel; This will assign a reference to the function closePanel() to x...
d8746
The solution is simple: remove the / from <xsl:template match="/*"> to get <xsl:template match="*"> Otherwise you'd only sort the elements at the root node level. A: You were close, but your second template only matched the root element. Change it like this: <xsl:template match="rows|row"> <xsl:copy> <xsl:ap...
d8747
When you're using SPF with DMARC, you should only go as far as ~all anyway; you can configure DMARC to report everything that does not obtain a pass status, including softfails. The way to phase it in is to configure your services to sign everything with DKIM, set your DMARC to pct=100, saying that receivers should exp...
d8748
Your confusion is that temp is different to head. It's not. They are both variables holding references to the same Node object. Changes made via either variable are reflected in the (same) object they reference. When you add a Node to temp, you add it to the real list.
d8749
Ace uses jshint, which have an option to set a list of global variables. Ace supports changeOptions call on worker to modify default options it passes to jshint, but doesn't have a way to pass list of gloabals You can add it by changing line at https://github.com/ajaxorg/ace/blob/v1.1.8/lib/ace/mode/javascript_worker.j...
d8750
The error message tells you that you gave an array, not a string. Basically its saying $paylod = array('something'=>'somethingelse'); So it is expecting you provide it with $payload['something'] so that it knows what string to decode. have you installed/enabled php5 JSON support? When I set up laravel on a fresh ubuntu...
d8751
you can get the index of each element as well as the element itself using enumerate command: for (i,row) in enumerate(cells): for (j,value) in enumerate(row): print i,j,value i,j contain the row and column index of the element and value is the element itself. A: How about this: import itertools for cell in iter...
d8752
First, note that increase-key must be (log) if we wish for insert and find-min to stay (1) as they are in a Fibonacci heap. If it weren't you'd be able to sort in () time by doing inserts, followed by repeatedly using find-min to get the minimum and then increase-key on the head by with ∀:> to push the head to the en...
d8753
You can pass your value as a GET parameter in the controller URL: $(document).ready(function () { var url = document.URL; var index = url.indexOf("?email="); var email; /* If there is an EMAIL in URL, check directory to confirm it's valid */ if (index > -1) { /* There is an email */ email = url.su...
d8754
This code should work: private void Add_Click(object sender, RoutedEventArgs e) { if (gridcontrol.Children .OfType<TextBox>() .Any(tb => string.IsNullOrEmpty(tb.Text))) { MessageBox.Show("Please enter values in all the fields"); } else { ... } }
d8755
You need to provide the full path. If you want the first icon in your .exe then you don't need a icon index: RequestExecutionLevel Admin Section WriteRegStr HKCR ".foo" "" "foofile" ; .foo file extension WriteRegStr HKCR "foofile\DefaultIcon" "" "$INSTDIR\MyApp.exe" SectionEnd Other icons need a icon index: WriteRegS...
d8756
It depends on how the web pages linked by RSS feed are opened. If they are opened within your app using a WebBrowser control, then you must track history of read feeds yourself within your app. See WPF WebBrowser Recent Pages. You can use the Navigated event of the WebBrowser control. If they are opened using a partic...
d8757
I found your question whilst looking for essentially the same thing for my own project. I did find https://groups.google.com/forum/#!topic/google-maps-js-api-v3/7oWus3T5Ycw which I'm sure could be adapted, but if you look at the source of the example it says the code "is available for a fee". My approach was going to b...
d8758
You need to wrap the ScrollView with a View that has height. ScrollViews must have a bounded height in order to work. You can read more details about that here: https://facebook.github.io/react-native/docs/scrollview Do it something like below: render() { return ( <View style={styles.container}> <View...
d8759
You're setting the title of the whole view, which in turn automatically sets the title of the tabBar and the nav controller. To set the title of them each individually, You first set the nav bar by accessing the nav item: [[self navigationItem] setTitle:(NSString *)]; Then you set the tabBar title by accessing the tab...
d8760
you can use woocommerce_before_add_to_cart_quantity hook as following add_action( 'woocommerce_after_add_to_cart_quantity', 'by_now' ); function by_now() { echo '<div class="test"> buy now </div>'; } in your css add : .test { display: inline-block; } .woocommerce div.product form.cart .button { vertical-align...
d8761
This issue must be fixed by the package's developer or you can send try and fork their project if you want. There are only a few packages supporting the Lumen framework for now. Note: I've just opened an issue asking for Lumen compatibility linking to the following conversation. - A simple solution would be to not us...
d8762
I made a an app with rich push notifications a long time ago, and this is the tutorial I used for that https://medium.com/@lucasgoesvalle/custom-push-notification-with-image-and-interactions-on-ios-swift-4-ffdbde1f457 I hope it is as helpful to you as it was for me.
d8763
This is what always do in these handlers: * *Create the dialog and have a member variable at the class/activity level *Create a private method in the class/activity to dismiss the dialog *Call this private method in your handler What you are creating is not a Dialog, it is DialogBuilder. You need to create it a...
d8764
Shouldn't be particularly complicated, just .includes all the bits you want to eager load .. @community.codes.recent.includes(user: :profile) Also, are a Community's codes always equal to that of all of it's Users? If so, you should be using a has_many :codes, through: :users association on Community.
d8765
No you can't... Any change in any of your app permission (from the settings) Your app is killed and next time when you launch your application either from app switcher or from the app icon it starts a new process. This is how it works in IOS. Also See this answer.
d8766
I suggest you use a sandboxed IFrame e.g. http://www.html5rocks.com/en/tutorials/security/sandboxed-iframes/ <iframe sandbox="allow-same-origin allow-scripts allow-popups allow-forms" src="https://blah.com/index.html" style="border: 0; width:130px; height:20px;"> </iframe> You can tweak how much power the cont...
d8767
Both results are correct. select count(col_name) counts the records where col_name is not null while select count(*) counts all records, regardless of any null values. This is documented on Tahiti: If you specify expr, then COUNT returns the number of rows where expr is not null. You can count either all rows, or only...
d8768
Did you try this: Perl::Critic::Policy::Variables::ProhibitReusedNames;
d8769
You should define your function as static inline in the .h file: static inline float clampf( float v, float min, float max ) { if( v < min ) v = min; if( v > max ) v = max; return v; } The function must be absent in the .c file. The compiler may decide not to inline the function but make it a proper funct...
d8770
Use the BIOS.WriteCharacterAndAttribute function 09h. Put either blue or red foregroundcolor in BL depending on the character at hand (read from the matrix). mov si, offset oneMatrix mov cx, 1 ; ReplicationCount mov bh, 0 ; DisplayPage More: ... position the cursor where next character has to go ...
d8771
Hello I think the problem is @ on the first foreach loop. Please remove it and try. And one more thing if you want to use html in the Razor code then you can use @Html.Raw(). (Example @Html.Raw("<tr>"))
d8772
Yes, you can always use functions out of another javascript file. though if you executed the code immediately you need to specify the right order: First the function definition, then the function call so: <head> <script src="javascript.js" type="text/javascript"></script> <script src="main.js" type="text/javasc...
d8773
You may create n- dimensional grids using ndgrid, but please keep in mind that it does not directly create the same output as meshgrid, you have to convert it first. (How to do that is also explained in the documentation)
d8774
for event in pygame.event.get(): if event.type == pygame.QUIT: run = False pygame.quit() pygame.display.update() When the event loop happens, if you close the window, you call pygame.quit(), which quits pygame. Then it tries to do: pygame.display.update() But pygame has quit, whi...
d8775
Use clip-path .num { background:pink; display:inline-flex; font-size:20px; width:80px; height:80px; align-items:center; justify-content:center; clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%); } <div class="num">1</div> A: Or if you don't want to play with clips than you can use the following: <d...
d8776
Some sample apps that do many of the things you speak of are shown here. The Graph API is probably your best bet right now for delivering the content and access you need and there are numerous tutorials online for how to use it, including the Facebook Developers site itself. A: You will find good Tuts on ThinkDiff, e....
d8777
Something like this: select * from data2 union select * from data3 order by event_timestamp, level_id; Using UNION and order by event_timestamp, level_id; https://dbfiddle.uk/?rdbms=mysql_5.7&fiddle=03b02e0d079011aa4f9e3af7974a98f1
d8778
I don't know why you want to remove all styles for a browser version. I suppose that you have some CSS problems with IE7, and often a good way of fixing it, rather than deleting all your CSS, is to use ie7.js: http://code.google.com/p/ie7-js/. Here is a demo of what it can do. Also, this script has a version for IE8 a...
d8779
assuming the variable s represents your html string, a RexExp replace as follows should work just fine. s = s.replace(/<!--[\s\S]+?-->/g,""); Variable s should now have comments removed.
d8780
It looks like Hibernate Search can't find org/hibernate/search/test/analyzer/solr/stoplist.properties in the classpath. Make sure it's there.
d8781
The answer I received from Microsoft: this isn't possible in this architecture. The key identifier is bound up in the ciphertext and interpreted by the EKM provider, not SQL Server. SQL Server doesn't even know which key is being used. It would be on the EKM provider to provide UAC.
d8782
Not Sure whether this can imply in the case of codenameone. But u can try :- MediaPlayer player = MediaPlayer.create(this, R.raw.music); player.setLooping(true); // Set looping player.setVolume(100,100); public int onStartCommand(Intent intent, int flags, int startId) { player.start(); return 1; } @Overri...
d8783
Maybe try exec("python pdf.py", $response, $error_code); and see if anything useful is returned in $response or $error_code?
d8784
You can make it available when you configure the docker container by mounting the Jenkins folder on the build agent. pipeline { agent { docker { .... // Make tools folder available in docker (some slaves use mnt while other uses storage) args '-v /mnt/Jenkins_MCU:/mnt/Jenkins_MCU -v /s...
d8785
ONce you partition the data using df.write.partitionBy("col1").mode("overwrite").csv("file_path/example.csv", header=True) There will be partitions based on your col1. Now while reading the dataframe you can specify which columns you want to use like: df=spark.read.csv('path').select('col2','col3') A: Below is the ...
d8786
Open command palette, run "Remote-SSH: Settings", then config "Remote.SSH: Remote Server Listen On Socket" to true. This did the trick for me.
d8787
So the solution was two things * *upgrade handlebars to v0.4.41 (I was on 0.4.0) *use {{ page.title }}
d8788
Simply check that the callback argument is a function. if(typeof callback === 'function'){ return callback(a+b); } Thus, your sum function can be written as : function sum(a, b, callback) { if(typeof callback === 'function'){ return callback(a+b) } else { return a+b; } } (Demo JSFidd...
d8789
According to Peter Ledbrook, this is a non-trivial conflict between Hibernate and Searchable: http://jira.grails.org/browse/GPSEARCHABLE-19 The solution is to turn off mirroring in the Searchable plugin and handle updating indexes manually.
d8790
How are you running your program? If you run it with "java -jar myprog.jar", use "java -Djava.net.preferIPv4Stack=tru -jar myprog.jar". If you run it by double clicking the jar file or something like that, you might need to set the property in your code, by adding System.setProperty("java.net.preferIPv4Stack", "true");
d8791
I achieved to get what I want, I've just changed the type of the chart, now I'm using "timeSeriesChart". <style name="table 1_TH" mode="Opaque" backcolor="#646464" forecolor="#FFFFFF" > <box> <pen lineColor="#969696" lineWidth="1.0"/> </box> </style> <queryString> <![CDATA[]]> </queryString>...
d8792
I don't think this is a code issue as further testing by making lngLast_CS_Sheet equal the number of CS sheets in the workbook, the code runs without error. This error has only occurred in this workbook and not others with exactly the same code modules. Therefore I conclude this to be a user induced error somewhere wi...
d8793
To remove the edge effects you could stack three copies of the data, create the density estimate, and then show the density only for the middle copy of data. That will guarantee "wrap around" continuity of the density function from one edge to the other. Below is an example comparing your original plot with the new ver...
d8794
@PpppppPppppp, I managed to get the result with some hacks. Do post if you found another way to do it. Here's the final result: Instead of setting left and right borders for cell, set black colour to cell's contentView and place a view inside with leading and trailing constraints to make it look like it has a border. ...
d8795
Actually, when you use the "su" hack what you are getting is a shell that runs as root (if the device has been modified to support that) If you don't want a root shell but an ordinary one running as your application's userid, you could presumably run /system/bin/sh or whatever it is on your device instead of su.
d8796
Because inline, DOM level-zero events like this, when specified in HTML, are evaluated. So you have to imagine that what's specified in the attribute is evaluated as JS, and: PhotoUpload.removeOldPhoto ...when specified as JavaScript, is a reference to a function, not an invocation of one. PhotoUpload.removeOldPhoto()...
d8797
Let me explain please. The way to find an OrderItemIntent (XXXIntent) file * *Move to Intents(XXX).intentdefinition file. *Select a intent from any custom intents. *Move to Inspector panel from Xcode right side and go to third Identity Inspector section *You can find 'Custom class' blank and there are a right arr...
d8798
When you click on register. You can find all the <li> elements in #box2 ol and append it to #dialog. Do it after $( "#dialog" ).dialog( "open" ); as when the dialog box is close its css has display:none and because of that you probably cannot add any element on it(probably). you can do it something like below. (Test...
d8799
Used as self.arg but set as self.args. Use the same name in both places.
d8800
The second one didn't work because it was executed in the global context. Here is an article regarding the this context in the function passed to setTimeout, as per MDN (Check 'The "this" problem)' Your code, if written this way, would work: setTimeout(flake.remove.bind(flake),1000);