qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
8,582,565
I am learning visual basic .net and I am attempting to translate some java source code to a vb.net project. The project reads mp3 details and then splits the file accurately according to the frameheader details etc. My question relates to reading the frame header of mp3 files. I understand that the frame details are c...
2011/12/20
[ "https://Stackoverflow.com/questions/8582565", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1108740/" ]
I have modifiered your jsfiddle example: <http://jsfiddle.net/Dr5UR/> ``` $("#amount").val("$" + $("#slider").slider({ slide: function(event, ui) { $('#sliderValue').css('left', event.clientX).val(ui.value); } })); ``` I make use of the slide event of the [slider](http://jqueryui.com/demos/slider/#ev...
HTML: ``` <div id="slider"></div> ``` CSS: ``` #slider { width: 200px; } #sliderValue { position: absolute; left: 0; bottom: -30px; width: 40px; } ``` jQuery: ``` $("#slider").slider({ value: '', min: 0, max: 100, range: 'min', create: function (event, ui) { $('.ui...
8,582,565
I am learning visual basic .net and I am attempting to translate some java source code to a vb.net project. The project reads mp3 details and then splits the file accurately according to the frameheader details etc. My question relates to reading the frame header of mp3 files. I understand that the frame details are c...
2011/12/20
[ "https://Stackoverflow.com/questions/8582565", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1108740/" ]
I hope that's the effect you're looking for: <http://jsfiddle.net/z3xV3/11/> **JS** ``` $(document).ready(function() { $("#slider").slider({value:'', min: 0, max: 150, step: 1, range: 'min'}); var thumb = $($('#slider').children('.ui-slider-handle')); setLabelPosition(); $('#slider').bind('s...
HTML: ``` <div id="slider"></div> ``` CSS: ``` #slider { width: 200px; } #sliderValue { position: absolute; left: 0; bottom: -30px; width: 40px; } ``` jQuery: ``` $("#slider").slider({ value: '', min: 0, max: 100, range: 'min', create: function (event, ui) { $('.ui...
8,582,565
I am learning visual basic .net and I am attempting to translate some java source code to a vb.net project. The project reads mp3 details and then splits the file accurately according to the frameheader details etc. My question relates to reading the frame header of mp3 files. I understand that the frame details are c...
2011/12/20
[ "https://Stackoverflow.com/questions/8582565", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1108740/" ]
I hope that's the effect you're looking for: <http://jsfiddle.net/z3xV3/11/> **JS** ``` $(document).ready(function() { $("#slider").slider({value:'', min: 0, max: 150, step: 1, range: 'min'}); var thumb = $($('#slider').children('.ui-slider-handle')); setLabelPosition(); $('#slider').bind('s...
It's actually quite easy (and very useful) to turn this into a simple jQuery plugin. Like so: JSFiddle: <http://jsfiddle.net/PPvG/huYRL/> Note that I've added support for moving the slider by entering a value into the `#sliderValue`. [ Code sample removed ] You could also choose to remove `#sliderValue` from the HT...
11,395,580
When you need Dynamic WHERE Clause I can use; ``` CREATE PROCEDURE [dbo].[sp_sel_Articles] @articleId INT = NULL , @title NVARCHAR(250) = NULL , @accessLevelId INT = NULL AS BEGIN SELECT * FROM table_Articles Art WHERE (Art.Ar...
2012/07/09
[ "https://Stackoverflow.com/questions/11395580", "https://Stackoverflow.com", "https://Stackoverflow.com/users/584508/" ]
You'd probably need to use dynamic SQL to pass in the operator. Or you could pass in two values, e.g. ``` @MinAccessLevelID INT, @MaxAccessLevelID INT ... WHERE ( (@MinAccessLevelID IS NULL AND @MaxAccessLevelID IS NULL) OR (AccessLevelID >= @MinAccessLevelID AND AccessLevelID <= @MaxAccessLevelID) ) ``` ...
You can always make a dynamic query with just making a querystring ``` execute ('select count(*) from table' ) ``` So with the params entered in your stored procedure, you can also form up a querystring which you can execute.
11,395,580
When you need Dynamic WHERE Clause I can use; ``` CREATE PROCEDURE [dbo].[sp_sel_Articles] @articleId INT = NULL , @title NVARCHAR(250) = NULL , @accessLevelId INT = NULL AS BEGIN SELECT * FROM table_Articles Art WHERE (Art.Ar...
2012/07/09
[ "https://Stackoverflow.com/questions/11395580", "https://Stackoverflow.com", "https://Stackoverflow.com/users/584508/" ]
Read this [www.sommarskog.se/dynamic\_sql.html](https://www.sommarskog.se/dynamic_sql.html) before applying ``` CREATE PROCEDURE [dbo].[sp_sel_Articles] @articleId INT = NULL , @title NVARCHAR(250) = NULL , @accessLevelId INT ...
You'd probably need to use dynamic SQL to pass in the operator. Or you could pass in two values, e.g. ``` @MinAccessLevelID INT, @MaxAccessLevelID INT ... WHERE ( (@MinAccessLevelID IS NULL AND @MaxAccessLevelID IS NULL) OR (AccessLevelID >= @MinAccessLevelID AND AccessLevelID <= @MaxAccessLevelID) ) ``` ...
11,395,580
When you need Dynamic WHERE Clause I can use; ``` CREATE PROCEDURE [dbo].[sp_sel_Articles] @articleId INT = NULL , @title NVARCHAR(250) = NULL , @accessLevelId INT = NULL AS BEGIN SELECT * FROM table_Articles Art WHERE (Art.Ar...
2012/07/09
[ "https://Stackoverflow.com/questions/11395580", "https://Stackoverflow.com", "https://Stackoverflow.com/users/584508/" ]
You'd probably need to use dynamic SQL to pass in the operator. Or you could pass in two values, e.g. ``` @MinAccessLevelID INT, @MaxAccessLevelID INT ... WHERE ( (@MinAccessLevelID IS NULL AND @MaxAccessLevelID IS NULL) OR (AccessLevelID >= @MinAccessLevelID AND AccessLevelID <= @MaxAccessLevelID) ) ``` ...
You could use a case statement - it can look a little funny if not formatted correctly but you can try something like: ``` SELECT Columns FROM SomeTable WHERE 1 = CASE WHEN @SomeOption = '<>' AND SomeValue >= @SomeMinParam AND SomeValue <= SomeMaxParam THEN 1 WHEN @SomeOption '=' AND SomeVa...
11,395,580
When you need Dynamic WHERE Clause I can use; ``` CREATE PROCEDURE [dbo].[sp_sel_Articles] @articleId INT = NULL , @title NVARCHAR(250) = NULL , @accessLevelId INT = NULL AS BEGIN SELECT * FROM table_Articles Art WHERE (Art.Ar...
2012/07/09
[ "https://Stackoverflow.com/questions/11395580", "https://Stackoverflow.com", "https://Stackoverflow.com/users/584508/" ]
Read this [www.sommarskog.se/dynamic\_sql.html](https://www.sommarskog.se/dynamic_sql.html) before applying ``` CREATE PROCEDURE [dbo].[sp_sel_Articles] @articleId INT = NULL , @title NVARCHAR(250) = NULL , @accessLevelId INT ...
You can always make a dynamic query with just making a querystring ``` execute ('select count(*) from table' ) ``` So with the params entered in your stored procedure, you can also form up a querystring which you can execute.
11,395,580
When you need Dynamic WHERE Clause I can use; ``` CREATE PROCEDURE [dbo].[sp_sel_Articles] @articleId INT = NULL , @title NVARCHAR(250) = NULL , @accessLevelId INT = NULL AS BEGIN SELECT * FROM table_Articles Art WHERE (Art.Ar...
2012/07/09
[ "https://Stackoverflow.com/questions/11395580", "https://Stackoverflow.com", "https://Stackoverflow.com/users/584508/" ]
Read this [www.sommarskog.se/dynamic\_sql.html](https://www.sommarskog.se/dynamic_sql.html) before applying ``` CREATE PROCEDURE [dbo].[sp_sel_Articles] @articleId INT = NULL , @title NVARCHAR(250) = NULL , @accessLevelId INT ...
You could use a case statement - it can look a little funny if not formatted correctly but you can try something like: ``` SELECT Columns FROM SomeTable WHERE 1 = CASE WHEN @SomeOption = '<>' AND SomeValue >= @SomeMinParam AND SomeValue <= SomeMaxParam THEN 1 WHEN @SomeOption '=' AND SomeVa...
17,114,386
void reversefunction( const char \*argv2, const char \*argv3){ ``` FILE *stream1=NULL; FILE *stream2=NULL; byteone table[HEADERLENGTH]; byteone numberofchannels; byteone movebytes; bytefour i; bytefour sizeofdata; bytefour var_towrite_infile; stream1=fopen(argv2,"rb"); stream2=fopen(argv3,"wb+"); if(stream1==NULL)...
2013/06/14
[ "https://Stackoverflow.com/questions/17114386", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2487076/" ]
It depends entirely on what you're going to do with it. The `tv_nsec` members of a `struct timespec` is of type `long`. You can set it to any value you like in the range `LONG_MIN` to `LONG_MAX`. If you perform a calculation that exceeds `LONG_MAX`, which is at least 231-1, then you're going to have problems (undefine...
A `tv_nsec` field will tolerate a *limited* amount of nanosecond overflow (always enough to add two valid timespec nanosecond values, so, 999999999 + 999999999 = 1999999998). There is no guarantee that an arbitrary amount of overflow will work, though: on implementations with 32-bit `long`, you can only go up to just o...
45,453,210
I am trying to put the drop down boxes and the input box on the same line. However, the input box keeps floating to the bottom. [floating boxs image](https://i.stack.imgur.com/ESSJL.png) ``` <div style="margin-left: 2%; font-size:10";> <h1 style="font-size:15px;color:#343538">Geographical Constraint</h1> ...
2017/08/02
[ "https://Stackoverflow.com/questions/45453210", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8311884/" ]
simply replace your code with this ``` <div style="margin-left: 2%; font-size:10";> <h1 style="font-size:15px;color:#343538">Geographical Constraint</h1> <div class=".col1" style="float: left;"> <select class="selectpicker" > <option>USA</option> <option>CA</option> ...
This is because you are using bootstrap col-xs class which is moving the input tag to the new line. To solve this problem simply move the input field in your upper div like this: ``` <div style="margin-left: 2%; font-size:10";> <h1 style="font-size:15px;color:#343538">Geographical Constraint</h1> <div cl...
45,453,210
I am trying to put the drop down boxes and the input box on the same line. However, the input box keeps floating to the bottom. [floating boxs image](https://i.stack.imgur.com/ESSJL.png) ``` <div style="margin-left: 2%; font-size:10";> <h1 style="font-size:15px;color:#343538">Geographical Constraint</h1> ...
2017/08/02
[ "https://Stackoverflow.com/questions/45453210", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8311884/" ]
``` Here the solution To put the drop down boxes and the input box on the same line ``` ```html <div style="margin-left: 2%; font-size:10";> <h1 style="font-size:15px;color:#343538">Geographical Constraint</h1> <div class=".col1"> <select class="selectpicker" > <option>U...
This is because you are using bootstrap col-xs class which is moving the input tag to the new line. To solve this problem simply move the input field in your upper div like this: ``` <div style="margin-left: 2%; font-size:10";> <h1 style="font-size:15px;color:#343538">Geographical Constraint</h1> <div cl...
45,453,210
I am trying to put the drop down boxes and the input box on the same line. However, the input box keeps floating to the bottom. [floating boxs image](https://i.stack.imgur.com/ESSJL.png) ``` <div style="margin-left: 2%; font-size:10";> <h1 style="font-size:15px;color:#343538">Geographical Constraint</h1> ...
2017/08/02
[ "https://Stackoverflow.com/questions/45453210", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8311884/" ]
I have added a wrapper around the `select` and `input` fields and display it as a flexbox. I also corrected the `div` with class col1. You had a dot before the class name. ```css .wrapper { display: flex; align-items: center; } .form-control { margin-left: .2em; } ``` ```html <div style="margin-left: 2%;...
This is because you are using bootstrap col-xs class which is moving the input tag to the new line. To solve this problem simply move the input field in your upper div like this: ``` <div style="margin-left: 2%; font-size:10";> <h1 style="font-size:15px;color:#343538">Geographical Constraint</h1> <div cl...
45,453,210
I am trying to put the drop down boxes and the input box on the same line. However, the input box keeps floating to the bottom. [floating boxs image](https://i.stack.imgur.com/ESSJL.png) ``` <div style="margin-left: 2%; font-size:10";> <h1 style="font-size:15px;color:#343538">Geographical Constraint</h1> ...
2017/08/02
[ "https://Stackoverflow.com/questions/45453210", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8311884/" ]
here you are ``` <div class="col-lg-6"> <div class="col-lg-12"> <div class="row"> <h1 style="font-size:15px;color:#343538">Geographical Constraint</h1> <div class="col-lg-6"> <div class="form-group"> <div class="col-sm-12"> <div cla...
This is because you are using bootstrap col-xs class which is moving the input tag to the new line. To solve this problem simply move the input field in your upper div like this: ``` <div style="margin-left: 2%; font-size:10";> <h1 style="font-size:15px;color:#343538">Geographical Constraint</h1> <div cl...
45,453,210
I am trying to put the drop down boxes and the input box on the same line. However, the input box keeps floating to the bottom. [floating boxs image](https://i.stack.imgur.com/ESSJL.png) ``` <div style="margin-left: 2%; font-size:10";> <h1 style="font-size:15px;color:#343538">Geographical Constraint</h1> ...
2017/08/02
[ "https://Stackoverflow.com/questions/45453210", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8311884/" ]
```css select{width:49.5%; height: 31px; border: 1px solid #ccc; border-radius: 3px;} input{height:31px !important;} ``` ```html <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/> <link href="https://cdnjs.cloudflare.com/ajax/libs/twi...
This is because you are using bootstrap col-xs class which is moving the input tag to the new line. To solve this problem simply move the input field in your upper div like this: ``` <div style="margin-left: 2%; font-size:10";> <h1 style="font-size:15px;color:#343538">Geographical Constraint</h1> <div cl...
26,633,824
I'm working on a AS400 database and I need to manipulate library/collection with sql. I need to recreate something similar to the CLRLIB command but I don't find a good way to do this. Is there a way to delete all the table from a library with a sql query ? Maybe I can drop the collection and create a new one with t...
2014/10/29
[ "https://Stackoverflow.com/questions/26633824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4190617/" ]
(note that the term COLLECTION has been deprecated, SCHEMA is the current term) Since a library can contain both SQL and non-SQL objects, there's no SQL way to delete every possible object type. Dropping the schema and recreating it might work. But note that if the library is in a job's library list, it will have a l...
Read Charles' answer - there may be objects in your schema that you want to keep (data areas, programs, display and printer files, etc.) If the problem is to delete all of the tables so you can re-build all of the tables, then look at the various system catalog tables: SYSTABLES, SYSVIEWS, SYSINDEXES, etc. The system c...
1,658,216
I have a jQuery ajax function that loads some content into a div, some of the content is images. I would like to said until those images which where just loaded in my ajax, are finished loading, and THEN run a function, such as showing the content. This way, I won't have the content loaded into the div and the images s...
2009/11/01
[ "https://Stackoverflow.com/questions/1658216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/144695/" ]
You need to add the load handler in the AJAX callback in order to have it apply to the images that are being loaded via the AJAX call. You may also want to have a timer set to show the content after some interval in case the images get loaded before the load handler is applied. ``` $.ajax({ ... success: func...
`$("img").load()` won't work because the images are loaded dynamically; that command will only apply to images on the page at the time. use `$("img").live("load")` to track when the images have loaded.
1,658,216
I have a jQuery ajax function that loads some content into a div, some of the content is images. I would like to said until those images which where just loaded in my ajax, are finished loading, and THEN run a function, such as showing the content. This way, I won't have the content loaded into the div and the images s...
2009/11/01
[ "https://Stackoverflow.com/questions/1658216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/144695/" ]
This is an updated version of the code [tvanfosson](https://stackoverflow.com/a/1658245/352449) provided. You have to make sure the `imageCount` variable is counting a node list and not a string as was the problem in the original code from I can deduce: ``` $.ajax({ url : 'somePage.html', dataType : "h...
`$("img").load()` won't work because the images are loaded dynamically; that command will only apply to images on the page at the time. use `$("img").live("load")` to track when the images have loaded.
1,658,216
I have a jQuery ajax function that loads some content into a div, some of the content is images. I would like to said until those images which where just loaded in my ajax, are finished loading, and THEN run a function, such as showing the content. This way, I won't have the content loaded into the div and the images s...
2009/11/01
[ "https://Stackoverflow.com/questions/1658216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/144695/" ]
You need to add the load handler in the AJAX callback in order to have it apply to the images that are being loaded via the AJAX call. You may also want to have a timer set to show the content after some interval in case the images get loaded before the load handler is applied. ``` $.ajax({ ... success: func...
This is an updated version of the code [tvanfosson](https://stackoverflow.com/a/1658245/352449) provided. You have to make sure the `imageCount` variable is counting a node list and not a string as was the problem in the original code from I can deduce: ``` $.ajax({ url : 'somePage.html', dataType : "h...
36,007,079
I'm currently developing an App for Android / iOS, and now i'm at the stage to let my users interact with Facebook, and especially send private message to their friends. Facebook implement a SDK for that, for iOS: ``` FBSDKSendButton *button = [[FBSDKSendButton alloc] init]; button.shareContent = content; [self.view...
2016/03/15
[ "https://Stackoverflow.com/questions/36007079", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5635560/" ]
The PHP-function file() will read the file to an array where each line is an element. See: <http://php.net/manual/en/function.file.php> For example: ``` <?php $locations = file('locations.ini'); print_r($locations); ?> ``` Additionally, to get rid of the newline-characters after each element and to ignore ...
Try file\_get\_contents() function : ``` <?php $ini_array = file_get_contents("yourinifile.ini"); $location_array = explode("\n", $ini_array ); print_r($location_array); ?> ```
9,094,511
website A: hosted on some free web host. website B: my server I want to connect from website B-(client) to mysql server of website A-(my server). I've granted remote permission on mysql user with %. But connection doesn't work. I've tried to run php script (mysql\_connect) on different free web hosts. * 000webh...
2012/02/01
[ "https://Stackoverflow.com/questions/9094511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1177947/" ]
Tell mysql that it should listen on a fixed IP address, not 127.0.0.1 or localhost. open file /etc/mysql/my.cnf (or /etc/my.cnf): **before** ``` # Instead of skip-networking the default is now to listen only on # localhost which is more compatible and is not less secure. bind-address = 127.0.0.1 ``` **after...
Does your remote website's firewall allow external connections to the MySQL Port 3306? Find this out to make sure you aren't spinning your tires
68,235,846
I'm having problems with fetching data from javascript function This is the code I'm using to fetch: ``` async function postSearchString(searchString) { let data = {'searchString': searchString}; const response = await fetch('http://127.0.0.1:5000/search', { method: 'POST', mode: "no-cors", ...
2021/07/03
[ "https://Stackoverflow.com/questions/68235846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7099766/" ]
Try following, I also tried it, working fine. ``` await this.roomUserDetail.updateMany({ "channelDetail.thingchannels": { $in: [mongoose.Types.ObjectId("60e0158af5f1cf131bbb7be6")] } },{ $pull:{ "channelDetail.$[].thingchannels":{ $in:[mongoose.Types.ObjectId("60e0158af5f1cf131bbb7be6")] } ...
Update monggoes 5.13 and do belove code. ``` "channelDetail.$[].thingchannels": { $in: ["x","y"]}, ```
68,559
I have put a bounty on [one of my questions](https://stackoverflow.com/questions/3987532/where-does-zend-form-fit-in-the-model-view-controller-paradigma), however I don't see it appear in the [Featured tab](https://stackoverflow.com/?tab=featured) (also not when I'm not logged in). Why is this. Aren't all bounty quest...
2010/10/25
[ "https://meta.stackexchange.com/questions/68559", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/85514/" ]
As indicated over [here](https://meta.stackexchange.com/questions/7753/please-give-us-the-ability-to-sort-featured-tab-by-bounty-amount), the sorting of the Featured tab is by the time left. Since you posted the bounty at 16:09 UTC and it has only been roughly 2 hours since then, it still has a lot of time left. As o...
But I see it under featured... search for [mvc] and then click the featured tab.
48,714,581
Boost using this build system I'm not otherwise familiar with, based on "Jam" files. Now, I've forked and cloned a specific Boost library ([program\_options](https://github.com/boostorg/program_options)), and I want to build it and perhaps also run the tests. I notice a `build/Jamfile.v2` - what should I do with it? ...
2018/02/09
[ "https://Stackoverflow.com/questions/48714581", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1593077/" ]
What I've done, based on @SergeyA and others' advice, is: 1. Clone *all* of Boost, recursively (see [this page](https://github.com/boostorg/boost/wiki/Getting-Started() (this will create a `boost/` folder ) 2. `cd boost` 3. in `.git/modules/my_boost_lib/config`, change the origin URL to your fork 4. in `.gitmodules`, ...
Essentially the build steps is 1. Run bootstrap to build the build tool b2 2. Build boost with b2 install or similar. You may want to provide options to it. Read more in the boost getting started document: <http://www.boost.org/doc/libs/1_66_0/more/getting_started/index.html> (hint, look at lower right to go to next ...
126,608
The design in question here is an official variation of the [SBI](https://www.onlinesbi.com/) logo: [![enter image description here](https://i.stack.imgur.com/vuabU.png)](https://i.stack.imgur.com/vuabU.png) Now, I've always felt that the main circular icon feels a bit smaller, and must be *corrected* by enlarging i...
2019/07/14
[ "https://graphicdesign.stackexchange.com/questions/126608", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/69916/" ]
The sponge tool is used to saturate & desaturate. On 50% grey, it has no colour information to start from, so it can't change it at all.
Applying sponge to colorless grey cannot increase nor decreace its saturation. The sponge tries to modify only the active layer. Suggestions: Photoshop's adjustment layers are the normal way for nondestructive edits. Layer masks are the way to localize their effect, you can paint black to the mask to decrease the aff...
29,940,422
I need to run some jar file in another machine in **LAN**. ``` java -jar start.jar ``` How to run a jar file on remote computer? Thx!
2015/04/29
[ "https://Stackoverflow.com/questions/29940422", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Bots and referral spam are two different things, the answer you posted will only help with bots. I am going to refer to the article about removing referral spam [here](http://www.analyticsedge.com/2014/12/removing-referral-spam-google-analytics/) Normally we say there are three types of junk visits: 1. Ghost referra...
***Note: I have answered my own question for Bot and Spider Filtering , please provide if any better solution for the Cons mentioned below and avoid referral spam*** Google Analytics Google team announced *[**Introducing Bot and Spider Filtering**](https://plus.google.com/+GoogleAnalytics/posts/2tJ79CkfnZk)* to get a...
126,216
In Kerbal Space Program, I put up 3 geostationary "GPS" satellites. I spaced them evenly around Kerbin, around 120 degrees apart. They're all at the same (KSO) altitude and within 0.1 m/s speed, but after a few years of gameplay they're bunching up. How can I get multiple satellites in KSO without them moving around t...
2013/08/02
[ "https://gaming.stackexchange.com/questions/126216", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/12035/" ]
Even a 0,1 m/s difference in speed makes a difference over the years. The only way to ensure that they stay in their position is to fiddle with their orbits in the save game file. **Note that this only works as long the satellites remain in their on rails-simulation**, so you can't directly control them by using the c...
The most important thing to consider is the semi-major axis of the orbit. That is what determines the period of your orbit. Even if the orbital velocity of your satellites are within a small margin of each other, if their semi-major axis are different by even a few meters (0.01% off), they will start to drift noticeabl...
126,216
In Kerbal Space Program, I put up 3 geostationary "GPS" satellites. I spaced them evenly around Kerbin, around 120 degrees apart. They're all at the same (KSO) altitude and within 0.1 m/s speed, but after a few years of gameplay they're bunching up. How can I get multiple satellites in KSO without them moving around t...
2013/08/02
[ "https://gaming.stackexchange.com/questions/126216", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/12035/" ]
Even a 0,1 m/s difference in speed makes a difference over the years. The only way to ensure that they stay in their position is to fiddle with their orbits in the save game file. **Note that this only works as long the satellites remain in their on rails-simulation**, so you can't directly control them by using the c...
Unfortunately there is no way to get it 100% without editing the file. I had my orbital period dead on 6 hours and even then it drifted. You just don't have the superfine control to be able to get it that accurate. In the cfg you will see that the orbital parameters go down to something like 15 decimal places. Even ac...
126,216
In Kerbal Space Program, I put up 3 geostationary "GPS" satellites. I spaced them evenly around Kerbin, around 120 degrees apart. They're all at the same (KSO) altitude and within 0.1 m/s speed, but after a few years of gameplay they're bunching up. How can I get multiple satellites in KSO without them moving around t...
2013/08/02
[ "https://gaming.stackexchange.com/questions/126216", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/12035/" ]
Even a 0,1 m/s difference in speed makes a difference over the years. The only way to ensure that they stay in their position is to fiddle with their orbits in the save game file. **Note that this only works as long the satellites remain in their on rails-simulation**, so you can't directly control them by using the c...
This is a problem even NASA has to work with (although technically for different reasons). IRL, spacecraft orbits are perturbed by Earth's tidal forces, gravitational interaction with the Moon and the Sun, and at lower altitudes, a very small amount of atmosphere. According to the always reliable Wikipedia, geostation...
126,216
In Kerbal Space Program, I put up 3 geostationary "GPS" satellites. I spaced them evenly around Kerbin, around 120 degrees apart. They're all at the same (KSO) altitude and within 0.1 m/s speed, but after a few years of gameplay they're bunching up. How can I get multiple satellites in KSO without them moving around t...
2013/08/02
[ "https://gaming.stackexchange.com/questions/126216", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/12035/" ]
The most important thing to consider is the semi-major axis of the orbit. That is what determines the period of your orbit. Even if the orbital velocity of your satellites are within a small margin of each other, if their semi-major axis are different by even a few meters (0.01% off), they will start to drift noticeabl...
Unfortunately there is no way to get it 100% without editing the file. I had my orbital period dead on 6 hours and even then it drifted. You just don't have the superfine control to be able to get it that accurate. In the cfg you will see that the orbital parameters go down to something like 15 decimal places. Even ac...
126,216
In Kerbal Space Program, I put up 3 geostationary "GPS" satellites. I spaced them evenly around Kerbin, around 120 degrees apart. They're all at the same (KSO) altitude and within 0.1 m/s speed, but after a few years of gameplay they're bunching up. How can I get multiple satellites in KSO without them moving around t...
2013/08/02
[ "https://gaming.stackexchange.com/questions/126216", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/12035/" ]
This is a problem even NASA has to work with (although technically for different reasons). IRL, spacecraft orbits are perturbed by Earth's tidal forces, gravitational interaction with the Moon and the Sun, and at lower altitudes, a very small amount of atmosphere. According to the always reliable Wikipedia, geostation...
Unfortunately there is no way to get it 100% without editing the file. I had my orbital period dead on 6 hours and even then it drifted. You just don't have the superfine control to be able to get it that accurate. In the cfg you will see that the orbital parameters go down to something like 15 decimal places. Even ac...
10,433,166
I have Dictionary which will return from server, i converted it json string format as below: ``` public static class Extensions { public static string ToJson<T>(this T obj) { MemoryStream stream = new MemoryStream(); try { DataContractJsonSerializer jsSerializer = new DataCont...
2012/05/03
[ "https://Stackoverflow.com/questions/10433166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/687817/" ]
You'll have to do this things before it works: * put a `ScriptService` attribute to your web service * put a `ScriptMethod` attribute in your web service If you do so, you don't even need to parse create the JSON in the server yourself. The WS infrastructure will do it for you. Then, simply use msg.d on the client s...
``` $.each(msg.d, function() { $("#data2").append(this.Key + " " + this.Value + "<br/>"); }); ``` Also, it appears that your serialization is not working correctly, as the response coming back isn't being entirely parsed into JSON. The contents of `d` shouldn't be a string, it should be an object/array.
10,433,166
I have Dictionary which will return from server, i converted it json string format as below: ``` public static class Extensions { public static string ToJson<T>(this T obj) { MemoryStream stream = new MemoryStream(); try { DataContractJsonSerializer jsSerializer = new DataCont...
2012/05/03
[ "https://Stackoverflow.com/questions/10433166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/687817/" ]
``` $.each(msg.d, function() { $("#data2").append(this.Key + " " + this.Value + "<br/>"); }); ``` Also, it appears that your serialization is not working correctly, as the response coming back isn't being entirely parsed into JSON. The contents of `d` shouldn't be a string, it should be an object/array.
Based on JotaBe answer above, I created this extension method: ``` public class KeyValue<TKey, TValue> { public TKey Key { get; set; } public TValue Value { get; set; } public KeyValue() { } } public static class KeyValue_extensionMethods { pu...
10,433,166
I have Dictionary which will return from server, i converted it json string format as below: ``` public static class Extensions { public static string ToJson<T>(this T obj) { MemoryStream stream = new MemoryStream(); try { DataContractJsonSerializer jsSerializer = new DataCont...
2012/05/03
[ "https://Stackoverflow.com/questions/10433166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/687817/" ]
``` $.each(msg.d, function() { $("#data2").append(this.Key + " " + this.Value + "<br/>"); }); ``` Also, it appears that your serialization is not working correctly, as the response coming back isn't being entirely parsed into JSON. The contents of `d` shouldn't be a string, it should be an object/array.
The only way it worked for me was ``` var $nomeP = $("#<%= tbxBuscaJornalista.ClientID %>").val(); $.ajax({ url: "MyPage.asmx/MyMethod", dataType: "json", type: "POST", data: "{ 'variableName': '"+$nomeP+"' }", contentType: "application/js...
10,433,166
I have Dictionary which will return from server, i converted it json string format as below: ``` public static class Extensions { public static string ToJson<T>(this T obj) { MemoryStream stream = new MemoryStream(); try { DataContractJsonSerializer jsSerializer = new DataCont...
2012/05/03
[ "https://Stackoverflow.com/questions/10433166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/687817/" ]
You'll have to do this things before it works: * put a `ScriptService` attribute to your web service * put a `ScriptMethod` attribute in your web service If you do so, you don't even need to parse create the JSON in the server yourself. The WS infrastructure will do it for you. Then, simply use msg.d on the client s...
Based on JotaBe answer above, I created this extension method: ``` public class KeyValue<TKey, TValue> { public TKey Key { get; set; } public TValue Value { get; set; } public KeyValue() { } } public static class KeyValue_extensionMethods { pu...
10,433,166
I have Dictionary which will return from server, i converted it json string format as below: ``` public static class Extensions { public static string ToJson<T>(this T obj) { MemoryStream stream = new MemoryStream(); try { DataContractJsonSerializer jsSerializer = new DataCont...
2012/05/03
[ "https://Stackoverflow.com/questions/10433166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/687817/" ]
You'll have to do this things before it works: * put a `ScriptService` attribute to your web service * put a `ScriptMethod` attribute in your web service If you do so, you don't even need to parse create the JSON in the server yourself. The WS infrastructure will do it for you. Then, simply use msg.d on the client s...
The only way it worked for me was ``` var $nomeP = $("#<%= tbxBuscaJornalista.ClientID %>").val(); $.ajax({ url: "MyPage.asmx/MyMethod", dataType: "json", type: "POST", data: "{ 'variableName': '"+$nomeP+"' }", contentType: "application/js...
72,793,417
Last week I posted a kind of [vague question](https://stackoverflow.com/questions/72707819/connect-a-third-party-api-to-a-graphene-and-sqlalchemy-api) as I was trying to join data from an external Rest API with a local SQLAlchemy schema. Unsurprisingly, I didn't get a lot of responses and after some experimentation wit...
2022/06/28
[ "https://Stackoverflow.com/questions/72793417", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5749159/" ]
If you want both values in group 1, you can use: ``` ^/(?:[id]|na|fm)/([^/\s]*/\d{4}/\d{2}/\d{2}/\S*?)(?:/,|[^_]+_)640(?:\D|$) ``` The pattern matches: * `^` Start of string * `/` Match literally * `(?:[id]|na|fm)` Match one of `i` `d` `na` `fm` * `/` Match literally * `(` Capture **group 1** + `[^/\s]*/` Match an...
We can't know all the rules of how the strings your are matching are constructed, but for just these two example strings provided: ``` package main import ( "fmt" "regexp" ) func main() { var re = regexp.MustCompile(`(?m)(\/i/int/\d{4}/\d{2}/\d{2}/.*)(?:\/,|_[\w_]+)640`) var str = ` /i/int/2021/11/18...
43,007,449
I have a list which may contain duplicates. I want to count how many instances there are of each item in the list. My plan was: ``` list |> Enum.reduce(%{}, fn item, %{item => count}=acc -> %{acc | item => count + 1} item, acc -> Map.put(acc, item, 1) end) ``` However, this fails to compile with the error `illeg...
2017/03/24
[ "https://Stackoverflow.com/questions/43007449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6051861/" ]
Modifying a value for a key in a Map and inserting if it doesn't already exist is exactly what `Map.update/4` does. To calculate frequencies, the default would be `1` and the update fn would just add 1 to the value (`&(&1 + 1)`): ``` iex(1)> [1, 2, :a, 2, :a, :b, :a] |> ...(1)> Enum.reduce(%{}, fn x, acc -> Map.update...
Well, found this while writing the question. Figured I'd share it, but if someone else has a cleaner solution they're welcome to it: The best solution I've found is to... sort of internally curry one of the arguments, so that it's bound, purely for syntactic purposes. ``` list |> Enum.reduce(%{}, fn item, acc -> ...
43,007,449
I have a list which may contain duplicates. I want to count how many instances there are of each item in the list. My plan was: ``` list |> Enum.reduce(%{}, fn item, %{item => count}=acc -> %{acc | item => count + 1} item, acc -> Map.put(acc, item, 1) end) ``` However, this fails to compile with the error `illeg...
2017/03/24
[ "https://Stackoverflow.com/questions/43007449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6051861/" ]
There's a function named [frequencies](https://hexdocs.pm/elixir/Enum.html#frequencies/1) in the Enum module that does exactly what you need. ``` iex(1)> [1, 2, :a, 2, :a, :b, :a] |> Enum.frequencies() %{1 => 1, 2 => 2, :a => 3, :b => 1} ```
Well, found this while writing the question. Figured I'd share it, but if someone else has a cleaner solution they're welcome to it: The best solution I've found is to... sort of internally curry one of the arguments, so that it's bound, purely for syntactic purposes. ``` list |> Enum.reduce(%{}, fn item, acc -> ...
43,007,449
I have a list which may contain duplicates. I want to count how many instances there are of each item in the list. My plan was: ``` list |> Enum.reduce(%{}, fn item, %{item => count}=acc -> %{acc | item => count + 1} item, acc -> Map.put(acc, item, 1) end) ``` However, this fails to compile with the error `illeg...
2017/03/24
[ "https://Stackoverflow.com/questions/43007449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6051861/" ]
Modifying a value for a key in a Map and inserting if it doesn't already exist is exactly what `Map.update/4` does. To calculate frequencies, the default would be `1` and the update fn would just add 1 to the value (`&(&1 + 1)`): ``` iex(1)> [1, 2, :a, 2, :a, :b, :a] |> ...(1)> Enum.reduce(%{}, fn x, acc -> Map.update...
There's a function named [frequencies](https://hexdocs.pm/elixir/Enum.html#frequencies/1) in the Enum module that does exactly what you need. ``` iex(1)> [1, 2, :a, 2, :a, :b, :a] |> Enum.frequencies() %{1 => 1, 2 => 2, :a => 3, :b => 1} ```
4,476,140
Basically I have the following JSON-originated Object: ``` ({ "id" : 3, "clientName" : "Avia", "monthlyactiveusers" : 2083, "dailynewlikes" : 0, "totallikes" : 4258, "usersgraph" : { "sTotalLikes" : [{ "likes" : 79, "date" : "1/1/2010" }, { ...
2010/12/18
[ "https://Stackoverflow.com/questions/4476140", "https://Stackoverflow.com", "https://Stackoverflow.com/users/185738/" ]
Try this.. you can easily extend it for sDailyActiveUsers ``` var sTotalLikes = new Array(); var lsTotalLikes = usersgraph.sTotalLikes; for (var i = 0; i < lsTotalLikes.length; i++) { var obj = lsTotalLikes[i]; var lArr = [] lArr.push(obj.date); lArr.push(obj.likes); sTotal...
It looks to me like you just want to look at the values of the objects. ``` var usersgraph = { ... }; // pulled from the data in your question var result = {}; for (users_key in usersgraph) { var vals = []; var data = usersgraph[users_key] for (k in data) { vals.push(values(data[k])); // or...
4,476,140
Basically I have the following JSON-originated Object: ``` ({ "id" : 3, "clientName" : "Avia", "monthlyactiveusers" : 2083, "dailynewlikes" : 0, "totallikes" : 4258, "usersgraph" : { "sTotalLikes" : [{ "likes" : 79, "date" : "1/1/2010" }, { ...
2010/12/18
[ "https://Stackoverflow.com/questions/4476140", "https://Stackoverflow.com", "https://Stackoverflow.com/users/185738/" ]
Try this.. you can easily extend it for sDailyActiveUsers ``` var sTotalLikes = new Array(); var lsTotalLikes = usersgraph.sTotalLikes; for (var i = 0; i < lsTotalLikes.length; i++) { var obj = lsTotalLikes[i]; var lArr = [] lArr.push(obj.date); lArr.push(obj.likes); sTotal...
Like this (referring to your code): ``` /* inside your for loop */ sTotalLikes.push([ usersgraph.sTotalLikes[i].date, usersgraph.sTotalLikes[i].likes ]) ```
4,476,140
Basically I have the following JSON-originated Object: ``` ({ "id" : 3, "clientName" : "Avia", "monthlyactiveusers" : 2083, "dailynewlikes" : 0, "totallikes" : 4258, "usersgraph" : { "sTotalLikes" : [{ "likes" : 79, "date" : "1/1/2010" }, { ...
2010/12/18
[ "https://Stackoverflow.com/questions/4476140", "https://Stackoverflow.com", "https://Stackoverflow.com/users/185738/" ]
You'll have to Iteration through each item in `sTotalLikes` and `sDailyActiveUsers`. You can also [see the live demo here](http://jsfiddle.net/zainshaikh/vTbt5/) for complete and working program with comments. :) ``` // declare arrays for storing total likes and active users var totalLikes = []; var activeUsers = [];...
Try this.. you can easily extend it for sDailyActiveUsers ``` var sTotalLikes = new Array(); var lsTotalLikes = usersgraph.sTotalLikes; for (var i = 0; i < lsTotalLikes.length; i++) { var obj = lsTotalLikes[i]; var lArr = [] lArr.push(obj.date); lArr.push(obj.likes); sTotal...
4,476,140
Basically I have the following JSON-originated Object: ``` ({ "id" : 3, "clientName" : "Avia", "monthlyactiveusers" : 2083, "dailynewlikes" : 0, "totallikes" : 4258, "usersgraph" : { "sTotalLikes" : [{ "likes" : 79, "date" : "1/1/2010" }, { ...
2010/12/18
[ "https://Stackoverflow.com/questions/4476140", "https://Stackoverflow.com", "https://Stackoverflow.com/users/185738/" ]
It looks to me like you just want to look at the values of the objects. ``` var usersgraph = { ... }; // pulled from the data in your question var result = {}; for (users_key in usersgraph) { var vals = []; var data = usersgraph[users_key] for (k in data) { vals.push(values(data[k])); // or...
Like this (referring to your code): ``` /* inside your for loop */ sTotalLikes.push([ usersgraph.sTotalLikes[i].date, usersgraph.sTotalLikes[i].likes ]) ```
4,476,140
Basically I have the following JSON-originated Object: ``` ({ "id" : 3, "clientName" : "Avia", "monthlyactiveusers" : 2083, "dailynewlikes" : 0, "totallikes" : 4258, "usersgraph" : { "sTotalLikes" : [{ "likes" : 79, "date" : "1/1/2010" }, { ...
2010/12/18
[ "https://Stackoverflow.com/questions/4476140", "https://Stackoverflow.com", "https://Stackoverflow.com/users/185738/" ]
You'll have to Iteration through each item in `sTotalLikes` and `sDailyActiveUsers`. You can also [see the live demo here](http://jsfiddle.net/zainshaikh/vTbt5/) for complete and working program with comments. :) ``` // declare arrays for storing total likes and active users var totalLikes = []; var activeUsers = [];...
It looks to me like you just want to look at the values of the objects. ``` var usersgraph = { ... }; // pulled from the data in your question var result = {}; for (users_key in usersgraph) { var vals = []; var data = usersgraph[users_key] for (k in data) { vals.push(values(data[k])); // or...
4,476,140
Basically I have the following JSON-originated Object: ``` ({ "id" : 3, "clientName" : "Avia", "monthlyactiveusers" : 2083, "dailynewlikes" : 0, "totallikes" : 4258, "usersgraph" : { "sTotalLikes" : [{ "likes" : 79, "date" : "1/1/2010" }, { ...
2010/12/18
[ "https://Stackoverflow.com/questions/4476140", "https://Stackoverflow.com", "https://Stackoverflow.com/users/185738/" ]
You'll have to Iteration through each item in `sTotalLikes` and `sDailyActiveUsers`. You can also [see the live demo here](http://jsfiddle.net/zainshaikh/vTbt5/) for complete and working program with comments. :) ``` // declare arrays for storing total likes and active users var totalLikes = []; var activeUsers = [];...
Like this (referring to your code): ``` /* inside your for loop */ sTotalLikes.push([ usersgraph.sTotalLikes[i].date, usersgraph.sTotalLikes[i].likes ]) ```
42,918,155
I am using tabs to switch between different lists in my app. When a user touches an item in a list, the following is the code to show and hide the detail. I am wondering how to add a back-button that goes back to the correct list it came from. I am replacing fragments so I don't know if the standard back button works i...
2017/03/21
[ "https://Stackoverflow.com/questions/42918155", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1530156/" ]
Because of the way I set up my fragments inside tabs using Child Fragment Manager, I had to do this in my onBackPressed to make it work: ``` @Override public void onBackPressed() { HostFragment hostFragment = (HostFragment) customPagerAdapter.getItem(viewPager.getCurrentItem()); FragmentManager fm = hostFragme...
First of all you need to add fragments in backstack while using it see below code for creating a fragment and adding inside it to backstack ``` public final static String TAG_FRAGMENT = "HostFragment"; // used inside every fragment final HostFragment fragment = new HostFragment(); final FragmentTransaction tran...
42,918,155
I am using tabs to switch between different lists in my app. When a user touches an item in a list, the following is the code to show and hide the detail. I am wondering how to add a back-button that goes back to the correct list it came from. I am replacing fragments so I don't know if the standard back button works i...
2017/03/21
[ "https://Stackoverflow.com/questions/42918155", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1530156/" ]
Because of the way I set up my fragments inside tabs using Child Fragment Manager, I had to do this in my onBackPressed to make it work: ``` @Override public void onBackPressed() { HostFragment hostFragment = (HostFragment) customPagerAdapter.getItem(viewPager.getCurrentItem()); FragmentManager fm = hostFragme...
All you need to do is add the fragment to the back stack when you create your fragment. It would look something like this: ``` CustomerDetailFragment fragment=CustomerDetailFragment.newInstance(customer); getFragmentManager().beginTransaction() .addToBackStack("Fragment Tag") ...
42,918,155
I am using tabs to switch between different lists in my app. When a user touches an item in a list, the following is the code to show and hide the detail. I am wondering how to add a back-button that goes back to the correct list it came from. I am replacing fragments so I don't know if the standard back button works i...
2017/03/21
[ "https://Stackoverflow.com/questions/42918155", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1530156/" ]
Because of the way I set up my fragments inside tabs using Child Fragment Manager, I had to do this in my onBackPressed to make it work: ``` @Override public void onBackPressed() { HostFragment hostFragment = (HostFragment) customPagerAdapter.getItem(viewPager.getCurrentItem()); FragmentManager fm = hostFragme...
Write a fuction onBackpress() ``` @Override public void onBackPressed() { new AlertDialog.Builder(this) .setTitle("Exit?") .setMessage("Do you really want to exit?") .setNegativeButton("No") .setPositiveButton("Yes", new OnClickListener() { public void onClick(DialogInterface arg0, int a...
830,748
I have a HP ProLiant Microserver Gen9. It has HP ILO version 4, but the Java based Remote Console doesn't work reliably and I can't use it after the POST screen in the free version of ILO (asks me to buy an ILO Advanced license). So I want to use the serial console instead to get a login on the server. What do I have ...
2017/02/05
[ "https://serverfault.com/questions/830748", "https://serverfault.com", "https://serverfault.com/users/128321/" ]
The ILO port on the HP server by default asks for an IP via DHCP. So you just need to plug it into a network that has a DHCP server running. It will announce itself with a host name like `ILOCZ12345678` which should make it easier to find in your router's DHCP lease table, or in e.g. `journalctl`/`syslog` if you run a ...
Use `textcons` from the ILO ssh interface. This may require the ILO Advanced license, but at the same time, there's a very low barrier to obtaining one. Most organizations aren't interested in making the virtual serial port work because it's time consuming. [Google](https://www.google.com/search?client=safari&rls=en&...
830,748
I have a HP ProLiant Microserver Gen9. It has HP ILO version 4, but the Java based Remote Console doesn't work reliably and I can't use it after the POST screen in the free version of ILO (asks me to buy an ILO Advanced license). So I want to use the serial console instead to get a login on the server. What do I have ...
2017/02/05
[ "https://serverfault.com/questions/830748", "https://serverfault.com", "https://serverfault.com/users/128321/" ]
The ILO port on the HP server by default asks for an IP via DHCP. So you just need to plug it into a network that has a DHCP server running. It will announce itself with a host name like `ILOCZ12345678` which should make it easier to find in your router's DHCP lease table, or in e.g. `journalctl`/`syslog` if you run a ...
In RHEL7 "error: terminal `serial' isn't found" is due to the fact that Anaconda does not place a "serial" device driver in the RAM image. It is possible to rebuild the RAM disk with the missing driver but Grub seems to function sufficiently without it.
830,748
I have a HP ProLiant Microserver Gen9. It has HP ILO version 4, but the Java based Remote Console doesn't work reliably and I can't use it after the POST screen in the free version of ILO (asks me to buy an ILO Advanced license). So I want to use the serial console instead to get a login on the server. What do I have ...
2017/02/05
[ "https://serverfault.com/questions/830748", "https://serverfault.com", "https://serverfault.com/users/128321/" ]
Use `textcons` from the ILO ssh interface. This may require the ILO Advanced license, but at the same time, there's a very low barrier to obtaining one. Most organizations aren't interested in making the virtual serial port work because it's time consuming. [Google](https://www.google.com/search?client=safari&rls=en&...
In RHEL7 "error: terminal `serial' isn't found" is due to the fact that Anaconda does not place a "serial" device driver in the RAM image. It is possible to rebuild the RAM disk with the missing driver but Grub seems to function sufficiently without it.
76,053
Out of all the bosses I've ever fought, I've had the most trouble with this SOB. I can manage to get to the 2nd form where it turns into a floating jelly thing, but I always end up losing even though I manage to nearly kill it each time. It seems to be reviving itself somehow, is this correct? I know I'm supposed t...
2012/07/08
[ "https://gaming.stackexchange.com/questions/76053", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/13121/" ]
I'm not sure what the first game to do this was, but a "tell" is a private message sent to another player. I think it originates way back from [text-based MUDs](http://en.wikipedia.org/wiki/MUD) where to message someone you'd type something like `tell <name> <message>`. These days many multiplayer games call those mes...
Another meaning is "Pacific Standard Time," a time zone eight hours west of Greenwich, used by places like Los Angeles (movies, games,) San Francisco (start-ups, games) and Seattle (Microsoft, games.) If you're talking about scheduling of events, then this is a much more likely meaning of the acronym.
32,685,693
I know that browsers use Google safe browsing service to detect if a domain is blacklisted or not. The client(for example Firefox) basically downloads a **hashed** list of these domains and then checks if a url is blacklisted or not. My question is that, is it possible to access this list of domains?(not their hash val...
2015/09/21
[ "https://Stackoverflow.com/questions/32685693", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4159712/" ]
I worked in a company in which we were doing web filtering. We were doing also category based filtering like not allow gambling websites or adult etc.. I didn't see open version of Google safe browsing urls when I were working . Instead we had several sources but best free source was as I remember <http://www.urlblac...
I don't know if you only asking for the Google blacklist, but since Kafka Erdem Damir suggested another list, a few friends of mine used the "shallalist". Unfortunately it's a German service. <http://www.shallalist.de>
4,628,156
I'm an experienced programmer (PHP/mySQL, jQuery), but know nothing about ColdFusion. A precursory Google search didn't show much in the way of (free) beginner tutorials. Maybe I'm just spoiled by the overwhelming availability of tutorials for open-source products...
2011/01/07
[ "https://Stackoverflow.com/questions/4628156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/341611/" ]
Well the Adobe Developer site is a good starting point for the 'official stuff': <http://www.adobe.com/support/documentation/en/coldfusion/> The CF developer guide is there as well as links to the CF dev centre: <http://www.adobe.com/devnet/coldfusion.html> which has lots of tutorials. Hope that helps!
Also referred to sometimes as the "Forta book", the [Adobe ColdFusion 9 Web Application Construction Kit, Volume 1: Getting Started](https://rads.stackoverflow.com/amzn/click/com/032166034X) is the definitive ColdFusion tutorial. Not free, but generally a good end-to-end introduction to the platform and language.
4,628,156
I'm an experienced programmer (PHP/mySQL, jQuery), but know nothing about ColdFusion. A precursory Google search didn't show much in the way of (free) beginner tutorials. Maybe I'm just spoiled by the overwhelming availability of tutorials for open-source products...
2011/01/07
[ "https://Stackoverflow.com/questions/4628156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/341611/" ]
For offline learning, the WACK is your best bet - the [ColdFusion Web Application Construction Kit](https://rads.stackoverflow.com/amzn/click/com/032166034X). It's the gold standard when it comes to learning CFML. It comes in 3 volumes, volume 1 starts gently, volumes 2 and 3 are increasingly advanced, but they are all...
Well the Adobe Developer site is a good starting point for the 'official stuff': <http://www.adobe.com/support/documentation/en/coldfusion/> The CF developer guide is there as well as links to the CF dev centre: <http://www.adobe.com/devnet/coldfusion.html> which has lots of tutorials. Hope that helps!
4,628,156
I'm an experienced programmer (PHP/mySQL, jQuery), but know nothing about ColdFusion. A precursory Google search didn't show much in the way of (free) beginner tutorials. Maybe I'm just spoiled by the overwhelming availability of tutorials for open-source products...
2011/01/07
[ "https://Stackoverflow.com/questions/4628156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/341611/" ]
For offline learning, the WACK is your best bet - the [ColdFusion Web Application Construction Kit](https://rads.stackoverflow.com/amzn/click/com/032166034X). It's the gold standard when it comes to learning CFML. It comes in 3 volumes, volume 1 starts gently, volumes 2 and 3 are increasingly advanced, but they are all...
Also referred to sometimes as the "Forta book", the [Adobe ColdFusion 9 Web Application Construction Kit, Volume 1: Getting Started](https://rads.stackoverflow.com/amzn/click/com/032166034X) is the definitive ColdFusion tutorial. Not free, but generally a good end-to-end introduction to the platform and language.
4,628,156
I'm an experienced programmer (PHP/mySQL, jQuery), but know nothing about ColdFusion. A precursory Google search didn't show much in the way of (free) beginner tutorials. Maybe I'm just spoiled by the overwhelming availability of tutorials for open-source products...
2011/01/07
[ "https://Stackoverflow.com/questions/4628156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/341611/" ]
Please remember to download [ColdFusion Builder](http://www.adobe.com/products/coldfusion/) which is much more than a text editor for your Coldfusion files. The 60-day trial is free. Once you've done that, you can get up to speed with the [Coldfusion ORM CFC Generator](http://help.adobe.com/en_US/ColdFusionBuilder/Usi...
Also referred to sometimes as the "Forta book", the [Adobe ColdFusion 9 Web Application Construction Kit, Volume 1: Getting Started](https://rads.stackoverflow.com/amzn/click/com/032166034X) is the definitive ColdFusion tutorial. Not free, but generally a good end-to-end introduction to the platform and language.
4,628,156
I'm an experienced programmer (PHP/mySQL, jQuery), but know nothing about ColdFusion. A precursory Google search didn't show much in the way of (free) beginner tutorials. Maybe I'm just spoiled by the overwhelming availability of tutorials for open-source products...
2011/01/07
[ "https://Stackoverflow.com/questions/4628156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/341611/" ]
Surprised no one mentioned that you can simply check the resources page in the CF Admin. Log into the admin (via <http://locahost/cfide/administrator>) and click on the 'resources' icon in the upper right corner. Here's a screenshot: ![alt text](https://i.stack.imgur.com/MXPYt.jpg)
Also referred to sometimes as the "Forta book", the [Adobe ColdFusion 9 Web Application Construction Kit, Volume 1: Getting Started](https://rads.stackoverflow.com/amzn/click/com/032166034X) is the definitive ColdFusion tutorial. Not free, but generally a good end-to-end introduction to the platform and language.
4,628,156
I'm an experienced programmer (PHP/mySQL, jQuery), but know nothing about ColdFusion. A precursory Google search didn't show much in the way of (free) beginner tutorials. Maybe I'm just spoiled by the overwhelming availability of tutorials for open-source products...
2011/01/07
[ "https://Stackoverflow.com/questions/4628156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/341611/" ]
For offline learning, the WACK is your best bet - the [ColdFusion Web Application Construction Kit](https://rads.stackoverflow.com/amzn/click/com/032166034X). It's the gold standard when it comes to learning CFML. It comes in 3 volumes, volume 1 starts gently, volumes 2 and 3 are increasingly advanced, but they are all...
Please remember to download [ColdFusion Builder](http://www.adobe.com/products/coldfusion/) which is much more than a text editor for your Coldfusion files. The 60-day trial is free. Once you've done that, you can get up to speed with the [Coldfusion ORM CFC Generator](http://help.adobe.com/en_US/ColdFusionBuilder/Usi...
4,628,156
I'm an experienced programmer (PHP/mySQL, jQuery), but know nothing about ColdFusion. A precursory Google search didn't show much in the way of (free) beginner tutorials. Maybe I'm just spoiled by the overwhelming availability of tutorials for open-source products...
2011/01/07
[ "https://Stackoverflow.com/questions/4628156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/341611/" ]
For offline learning, the WACK is your best bet - the [ColdFusion Web Application Construction Kit](https://rads.stackoverflow.com/amzn/click/com/032166034X). It's the gold standard when it comes to learning CFML. It comes in 3 volumes, volume 1 starts gently, volumes 2 and 3 are increasingly advanced, but they are all...
Surprised no one mentioned that you can simply check the resources page in the CF Admin. Log into the admin (via <http://locahost/cfide/administrator>) and click on the 'resources' icon in the upper right corner. Here's a screenshot: ![alt text](https://i.stack.imgur.com/MXPYt.jpg)
588,763
I have to write a script that runs at startup (this is a part that I don't know how to do yet) that erases the temporary files of the current user and I have the "Permission denied" error. The errors look like this: ``` '/tmp/systemd-private-long number-colord.service-LTsv8G' : permission denied ; '/tmp/systemd-priva...
2020/05/25
[ "https://unix.stackexchange.com/questions/588763", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/414318/" ]
With `find /tmp -type f -user $USER -exec rm -f {} \;` you are telling `find` to go find and delete any files owned by `$USER` in *everywhere under* `/tmp`. Now, your `/tmp` contains sub-directories that are owned by root. In theory they *could* contain more files owned by `$USER`. So `find` will try to peek into thos...
In order to avoid the error messages of ``` find /tmp -type f -user $USER -exec rm -f {} \; ``` you can either redirect them ``` find /tmp -type f -user $USER -exec rm -f {} \; 2>/dev/null ``` or prevent `find` from running into that problem: ``` find /tmp \( -type d \( -executable -o -prune \) \) -o -type f -us...
588,763
I have to write a script that runs at startup (this is a part that I don't know how to do yet) that erases the temporary files of the current user and I have the "Permission denied" error. The errors look like this: ``` '/tmp/systemd-private-long number-colord.service-LTsv8G' : permission denied ; '/tmp/systemd-priva...
2020/05/25
[ "https://unix.stackexchange.com/questions/588763", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/414318/" ]
With `find /tmp -type f -user $USER -exec rm -f {} \;` you are telling `find` to go find and delete any files owned by `$USER` in *everywhere under* `/tmp`. Now, your `/tmp` contains sub-directories that are owned by root. In theory they *could* contain more files owned by `$USER`. So `find` will try to peek into thos...
This one is nice, you even can add the days `-atime +3` files 3 days old ``` find /tmp \( -type d \( -executable -o -prune \) \) -o -type f -atime +3 -user $USER -exec rm -f {} \; ```
588,763
I have to write a script that runs at startup (this is a part that I don't know how to do yet) that erases the temporary files of the current user and I have the "Permission denied" error. The errors look like this: ``` '/tmp/systemd-private-long number-colord.service-LTsv8G' : permission denied ; '/tmp/systemd-priva...
2020/05/25
[ "https://unix.stackexchange.com/questions/588763", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/414318/" ]
In order to avoid the error messages of ``` find /tmp -type f -user $USER -exec rm -f {} \; ``` you can either redirect them ``` find /tmp -type f -user $USER -exec rm -f {} \; 2>/dev/null ``` or prevent `find` from running into that problem: ``` find /tmp \( -type d \( -executable -o -prune \) \) -o -type f -us...
This one is nice, you even can add the days `-atime +3` files 3 days old ``` find /tmp \( -type d \( -executable -o -prune \) \) -o -type f -atime +3 -user $USER -exec rm -f {} \; ```
12,087,419
How do I add x days to a date in Java? For example, my date is `01/01/2012`, using `dd/mm/yyyy` as the format. Adding 5 days, the output should be `06/01/2012`.
2012/08/23
[ "https://Stackoverflow.com/questions/12087419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/730835/" ]
java.time ========= With the Java 8 [Date and Time API](http://docs.oracle.com/javase/tutorial/datetime/) you can use the [`LocalDate`](http://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) class. ``` LocalDate.now().plusDays(nrOfDays) ``` See the [Oracle Tutorial](http://docs.oracle.com/javase/tutoria...
``` Calendar cal = Calendar.getInstance(); cal.set(Calendar.DAY_OF_MONTH, 1); cal.set(Calendar.MONTH, 1); cal.set(Calendar.YEAR, 2012); cal.add(Calendar.DAY_OF_MONTH, 5); ``` You can also subtract days like this: `Calendar.add(Calendar.DAY_OF_MONTH, -5);`
12,087,419
How do I add x days to a date in Java? For example, my date is `01/01/2012`, using `dd/mm/yyyy` as the format. Adding 5 days, the output should be `06/01/2012`.
2012/08/23
[ "https://Stackoverflow.com/questions/12087419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/730835/" ]
Here is some simple code that prints the date five days from now: ``` DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); Calendar c = Calendar.getInstance(); c.add(Calendar.DATE, 5); System.out.println(dateFormat.format(c.getTime())); ``` Example output: ```none 16/12/2021 ``` See also: [Calendar#add](ht...
Simple, without any other API: To add 8 days to the current day: ``` Date today = new Date(); long ltime = today.getTime()+8*24*60*60*1000; Date today8 = new Date(ltime); ```
12,087,419
How do I add x days to a date in Java? For example, my date is `01/01/2012`, using `dd/mm/yyyy` as the format. Adding 5 days, the output should be `06/01/2012`.
2012/08/23
[ "https://Stackoverflow.com/questions/12087419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/730835/" ]
java.time ========= With the Java 8 [Date and Time API](http://docs.oracle.com/javase/tutorial/datetime/) you can use the [`LocalDate`](http://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) class. ``` LocalDate.now().plusDays(nrOfDays) ``` See the [Oracle Tutorial](http://docs.oracle.com/javase/tutoria...
Here is some simple code that prints the date five days from now: ``` DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); Calendar c = Calendar.getInstance(); c.add(Calendar.DATE, 5); System.out.println(dateFormat.format(c.getTime())); ``` Example output: ```none 16/12/2021 ``` See also: [Calendar#add](ht...
12,087,419
How do I add x days to a date in Java? For example, my date is `01/01/2012`, using `dd/mm/yyyy` as the format. Adding 5 days, the output should be `06/01/2012`.
2012/08/23
[ "https://Stackoverflow.com/questions/12087419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/730835/" ]
java.time ========= With the Java 8 [Date and Time API](http://docs.oracle.com/javase/tutorial/datetime/) you can use the [`LocalDate`](http://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) class. ``` LocalDate.now().plusDays(nrOfDays) ``` See the [Oracle Tutorial](http://docs.oracle.com/javase/tutoria...
Simple, without any other API: To add 8 days to the current day: ``` Date today = new Date(); long ltime = today.getTime()+8*24*60*60*1000; Date today8 = new Date(ltime); ```
12,087,419
How do I add x days to a date in Java? For example, my date is `01/01/2012`, using `dd/mm/yyyy` as the format. Adding 5 days, the output should be `06/01/2012`.
2012/08/23
[ "https://Stackoverflow.com/questions/12087419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/730835/" ]
``` Calendar cal = Calendar.getInstance(); cal.set(Calendar.DAY_OF_MONTH, 1); cal.set(Calendar.MONTH, 1); cal.set(Calendar.YEAR, 2012); cal.add(Calendar.DAY_OF_MONTH, 5); ``` You can also subtract days like this: `Calendar.add(Calendar.DAY_OF_MONTH, -5);`
Simple, without any other API: To add 8 days to the current day: ``` Date today = new Date(); long ltime = today.getTime()+8*24*60*60*1000; Date today8 = new Date(ltime); ```
12,087,419
How do I add x days to a date in Java? For example, my date is `01/01/2012`, using `dd/mm/yyyy` as the format. Adding 5 days, the output should be `06/01/2012`.
2012/08/23
[ "https://Stackoverflow.com/questions/12087419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/730835/" ]
``` SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); Calendar c = Calendar.getInstance(); c.setTime(new Date()); // Using today's date c.add(Calendar.DATE, 5); // Adding 5 days String output = sdf.format(c.getTime()); System.out.println(output); ```
Here is some simple code that prints the date five days from now: ``` DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); Calendar c = Calendar.getInstance(); c.add(Calendar.DATE, 5); System.out.println(dateFormat.format(c.getTime())); ``` Example output: ```none 16/12/2021 ``` See also: [Calendar#add](ht...
12,087,419
How do I add x days to a date in Java? For example, my date is `01/01/2012`, using `dd/mm/yyyy` as the format. Adding 5 days, the output should be `06/01/2012`.
2012/08/23
[ "https://Stackoverflow.com/questions/12087419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/730835/" ]
``` Calendar cal = Calendar.getInstance(); cal.set(Calendar.DAY_OF_MONTH, 1); cal.set(Calendar.MONTH, 1); cal.set(Calendar.YEAR, 2012); cal.add(Calendar.DAY_OF_MONTH, 5); ``` You can also subtract days like this: `Calendar.add(Calendar.DAY_OF_MONTH, -5);`
If you're using [Joda-Time](https://www.joda.org/joda-time/) (and there are lots of good reasons to - a simple, intuitive API and thread safety) then you can do this trivially: ``` new LocalDate().plusDays(5); ``` to add 5 days to today's date, for example. EDIT: My *current* advice would be to now use the [Java 8 ...
12,087,419
How do I add x days to a date in Java? For example, my date is `01/01/2012`, using `dd/mm/yyyy` as the format. Adding 5 days, the output should be `06/01/2012`.
2012/08/23
[ "https://Stackoverflow.com/questions/12087419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/730835/" ]
Here is some simple code that prints the date five days from now: ``` DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); Calendar c = Calendar.getInstance(); c.add(Calendar.DATE, 5); System.out.println(dateFormat.format(c.getTime())); ``` Example output: ```none 16/12/2021 ``` See also: [Calendar#add](ht...
If you're using [Joda-Time](https://www.joda.org/joda-time/) (and there are lots of good reasons to - a simple, intuitive API and thread safety) then you can do this trivially: ``` new LocalDate().plusDays(5); ``` to add 5 days to today's date, for example. EDIT: My *current* advice would be to now use the [Java 8 ...
12,087,419
How do I add x days to a date in Java? For example, my date is `01/01/2012`, using `dd/mm/yyyy` as the format. Adding 5 days, the output should be `06/01/2012`.
2012/08/23
[ "https://Stackoverflow.com/questions/12087419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/730835/" ]
``` SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); Calendar c = Calendar.getInstance(); c.setTime(new Date()); // Using today's date c.add(Calendar.DATE, 5); // Adding 5 days String output = sdf.format(c.getTime()); System.out.println(output); ```
Simple, without any other API: To add 8 days to the current day: ``` Date today = new Date(); long ltime = today.getTime()+8*24*60*60*1000; Date today8 = new Date(ltime); ```
12,087,419
How do I add x days to a date in Java? For example, my date is `01/01/2012`, using `dd/mm/yyyy` as the format. Adding 5 days, the output should be `06/01/2012`.
2012/08/23
[ "https://Stackoverflow.com/questions/12087419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/730835/" ]
``` SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); Calendar c = Calendar.getInstance(); c.setTime(new Date()); // Using today's date c.add(Calendar.DATE, 5); // Adding 5 days String output = sdf.format(c.getTime()); System.out.println(output); ```
java.time ========= With the Java 8 [Date and Time API](http://docs.oracle.com/javase/tutorial/datetime/) you can use the [`LocalDate`](http://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) class. ``` LocalDate.now().plusDays(nrOfDays) ``` See the [Oracle Tutorial](http://docs.oracle.com/javase/tutoria...
5,225
Related: [Community Promotion Ads 2014](https://scifi.meta.stackexchange.com/questions/3239/community-promotion-ads-2014) Will we be doing community promotion ads this year, for 2015? I know I'd like to and I'm guessing a few others out there might want to as well. I asked several times in chat, but didn't get any res...
2014/11/13
[ "https://scifi.meta.stackexchange.com/questions/5225", "https://scifi.meta.stackexchange.com", "https://scifi.meta.stackexchange.com/users/3500/" ]
Well, yeah. It's a thing that SE does on an annual basis. We mods aren't really involved, SE themselves take care of it. They'll make a 2015 post in the next month or two.
![Add for Arqade targeting SF](https://i.stack.imgur.com/8ElGV.jpg) This *screams* for a return add. I don't frequent [Arqade](http://gaming.stackexchange.com), so I don't know if there already is one.
5,225
Related: [Community Promotion Ads 2014](https://scifi.meta.stackexchange.com/questions/3239/community-promotion-ads-2014) Will we be doing community promotion ads this year, for 2015? I know I'd like to and I'm guessing a few others out there might want to as well. I asked several times in chat, but didn't get any res...
2014/11/13
[ "https://scifi.meta.stackexchange.com/questions/5225", "https://scifi.meta.stackexchange.com", "https://scifi.meta.stackexchange.com/users/3500/" ]
Well, yeah. It's a thing that SE does on an annual basis. We mods aren't really involved, SE themselves take care of it. They'll make a 2015 post in the next month or two.
We start the cycle every December. Usually I try to do it at the start but sometimes it might be a later week, but December's the period that we'll go and refresh every Community Promotions Ad thread on all of the sites. As a helpful way to keep on top of this, we include this information on the cycle, as well as addi...
5,225
Related: [Community Promotion Ads 2014](https://scifi.meta.stackexchange.com/questions/3239/community-promotion-ads-2014) Will we be doing community promotion ads this year, for 2015? I know I'd like to and I'm guessing a few others out there might want to as well. I asked several times in chat, but didn't get any res...
2014/11/13
[ "https://scifi.meta.stackexchange.com/questions/5225", "https://scifi.meta.stackexchange.com", "https://scifi.meta.stackexchange.com/users/3500/" ]
![Add for Arqade targeting SF](https://i.stack.imgur.com/8ElGV.jpg) This *screams* for a return add. I don't frequent [Arqade](http://gaming.stackexchange.com), so I don't know if there already is one.
We start the cycle every December. Usually I try to do it at the start but sometimes it might be a later week, but December's the period that we'll go and refresh every Community Promotions Ad thread on all of the sites. As a helpful way to keep on top of this, we include this information on the cycle, as well as addi...
45,866
This is an entry into the [20th fortnightly topic challenge](http://meta.puzzling.stackexchange.com/questions/5631/fortnightly-topic-challenge-20-pattern?cb=1). --- Over the past few days, I have been receiving a series of strange emails. I wonder if you could tell me what they are: Email 1: > > **Sender:** patter...
2016/11/20
[ "https://puzzling.stackexchange.com/questions/45866", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/30903/" ]
The next email will be: > > **Sender:** patternbot15@gmail.com > > > > **Subject**: 111 > > > > 29: 1 1 2 2 6 9 20 37 86 > > 28: 8 8 112 656 5504 49024 491264 5401856 64826368 842734592 11798300672 > > > Going by natural numbers: > > the sender number, $15$, is the next count of iterations ...
The sender address ------------------ > > In the $n$th email, the sender is patternbot$m$@gmail.com where $m$ is the number of steps required to get from $n$ to $1$ using the $3n+1$ Collatz algorithm (see [here](https://en.wikipedia.org/wiki/Collatz_conjecture)). > > > For example, for the 6th email: > > $6\r...
42,136,588
I am using Serenity with Cucumber to write automated web tests, I could not find in docummentation a way to ignore next tests when one fails. Currently, if a step fails to run, next steps in the same SCENARIO are ignored, but next scenarios in the feature are executed. I want that when a test fail, skip all next step...
2017/02/09
[ "https://Stackoverflow.com/questions/42136588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4680038/" ]
That isn't supported in Serenity or in BDD tools in general. Scenarios are intended to be independent examples of acceptance criteria or business rules, not steps in a larger test
To elaborate on what John Smart has said: Each scenario should be able to pass without having to rely on the scenarios that have been run before it. What's more: internet connection is known to be temperamental on occasion. If one of your scenarios fails because the Internet dropped out while waiting for a page to l...
39,427,186
I have a requirement which requires chaining of Promises. In my Ionic app, I need to iterate over a list of files and zip them. Then the zip needs to be stored on the device itself (iPhone in this case). I already have the list of files that need to be zipped in an array. So, I am iterating over them and using $cordov...
2016/09/10
[ "https://Stackoverflow.com/questions/39427186", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4786655/" ]
This is because `forEach` returns `undefined`, thus `Promise.all` resolves immediately. You should change that to `.map`. Moreover, keep in mind that your `zipData` argument would not be what you expect. This promise's arguments will contain every result returned from `zip.file(file, binaryData, {binary: true})`. In...
The reason Promise.all never resolves is that `filesList.forEach` never returns any values. I think modifying to `fileList.map` will solve your issue. So change your code as follows: ``` var zipFiles = function(filesList) { var zip = new JSZip(); return Promise.all( filesList.map(function(file) { ...
33,297,507
I created a class for creating html inputs, ie createButton(). Below one is the class for creating optional parameters like onclick, style, class etc. I tried to pass the style, class and onclick parameters. but onclick dosen't work because of strings arrangements. Single quotes and double quotes are all confusing me. ...
2015/10/23
[ "https://Stackoverflow.com/questions/33297507", "https://Stackoverflow.com", "https://Stackoverflow.com/users/598096/" ]
You cannot. Instead Change your method like below: Apple has provided red color for Destructive buttons. ``` refreshAlert.addAction(UIAlertAction(title: "Clear message history", style: .Destructive, handler: { (action: UIAlertAction!) in print("Voila !! button color is changed") })) ```
I don't think there is a direct way to do that. However, there is bit of an ugly trick you can apply here: 1. Create an image of exactly same size as that of `UIAlertController` action sheet style button. 2. Make sure image looks like exactly same as that you want your UI to look like including text & colour. 3. Pass ...
16,342,028
How can I execute jQuery/JS code as soon as a jQuery/JS redirect like... ``` $(location).attr('href','/target_path'); ``` ...or... ``` window.location.href = "/target_path"; ``` ...has finished loading the new page? Specifically, I need to pass an alert message and insert it into and display it (enclosed in some...
2013/05/02
[ "https://Stackoverflow.com/questions/16342028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/290580/" ]
You can't. Once the redirect happens you are no longer on that page. You can't execute code on a page you are no longer on. If you want the next page to do something then you need to pass, either by cookie or URL parameter, a flag that instructs it to do so.
You can't do that in the page that's redirecting. You can read the referrer in the landing page (`document.referrer`), and then decide whether to display an alert based on that, though.
16,342,028
How can I execute jQuery/JS code as soon as a jQuery/JS redirect like... ``` $(location).attr('href','/target_path'); ``` ...or... ``` window.location.href = "/target_path"; ``` ...has finished loading the new page? Specifically, I need to pass an alert message and insert it into and display it (enclosed in some...
2013/05/02
[ "https://Stackoverflow.com/questions/16342028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/290580/" ]
You can't. Once the redirect happens you are no longer on that page. You can't execute code on a page you are no longer on. If you want the next page to do something then you need to pass, either by cookie or URL parameter, a flag that instructs it to do so.
``` var x = "It's some text"; var loc = '/target_path'; loc += '?message=' + encodeURI(x); ``` The JS file on the new page can then look at the query string to see if a message is there, and do the required action if it's detected. You can use `window.location.search` on the new page to see what's there, although I...
16,342,028
How can I execute jQuery/JS code as soon as a jQuery/JS redirect like... ``` $(location).attr('href','/target_path'); ``` ...or... ``` window.location.href = "/target_path"; ``` ...has finished loading the new page? Specifically, I need to pass an alert message and insert it into and display it (enclosed in some...
2013/05/02
[ "https://Stackoverflow.com/questions/16342028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/290580/" ]
It is impossible to tell JavaScript to execute some code after a redirect. However you have different options: 1. Pass a string in the redirect URL and then do something on "ready" 2. Store some information in a cookie and then do something on "ready" 3. Store some data using [DOM storage](https://developer.mozilla.o...
You can't do that in the page that's redirecting. You can read the referrer in the landing page (`document.referrer`), and then decide whether to display an alert based on that, though.
16,342,028
How can I execute jQuery/JS code as soon as a jQuery/JS redirect like... ``` $(location).attr('href','/target_path'); ``` ...or... ``` window.location.href = "/target_path"; ``` ...has finished loading the new page? Specifically, I need to pass an alert message and insert it into and display it (enclosed in some...
2013/05/02
[ "https://Stackoverflow.com/questions/16342028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/290580/" ]
It is impossible to tell JavaScript to execute some code after a redirect. However you have different options: 1. Pass a string in the redirect URL and then do something on "ready" 2. Store some information in a cookie and then do something on "ready" 3. Store some data using [DOM storage](https://developer.mozilla.o...
``` var x = "It's some text"; var loc = '/target_path'; loc += '?message=' + encodeURI(x); ``` The JS file on the new page can then look at the query string to see if a message is there, and do the required action if it's detected. You can use `window.location.search` on the new page to see what's there, although I...
3,102
I have a number of overgrown [bougainvilleas](http://en.wikipedia.org/wiki/Bougainvillea) that were hit by frost damage last season. As such they have a lot of unsightly, dead branches on them. This spring I plan to do a severe pruning, but I'm dreading it. Bougainvillea's have some nasty thorns on them, end even when ...
2011/12/19
[ "https://gardening.stackexchange.com/questions/3102", "https://gardening.stackexchange.com", "https://gardening.stackexchange.com/users/239/" ]
You need thick gloves and long sleeves. Some available products: * [http://www.amazon.com/Magid-TE194T-L-Collection-Professional-Gardening/dp/B003BVIPYI/ref=pd\_sim\_ol\_1](http://rads.stackoverflow.com/amzn/click/B003BVIPYI) * [http://www.amazon.com/The-Protector-Rose-Gauntlet-Gloves/dp/B001L7ANKI/ref=pd\_sbs\_ol\_2]...
Bougainvillea trimmings are a form of [green waste](http://en.wikipedia.org/wiki/Green_waste), itself a form of [biodegradable waste](http://en.wikipedia.org/wiki/Green_waste). Municipalities often have ordinances for how residents should dispose of oversized or bulky green waste. I wasn't able to see where you live,...
3,102
I have a number of overgrown [bougainvilleas](http://en.wikipedia.org/wiki/Bougainvillea) that were hit by frost damage last season. As such they have a lot of unsightly, dead branches on them. This spring I plan to do a severe pruning, but I'm dreading it. Bougainvillea's have some nasty thorns on them, end even when ...
2011/12/19
[ "https://gardening.stackexchange.com/questions/3102", "https://gardening.stackexchange.com", "https://gardening.stackexchange.com/users/239/" ]
I recently trimmed back a huge Bougainvillea in at the front of our house. It might seem a bit of a waste of time but where I wanted to trim any branch/twig longer than a foot I just clipped it twice; once near the tip and at the point where I wanted it to be for the second clip. I don't recall the thorns being such a ...
Bougainvillea trimmings are a form of [green waste](http://en.wikipedia.org/wiki/Green_waste), itself a form of [biodegradable waste](http://en.wikipedia.org/wiki/Green_waste). Municipalities often have ordinances for how residents should dispose of oversized or bulky green waste. I wasn't able to see where you live,...
3,102
I have a number of overgrown [bougainvilleas](http://en.wikipedia.org/wiki/Bougainvillea) that were hit by frost damage last season. As such they have a lot of unsightly, dead branches on them. This spring I plan to do a severe pruning, but I'm dreading it. Bougainvillea's have some nasty thorns on them, end even when ...
2011/12/19
[ "https://gardening.stackexchange.com/questions/3102", "https://gardening.stackexchange.com", "https://gardening.stackexchange.com/users/239/" ]
1. Trim your bougainvillea 2. Take an ample amount of cuttings and put them in a very large plastic garbage pail. 3. Then, take your electric trimmer and move it around the interior of the garbage pail cutting the large branches into small pieces. 4. When the pieces are small enough, empty the garbage pail into a large...
Bougainvillea trimmings are a form of [green waste](http://en.wikipedia.org/wiki/Green_waste), itself a form of [biodegradable waste](http://en.wikipedia.org/wiki/Green_waste). Municipalities often have ordinances for how residents should dispose of oversized or bulky green waste. I wasn't able to see where you live,...
42,926,091
I have a set of datapoints for the number of fans of different accounts for different days belonging to different brands: ``` |brand|account|date|fans| |-----|-------|----|----| |Ford |ford_uk|... |10 | |Ford |ford_uk|... |11 | |Ford |ford_us|... |20 | |Ford |ford_us|... |21 | |Jeep |jeep_uk|... |30 | |Jeep |j...
2017/03/21
[ "https://Stackoverflow.com/questions/42926091", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1450420/" ]
Have you tried writing your query this way? ``` select brand, sum(mx) from ( select brand, account, max(fans) mx from account_fans group by brand, account ) t1 group by brand ```
You need two levels of subqueries: ``` select brand, sum(fans) from (select brand, account, max(fans) as fans from account_fans af group by brand, account ) ba group by brand; ```
42,926,091
I have a set of datapoints for the number of fans of different accounts for different days belonging to different brands: ``` |brand|account|date|fans| |-----|-------|----|----| |Ford |ford_uk|... |10 | |Ford |ford_uk|... |11 | |Ford |ford_us|... |20 | |Ford |ford_us|... |21 | |Jeep |jeep_uk|... |30 | |Jeep |j...
2017/03/21
[ "https://Stackoverflow.com/questions/42926091", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1450420/" ]
You need two levels of subqueries: ``` select brand, sum(fans) from (select brand, account, max(fans) as fans from account_fans af group by brand, account ) ba group by brand; ```
Try below query : ``` SELECT T1.brand, sum(A.maximum) FROM your_table T1 JOIN ( SELECT brand, account, max(fans) maximum FROM your_table T2 GROUP BY brand, account ) A ON T2.brand = T1.brand GROUP BY brand ```
42,926,091
I have a set of datapoints for the number of fans of different accounts for different days belonging to different brands: ``` |brand|account|date|fans| |-----|-------|----|----| |Ford |ford_uk|... |10 | |Ford |ford_uk|... |11 | |Ford |ford_us|... |20 | |Ford |ford_us|... |21 | |Jeep |jeep_uk|... |30 | |Jeep |j...
2017/03/21
[ "https://Stackoverflow.com/questions/42926091", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1450420/" ]
You need two levels of subqueries: ``` select brand, sum(fans) from (select brand, account, max(fans) as fans from account_fans af group by brand, account ) ba group by brand; ```
Try this: ``` -- temporary table like your data ------------ DECLARE @account_fans TABLE(brand NVARCHAR(10),account NVARCHAR(10),fans INT) INSERT INTO @account_fans VALUES ('Ford', 'ford_uk',10),('Ford', 'ford_uk',11), ('Ford', 'ford_us',20),('Ford', 'ford_us',21),('Jeep', 'jeep_uk',30), ('Jeep', 'jeep_uk',31),('Jeep'...
42,926,091
I have a set of datapoints for the number of fans of different accounts for different days belonging to different brands: ``` |brand|account|date|fans| |-----|-------|----|----| |Ford |ford_uk|... |10 | |Ford |ford_uk|... |11 | |Ford |ford_us|... |20 | |Ford |ford_us|... |21 | |Jeep |jeep_uk|... |30 | |Jeep |j...
2017/03/21
[ "https://Stackoverflow.com/questions/42926091", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1450420/" ]
Have you tried writing your query this way? ``` select brand, sum(mx) from ( select brand, account, max(fans) mx from account_fans group by brand, account ) t1 group by brand ```
Try below query : ``` SELECT T1.brand, sum(A.maximum) FROM your_table T1 JOIN ( SELECT brand, account, max(fans) maximum FROM your_table T2 GROUP BY brand, account ) A ON T2.brand = T1.brand GROUP BY brand ```
42,926,091
I have a set of datapoints for the number of fans of different accounts for different days belonging to different brands: ``` |brand|account|date|fans| |-----|-------|----|----| |Ford |ford_uk|... |10 | |Ford |ford_uk|... |11 | |Ford |ford_us|... |20 | |Ford |ford_us|... |21 | |Jeep |jeep_uk|... |30 | |Jeep |j...
2017/03/21
[ "https://Stackoverflow.com/questions/42926091", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1450420/" ]
Have you tried writing your query this way? ``` select brand, sum(mx) from ( select brand, account, max(fans) mx from account_fans group by brand, account ) t1 group by brand ```
Try this: ``` -- temporary table like your data ------------ DECLARE @account_fans TABLE(brand NVARCHAR(10),account NVARCHAR(10),fans INT) INSERT INTO @account_fans VALUES ('Ford', 'ford_uk',10),('Ford', 'ford_uk',11), ('Ford', 'ford_us',20),('Ford', 'ford_us',21),('Jeep', 'jeep_uk',30), ('Jeep', 'jeep_uk',31),('Jeep'...
11,281
I just watched the first movie of the trilogy (Back to the Future), and now I wondered, why does the Clock Tower still not work in 2015? From what I understand, in 1955 Doc and Marty pretty much built a lightning rod, so the clock should not be halted at the 10.04pm Is this explained at any point?
2013/05/06
[ "https://movies.stackexchange.com/questions/11281", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/4791/" ]
Quite simply, it was never fixed. Lightning from an electrical storm struck the lightning rod above the clock tower and travelled down a cable which was wrapped around the metal hands on the clock face at precisely 10:04pm on November 12, 1955. The sudden jolt of electricity damaged the clock mechanism and it has neve...
***If*** the clock had been fixed, it would greatly diminish the significance of the story, as though Marty and Doc's activities had no lasting effect. Of course, a real community with such clock tower would naturally go to some trouble to fix it, probably even replacing the (presumably) melted mechanism. Otherwise su...
11,281
I just watched the first movie of the trilogy (Back to the Future), and now I wondered, why does the Clock Tower still not work in 2015? From what I understand, in 1955 Doc and Marty pretty much built a lightning rod, so the clock should not be halted at the 10.04pm Is this explained at any point?
2013/05/06
[ "https://movies.stackexchange.com/questions/11281", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/4791/" ]
Quite simply, it was never fixed. Lightning from an electrical storm struck the lightning rod above the clock tower and travelled down a cable which was wrapped around the metal hands on the clock face at precisely 10:04pm on November 12, 1955. The sudden jolt of electricity damaged the clock mechanism and it has neve...
No the lightning rod did not stop the freeze of the clock at 22:04:00. The rod just made the lightning go in the flux capacitor. It froze and nobody had a plan to fix the clock. Everybody planned to keep the clock the way it is as if its just a fake clock just for Hill Valleys history and heritage. The lightning went t...
11,281
I just watched the first movie of the trilogy (Back to the Future), and now I wondered, why does the Clock Tower still not work in 2015? From what I understand, in 1955 Doc and Marty pretty much built a lightning rod, so the clock should not be halted at the 10.04pm Is this explained at any point?
2013/05/06
[ "https://movies.stackexchange.com/questions/11281", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/4791/" ]
Quite simply, it was never fixed. Lightning from an electrical storm struck the lightning rod above the clock tower and travelled down a cable which was wrapped around the metal hands on the clock face at precisely 10:04pm on November 12, 1955. The sudden jolt of electricity damaged the clock mechanism and it has neve...
This is a good question, and to my knowledge it's never answered on-screen. But what's interesting is that in order to prevent a paradox there must be an answer. The clock needs to be broken (or, at least, everyone needs to think it is broken). If the clock works, then there's no need to fix it, which means no fliers...
11,281
I just watched the first movie of the trilogy (Back to the Future), and now I wondered, why does the Clock Tower still not work in 2015? From what I understand, in 1955 Doc and Marty pretty much built a lightning rod, so the clock should not be halted at the 10.04pm Is this explained at any point?
2013/05/06
[ "https://movies.stackexchange.com/questions/11281", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/4791/" ]
***If*** the clock had been fixed, it would greatly diminish the significance of the story, as though Marty and Doc's activities had no lasting effect. Of course, a real community with such clock tower would naturally go to some trouble to fix it, probably even replacing the (presumably) melted mechanism. Otherwise su...
This is a good question, and to my knowledge it's never answered on-screen. But what's interesting is that in order to prevent a paradox there must be an answer. The clock needs to be broken (or, at least, everyone needs to think it is broken). If the clock works, then there's no need to fix it, which means no fliers...
11,281
I just watched the first movie of the trilogy (Back to the Future), and now I wondered, why does the Clock Tower still not work in 2015? From what I understand, in 1955 Doc and Marty pretty much built a lightning rod, so the clock should not be halted at the 10.04pm Is this explained at any point?
2013/05/06
[ "https://movies.stackexchange.com/questions/11281", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/4791/" ]
No the lightning rod did not stop the freeze of the clock at 22:04:00. The rod just made the lightning go in the flux capacitor. It froze and nobody had a plan to fix the clock. Everybody planned to keep the clock the way it is as if its just a fake clock just for Hill Valleys history and heritage. The lightning went t...
This is a good question, and to my knowledge it's never answered on-screen. But what's interesting is that in order to prevent a paradox there must be an answer. The clock needs to be broken (or, at least, everyone needs to think it is broken). If the clock works, then there's no need to fix it, which means no fliers...
23,886,980
I have encountered some unexpected results while playing around with my personal formatting library. I have reduced the code to the listing you can find below or on [coliru](http://coliru.stacked-crooked.com/a/5cc8bd4a4f9c12b7). ``` #include <iostream> #include <map> #include <utility> #include <string> template <ty...
2014/05/27
[ "https://Stackoverflow.com/questions/23886980", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1396507/" ]
Change your variadic template code to the following: ``` template <template <typename ...> class Container, typename ... Ts> struct executioner<Container<Ts ...> > { inline static void exec(const Container<Ts ...> & c){ std::cout << "cont" << std::endl; auto it = c.begin(); executioner<typename Contain...
The typedef `ContainedType` is not `std::pair<int, std::string>`. It is `const std::pair<const int, std::string>&`. That is why your first partial specialization does not match. You can modify it that way: ``` template <typename T1, typename T2> struct executioner<const std::pair<T1, T2>&> { inline static void exe...
23,886,980
I have encountered some unexpected results while playing around with my personal formatting library. I have reduced the code to the listing you can find below or on [coliru](http://coliru.stacked-crooked.com/a/5cc8bd4a4f9c12b7). ``` #include <iostream> #include <map> #include <utility> #include <string> template <ty...
2014/05/27
[ "https://Stackoverflow.com/questions/23886980", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1396507/" ]
Change your variadic template code to the following: ``` template <template <typename ...> class Container, typename ... Ts> struct executioner<Container<Ts ...> > { inline static void exec(const Container<Ts ...> & c){ std::cout << "cont" << std::endl; auto it = c.begin(); executioner<typename Contain...
Ok, it's all coming back to me now :) As [ildjarn](https://stackoverflow.com/users/636019/ildjarn) hinted you can use `std::remove_reference` to strip the reference. I also stripped the `const` qualifier (see [this thread](https://stackoverflow.com/questions/15887144/stdremove-const-with-const-references)). My conveni...
23,886,980
I have encountered some unexpected results while playing around with my personal formatting library. I have reduced the code to the listing you can find below or on [coliru](http://coliru.stacked-crooked.com/a/5cc8bd4a4f9c12b7). ``` #include <iostream> #include <map> #include <utility> #include <string> template <ty...
2014/05/27
[ "https://Stackoverflow.com/questions/23886980", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1396507/" ]
Ok, it's all coming back to me now :) As [ildjarn](https://stackoverflow.com/users/636019/ildjarn) hinted you can use `std::remove_reference` to strip the reference. I also stripped the `const` qualifier (see [this thread](https://stackoverflow.com/questions/15887144/stdremove-const-with-const-references)). My conveni...
The typedef `ContainedType` is not `std::pair<int, std::string>`. It is `const std::pair<const int, std::string>&`. That is why your first partial specialization does not match. You can modify it that way: ``` template <typename T1, typename T2> struct executioner<const std::pair<T1, T2>&> { inline static void exe...