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
33,547,179
Recently I am being challenged by quite an "easy" problem. Suppose that there is sentences (saved in a String), and I need to find out if there is any date in this String. The challenges is that the date can be in a lot of different formats. Some examples are shown in the list: * June 12, 1956 * London, 21st October 2...
2015/11/05
[ "https://Stackoverflow.com/questions/33547179", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4348290/" ]
Using the [natty.joestelmach.com](http://natty.joestelmach.com) library Natty is a natural language date parser written in Java. Given a date expression, natty will apply standard language recognition and translation techniques to produce a list of corresponding dates with optional parse and syntax information. ``` ...
If it's only one String you could use the Regular Expression as you mentioned. Having to find the different date format expressions. Here are some examples: [Regular Expressions - dates](http://www.regular-expressions.info/dates.html) In case it's a document or a big text, you will need a parser. You could use a [Lexi...
33,547,179
Recently I am being challenged by quite an "easy" problem. Suppose that there is sentences (saved in a String), and I need to find out if there is any date in this String. The challenges is that the date can be in a lot of different formats. Some examples are shown in the list: * June 12, 1956 * London, 21st October 2...
2015/11/05
[ "https://Stackoverflow.com/questions/33547179", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4348290/" ]
Using the [natty.joestelmach.com](http://natty.joestelmach.com) library Natty is a natural language date parser written in Java. Given a date expression, natty will apply standard language recognition and translation techniques to produce a list of corresponding dates with optional parse and syntax information. ``` ...
You are after [Named Entity Recognition](https://en.wikipedia.org/wiki/Named-entity_recognition). I'd start with [Stanford NLP](http://nlp.stanford.edu/software/CRF-NER.shtml). The 7 class model includes date, but the online [demo struggles](http://nlp.stanford.edu:8080/ner/) and misses the "13". :( Natty mentioned ab...
33,547,179
Recently I am being challenged by quite an "easy" problem. Suppose that there is sentences (saved in a String), and I need to find out if there is any date in this String. The challenges is that the date can be in a lot of different formats. Some examples are shown in the list: * June 12, 1956 * London, 21st October 2...
2015/11/05
[ "https://Stackoverflow.com/questions/33547179", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4348290/" ]
Using the [natty.joestelmach.com](http://natty.joestelmach.com) library Natty is a natural language date parser written in Java. Given a date expression, natty will apply standard language recognition and translation techniques to produce a list of corresponding dates with optional parse and syntax information. ``` ...
I've done this before with good `precision` and `recall`. You'll need [GATE](https://gate.ac.uk/) and its `ANNIE` plugin. 1. Use GATE UI tool to create a `.GAPP` file that will contain your `processing resources`. 2. Use the `.GAPP` file to use the extracted `Date` annotation set. Step 2 can be done as follows: ```...
33,547,179
Recently I am being challenged by quite an "easy" problem. Suppose that there is sentences (saved in a String), and I need to find out if there is any date in this String. The challenges is that the date can be in a lot of different formats. Some examples are shown in the list: * June 12, 1956 * London, 21st October 2...
2015/11/05
[ "https://Stackoverflow.com/questions/33547179", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4348290/" ]
You are after [Named Entity Recognition](https://en.wikipedia.org/wiki/Named-entity_recognition). I'd start with [Stanford NLP](http://nlp.stanford.edu/software/CRF-NER.shtml). The 7 class model includes date, but the online [demo struggles](http://nlp.stanford.edu:8080/ner/) and misses the "13". :( Natty mentioned ab...
If it's only one String you could use the Regular Expression as you mentioned. Having to find the different date format expressions. Here are some examples: [Regular Expressions - dates](http://www.regular-expressions.info/dates.html) In case it's a document or a big text, you will need a parser. You could use a [Lexi...
33,547,179
Recently I am being challenged by quite an "easy" problem. Suppose that there is sentences (saved in a String), and I need to find out if there is any date in this String. The challenges is that the date can be in a lot of different formats. Some examples are shown in the list: * June 12, 1956 * London, 21st October 2...
2015/11/05
[ "https://Stackoverflow.com/questions/33547179", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4348290/" ]
If it's only one String you could use the Regular Expression as you mentioned. Having to find the different date format expressions. Here are some examples: [Regular Expressions - dates](http://www.regular-expressions.info/dates.html) In case it's a document or a big text, you will need a parser. You could use a [Lexi...
I've done this before with good `precision` and `recall`. You'll need [GATE](https://gate.ac.uk/) and its `ANNIE` plugin. 1. Use GATE UI tool to create a `.GAPP` file that will contain your `processing resources`. 2. Use the `.GAPP` file to use the extracted `Date` annotation set. Step 2 can be done as follows: ```...
33,547,179
Recently I am being challenged by quite an "easy" problem. Suppose that there is sentences (saved in a String), and I need to find out if there is any date in this String. The challenges is that the date can be in a lot of different formats. Some examples are shown in the list: * June 12, 1956 * London, 21st October 2...
2015/11/05
[ "https://Stackoverflow.com/questions/33547179", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4348290/" ]
You are after [Named Entity Recognition](https://en.wikipedia.org/wiki/Named-entity_recognition). I'd start with [Stanford NLP](http://nlp.stanford.edu/software/CRF-NER.shtml). The 7 class model includes date, but the online [demo struggles](http://nlp.stanford.edu:8080/ner/) and misses the "13". :( Natty mentioned ab...
I've done this before with good `precision` and `recall`. You'll need [GATE](https://gate.ac.uk/) and its `ANNIE` plugin. 1. Use GATE UI tool to create a `.GAPP` file that will contain your `processing resources`. 2. Use the `.GAPP` file to use the extracted `Date` annotation set. Step 2 can be done as follows: ```...
17,758,908
I've developed website based on .NET MVC4. I used simple membership .NET built in forms authentication. I saw that the application uses some kind of MS database, but I don't really know what kind. I want to upload my site to server and publish it. Do I need to install some kind of database on the server? or I'll just n...
2013/07/20
[ "https://Stackoverflow.com/questions/17758908", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2270166/" ]
The database created by default when using the MVC 4 Internet template is a [SQL Server Express LocalDB](http://msdn.microsoft.com/en-us/library/hh510202.aspx), which is really intended for development and testing and not for deployment. Although I think some people do use it in production. If the correct components ar...
You should explain more about state of your application database. At least you should let us see your working connection string(s). If you have all your data in a single database - your own tables and the membership made tables - and your database is attached to a local database instance, you just need to generate a s...
31,953
> > **Possible Duplicate:** > > [Basic Frequency Control Circuit](https://electronics.stackexchange.com/questions/31888/basic-frequency-control-circuit) > > > In the following schematic, why can't R4 be taken away and the feedback network pass output feedback through C2 and R2? ![Schematic](https://i.stack.im...
2012/05/15
[ "https://electronics.stackexchange.com/questions/31953", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/9374/" ]
You said it yourself *"DC feedback is necessary"*. Capacitors block DC, so a capacitor in series with the feedback path eliminates DC feedback. For the purpose of DC analysis, think of a capacitor as a open circuit.
In a perfect world with ideal op-amps, this appears to work fine since with the pot at mid-position, the gain is -1 at all frequencies\* (after all, C1 blocks any dc from reaching the op-amp, so the infinite gain after point 'a' has nothing to amplify). The problem is that op-amps have input offset voltage and input bi...
69,167,234
I'm currently writing a minecraft plugin in java. But i'm facing an issue, an else statement is being fired while it shouldn't I'm checking if a player is in a region called "safezone" This will return true, i debugged this. However it fires the else Both if and else statements I'm unsure why this is happening, and c...
2021/09/13
[ "https://Stackoverflow.com/questions/69167234", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5724893/" ]
You can use [`pd.to_timedelta()`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.to_timedelta.html) and specify the unit as second, as follows: ``` df['laikas_s'] = pd.to_timedelta(df['laikas_s'], unit='S') ``` Result: ``` print(df) x laikas_s 0 meh 0 days 01:27:17 1 elec 0 days ...
I just add solution with `datetime.timedelta` (the result is string, without the `0 days`): ```py import datetime df["laikas_s"] = df["laikas_s"].apply( lambda sec: str(datetime.timedelta(seconds=sec)) ) ``` Prints: ```none x laikas_s 0 meh 1:27:17 1 elec 5:48:45 ```
55,124
I'm using a Toshiba satellite L305 running Ubuntu. One issue, the laptop usually suspends itself when the lid closed, however Ubuntu only does this half of the time, the other half it keeps the system running. Very inconvenient, because when I put my laptop in my briefcase, if it's not suspended, it's just blowing hot ...
2011/07/30
[ "https://askubuntu.com/questions/55124", "https://askubuntu.com", "https://askubuntu.com/users/21898/" ]
I would like to suggest first (unless you have done already) that you hit the unity button in the corner or win/super key and type Power Management. Here you should be able to select what action happens when you shut the laptop lid ie suspend/blank screen. It usually works on my laptop but more often than not. ![Po...
search for ACPI fixes, my asus wouldn't suspend, but a few lines of code in a wiki fixed it.
2,593,338
So let's assume I have a class named ABC that will have a list of Point objects. I need to make some drawing logic with them. Each one of those Point objects will have a Draw() method that will be called by the ABC class. The Draw() method code will need info from ABC class. I can only see two ways to make them hav...
2010/04/07
[ "https://Stackoverflow.com/questions/2593338", "https://Stackoverflow.com", "https://Stackoverflow.com/users/130758/" ]
It will be more work to create and maintain a separate class to pass state between `ABC` and `point`, but it's worth doing if you want to decouple `point` from `ABC`. The main question is, how much does decoupling them matter to you, if it matters at all? If it makes sense in your domain for point instances to know ab...
Go with approach #2, but without the object. Just pass the parameters to `Draw` directly.
2,593,338
So let's assume I have a class named ABC that will have a list of Point objects. I need to make some drawing logic with them. Each one of those Point objects will have a Draw() method that will be called by the ABC class. The Draw() method code will need info from ABC class. I can only see two ways to make them hav...
2010/04/07
[ "https://Stackoverflow.com/questions/2593338", "https://Stackoverflow.com", "https://Stackoverflow.com/users/130758/" ]
The best approach depends on the nature of the information ABC needs to provide to the Point instances, the nature of the relationship between these classes, and the "expected" future for them. In other words there are a lot of qualitative factors. If you do go with passing the Point an ABC instance, *don't* - rather,...
Go with approach #2, but without the object. Just pass the parameters to `Draw` directly.
2,593,338
So let's assume I have a class named ABC that will have a list of Point objects. I need to make some drawing logic with them. Each one of those Point objects will have a Draw() method that will be called by the ABC class. The Draw() method code will need info from ABC class. I can only see two ways to make them hav...
2010/04/07
[ "https://Stackoverflow.com/questions/2593338", "https://Stackoverflow.com", "https://Stackoverflow.com/users/130758/" ]
It will be more work to create and maintain a separate class to pass state between `ABC` and `point`, but it's worth doing if you want to decouple `point` from `ABC`. The main question is, how much does decoupling them matter to you, if it matters at all? If it makes sense in your domain for point instances to know ab...
Since the `Point` class and `ABC` appear to have to mediate between themselves as to what to draw, why not call the `draw()` method on the `Point`, passing the actual `ABC` object as an argument. The `ABC` object can provide accessor methods (don't expose those properties!) and the point class (or subclass implementati...
2,593,338
So let's assume I have a class named ABC that will have a list of Point objects. I need to make some drawing logic with them. Each one of those Point objects will have a Draw() method that will be called by the ABC class. The Draw() method code will need info from ABC class. I can only see two ways to make them hav...
2010/04/07
[ "https://Stackoverflow.com/questions/2593338", "https://Stackoverflow.com", "https://Stackoverflow.com/users/130758/" ]
The best approach depends on the nature of the information ABC needs to provide to the Point instances, the nature of the relationship between these classes, and the "expected" future for them. In other words there are a lot of qualitative factors. If you do go with passing the Point an ABC instance, *don't* - rather,...
Since the `Point` class and `ABC` appear to have to mediate between themselves as to what to draw, why not call the `draw()` method on the `Point`, passing the actual `ABC` object as an argument. The `ABC` object can provide accessor methods (don't expose those properties!) and the point class (or subclass implementati...
2,593,338
So let's assume I have a class named ABC that will have a list of Point objects. I need to make some drawing logic with them. Each one of those Point objects will have a Draw() method that will be called by the ABC class. The Draw() method code will need info from ABC class. I can only see two ways to make them hav...
2010/04/07
[ "https://Stackoverflow.com/questions/2593338", "https://Stackoverflow.com", "https://Stackoverflow.com/users/130758/" ]
The best approach depends on the nature of the information ABC needs to provide to the Point instances, the nature of the relationship between these classes, and the "expected" future for them. In other words there are a lot of qualitative factors. If you do go with passing the Point an ABC instance, *don't* - rather,...
It will be more work to create and maintain a separate class to pass state between `ABC` and `point`, but it's worth doing if you want to decouple `point` from `ABC`. The main question is, how much does decoupling them matter to you, if it matters at all? If it makes sense in your domain for point instances to know ab...
2,593,338
So let's assume I have a class named ABC that will have a list of Point objects. I need to make some drawing logic with them. Each one of those Point objects will have a Draw() method that will be called by the ABC class. The Draw() method code will need info from ABC class. I can only see two ways to make them hav...
2010/04/07
[ "https://Stackoverflow.com/questions/2593338", "https://Stackoverflow.com", "https://Stackoverflow.com/users/130758/" ]
It will be more work to create and maintain a separate class to pass state between `ABC` and `point`, but it's worth doing if you want to decouple `point` from `ABC`. The main question is, how much does decoupling them matter to you, if it matters at all? If it makes sense in your domain for point instances to know ab...
You may want to consider reversing the dependencies. Instead of Points accessing properties from ABC, have ABC set properties on the points when (or just before) calling "draw()" on each of them. Something similar to the [Flyweight pattern](http://en.wikipedia.org/wiki/Flyweight_pattern) used when rendering cells in Sw...
2,593,338
So let's assume I have a class named ABC that will have a list of Point objects. I need to make some drawing logic with them. Each one of those Point objects will have a Draw() method that will be called by the ABC class. The Draw() method code will need info from ABC class. I can only see two ways to make them hav...
2010/04/07
[ "https://Stackoverflow.com/questions/2593338", "https://Stackoverflow.com", "https://Stackoverflow.com/users/130758/" ]
The best approach depends on the nature of the information ABC needs to provide to the Point instances, the nature of the relationship between these classes, and the "expected" future for them. In other words there are a lot of qualitative factors. If you do go with passing the Point an ABC instance, *don't* - rather,...
You may want to consider reversing the dependencies. Instead of Points accessing properties from ABC, have ABC set properties on the points when (or just before) calling "draw()" on each of them. Something similar to the [Flyweight pattern](http://en.wikipedia.org/wiki/Flyweight_pattern) used when rendering cells in Sw...
35,165,271
This should be simple. How can I assign my own colors to the bars in [Google Gantt Charts](https://developers.google.com/chart/interactive/docs/gallery/ganttchart)? The gantt is ignoring my colors and automatically assigning blue, red and yellow colors (in that order) to the bars and I can't seem to figure out the prob...
2016/02/02
[ "https://Stackoverflow.com/questions/35165271", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3207927/" ]
I figured out a hacky way of doing it. You basically have to listen to every single event fired by the chart and override them with a function that colors the chart.
This is pretty old, but just in case anyone needs to do this... Not a super elegant solution, but it works. ``` function changeColors() { $("text[fill='#5e97f6']").attr('fill',"#0099D8"); // Left Text $("rect[fill='#5e97f6']").attr('fill',"#0099D8"); // Full bar $("path[fill='#2a56c6']").attr('fill', '#006B99'); // Pe...
35,165,271
This should be simple. How can I assign my own colors to the bars in [Google Gantt Charts](https://developers.google.com/chart/interactive/docs/gallery/ganttchart)? The gantt is ignoring my colors and automatically assigning blue, red and yellow colors (in that order) to the bars and I can't seem to figure out the prob...
2016/02/02
[ "https://Stackoverflow.com/questions/35165271", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3207927/" ]
There is an option`gantt.palette` which takes an array of objects. ``` var options = { gantt: { palette: [ { "color": "#cccccc", "dark": "#333333", "light": "#eeeeee" } ] } } ``` By providing your own array of objects, you can override the default palette. **This is t...
I figured out a hacky way of doing it. You basically have to listen to every single event fired by the chart and override them with a function that colors the chart.
35,165,271
This should be simple. How can I assign my own colors to the bars in [Google Gantt Charts](https://developers.google.com/chart/interactive/docs/gallery/ganttchart)? The gantt is ignoring my colors and automatically assigning blue, red and yellow colors (in that order) to the bars and I can't seem to figure out the prob...
2016/02/02
[ "https://Stackoverflow.com/questions/35165271", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3207927/" ]
There is an option`gantt.palette` which takes an array of objects. ``` var options = { gantt: { palette: [ { "color": "#cccccc", "dark": "#333333", "light": "#eeeeee" } ] } } ``` By providing your own array of objects, you can override the default palette. **This is t...
This is pretty old, but just in case anyone needs to do this... Not a super elegant solution, but it works. ``` function changeColors() { $("text[fill='#5e97f6']").attr('fill',"#0099D8"); // Left Text $("rect[fill='#5e97f6']").attr('fill',"#0099D8"); // Full bar $("path[fill='#2a56c6']").attr('fill', '#006B99'); // Pe...
50,555,587
``` sudo php bin/console doctrine:database:create In AbstractMySQLDriver.php line 125: An exception occurred in driver: could not find driver In PDOConnection.php line 50: could not find driver In PDOConnection.php line 46: could not find driver doctrine:database:create [--shard SHARD] [--connection [CONNE...
2018/05/27
[ "https://Stackoverflow.com/questions/50555587", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9541581/" ]
You have to enable [PDO](http://php.net/manual/en/book.pdo.php) extension. If you are on a Windows machine look in your `php.ini` file and uncomment `extension=php_pdo_mysql.dll`. The path to your `php.ini` file can be found by looking at your `phpinfo()`. Debian/Ubuntu PHP 5 `sudo apt-get install php5-mysql` PHP 7...
Check if your php.ini file has the lines : ``` extension=pdo_mysql extension=pdo_pgsql extension=mysqli ```
15,437,866
How can I best check if a string input would be a valid java variable for coding? I'm sure I'm not the first one who is willing to do this. But maybe I'm missing the right keyword to find something useful. Best would probably be a RegEx, which checks that: * starts with a letter * can then contain digits, letters * c...
2013/03/15
[ "https://Stackoverflow.com/questions/15437866", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1194415/" ]
``` public static boolean isValidJavaIdentifier(String s) { if (s.isEmpty()) { return false; } if (!Character.isJavaIdentifierStart(s.charAt(0))) { return false; } for (int i = 1; i < s.length(); i++) { if (!Character.isJavaIdentifierPart(s.charAt(i))) { return fa...
Java 6+ ------- Use ```java import javax.lang.model.SourceVersion; boolean isValidVariableName(CharSequence name) { return SourceVersion.isIdentifier(name) && !SourceVersion.isKeyword(name); } ``` if you need to check whether a string is a valid Java variable name in the **latest** version of Java or ```java ...
15,678,117
I am trying to use protobuf format in ServiceStack Webservices ( following the example at [ServiceStack: REST with ProtoBuf by Steven Hollidge](http://stevenhollidge.blogspot.in/2012/04/servicestack-rest-with-protobuf.html). I have added a Winform application to consume the webservice. The codes are given below. **Hel...
2013/03/28
[ "https://Stackoverflow.com/questions/15678117", "https://Stackoverflow.com", "https://Stackoverflow.com/users/801562/" ]
It looks like you have your `Hello` class and your `HelloResponse` class declared twice. Once in **HelloService.cs** and again as inner classes in **Form.cs**. Removing the duplicates from your **Form.cs** file should allow your `ProtoBufServiceClient` to reference the correct classes/types.
Put your POCO classes in the same namespace, that should do it.
15,678,117
I am trying to use protobuf format in ServiceStack Webservices ( following the example at [ServiceStack: REST with ProtoBuf by Steven Hollidge](http://stevenhollidge.blogspot.in/2012/04/servicestack-rest-with-protobuf.html). I have added a Winform application to consume the webservice. The codes are given below. **Hel...
2013/03/28
[ "https://Stackoverflow.com/questions/15678117", "https://Stackoverflow.com", "https://Stackoverflow.com/users/801562/" ]
I have updated the Form1.cs to the following and now it is working fine( refer to <http://upjnv.blogspot.in/> ``` using System; using System.Windows.Forms; using ServiceStack.Plugins.ProtoBuf; using System.Runtime.Serialization; using ServiceStack.ServiceClient.Web; namespace client { public par...
Put your POCO classes in the same namespace, that should do it.
15,678,117
I am trying to use protobuf format in ServiceStack Webservices ( following the example at [ServiceStack: REST with ProtoBuf by Steven Hollidge](http://stevenhollidge.blogspot.in/2012/04/servicestack-rest-with-protobuf.html). I have added a Winform application to consume the webservice. The codes are given below. **Hel...
2013/03/28
[ "https://Stackoverflow.com/questions/15678117", "https://Stackoverflow.com", "https://Stackoverflow.com/users/801562/" ]
It looks like you have your `Hello` class and your `HelloResponse` class declared twice. Once in **HelloService.cs** and again as inner classes in **Form.cs**. Removing the duplicates from your **Form.cs** file should allow your `ProtoBufServiceClient` to reference the correct classes/types.
I have updated the Form1.cs to the following and now it is working fine( refer to <http://upjnv.blogspot.in/> ``` using System; using System.Windows.Forms; using ServiceStack.Plugins.ProtoBuf; using System.Runtime.Serialization; using ServiceStack.ServiceClient.Web; namespace client { public par...
62,400,506
I'm learning to use FastAPI, and I'm getting this error over and over again while implementing a simple API and I've not being able to figure out why ``` "detail": "There was an error parsing the body" ``` This happends me on this two endpoints: Full code: [Code Repository](https://github.com/rodrigoarenas456/Backe...
2020/06/16
[ "https://Stackoverflow.com/questions/62400506", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5495134/" ]
I acomplished to figure out, it was because when FastAPI was installed, it didn't install python-multipart, so with this package missing everything that needs multipart falls After installing it works fine Thanks
The problem with the first request is that you should be sending `username` and `password` in a `form-data`. Instead of `x-www-form-urlencoded`, use `form-data` and you should be fine. [![enter image description here](https://i.stack.imgur.com/DsGHB.png)](https://i.stack.imgur.com/DsGHB.png) I can't see the problem w...
266,952
If I know what a field will be initialized to, should I initialize it in the field, constructor, or receive it as a parameter? I am asking about best practices. All three options effectively provide the same result. I am not considering what is happening behind the scenes, because I think it would be insignificant. Th...
2014/12/19
[ "https://softwareengineering.stackexchange.com/questions/266952", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/112298/" ]
Initializing as a parameter breaks encapsulation in that the caller can then do with the passed in list what it wants (clear at odd times). ``` ArrayList<String> list = new ArrayList<String>(); Initializer init = new Initializer(list); //do various thing list.clear(); //now the list in init is also empty while init m...
> > If I know what a field will be initialized to > > > If you know that, then chances are very high that either your class won't be very reusable or you make the mistake of assuming that you will know how your class will be used now and in future - while actually missing some possible usecases. I can explain this...
60,108,515
I stuck with error = Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables such as Arrays. Actually, I want to make Notification list and I don't know what mistake I made. I stuck with error = Cannot find a differ supporting object '[object Object]' of type...
2020/02/07
[ "https://Stackoverflow.com/questions/60108515", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12022853/" ]
```js let notify = res['notification'] ``` ### That creates block level scope, the local scope will never reflect this value. Angular binds to local scope, not block level. So you need to bind a local variable outside of that function. ```js class ComponentName { notify: any[]; // ... onClickUserNotif() {...
I'd advise you to play on a safe side, make sure you have this array at all times: ``` class ComponentName { notify: any[] = []; // assign an empty array // ... onClickUserNotif() { // ... this.notify = res['notification']; } } // In the template, use the ? to indicate that the might be no...
53,447,598
I have a dictionary created from JSON. I would like to access items in the dictionairy through arrays containing their keys. Visualised JSON: ``` { "name": "Chiel", "industry": { "IndustryName": "Computer Science", "company": { "companyName": "Apple", "address": { "streetName": "Apple P...
2018/11/23
[ "https://Stackoverflow.com/questions/53447598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6381389/" ]
Here [are the details](https://youtu.be/GRn49ehm_pI), ``` 1. go to your desired NuGet package webpage. 2. on the right side **Download Package** option click it. 3. your package **.nupkg** file will be downloaded. 4. change its extension to .zip and extract it 5. go to lib and copy your package dll file from net or a...
You have to set up the downloaded nuget /is in packages folder/ plugins manually. Nuget doesn't know which plugin can use unity and how. You can set their parameters in inspector: editor, standalone ... x86,x64 ...
53,447,598
I have a dictionary created from JSON. I would like to access items in the dictionairy through arrays containing their keys. Visualised JSON: ``` { "name": "Chiel", "industry": { "IndustryName": "Computer Science", "company": { "companyName": "Apple", "address": { "streetName": "Apple P...
2018/11/23
[ "https://Stackoverflow.com/questions/53447598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6381389/" ]
Just thought I'd add this in case it helps anyone I used the [Nuget for Unity](https://github.com/GlitchEnzo/NuGetForUnity) asset (free) to import a package (websocketsharp) and it was really easy and painless. The references in VS worked immediately as well The package you're trying to import naturally has to be com...
There is [NuGet2Unity](https://github.com/BrianPeek/NuGet2Unity) that allows to convert any Nuget package to a '.unitypackage'. I've used it to convert "SpecFlow" and i was able to import the resulting Unity Package. Check out their [Examples](https://github.com/BrianPeek/NuGet2Unity#example). It worked for me with: ...
53,447,598
I have a dictionary created from JSON. I would like to access items in the dictionairy through arrays containing their keys. Visualised JSON: ``` { "name": "Chiel", "industry": { "IndustryName": "Computer Science", "company": { "companyName": "Apple", "address": { "streetName": "Apple P...
2018/11/23
[ "https://Stackoverflow.com/questions/53447598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6381389/" ]
Just thought I'd add this in case it helps anyone I used the [Nuget for Unity](https://github.com/GlitchEnzo/NuGetForUnity) asset (free) to import a package (websocketsharp) and it was really easy and painless. The references in VS worked immediately as well The package you're trying to import naturally has to be com...
Use native Nuget (for packages which targets only one framework) ================================================================ Instead of downloading everything manually you can create a `nuget.config` and a `packages.nuget` file and place them in you project's root directory. `nuget.config`: ```xml <?xml version...
53,447,598
I have a dictionary created from JSON. I would like to access items in the dictionairy through arrays containing their keys. Visualised JSON: ``` { "name": "Chiel", "industry": { "IndustryName": "Computer Science", "company": { "companyName": "Apple", "address": { "streetName": "Apple P...
2018/11/23
[ "https://Stackoverflow.com/questions/53447598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6381389/" ]
Use native Nuget (for packages which targets only one framework) ================================================================ Instead of downloading everything manually you can create a `nuget.config` and a `packages.nuget` file and place them in you project's root directory. `nuget.config`: ```xml <?xml version...
There is [NuGet2Unity](https://github.com/BrianPeek/NuGet2Unity) that allows to convert any Nuget package to a '.unitypackage'. I've used it to convert "SpecFlow" and i was able to import the resulting Unity Package. Check out their [Examples](https://github.com/BrianPeek/NuGet2Unity#example). It worked for me with: ...
53,447,598
I have a dictionary created from JSON. I would like to access items in the dictionairy through arrays containing their keys. Visualised JSON: ``` { "name": "Chiel", "industry": { "IndustryName": "Computer Science", "company": { "companyName": "Apple", "address": { "streetName": "Apple P...
2018/11/23
[ "https://Stackoverflow.com/questions/53447598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6381389/" ]
Here [are the details](https://youtu.be/GRn49ehm_pI), ``` 1. go to your desired NuGet package webpage. 2. on the right side **Download Package** option click it. 3. your package **.nupkg** file will be downloaded. 4. change its extension to .zip and extract it 5. go to lib and copy your package dll file from net or a...
You can use the native `dotnet restore` or `nuget restore` commands to populate an asset folder with the nuget packages. #### Get the packages Specify where to put the packages either on the command line or in a `nuget.config` file so that they will be included as assets in unity. ``` <?xml version="1.0" encoding="u...
53,447,598
I have a dictionary created from JSON. I would like to access items in the dictionairy through arrays containing their keys. Visualised JSON: ``` { "name": "Chiel", "industry": { "IndustryName": "Computer Science", "company": { "companyName": "Apple", "address": { "streetName": "Apple P...
2018/11/23
[ "https://Stackoverflow.com/questions/53447598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6381389/" ]
You really don't wanna go down the path of configuring Unity to work with Nuget automatically. That article is rather old. With Unity 2018, you get a .net standard 2.0 compatibility level, which should be perfect for Nuget packages. Simply download the package using a separate VS project (as mentioned in the article), ...
There is [NuGet2Unity](https://github.com/BrianPeek/NuGet2Unity) that allows to convert any Nuget package to a '.unitypackage'. I've used it to convert "SpecFlow" and i was able to import the resulting Unity Package. Check out their [Examples](https://github.com/BrianPeek/NuGet2Unity#example). It worked for me with: ...
53,447,598
I have a dictionary created from JSON. I would like to access items in the dictionairy through arrays containing their keys. Visualised JSON: ``` { "name": "Chiel", "industry": { "IndustryName": "Computer Science", "company": { "companyName": "Apple", "address": { "streetName": "Apple P...
2018/11/23
[ "https://Stackoverflow.com/questions/53447598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6381389/" ]
Just thought I'd add this in case it helps anyone I used the [Nuget for Unity](https://github.com/GlitchEnzo/NuGetForUnity) asset (free) to import a package (websocketsharp) and it was really easy and painless. The references in VS worked immediately as well The package you're trying to import naturally has to be com...
You have to set up the downloaded nuget /is in packages folder/ plugins manually. Nuget doesn't know which plugin can use unity and how. You can set their parameters in inspector: editor, standalone ... x86,x64 ...
53,447,598
I have a dictionary created from JSON. I would like to access items in the dictionairy through arrays containing their keys. Visualised JSON: ``` { "name": "Chiel", "industry": { "IndustryName": "Computer Science", "company": { "companyName": "Apple", "address": { "streetName": "Apple P...
2018/11/23
[ "https://Stackoverflow.com/questions/53447598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6381389/" ]
Here [are the details](https://youtu.be/GRn49ehm_pI), ``` 1. go to your desired NuGet package webpage. 2. on the right side **Download Package** option click it. 3. your package **.nupkg** file will be downloaded. 4. change its extension to .zip and extract it 5. go to lib and copy your package dll file from net or a...
There is [NuGet2Unity](https://github.com/BrianPeek/NuGet2Unity) that allows to convert any Nuget package to a '.unitypackage'. I've used it to convert "SpecFlow" and i was able to import the resulting Unity Package. Check out their [Examples](https://github.com/BrianPeek/NuGet2Unity#example). It worked for me with: ...
53,447,598
I have a dictionary created from JSON. I would like to access items in the dictionairy through arrays containing their keys. Visualised JSON: ``` { "name": "Chiel", "industry": { "IndustryName": "Computer Science", "company": { "companyName": "Apple", "address": { "streetName": "Apple P...
2018/11/23
[ "https://Stackoverflow.com/questions/53447598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6381389/" ]
You really don't wanna go down the path of configuring Unity to work with Nuget automatically. That article is rather old. With Unity 2018, you get a .net standard 2.0 compatibility level, which should be perfect for Nuget packages. Simply download the package using a separate VS project (as mentioned in the article), ...
Use native Nuget (for packages which targets only one framework) ================================================================ Instead of downloading everything manually you can create a `nuget.config` and a `packages.nuget` file and place them in you project's root directory. `nuget.config`: ```xml <?xml version...
53,447,598
I have a dictionary created from JSON. I would like to access items in the dictionairy through arrays containing their keys. Visualised JSON: ``` { "name": "Chiel", "industry": { "IndustryName": "Computer Science", "company": { "companyName": "Apple", "address": { "streetName": "Apple P...
2018/11/23
[ "https://Stackoverflow.com/questions/53447598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6381389/" ]
You can use the native `dotnet restore` or `nuget restore` commands to populate an asset folder with the nuget packages. #### Get the packages Specify where to put the packages either on the command line or in a `nuget.config` file so that they will be included as assets in unity. ``` <?xml version="1.0" encoding="u...
You have to set up the downloaded nuget /is in packages folder/ plugins manually. Nuget doesn't know which plugin can use unity and how. You can set their parameters in inspector: editor, standalone ... x86,x64 ...
24,530
Popper claims that falsifiability is a criterion of science (but not of meaningfulness). Scanning the original 1935 text (Logik der Forschung) it seems to me that he just refers to "Wissenschaft". Does he actually mean what English calls "Science" or the broader German sense in which the humanities and social sciences ...
2015/06/18
[ "https://philosophy.stackexchange.com/questions/24530", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/15024/" ]
Popper did accept social sciences as sciences proper, and even was more positive on them than many natural scientists. Here is from [Cibangu's Karl Popper and the Social Sciences](http://cdn.intechopen.com/pdfs-wm/39080.pdf):"*Popper understood the social sciences as sciences in the full sense of the word, a position t...
I agree that from *The Logic of Scientific Discovery* it is difficult to link Popper's demarcation criterion to the distinction between natural and social sciences. However, in [*Conjectures and Refutations*](https://poars1982.files.wordpress.com/2008/03/science-conjectures-and-refutations.pdf) Popper famously gives th...
46,092,268
Is there any way for the browser to "lock" the file after being selected by the `<input type="file" />`? Right now I can select a file, start some operations on it with JavaScript and in the meantime I can delete it from my disk, which results in errors in JavaScript code. **EDIT** The goal is to make sure the file ca...
2017/09/07
[ "https://Stackoverflow.com/questions/46092268", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5033397/" ]
No there is no way. Simply because JS is a client side language, even with server side this wouldn't be possible because you can't interact with users computer. For this to happened you would need your desktop app that would take the file for example copy it and lock it. If this was to be implemented, this would have ...
**Yes** : You can create a copy in memory, and use this instead of the file on user's disk. You will have to read its content first and to create a new File/Blob from there : ```js let theFile = null; inp.onchange = async function(e) { theFile = await saveBlob(inp.files[0]); btn.disabled = false; inp.dis...
51,938,699
Say, I have an async function that I want to call in a synchronous function. For example: ``` Future<int> foo() async { // do something return 109; } int bar() { var r = wait_for_future(foo()); return r; } ``` What I'm looking for is a possible implementation for `wait_for_future`. Can this even be done in ...
2018/08/20
[ "https://Stackoverflow.com/questions/51938699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/363949/" ]
`params` is supposed to be a Javascript object with the `inv` property, which you have not provided as an argument to the function. ```js function myClickEvent(params) { var inv = $("#" + params["inv"]); inv.on("click", function () { console.log(inv+": clicked"); //$.ajax({ // ur...
That's because you are not passing anything to the function, you can test it this way `<button onclick='myClickEvent("value")'>Click me</button>` and then add `console.log(params)` in the first line of your function
51,938,699
Say, I have an async function that I want to call in a synchronous function. For example: ``` Future<int> foo() async { // do something return 109; } int bar() { var r = wait_for_future(foo()); return r; } ``` What I'm looking for is a possible implementation for `wait_for_future`. Can this even be done in ...
2018/08/20
[ "https://Stackoverflow.com/questions/51938699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/363949/" ]
`params` is supposed to be a Javascript object with the `inv` property, which you have not provided as an argument to the function. ```js function myClickEvent(params) { var inv = $("#" + params["inv"]); inv.on("click", function () { console.log(inv+": clicked"); //$.ajax({ // ur...
You need to read a javascript tutorial, you are telling the button to execute on click the function myClickEvent() without parameters, and in the definition you are expecting a params param, this is not filled by itself, i would tell you to add the param but what you really need to do is not to use the onClick attribut...
5,301,744
I need to get WADL file for RESTful service. I know that in case using jersey it's available as `http://localhost:8080/application.wadl`. But I use RESTeasy. Can I do the same in my framework case?
2011/03/14
[ "https://Stackoverflow.com/questions/5301744", "https://Stackoverflow.com", "https://Stackoverflow.com/users/608818/" ]
Latest versions: ================ Quoting [Chapter 49. RESTEasy WADL Support](http://docs.jboss.org/resteasy/docs/3.1.4.Final/userguide/html_single/index.html#WADL): > > Chapter 49. RESTEasy WADL Support > ================================= > > > [49.1. RESTEasy WADL Support for Servlet Container](http://docs.jboss...
WADL generation in RESTeasy is a feature not yet implemented. If you want it go vote for it. <https://issues.jboss.org/browse/RESTEASY-166>
5,301,744
I need to get WADL file for RESTful service. I know that in case using jersey it's available as `http://localhost:8080/application.wadl`. But I use RESTeasy. Can I do the same in my framework case?
2011/03/14
[ "https://Stackoverflow.com/questions/5301744", "https://Stackoverflow.com", "https://Stackoverflow.com/users/608818/" ]
WADL generation in RESTeasy is a feature not yet implemented. If you want it go vote for it. <https://issues.jboss.org/browse/RESTEASY-166>
we can generate a wadl with the help of maven project with POM.XML <https://issues.jboss.org/browse/RESTEASY-166> check the comments here..!!
5,301,744
I need to get WADL file for RESTful service. I know that in case using jersey it's available as `http://localhost:8080/application.wadl`. But I use RESTeasy. Can I do the same in my framework case?
2011/03/14
[ "https://Stackoverflow.com/questions/5301744", "https://Stackoverflow.com", "https://Stackoverflow.com/users/608818/" ]
WADL generation in RESTeasy is a feature not yet implemented. If you want it go vote for it. <https://issues.jboss.org/browse/RESTEASY-166>
See [RESTEasy WADL Support](http://docs.jboss.org/resteasy/docs/3.1.0.Final/userguide/html/WADL.html) (3.1.0). The snipped below is copied from there ``` <servlet> <servlet-name>RESTEasy WADL</servlet-name> <servlet-class>org.jboss.resteasy.wadl.ResteasyWadlServlet</servlet-class> </servlet> <servlet-mapping>...
5,301,744
I need to get WADL file for RESTful service. I know that in case using jersey it's available as `http://localhost:8080/application.wadl`. But I use RESTeasy. Can I do the same in my framework case?
2011/03/14
[ "https://Stackoverflow.com/questions/5301744", "https://Stackoverflow.com", "https://Stackoverflow.com/users/608818/" ]
Latest versions: ================ Quoting [Chapter 49. RESTEasy WADL Support](http://docs.jboss.org/resteasy/docs/3.1.4.Final/userguide/html_single/index.html#WADL): > > Chapter 49. RESTEasy WADL Support > ================================= > > > [49.1. RESTEasy WADL Support for Servlet Container](http://docs.jboss...
we can generate a wadl with the help of maven project with POM.XML <https://issues.jboss.org/browse/RESTEASY-166> check the comments here..!!
5,301,744
I need to get WADL file for RESTful service. I know that in case using jersey it's available as `http://localhost:8080/application.wadl`. But I use RESTeasy. Can I do the same in my framework case?
2011/03/14
[ "https://Stackoverflow.com/questions/5301744", "https://Stackoverflow.com", "https://Stackoverflow.com/users/608818/" ]
Latest versions: ================ Quoting [Chapter 49. RESTEasy WADL Support](http://docs.jboss.org/resteasy/docs/3.1.4.Final/userguide/html_single/index.html#WADL): > > Chapter 49. RESTEasy WADL Support > ================================= > > > [49.1. RESTEasy WADL Support for Servlet Container](http://docs.jboss...
See [RESTEasy WADL Support](http://docs.jboss.org/resteasy/docs/3.1.0.Final/userguide/html/WADL.html) (3.1.0). The snipped below is copied from there ``` <servlet> <servlet-name>RESTEasy WADL</servlet-name> <servlet-class>org.jboss.resteasy.wadl.ResteasyWadlServlet</servlet-class> </servlet> <servlet-mapping>...
6,833,619
I've got a Visual Studio Setup Project that uses the **msiexec.exe** file to create an *Uninstall* item as outlined in [>> THIS <<](https://stackoverflow.com/questions/1356160) article on SO. The Installer does not run. When I launch the installer by double-clicking the *setup.exe* file, the "Please wait while setup ...
2011/07/26
[ "https://Stackoverflow.com/questions/6833619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/153923/" ]
The first step should be creating an [installation log](https://stackoverflow.com/a/18755775/1115360) to see what triggers the error. From the log you posted, it seems like your MSI tries to use a directory which is not in Directory table. Are you using any merge modules or special custom actions? If so, try to determ...
Old question, I know - just wanted to add in some information that helped me with the Windows Installer project in Visual Studio 2015, in case anyone comes across this topic. I got the same error message, 2727. My issue was that I was including my source code into an "src" folder in the installation directory. When lo...
6,833,619
I've got a Visual Studio Setup Project that uses the **msiexec.exe** file to create an *Uninstall* item as outlined in [>> THIS <<](https://stackoverflow.com/questions/1356160) article on SO. The Installer does not run. When I launch the installer by double-clicking the *setup.exe* file, the "Please wait while setup ...
2011/07/26
[ "https://Stackoverflow.com/questions/6833619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/153923/" ]
The first step should be creating an [installation log](https://stackoverflow.com/a/18755775/1115360) to see what triggers the error. From the log you posted, it seems like your MSI tries to use a directory which is not in Directory table. Are you using any merge modules or special custom actions? If so, try to determ...
If you remove a directory or directories from the Directory Table, This will cause an issue with other tables still using those directory variables.
6,833,619
I've got a Visual Studio Setup Project that uses the **msiexec.exe** file to create an *Uninstall* item as outlined in [>> THIS <<](https://stackoverflow.com/questions/1356160) article on SO. The Installer does not run. When I launch the installer by double-clicking the *setup.exe* file, the "Please wait while setup ...
2011/07/26
[ "https://Stackoverflow.com/questions/6833619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/153923/" ]
The first step should be creating an [installation log](https://stackoverflow.com/a/18755775/1115360) to see what triggers the error. From the log you posted, it seems like your MSI tries to use a directory which is not in Directory table. Are you using any merge modules or special custom actions? If so, try to determ...
I know its a Old question, but like @Riccaforte I was having some trouble to fix this in Visual Studio 2015. What I did was just delete all my Source Files inside my Aplication Folder, and I don't know why, but it did the trick.
6,833,619
I've got a Visual Studio Setup Project that uses the **msiexec.exe** file to create an *Uninstall* item as outlined in [>> THIS <<](https://stackoverflow.com/questions/1356160) article on SO. The Installer does not run. When I launch the installer by double-clicking the *setup.exe* file, the "Please wait while setup ...
2011/07/26
[ "https://Stackoverflow.com/questions/6833619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/153923/" ]
The first step should be creating an [installation log](https://stackoverflow.com/a/18755775/1115360) to see what triggers the error. From the log you posted, it seems like your MSI tries to use a directory which is not in Directory table. Are you using any merge modules or special custom actions? If so, try to determ...
My 2727 error message was the result of a \*.png file I had added as a link to my project. "Copy to Output Directory" was set to "Copy if newer". Somehow the Visual Studio Setup Project was not able to resolve the path to the \*.png file and added an invalid path to the installer. LessMSI helped to find the problem ...
6,833,619
I've got a Visual Studio Setup Project that uses the **msiexec.exe** file to create an *Uninstall* item as outlined in [>> THIS <<](https://stackoverflow.com/questions/1356160) article on SO. The Installer does not run. When I launch the installer by double-clicking the *setup.exe* file, the "Please wait while setup ...
2011/07/26
[ "https://Stackoverflow.com/questions/6833619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/153923/" ]
Old question, I know - just wanted to add in some information that helped me with the Windows Installer project in Visual Studio 2015, in case anyone comes across this topic. I got the same error message, 2727. My issue was that I was including my source code into an "src" folder in the installation directory. When lo...
If you remove a directory or directories from the Directory Table, This will cause an issue with other tables still using those directory variables.
6,833,619
I've got a Visual Studio Setup Project that uses the **msiexec.exe** file to create an *Uninstall* item as outlined in [>> THIS <<](https://stackoverflow.com/questions/1356160) article on SO. The Installer does not run. When I launch the installer by double-clicking the *setup.exe* file, the "Please wait while setup ...
2011/07/26
[ "https://Stackoverflow.com/questions/6833619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/153923/" ]
Old question, I know - just wanted to add in some information that helped me with the Windows Installer project in Visual Studio 2015, in case anyone comes across this topic. I got the same error message, 2727. My issue was that I was including my source code into an "src" folder in the installation directory. When lo...
My 2727 error message was the result of a \*.png file I had added as a link to my project. "Copy to Output Directory" was set to "Copy if newer". Somehow the Visual Studio Setup Project was not able to resolve the path to the \*.png file and added an invalid path to the installer. LessMSI helped to find the problem ...
6,833,619
I've got a Visual Studio Setup Project that uses the **msiexec.exe** file to create an *Uninstall* item as outlined in [>> THIS <<](https://stackoverflow.com/questions/1356160) article on SO. The Installer does not run. When I launch the installer by double-clicking the *setup.exe* file, the "Please wait while setup ...
2011/07/26
[ "https://Stackoverflow.com/questions/6833619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/153923/" ]
I know its a Old question, but like @Riccaforte I was having some trouble to fix this in Visual Studio 2015. What I did was just delete all my Source Files inside my Aplication Folder, and I don't know why, but it did the trick.
If you remove a directory or directories from the Directory Table, This will cause an issue with other tables still using those directory variables.
6,833,619
I've got a Visual Studio Setup Project that uses the **msiexec.exe** file to create an *Uninstall* item as outlined in [>> THIS <<](https://stackoverflow.com/questions/1356160) article on SO. The Installer does not run. When I launch the installer by double-clicking the *setup.exe* file, the "Please wait while setup ...
2011/07/26
[ "https://Stackoverflow.com/questions/6833619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/153923/" ]
If you remove a directory or directories from the Directory Table, This will cause an issue with other tables still using those directory variables.
My 2727 error message was the result of a \*.png file I had added as a link to my project. "Copy to Output Directory" was set to "Copy if newer". Somehow the Visual Studio Setup Project was not able to resolve the path to the \*.png file and added an invalid path to the installer. LessMSI helped to find the problem ...
6,833,619
I've got a Visual Studio Setup Project that uses the **msiexec.exe** file to create an *Uninstall* item as outlined in [>> THIS <<](https://stackoverflow.com/questions/1356160) article on SO. The Installer does not run. When I launch the installer by double-clicking the *setup.exe* file, the "Please wait while setup ...
2011/07/26
[ "https://Stackoverflow.com/questions/6833619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/153923/" ]
I know its a Old question, but like @Riccaforte I was having some trouble to fix this in Visual Studio 2015. What I did was just delete all my Source Files inside my Aplication Folder, and I don't know why, but it did the trick.
My 2727 error message was the result of a \*.png file I had added as a link to my project. "Copy to Output Directory" was set to "Copy if newer". Somehow the Visual Studio Setup Project was not able to resolve the path to the \*.png file and added an invalid path to the installer. LessMSI helped to find the problem ...
1,281,654
This is the error I am getting: ``` Syntax error near 'online' in the full-text search condition '""online"*" and "and*" and ""text"*"'. ``` This is my stored procedure: ``` ALTER PROCEDURE dbo.StoredProcedure1 ( @text varchar(1000)=null ) AS SET NOCOUNT ON declare @whereclause varchar(1000) SET @wherec...
2009/08/15
[ "https://Stackoverflow.com/questions/1281654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/108440/" ]
From msdn: Specifies the text to search for in column\_name and the conditions for a match. is nvarchar. An implicit conversion occurs when another character data type is used as input. Because "parameter sniffing" does not work across conversion, use nvarchar for better performance. So i've changed everything to ...
Try this one in your c# code when adding parameter: ``` cmd.Parameters.Add("@text", searchExpression); ```
1,281,654
This is the error I am getting: ``` Syntax error near 'online' in the full-text search condition '""online"*" and "and*" and ""text"*"'. ``` This is my stored procedure: ``` ALTER PROCEDURE dbo.StoredProcedure1 ( @text varchar(1000)=null ) AS SET NOCOUNT ON declare @whereclause varchar(1000) SET @wherec...
2009/08/15
[ "https://Stackoverflow.com/questions/1281654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/108440/" ]
From msdn: Specifies the text to search for in column\_name and the conditions for a match. is nvarchar. An implicit conversion occurs when another character data type is used as input. Because "parameter sniffing" does not work across conversion, use nvarchar for better performance. So i've changed everything to ...
I think SQl uses % instead of \*
1,281,654
This is the error I am getting: ``` Syntax error near 'online' in the full-text search condition '""online"*" and "and*" and ""text"*"'. ``` This is my stored procedure: ``` ALTER PROCEDURE dbo.StoredProcedure1 ( @text varchar(1000)=null ) AS SET NOCOUNT ON declare @whereclause varchar(1000) SET @wherec...
2009/08/15
[ "https://Stackoverflow.com/questions/1281654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/108440/" ]
From msdn: Specifies the text to search for in column\_name and the conditions for a match. is nvarchar. An implicit conversion occurs when another character data type is used as input. Because "parameter sniffing" does not work across conversion, use nvarchar for better performance. So i've changed everything to ...
The problem is with the extra quotation marks. Instead of this: ``` string content = "\"online\" and \"text\""; ``` try this: ``` string content = "online and text"; ``` It will generate a correct condition: ``` '"online*" and "and*" and "text*"' ``` Also if accept user input and pass it directly into a query...
1,281,654
This is the error I am getting: ``` Syntax error near 'online' in the full-text search condition '""online"*" and "and*" and ""text"*"'. ``` This is my stored procedure: ``` ALTER PROCEDURE dbo.StoredProcedure1 ( @text varchar(1000)=null ) AS SET NOCOUNT ON declare @whereclause varchar(1000) SET @wherec...
2009/08/15
[ "https://Stackoverflow.com/questions/1281654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/108440/" ]
From msdn: Specifies the text to search for in column\_name and the conditions for a match. is nvarchar. An implicit conversion occurs when another character data type is used as input. Because "parameter sniffing" does not work across conversion, use nvarchar for better performance. So i've changed everything to ...
Not sure if it's significant, but your procedure is expecting varchar and your calling code is saying the parameter is SqlDbType.Char. I'm quite fond of DeriveParameters : ``` SqlCommand cmd = new SqlCommand("StoredProcedure1", cn); cmd.CommandType = CommandType.StoredProcedure; cn.Open() SqlCommandBuilder.DeriveParam...
1,281,654
This is the error I am getting: ``` Syntax error near 'online' in the full-text search condition '""online"*" and "and*" and ""text"*"'. ``` This is my stored procedure: ``` ALTER PROCEDURE dbo.StoredProcedure1 ( @text varchar(1000)=null ) AS SET NOCOUNT ON declare @whereclause varchar(1000) SET @wherec...
2009/08/15
[ "https://Stackoverflow.com/questions/1281654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/108440/" ]
From msdn: Specifies the text to search for in column\_name and the conditions for a match. is nvarchar. An implicit conversion occurs when another character data type is used as input. Because "parameter sniffing" does not work across conversion, use nvarchar for better performance. So i've changed everything to ...
I use this method to remove slashes and then pass the resulting char array to sp. ``` public static char[] RemoveBackslash(string value) { char[] c = value.ToCharArray(); return Array.FindAll(c, val => val != 39).ToArray(); } string content = "'\"online\" and \"text\"'"; Sqlparam = new SqlParameter("@search"...
36,329,080
``` $st = $this->db->prepare("SELECT * FROM users WHERE id=? ORDER BY id ASC"); $st->execute(array($id)); if($st->rowCount() >= 1){ foreach ($st as $row) { echo $row["exp"]."+"; } } ``` So what I've tried is to echo `$row["exp"]...
2016/03/31
[ "https://Stackoverflow.com/questions/36329080", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4929804/" ]
On the second run, T2 "wakes up too late" and T1 already incremented i to 10, so T2 will not enter the while loop. I think the first run is the weird one to be honest.
Suppose `T1 and T2` runs at the same time, during `t1.start();` and `t2.start()`, at this time `i = 0`, `T1` sleeps and `T2` sleeps, `T1` wakes and proceeds to check if i < 10, prints out 1-9, however `T2` wakes but still not run by the JVM, know that once a thread exits the sleep state does not necessary mean it will ...
36,329,080
``` $st = $this->db->prepare("SELECT * FROM users WHERE id=? ORDER BY id ASC"); $st->execute(array($id)); if($st->rowCount() >= 1){ foreach ($st as $row) { echo $row["exp"]."+"; } } ``` So what I've tried is to echo `$row["exp"]...
2016/03/31
[ "https://Stackoverflow.com/questions/36329080", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4929804/" ]
In addition to [@Gunner](https://stackoverflow.com/users/5259945/gunner) and [@mel3kings](https://stackoverflow.com/users/2023728/mel3kings) Actually threads running parallel to each other and OS may allow one thread more time instead next one. Scenario 1; ``` loop Thread1 Thread2 t1 sleep...
Suppose `T1 and T2` runs at the same time, during `t1.start();` and `t2.start()`, at this time `i = 0`, `T1` sleeps and `T2` sleeps, `T1` wakes and proceeds to check if i < 10, prints out 1-9, however `T2` wakes but still not run by the JVM, know that once a thread exits the sleep state does not necessary mean it will ...
36,329,080
``` $st = $this->db->prepare("SELECT * FROM users WHERE id=? ORDER BY id ASC"); $st->execute(array($id)); if($st->rowCount() >= 1){ foreach ($st as $row) { echo $row["exp"]."+"; } } ``` So what I've tried is to echo `$row["exp"]...
2016/03/31
[ "https://Stackoverflow.com/questions/36329080", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4929804/" ]
In addition to [@Gunner](https://stackoverflow.com/users/5259945/gunner) and [@mel3kings](https://stackoverflow.com/users/2023728/mel3kings) Actually threads running parallel to each other and OS may allow one thread more time instead next one. Scenario 1; ``` loop Thread1 Thread2 t1 sleep...
On the second run, T2 "wakes up too late" and T1 already incremented i to 10, so T2 will not enter the while loop. I think the first run is the weird one to be honest.
12,895,816
I'm currently working on a big project and I need to use `weak_ptr` instead of `shared_ptr`. Here is my problem. I have a class named House with an attribute: `vector<boost::shared_ptr<People>> my_people`. I want to modify this data member to be `vector<boost::weak_ptr<People>> my_people`. My getter was ``` vector...
2012/10/15
[ "https://Stackoverflow.com/questions/12895816", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1747056/" ]
What about: ``` vector<boost::shared_ptr<People>> getPeople() const { vector<boost::shared_ptr<People>> res; for( vector<boost::weak_ptr<People>::iterator it = my_people.begin(); it != my_people.end(); ++it) res.push_back(it->lock()); return res; } ``` Also, you can filter out the null ...
Note that `vector<weak_ptr<T> >` and `vector<shared_ptr<T> >` are two completely different types. However, you can write a function that accepts the former and returns the latter: ``` template<class Ptrs, class WeakPtrs> void lockWeakPtrs(const WeakPtrs &weakPtrs, Ptrs &ptrs) { BOOST_FOREACH (typename We...
12,895,816
I'm currently working on a big project and I need to use `weak_ptr` instead of `shared_ptr`. Here is my problem. I have a class named House with an attribute: `vector<boost::shared_ptr<People>> my_people`. I want to modify this data member to be `vector<boost::weak_ptr<People>> my_people`. My getter was ``` vector...
2012/10/15
[ "https://Stackoverflow.com/questions/12895816", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1747056/" ]
Your function is a reasonable start: ``` vector<boost::shared_ptr<People>>& getPeople() const { for( vector<boost::weak_ptr<People>::iterator it = my_people.begin(); it != my_people.end(); ++it) { (*it).lock(); } return my_people; } ``` But calling `(*it).lock()` just creat...
What about: ``` vector<boost::shared_ptr<People>> getPeople() const { vector<boost::shared_ptr<People>> res; for( vector<boost::weak_ptr<People>::iterator it = my_people.begin(); it != my_people.end(); ++it) res.push_back(it->lock()); return res; } ``` Also, you can filter out the null ...
12,895,816
I'm currently working on a big project and I need to use `weak_ptr` instead of `shared_ptr`. Here is my problem. I have a class named House with an attribute: `vector<boost::shared_ptr<People>> my_people`. I want to modify this data member to be `vector<boost::weak_ptr<People>> my_people`. My getter was ``` vector...
2012/10/15
[ "https://Stackoverflow.com/questions/12895816", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1747056/" ]
You could use **[std::transform](http://www.cplusplus.com/reference/algorithm/transform/)** ``` std::vector<std::shared_ptr<People>> temp; sharedTargetList.resize(my_people.size()); //transform into a shared_ptr vector std::transform(my_people.begin(), my_people.end(), temp.begin(), [](st...
What about: ``` vector<boost::shared_ptr<People>> getPeople() const { vector<boost::shared_ptr<People>> res; for( vector<boost::weak_ptr<People>::iterator it = my_people.begin(); it != my_people.end(); ++it) res.push_back(it->lock()); return res; } ``` Also, you can filter out the null ...
12,895,816
I'm currently working on a big project and I need to use `weak_ptr` instead of `shared_ptr`. Here is my problem. I have a class named House with an attribute: `vector<boost::shared_ptr<People>> my_people`. I want to modify this data member to be `vector<boost::weak_ptr<People>> my_people`. My getter was ``` vector...
2012/10/15
[ "https://Stackoverflow.com/questions/12895816", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1747056/" ]
Your function is a reasonable start: ``` vector<boost::shared_ptr<People>>& getPeople() const { for( vector<boost::weak_ptr<People>::iterator it = my_people.begin(); it != my_people.end(); ++it) { (*it).lock(); } return my_people; } ``` But calling `(*it).lock()` just creat...
Note that `vector<weak_ptr<T> >` and `vector<shared_ptr<T> >` are two completely different types. However, you can write a function that accepts the former and returns the latter: ``` template<class Ptrs, class WeakPtrs> void lockWeakPtrs(const WeakPtrs &weakPtrs, Ptrs &ptrs) { BOOST_FOREACH (typename We...
12,895,816
I'm currently working on a big project and I need to use `weak_ptr` instead of `shared_ptr`. Here is my problem. I have a class named House with an attribute: `vector<boost::shared_ptr<People>> my_people`. I want to modify this data member to be `vector<boost::weak_ptr<People>> my_people`. My getter was ``` vector...
2012/10/15
[ "https://Stackoverflow.com/questions/12895816", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1747056/" ]
You could use **[std::transform](http://www.cplusplus.com/reference/algorithm/transform/)** ``` std::vector<std::shared_ptr<People>> temp; sharedTargetList.resize(my_people.size()); //transform into a shared_ptr vector std::transform(my_people.begin(), my_people.end(), temp.begin(), [](st...
Note that `vector<weak_ptr<T> >` and `vector<shared_ptr<T> >` are two completely different types. However, you can write a function that accepts the former and returns the latter: ``` template<class Ptrs, class WeakPtrs> void lockWeakPtrs(const WeakPtrs &weakPtrs, Ptrs &ptrs) { BOOST_FOREACH (typename We...
40,172
I often encounter this when I am helping out someone who is new to programming and learning it for the first time. I'm talking about really new newbies, still learning about OOness, constructing objects, method calls and stuff like that. Usually, they have the keyboard and I am just offering guidance. On the one hand,...
2011/01/26
[ "https://softwareengineering.stackexchange.com/questions/40172", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/1728/" ]
The issue with IDEs and development environments in general is not so much things like autocomplete as the use of templated solutions (file|new|project) where lots of "interesting" things have already been done for you and are, to varying degrees, hidden. For someone who, broadly, understands what's going on underneat...
In the beginning, it's hard enough to build something that works, so anything that helps the brand noobie the better. A new programmer is going to need someone more senior to get them to think about whether array bound lists or linked lists are going to be the better match for the problem at hand. They each have their ...
40,172
I often encounter this when I am helping out someone who is new to programming and learning it for the first time. I'm talking about really new newbies, still learning about OOness, constructing objects, method calls and stuff like that. Usually, they have the keyboard and I am just offering guidance. On the one hand,...
2011/01/26
[ "https://softwareengineering.stackexchange.com/questions/40172", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/1728/" ]
I think making use of the IDE helps in the learning process. Methods, properties, parameters, overloads and the like are discoverable. With the overwhelmingly huge libraries, Intellisense helps trickle down JIT knowledge. In today's coding environment, it is impossible to learn everything up front, and JIT learning is ...
When we grow up as a child, we are not told that we must understand the intricate rules of the English language before we can speak. We are not told that we must fully understand the proper use of prepositions, conjunctions, and to avoid sentence fragments. We learn by doing. We learn through success and failure. An I...
40,172
I often encounter this when I am helping out someone who is new to programming and learning it for the first time. I'm talking about really new newbies, still learning about OOness, constructing objects, method calls and stuff like that. Usually, they have the keyboard and I am just offering guidance. On the one hand,...
2011/01/26
[ "https://softwareengineering.stackexchange.com/questions/40172", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/1728/" ]
Understanding the concepts and memorising dozens of hundreds of stupid library classes and methods are two completely different things. Intellisense helps to kick all that useless knowledge off from your mind completely, and the earlier you do it, the better. Leave more space for the useful concepts, don't waste your l...
IMO, The IDEs will make you more productive. But for beginners it's generally not an good idea to start programming with IDE. Text editors like notepad++, notepad, etc. would be enough. Also, it is generally not considered as an good idea to start learning the programming with high-level language. I would suggest you ...
40,172
I often encounter this when I am helping out someone who is new to programming and learning it for the first time. I'm talking about really new newbies, still learning about OOness, constructing objects, method calls and stuff like that. Usually, they have the keyboard and I am just offering guidance. On the one hand,...
2011/01/26
[ "https://softwareengineering.stackexchange.com/questions/40172", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/1728/" ]
Using autocomplete is not a bad thing at all. It is simply for speed, and for me would be a sign of someone starting to get a grip of the IDE and using it well. I don't understand how NOT using it would help them learn OO for example.
In the beginning, it's hard enough to build something that works, so anything that helps the brand noobie the better. A new programmer is going to need someone more senior to get them to think about whether array bound lists or linked lists are going to be the better match for the problem at hand. They each have their ...
40,172
I often encounter this when I am helping out someone who is new to programming and learning it for the first time. I'm talking about really new newbies, still learning about OOness, constructing objects, method calls and stuff like that. Usually, they have the keyboard and I am just offering guidance. On the one hand,...
2011/01/26
[ "https://softwareengineering.stackexchange.com/questions/40172", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/1728/" ]
Using autocomplete is not a bad thing at all. It is simply for speed, and for me would be a sign of someone starting to get a grip of the IDE and using it well. I don't understand how NOT using it would help them learn OO for example.
IMO, The IDEs will make you more productive. But for beginners it's generally not an good idea to start programming with IDE. Text editors like notepad++, notepad, etc. would be enough. Also, it is generally not considered as an good idea to start learning the programming with high-level language. I would suggest you ...
40,172
I often encounter this when I am helping out someone who is new to programming and learning it for the first time. I'm talking about really new newbies, still learning about OOness, constructing objects, method calls and stuff like that. Usually, they have the keyboard and I am just offering guidance. On the one hand,...
2011/01/26
[ "https://softwareengineering.stackexchange.com/questions/40172", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/1728/" ]
Having taught and tutored students that are new to programming, I find that autocomplete/intellisense sometimes causes more harm than good. Yes, they can write a program using it. Yes it compiles and runs and might even do the thing we asked them to do. But they don't understand what they are doing. When they don't u...
Learning takes practice. Programming can be a very frustrating task when you have no clue what you can do nor how things work. It's impractical to, say, read many books on programming principles without writing a single line of code; one doesn't learn anything this way. Intellisense is very helpful at giving new pr...
40,172
I often encounter this when I am helping out someone who is new to programming and learning it for the first time. I'm talking about really new newbies, still learning about OOness, constructing objects, method calls and stuff like that. Usually, they have the keyboard and I am just offering guidance. On the one hand,...
2011/01/26
[ "https://softwareengineering.stackexchange.com/questions/40172", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/1728/" ]
I would be the first to say that IDEs are a boon to productivity, even if I often complain about their quirks. However, I learned BASIC, C, C++, Java, Python, Perl, PHP, and several other languages without anything more than a text highlighting editor and the compiler/interpreter for the language. I actually learned Ja...
Lots of other good answers so don't consider this a complete answer, but it is good for newbies as well as experienced users to see a complete picture of what functions they have at their disposal. In Delphi I can hit ctrl-j and I'll see a list of every single possible thing I could ever syntactically expect to work....
40,172
I often encounter this when I am helping out someone who is new to programming and learning it for the first time. I'm talking about really new newbies, still learning about OOness, constructing objects, method calls and stuff like that. Usually, they have the keyboard and I am just offering guidance. On the one hand,...
2011/01/26
[ "https://softwareengineering.stackexchange.com/questions/40172", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/1728/" ]
Understanding the concepts and memorising dozens of hundreds of stupid library classes and methods are two completely different things. Intellisense helps to kick all that useless knowledge off from your mind completely, and the earlier you do it, the better. Leave more space for the useful concepts, don't waste your l...
Perhaps a *newbie* should simply be working on easier problems first. And no, those problems should not require or encourage the use of an IDE to complete the task. There's more to be gained long-term by understanding the basic concepts. The tools should come after. **No woodworking craftsman would jump straight to us...
40,172
I often encounter this when I am helping out someone who is new to programming and learning it for the first time. I'm talking about really new newbies, still learning about OOness, constructing objects, method calls and stuff like that. Usually, they have the keyboard and I am just offering guidance. On the one hand,...
2011/01/26
[ "https://softwareengineering.stackexchange.com/questions/40172", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/1728/" ]
In the beginning, it's hard enough to build something that works, so anything that helps the brand noobie the better. A new programmer is going to need someone more senior to get them to think about whether array bound lists or linked lists are going to be the better match for the problem at hand. They each have their ...
I have two thoughts on this. The first is that to truly learn something I believe you have to know what is really going on. And with how good IntelliSense has gotten, it can hide some of that to a new developer. For example, I had a web engineering class in college where we actually built our own web frameworks to buil...
40,172
I often encounter this when I am helping out someone who is new to programming and learning it for the first time. I'm talking about really new newbies, still learning about OOness, constructing objects, method calls and stuff like that. Usually, they have the keyboard and I am just offering guidance. On the one hand,...
2011/01/26
[ "https://softwareengineering.stackexchange.com/questions/40172", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/1728/" ]
I think making use of the IDE helps in the learning process. Methods, properties, parameters, overloads and the like are discoverable. With the overwhelmingly huge libraries, Intellisense helps trickle down JIT knowledge. In today's coding environment, it is impossible to learn everything up front, and JIT learning is ...
The issue with IDEs and development environments in general is not so much things like autocomplete as the use of templated solutions (file|new|project) where lots of "interesting" things have already been done for you and are, to varying degrees, hidden. For someone who, broadly, understands what's going on underneat...
70,061,417
Is there any official method to use ORACLE Dark Mode?
2021/11/22
[ "https://Stackoverflow.com/questions/70061417", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15458291/" ]
Tools > Preferences > Code Editor > PL/SQL Syntax Colors. Here you can choose Twilight scheme.
No, there is no official method. There is a way to change it manually through, through editing a jar file. [Here is the full video if it helps you out.](https://www.youtube.com/watch?v=znGzJOgQmHk) By default you can only change the Syntax colors + background of the editor.
70,061,417
Is there any official method to use ORACLE Dark Mode?
2021/11/22
[ "https://Stackoverflow.com/questions/70061417", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15458291/" ]
No, there is no official method. There is a way to change it manually through, through editing a jar file. [Here is the full video if it helps you out.](https://www.youtube.com/watch?v=znGzJOgQmHk) By default you can only change the Syntax colors + background of the editor.
Try to do this ============== OS: Debian Linux ---------------- Desktop: Gnome 40 JDK: Open JDK 11 edit ~/.sqldeveloper/{version}/product.conf add (the system theme will be used): SetJavaHome /{path to open11jdk} AddVMOption -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel If you would like to use a ...
70,061,417
Is there any official method to use ORACLE Dark Mode?
2021/11/22
[ "https://Stackoverflow.com/questions/70061417", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15458291/" ]
Tools > Preferences > Code Editor > PL/SQL Syntax Colors. Here you can choose Twilight scheme.
Try to do this ============== OS: Debian Linux ---------------- Desktop: Gnome 40 JDK: Open JDK 11 edit ~/.sqldeveloper/{version}/product.conf add (the system theme will be used): SetJavaHome /{path to open11jdk} AddVMOption -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel If you would like to use a ...
4,146,414
HI all, i want to ask can i save an array in shared prefrence(Default Shared Prefrence)... if yes then pls help me to save the array in shared prefrence.. Any code would b great if available. thanks in advance.
2010/11/10
[ "https://Stackoverflow.com/questions/4146414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/383597/" ]
You could write each element of your array using a different key... something like this (for Strings): ``` void storeArrayToPrefs(SharedPreferences prefs, String a[]) { SharedPreferences.Editor editor = prefs.edit(); for (int i=0 ; i<a.length ; i++) { editor.putString("key" + i, a[i]); } editor...
I believe you can only get primitive data types from the SharedPreference class. See this on the dev guide: <http://developer.android.com/intl/de/reference/android/content/SharedPreferences.html> `GetBoolean`, `GetInt`, etc. Depending on what type of data you have, you may want to consider using a SQLite database. [Se...
4,146,414
HI all, i want to ask can i save an array in shared prefrence(Default Shared Prefrence)... if yes then pls help me to save the array in shared prefrence.. Any code would b great if available. thanks in advance.
2010/11/10
[ "https://Stackoverflow.com/questions/4146414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/383597/" ]
You could write each element of your array using a different key... something like this (for Strings): ``` void storeArrayToPrefs(SharedPreferences prefs, String a[]) { SharedPreferences.Editor editor = prefs.edit(); for (int i=0 ; i<a.length ; i++) { editor.putString("key" + i, a[i]); } editor...
All the primitive data types like booleans, floats, ints, longs, and strings are supported. You can store all the values of the array in Key value format using a loop and later if you want to retrieve make use of HashMap.
4,146,414
HI all, i want to ask can i save an array in shared prefrence(Default Shared Prefrence)... if yes then pls help me to save the array in shared prefrence.. Any code would b great if available. thanks in advance.
2010/11/10
[ "https://Stackoverflow.com/questions/4146414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/383597/" ]
I believe you can only get primitive data types from the SharedPreference class. See this on the dev guide: <http://developer.android.com/intl/de/reference/android/content/SharedPreferences.html> `GetBoolean`, `GetInt`, etc. Depending on what type of data you have, you may want to consider using a SQLite database. [Se...
All the primitive data types like booleans, floats, ints, longs, and strings are supported. You can store all the values of the array in Key value format using a loop and later if you want to retrieve make use of HashMap.
281,088
Take for example [this question](https://meta.stackexchange.com/questions/281082/how-do-i-create-a-table-inside-a-list-using-markdown). It was closed as a duplicate of two other questions. However, the close message says: > > [![](https://i.stack.imgur.com/Kddmg.png)](https://i.stack.imgur.com/Kddmg.png) > > > Or...
2016/07/09
[ "https://meta.stackexchange.com/questions/281088", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/152859/" ]
A few word changes should be implied for the close reason to end this confusion and the need for different close reasons. Maybe the close reason should include the fact questions can be marked duplicate of one or more questions: > > This question has been marked as an exact duplicate of one or more questions > > > ...
Well, you could argue about the *This question already has an answer here* since it can and most likely will have *multiple* answers. But I don't think that is the point. I think the point is: this question has already been asked and it already has an answer. Either of these questions is an exact match. So there are ...
1,316,301
If $T(n)= T(n-1) + 2T(n-2)$ with $T(0)=0$ and $T(1) = 1$ What is $T(n)$ (in $Θ$–notation) in terms of $n$? I am trying to solve by substitution, but I am not sure if I am doing this right, as I get stuck. Can anybody tell me where to go from here? $T(n)= T(n-1) + 2T(n-2)$ $T(n-1)= T(n-2) + 2T(n-3)$ $T(n-2)= T(n-3)...
2015/06/07
[ "https://math.stackexchange.com/questions/1316301", "https://math.stackexchange.com", "https://math.stackexchange.com/users/232336/" ]
Generating functions for the win. Let $T(x) = \sum\_{n=0}^{\infty}T\_nx^n = \sum\_{n=1}^{\infty}T\_nx^n$, since $T\_0 = 0$. Then: $$\begin{split} T(x) &= x + \sum\_{n=2}^{\infty}T\_nx^n \\ &= x + \sum\_{n=2}^{\infty}(T\_{n-1} + 2T\_{n-2})x^n \\ &= x + \sum\_{n=2}^{\infty}T\_{n-1}x^n + \sum\_{n=2}^{\infty}2T\_{n-2}x^n ...
1. $\Theta$-notation is? 2. The difference equation provided is that which defines the Jacobsthal numbers. 3. The general method to define the Jacobsthal numbers is as follows. Let $T(n) = r^{n}$ in the difference equation $T\_{n+2} = T\_{n+1} + 2 T\_{n}$ to obtain $r^{2} - r - 2 = 0$ which yields the solutions $2r = ...
1,316,301
If $T(n)= T(n-1) + 2T(n-2)$ with $T(0)=0$ and $T(1) = 1$ What is $T(n)$ (in $Θ$–notation) in terms of $n$? I am trying to solve by substitution, but I am not sure if I am doing this right, as I get stuck. Can anybody tell me where to go from here? $T(n)= T(n-1) + 2T(n-2)$ $T(n-1)= T(n-2) + 2T(n-3)$ $T(n-2)= T(n-3)...
2015/06/07
[ "https://math.stackexchange.com/questions/1316301", "https://math.stackexchange.com", "https://math.stackexchange.com/users/232336/" ]
1. $\Theta$-notation is? 2. The difference equation provided is that which defines the Jacobsthal numbers. 3. The general method to define the Jacobsthal numbers is as follows. Let $T(n) = r^{n}$ in the difference equation $T\_{n+2} = T\_{n+1} + 2 T\_{n}$ to obtain $r^{2} - r - 2 = 0$ which yields the solutions $2r = ...
i thought $2^n$ at first from similarity to Fibonacci #s. from there it is just 2 trivial inductions to find for what $g(n)$ is $T(n)\in Θ(g(n)),$ because $T(n)\in Θ(g(n))$ when $T(n)\in O(g(n))$ and $T(n)\in$ (big omega)$(g(n))$, if i am not mistaken. And $T(n)\in O(g(n))$ when for some $c\in N,n\_0\in Z$, $T(n)\le c...
1,316,301
If $T(n)= T(n-1) + 2T(n-2)$ with $T(0)=0$ and $T(1) = 1$ What is $T(n)$ (in $Θ$–notation) in terms of $n$? I am trying to solve by substitution, but I am not sure if I am doing this right, as I get stuck. Can anybody tell me where to go from here? $T(n)= T(n-1) + 2T(n-2)$ $T(n-1)= T(n-2) + 2T(n-3)$ $T(n-2)= T(n-3)...
2015/06/07
[ "https://math.stackexchange.com/questions/1316301", "https://math.stackexchange.com", "https://math.stackexchange.com/users/232336/" ]
1. $\Theta$-notation is? 2. The difference equation provided is that which defines the Jacobsthal numbers. 3. The general method to define the Jacobsthal numbers is as follows. Let $T(n) = r^{n}$ in the difference equation $T\_{n+2} = T\_{n+1} + 2 T\_{n}$ to obtain $r^{2} - r - 2 = 0$ which yields the solutions $2r = ...
we have $$t\_n = t\_{n-1} + 2t\_{n-2}, t\_0 = 0, t\_1 = 2.$$ here are the first few numbers in the sequence: $$0, 2, 2, 6, 10, \cdots. $$ it looks like you can establish $$t\_n > 0 \text{ for all } n \ge 1$$ by induction. once we have that can we use $$t\_n \ge 2t\_{n-2} $$ to conclude that $t\_n = O(2^n)$ without sol...
1,316,301
If $T(n)= T(n-1) + 2T(n-2)$ with $T(0)=0$ and $T(1) = 1$ What is $T(n)$ (in $Θ$–notation) in terms of $n$? I am trying to solve by substitution, but I am not sure if I am doing this right, as I get stuck. Can anybody tell me where to go from here? $T(n)= T(n-1) + 2T(n-2)$ $T(n-1)= T(n-2) + 2T(n-3)$ $T(n-2)= T(n-3)...
2015/06/07
[ "https://math.stackexchange.com/questions/1316301", "https://math.stackexchange.com", "https://math.stackexchange.com/users/232336/" ]
Generating functions for the win. Let $T(x) = \sum\_{n=0}^{\infty}T\_nx^n = \sum\_{n=1}^{\infty}T\_nx^n$, since $T\_0 = 0$. Then: $$\begin{split} T(x) &= x + \sum\_{n=2}^{\infty}T\_nx^n \\ &= x + \sum\_{n=2}^{\infty}(T\_{n-1} + 2T\_{n-2})x^n \\ &= x + \sum\_{n=2}^{\infty}T\_{n-1}x^n + \sum\_{n=2}^{\infty}2T\_{n-2}x^n ...
i thought $2^n$ at first from similarity to Fibonacci #s. from there it is just 2 trivial inductions to find for what $g(n)$ is $T(n)\in Θ(g(n)),$ because $T(n)\in Θ(g(n))$ when $T(n)\in O(g(n))$ and $T(n)\in$ (big omega)$(g(n))$, if i am not mistaken. And $T(n)\in O(g(n))$ when for some $c\in N,n\_0\in Z$, $T(n)\le c...
1,316,301
If $T(n)= T(n-1) + 2T(n-2)$ with $T(0)=0$ and $T(1) = 1$ What is $T(n)$ (in $Θ$–notation) in terms of $n$? I am trying to solve by substitution, but I am not sure if I am doing this right, as I get stuck. Can anybody tell me where to go from here? $T(n)= T(n-1) + 2T(n-2)$ $T(n-1)= T(n-2) + 2T(n-3)$ $T(n-2)= T(n-3)...
2015/06/07
[ "https://math.stackexchange.com/questions/1316301", "https://math.stackexchange.com", "https://math.stackexchange.com/users/232336/" ]
Generating functions for the win. Let $T(x) = \sum\_{n=0}^{\infty}T\_nx^n = \sum\_{n=1}^{\infty}T\_nx^n$, since $T\_0 = 0$. Then: $$\begin{split} T(x) &= x + \sum\_{n=2}^{\infty}T\_nx^n \\ &= x + \sum\_{n=2}^{\infty}(T\_{n-1} + 2T\_{n-2})x^n \\ &= x + \sum\_{n=2}^{\infty}T\_{n-1}x^n + \sum\_{n=2}^{\infty}2T\_{n-2}x^n ...
we have $$t\_n = t\_{n-1} + 2t\_{n-2}, t\_0 = 0, t\_1 = 2.$$ here are the first few numbers in the sequence: $$0, 2, 2, 6, 10, \cdots. $$ it looks like you can establish $$t\_n > 0 \text{ for all } n \ge 1$$ by induction. once we have that can we use $$t\_n \ge 2t\_{n-2} $$ to conclude that $t\_n = O(2^n)$ without sol...
1,316,301
If $T(n)= T(n-1) + 2T(n-2)$ with $T(0)=0$ and $T(1) = 1$ What is $T(n)$ (in $Θ$–notation) in terms of $n$? I am trying to solve by substitution, but I am not sure if I am doing this right, as I get stuck. Can anybody tell me where to go from here? $T(n)= T(n-1) + 2T(n-2)$ $T(n-1)= T(n-2) + 2T(n-3)$ $T(n-2)= T(n-3)...
2015/06/07
[ "https://math.stackexchange.com/questions/1316301", "https://math.stackexchange.com", "https://math.stackexchange.com/users/232336/" ]
we have $$t\_n = t\_{n-1} + 2t\_{n-2}, t\_0 = 0, t\_1 = 2.$$ here are the first few numbers in the sequence: $$0, 2, 2, 6, 10, \cdots. $$ it looks like you can establish $$t\_n > 0 \text{ for all } n \ge 1$$ by induction. once we have that can we use $$t\_n \ge 2t\_{n-2} $$ to conclude that $t\_n = O(2^n)$ without sol...
i thought $2^n$ at first from similarity to Fibonacci #s. from there it is just 2 trivial inductions to find for what $g(n)$ is $T(n)\in Θ(g(n)),$ because $T(n)\in Θ(g(n))$ when $T(n)\in O(g(n))$ and $T(n)\in$ (big omega)$(g(n))$, if i am not mistaken. And $T(n)\in O(g(n))$ when for some $c\in N,n\_0\in Z$, $T(n)\le c...
1,104,923
If I work from home using windows remote desktop, my work computers would have the screen on. People at work can see my screen, what I am seeing, typing, etc. How do I disable that? i.e. I can see my screen at home, but not show that in work/remote computer. I am using Citrix, it downloads an ica file. I think unde...
2016/07/25
[ "https://superuser.com/questions/1104923", "https://superuser.com", "https://superuser.com/users/108157/" ]
If you are using the Windows built-in "Remote Desktop" application (`mstsc.exe`) then when you remotely connect in the remote computer will automatically "lock" so no-one can see the screen or what you're doing. They just get presented with the usual "Press Ctrl + Alt + Delete to unlock this computer".
You can simply switch the power off (at the screen) whenever you are leaving the office.
24,520,243
I'm looking right at the file I want to download in my current directory. wget wants a FULL url, I don't know what the full url is. im in directory /usr/local/lib/ and want to download php.ini. I am using putty to log into my web server, and when i say donwload i want to download it from the web server to my pc
2014/07/01
[ "https://Stackoverflow.com/questions/24520243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1397417/" ]
in the spirit of @Wayne Piekarski answer, I've [created a repository](https://bitbucket.org/nu-art-public/android-google-libs) that stores the project as you will need it for developing in Eclipse, clone it -> add it as an Android Library -> DONE! Lets keep it simple :) ==== UPDATE ==== And if you still encounter th...
Maven? ------ AndroidSDK uses their very own repository. After download copy all from ``` C:\Program Files (x86)\Android\android-sdk\extras\google\m2repository\ ``` To your repository. So this can be resolved: ``` <dependencies> <dependency> <groupId>com.google.android.wearable</groupId> <arti...
24,520,243
I'm looking right at the file I want to download in my current directory. wget wants a FULL url, I don't know what the full url is. im in directory /usr/local/lib/ and want to download php.ini. I am using putty to log into my web server, and when i say donwload i want to download it from the web server to my pc
2014/07/01
[ "https://Stackoverflow.com/questions/24520243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1397417/" ]
Create a wearable module with Android Studio 4.0 and ended-up with the exact same issue! And it's 2020, 6 years later LOL. Followed this guide to add the missing bits and pieces: <https://developer.android.com/training/wearables/apps/creating> Basically my project builde.gradle didn't have those: ``` maven { url "ht...
In your Android SDK Manager, go to tools > manage add-on sites > user defined sites > new: <https://dl-ssl.google.com/android/repository/addon-play-services-5.xml> Make sure you have the following (this is what I have) 1) Android SDK Tools v 23 (23.0.1 just came out) 2) Android SDK Platform-tools v 20 3) Android S...
24,520,243
I'm looking right at the file I want to download in my current directory. wget wants a FULL url, I don't know what the full url is. im in directory /usr/local/lib/ and want to download php.ini. I am using putty to log into my web server, and when i say donwload i want to download it from the web server to my pc
2014/07/01
[ "https://Stackoverflow.com/questions/24520243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1397417/" ]
The best way to get started with Android Wear is to use the latest Android Studio 0.8.1 or later, and it makes adding the support libraries to your code a lot easier. But it is possible to still use Eclipse, and I'll explain how to do it ... Since the SDK was just released for Android Wear, you need to firstly make su...
In your Android SDK Manager, go to tools > manage add-on sites > user defined sites > new: <https://dl-ssl.google.com/android/repository/addon-play-services-5.xml> Make sure you have the following (this is what I have) 1) Android SDK Tools v 23 (23.0.1 just came out) 2) Android SDK Platform-tools v 20 3) Android S...
24,520,243
I'm looking right at the file I want to download in my current directory. wget wants a FULL url, I don't know what the full url is. im in directory /usr/local/lib/ and want to download php.ini. I am using putty to log into my web server, and when i say donwload i want to download it from the web server to my pc
2014/07/01
[ "https://Stackoverflow.com/questions/24520243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1397417/" ]
The best way to get started with Android Wear is to use the latest Android Studio 0.8.1 or later, and it makes adding the support libraries to your code a lot easier. But it is possible to still use Eclipse, and I'll explain how to do it ... Since the SDK was just released for Android Wear, you need to firstly make su...
in the spirit of @Wayne Piekarski answer, I've [created a repository](https://bitbucket.org/nu-art-public/android-google-libs) that stores the project as you will need it for developing in Eclipse, clone it -> add it as an Android Library -> DONE! Lets keep it simple :) ==== UPDATE ==== And if you still encounter th...
24,520,243
I'm looking right at the file I want to download in my current directory. wget wants a FULL url, I don't know what the full url is. im in directory /usr/local/lib/ and want to download php.ini. I am using putty to log into my web server, and when i say donwload i want to download it from the web server to my pc
2014/07/01
[ "https://Stackoverflow.com/questions/24520243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1397417/" ]
in the spirit of @Wayne Piekarski answer, I've [created a repository](https://bitbucket.org/nu-art-public/android-google-libs) that stores the project as you will need it for developing in Eclipse, clone it -> add it as an Android Library -> DONE! Lets keep it simple :) ==== UPDATE ==== And if you still encounter th...
In your Android SDK Manager, go to tools > manage add-on sites > user defined sites > new: <https://dl-ssl.google.com/android/repository/addon-play-services-5.xml> Make sure you have the following (this is what I have) 1) Android SDK Tools v 23 (23.0.1 just came out) 2) Android SDK Platform-tools v 20 3) Android S...
24,520,243
I'm looking right at the file I want to download in my current directory. wget wants a FULL url, I don't know what the full url is. im in directory /usr/local/lib/ and want to download php.ini. I am using putty to log into my web server, and when i say donwload i want to download it from the web server to my pc
2014/07/01
[ "https://Stackoverflow.com/questions/24520243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1397417/" ]
in the spirit of @Wayne Piekarski answer, I've [created a repository](https://bitbucket.org/nu-art-public/android-google-libs) that stores the project as you will need it for developing in Eclipse, clone it -> add it as an Android Library -> DONE! Lets keep it simple :) ==== UPDATE ==== And if you still encounter th...
The instructions detailed at the link below were very helpful for my Eclipse setup. <https://medium.com/@tangtungai/how-to-develop-and-package-android-wear-app-using-eclipse-ef1b34126a5d>
24,520,243
I'm looking right at the file I want to download in my current directory. wget wants a FULL url, I don't know what the full url is. im in directory /usr/local/lib/ and want to download php.ini. I am using putty to log into my web server, and when i say donwload i want to download it from the web server to my pc
2014/07/01
[ "https://Stackoverflow.com/questions/24520243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1397417/" ]
Create a wearable module with Android Studio 4.0 and ended-up with the exact same issue! And it's 2020, 6 years later LOL. Followed this guide to add the missing bits and pieces: <https://developer.android.com/training/wearables/apps/creating> Basically my project builde.gradle didn't have those: ``` maven { url "ht...
Maven? ------ AndroidSDK uses their very own repository. After download copy all from ``` C:\Program Files (x86)\Android\android-sdk\extras\google\m2repository\ ``` To your repository. So this can be resolved: ``` <dependencies> <dependency> <groupId>com.google.android.wearable</groupId> <arti...