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
9,711,185
i have a Class called "Services" in the App\_code folder that contain Method like this: ``` public static ???? GetAllCustomers() { string conn = ConfigurationManager.ConnectionStrings["ConnectToDB"].ConnectionString; using (SqlConnection connection= new SqlConnection(conn)) { using (SqlCommand cmd...
2012/03/14
[ "https://Stackoverflow.com/questions/9711185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1245814/" ]
Anything in /dev/shm, it's in ram so it's fast, and no syncing issues.
What about creating a shared memory segment and opening that with your programs? One thing, all people sharing the shared memory segment MUST be on the same system.
690,738
I have a following method ``` private void SetProcessDocumentStatus(string status) { var setStatusWith = new Action<string>( statusValue => processDocumentStatusLabel.Text = statusValue); if (processDocumentStatusLabel.InvokeRequired) processDocumentStatusLabel.Invoke( ...
2009/03/27
[ "https://Stackoverflow.com/questions/690738", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4035/" ]
What you have seems perfectly clear to me. Moving the lambda to a separate function adds lines of code but no clarity. I would probably write the first line as: ``` Action<string> setStatusWith = statusValue => processDocumentStatusLabel.Text = statusValue; ``` but I don't know which way is generally prefe...
There is nothing inherently wrong with using the Action delegate. The only reason I would say that you should have two separate methods here would be if you feel that you need to bypass the check to see if the InvokeRequired property is true and the call has to be marshalled. However, I see no clear reason to do that. ...
690,738
I have a following method ``` private void SetProcessDocumentStatus(string status) { var setStatusWith = new Action<string>( statusValue => processDocumentStatusLabel.Text = statusValue); if (processDocumentStatusLabel.InvokeRequired) processDocumentStatusLabel.Invoke( ...
2009/03/27
[ "https://Stackoverflow.com/questions/690738", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4035/" ]
What you have seems perfectly clear to me. Moving the lambda to a separate function adds lines of code but no clarity. I would probably write the first line as: ``` Action<string> setStatusWith = statusValue => processDocumentStatusLabel.Text = statusValue; ``` but I don't know which way is generally prefe...
If anything, I would wrap the logic to perform the invoking in a function since that is logic that is going to be used many times (basically all functions that can be set async). ``` private void SetProcessDocumentStatus(string status) { RunOnControl<string>( processDocumentStatusLabel, ...
690,738
I have a following method ``` private void SetProcessDocumentStatus(string status) { var setStatusWith = new Action<string>( statusValue => processDocumentStatusLabel.Text = statusValue); if (processDocumentStatusLabel.InvokeRequired) processDocumentStatusLabel.Invoke( ...
2009/03/27
[ "https://Stackoverflow.com/questions/690738", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4035/" ]
What you have seems perfectly clear to me. Moving the lambda to a separate function adds lines of code but no clarity. I would probably write the first line as: ``` Action<string> setStatusWith = statusValue => processDocumentStatusLabel.Text = statusValue; ``` but I don't know which way is generally prefe...
In the example, you make the action accept a parameter: `Action<string>` but then you only ever pass it the same parameter, the `status`. So it doesn't need to accept a parameter - maybe you are unaware of the ability of a lambda to capture variables? ``` private void SetProcessDocumentStatus(string status) { Acti...
690,738
I have a following method ``` private void SetProcessDocumentStatus(string status) { var setStatusWith = new Action<string>( statusValue => processDocumentStatusLabel.Text = statusValue); if (processDocumentStatusLabel.InvokeRequired) processDocumentStatusLabel.Invoke( ...
2009/03/27
[ "https://Stackoverflow.com/questions/690738", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4035/" ]
In the example, you make the action accept a parameter: `Action<string>` but then you only ever pass it the same parameter, the `status`. So it doesn't need to accept a parameter - maybe you are unaware of the ability of a lambda to capture variables? ``` private void SetProcessDocumentStatus(string status) { Acti...
There is nothing inherently wrong with using the Action delegate. The only reason I would say that you should have two separate methods here would be if you feel that you need to bypass the check to see if the InvokeRequired property is true and the call has to be marshalled. However, I see no clear reason to do that. ...
690,738
I have a following method ``` private void SetProcessDocumentStatus(string status) { var setStatusWith = new Action<string>( statusValue => processDocumentStatusLabel.Text = statusValue); if (processDocumentStatusLabel.InvokeRequired) processDocumentStatusLabel.Invoke( ...
2009/03/27
[ "https://Stackoverflow.com/questions/690738", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4035/" ]
In the example, you make the action accept a parameter: `Action<string>` but then you only ever pass it the same parameter, the `status`. So it doesn't need to accept a parameter - maybe you are unaware of the ability of a lambda to capture variables? ``` private void SetProcessDocumentStatus(string status) { Acti...
If anything, I would wrap the logic to perform the invoking in a function since that is logic that is going to be used many times (basically all functions that can be set async). ``` private void SetProcessDocumentStatus(string status) { RunOnControl<string>( processDocumentStatusLabel, ...
34,605,753
I get the following error. > > Could not drop object 'tablename' because it is referenced by a FOREIGN KEY constraint. > > > This means there are references for the table I want to truncate. Then I use to remove all constraint for all table using following queries. ``` use mydb EXEC sp_MSforeachtable "ALTER ...
2016/01/05
[ "https://Stackoverflow.com/questions/34605753", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1954695/" ]
NO, don't use `sp_MSforeachtable` and it's not documented or supported. Rather, run command `sp_help mytable` or `sp_helptext mytable` and see which all table referencing table `mytable`. Drop the FK constraint for moment and then run your `TRUNCATE` command and other processing. Once everything is fine, re-create th...
Try this but you should not use this in Production environment. This code will truncate all the tables in a specific database. ``` exec sp_MSforeachtable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL' exec sp_MSforeachtable 'ALTER TABLE ? DISABLE TRIGGER ALL' exec sp_MSforeachtable 'DELETE FROM ?' exec sp_MSforeachtable...
29,198
What is the best way to protect a PE file (coded in c++) to make it a little hard for reversing, i mean using something like a Packer, but in a legit way, because most of packers are detected by antivirus (most of malwares are using packing techniques). Can we find a non blacklisted packers ? Any ideas ?
2021/08/25
[ "https://reverseengineering.stackexchange.com/questions/29198", "https://reverseengineering.stackexchange.com", "https://reverseengineering.stackexchange.com/users/22725/" ]
**You really cannot. You can only slow a reverser down** The goal of the **packer**, **crypter** or anti debug methods, ect. is simply to slow the reverser . *Eventually* (if there is desire ) *your code will be cracked* There are packers like **ASProtect** and others which will simply just encrypt or compress certia...
Top-notch security for PE files is possible through something known as a virtualization engine - whereby your code is encrypted, never decrypted, and runs through a virtual CPU engine. This might slow down the performance of your code by quite a bit though - so it is often only used to protect key portions of the code....
18,393,060
have a radiobutton list which I am filling with Strings and would like to know how to get in a given time the value of the selected element and throw it into a String for example. but with the command SelectedValue and SelectedItem only have null values​​. This radio button list is filled several times during the exec...
2013/08/23
[ "https://Stackoverflow.com/questions/18393060", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2696070/" ]
It seems that you're populating the RadioButtonList on the page load - If so - make sure you surround your population of the RadioButtonList with an If/Then/Postback block: if not Page.IsPostBack then ' populate your RBL end if eg: ``` if (!IsPostBack) { loadradiobuttonlist(); ...
First of all, this is the page let you know the value, not the application is getting it. So, you need a ScriptManager and Timer, both are Ajax extensions. Add them to the page. ``` protected void Page_Load(object sender, EventArgs e) { Timer1.Interval = 2000; // set your interval } protected void Timer1_Tick(ob...
42,608
It wasn't Stephen King's "The Mist" but I believe it inspired his story. I saw it as a kid in the late 70's on the Saturday afternoon "Creature Feature" show.
2013/10/15
[ "https://scifi.stackexchange.com/questions/42608", "https://scifi.stackexchange.com", "https://scifi.stackexchange.com/users/18980/" ]
The answer to this is "[The Crawling Eye](https://en.wikipedia.org/wiki/The_Trollenberg_Terror)," aka "The Trollenberg Terror". Doesn't anybody remember "The Crawling Eye?" The giant eyes used their lashes like tentacles and they came out of a thick fog. If I remember correctly the end of the movie was at an observator...
I think it was called The Fog. But I'm not certain.
42,608
It wasn't Stephen King's "The Mist" but I believe it inspired his story. I saw it as a kid in the late 70's on the Saturday afternoon "Creature Feature" show.
2013/10/15
[ "https://scifi.stackexchange.com/questions/42608", "https://scifi.stackexchange.com", "https://scifi.stackexchange.com/users/18980/" ]
Oh no my friends, if you want fog shrouded monsters and a supermarket, then the answer must be [The Slime People](http://www.bmoviecentral.com/bmc/reviews/98-the-slime-people-1962-76-minutes.html) This 1963 turkey fits the time frame, offers plenty of thick fog, monsters and a butcher shop/supermarket. No tentacles ...
I think it was called The Fog. But I'm not certain.
42,608
It wasn't Stephen King's "The Mist" but I believe it inspired his story. I saw it as a kid in the late 70's on the Saturday afternoon "Creature Feature" show.
2013/10/15
[ "https://scifi.stackexchange.com/questions/42608", "https://scifi.stackexchange.com", "https://scifi.stackexchange.com/users/18980/" ]
The answer to this is "[The Crawling Eye](https://en.wikipedia.org/wiki/The_Trollenberg_Terror)," aka "The Trollenberg Terror". Doesn't anybody remember "The Crawling Eye?" The giant eyes used their lashes like tentacles and they came out of a thick fog. If I remember correctly the end of the movie was at an observator...
Oh no my friends, if you want fog shrouded monsters and a supermarket, then the answer must be [The Slime People](http://www.bmoviecentral.com/bmc/reviews/98-the-slime-people-1962-76-minutes.html) This 1963 turkey fits the time frame, offers plenty of thick fog, monsters and a butcher shop/supermarket. No tentacles ...
15,198,411
I have a database in which I registered some data. I tried to select all rows and try to put every row of my table into a dictionary, but I can't seem to do that. This is the code: ``` db = MySQLdb.connect("localhost","root","aqw","PFE_Project" ) cursor = db.cursor() sql = "SELECT * FROM ServerComponents" try: c...
2013/03/04
[ "https://Stackoverflow.com/questions/15198411", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2131041/" ]
``` servers = [] for row in results: result = {} result['server_name'] = row[1]) p = calculations_metric (core_number, clock_speed, ram, hdd, video_card) result['server_price'] = p servers.append(result) ```
Please try this ``` db = MySQLdb.connect("localhost","root","aqw","PFE_Project" ) cursor = db.cursor() sql = "SELECT * FROM ServerComponents" response = [] try: cursor.execute(sql) results = cursor.fetchall() nbre_row = cursor.rowcount for row in results: local_dict = {} server_id = row[0] ...
8,109,239
So, it helps to transform everything to eye space before doing lighting calculations? I'm having trouble with the transforming part. I've got the normals transformed right, but when I apply translations (when the object is not in the center of the world coordinate system), the lighting remains exactly the same. I have...
2011/11/13
[ "https://Stackoverflow.com/questions/8109239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/996118/" ]
``` L[i] = gl_NormalMatrix * normalize(vec3(lPositions[i] - gl_Vertex)); ``` This code only makes sense if `lPositions` is in *model* space. And that's highly unlikely. The general way this works is that you pass light positions in eye space, so there's no need to transform them. Also, L and E are entirely superflu...
Eye space is the space your scene is transformed to right before it goes through the projection matrix. That's what `ftransform()` conveniently wraps (by this I meant the full path from model space through eye space (modelview transform) to clip space (projection transform)). The modelview matrix contains the full tra...
29,804,057
system: Odoo V8. Issue: On The last **PDF order** i discovered that somehow **the template is not applied**. (only flat ugly text) All the fields are here, including footer **but the header is not here and there is no style applied nor pictures** (as it was by default in the previous reports) **The same occurred for ...
2015/04/22
[ "https://Stackoverflow.com/questions/29804057", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4820532/" ]
When you see SEO friendly URL like that, the site isn't (or at least shouldn't) be making an actually file with that post id. The site is doing a url rewrite. Basically it will take a URL such as `http://www.sitename.com/forum` and regardless of what comes after that, always load the same file (lets say it's called `fo...
``` RewriteEngine on # Not for real file or directory RewriteCond %{REQUEST_FILENAME} -d [OR] RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^ - [L] # for category-1/ and all like xxxxx-xxx-nnn RewriteRule ^([^/]+-\d+)/?$ /index.php?page=category&category_name=$1 [L] # for contact/ o...
29,319,302
I want to select same words from database like ``` Database Name: username ==================================================== | id | name | fathername | ip | datetime | | 1 | Ali | Imran |192.168.1.1 | 12-12-2015| | 2 | Asd | hafiz |142.150.8.9 | 12-12-2015| | 3 | Sef | warya |100....
2015/03/28
[ "https://Stackoverflow.com/questions/29319302", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4425561/" ]
``` SELECT count(*) FROM `username` GROUP BY `ip`; ``` or ``` SELECT DISTINCT(`ip`) FROM `username`; ``` or ``` SELECT count(*) FROM `username` WHERE `ip` IN (SELECT DISTINCT(`ip`) FROM `username`) ; ```
``` SELECT count(*) FROM `username` GROUP BY `ip`; ``` Is that what you want ? If not, can you put a scema of what you want ?
29,319,302
I want to select same words from database like ``` Database Name: username ==================================================== | id | name | fathername | ip | datetime | | 1 | Ali | Imran |192.168.1.1 | 12-12-2015| | 2 | Asd | hafiz |142.150.8.9 | 12-12-2015| | 3 | Sef | warya |100....
2015/03/28
[ "https://Stackoverflow.com/questions/29319302", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4425561/" ]
``` SELECT count(*) FROM `username` GROUP BY `ip`; ``` or ``` SELECT DISTINCT(`ip`) FROM `username`; ``` or ``` SELECT count(*) FROM `username` WHERE `ip` IN (SELECT DISTINCT(`ip`) FROM `username`) ; ```
In sql, ``` SELECT COUNT(*) FROM `tbl` WHERE `ip` = '192.168.1.1' ``` You can also loop through each using php while loop with this query: ``` SELECT DISINCT(`ip`) FROM `tbl` ```
1,875,936
At the end of my computations, I print results: ``` System.out.println("\nTree\t\tOdds of being by the sought author"); for (ParseTree pt : testTrees) { conditionalProbs = reg.classify(pt.features()); System.out.printf("%s\t\t%f", pt.toString(), conditionalProbs[1]); System.out.println(); } ``` This produces, f...
2009/12/09
[ "https://Stackoverflow.com/questions/1875936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/147601/" ]
How about ``` System.out.printf("%-30s %f\n", pt.toString(), conditionalProbs[1]); ``` See the docs for [more information on the Formatter mini-language](http://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.html).
Perhaps `java.io.PrintStream`'s [`printf`](http://java.sun.com/j2se/1.5.0/docs/api/java/io/PrintStream.html#printf(java.lang.String,%20java.lang.Object...)) and/or [`format`](http://java.sun.com/j2se/1.5.0/docs/api/java/io/PrintStream.html#format(java.lang.String,%20java.lang.Object...)) method is what you are looking ...
1,875,936
At the end of my computations, I print results: ``` System.out.println("\nTree\t\tOdds of being by the sought author"); for (ParseTree pt : testTrees) { conditionalProbs = reg.classify(pt.features()); System.out.printf("%s\t\t%f", pt.toString(), conditionalProbs[1]); System.out.println(); } ``` This produces, f...
2009/12/09
[ "https://Stackoverflow.com/questions/1875936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/147601/" ]
You're looking for field lengths. Try using this: ``` printf ("%-32s %f\n", pt.toString(), conditionalProbs[1]) ``` The -32 tells you that the string should be left justified, but with a field length of 32 characters (adjust to your liking, I picked 32 as it is a multiple of 8, which is a normal tab stop on a termin...
Using [j-text-utils](https://code.google.com/p/j-text-utils/) you may print to console a table like: ![](https://i.stack.imgur.com/13kmb.png) And it as simple as: ``` TextTable tt = new TextTable(columnNames, data); tt.printTable(); ``` The API also allows...
1,875,936
At the end of my computations, I print results: ``` System.out.println("\nTree\t\tOdds of being by the sought author"); for (ParseTree pt : testTrees) { conditionalProbs = reg.classify(pt.features()); System.out.printf("%s\t\t%f", pt.toString(), conditionalProbs[1]); System.out.println(); } ``` This produces, f...
2009/12/09
[ "https://Stackoverflow.com/questions/1875936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/147601/" ]
You're looking for field lengths. Try using this: ``` printf ("%-32s %f\n", pt.toString(), conditionalProbs[1]) ``` The -32 tells you that the string should be left justified, but with a field length of 32 characters (adjust to your liking, I picked 32 as it is a multiple of 8, which is a normal tab stop on a termin...
How about ``` System.out.printf("%-30s %f\n", pt.toString(), conditionalProbs[1]); ``` See the docs for [more information on the Formatter mini-language](http://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.html).
1,875,936
At the end of my computations, I print results: ``` System.out.println("\nTree\t\tOdds of being by the sought author"); for (ParseTree pt : testTrees) { conditionalProbs = reg.classify(pt.features()); System.out.printf("%s\t\t%f", pt.toString(), conditionalProbs[1]); System.out.println(); } ``` This produces, f...
2009/12/09
[ "https://Stackoverflow.com/questions/1875936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/147601/" ]
How about ``` System.out.printf("%-30s %f\n", pt.toString(), conditionalProbs[1]); ``` See the docs for [more information on the Formatter mini-language](http://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.html).
Using [j-text-utils](https://code.google.com/p/j-text-utils/) you may print to console a table like: ![](https://i.stack.imgur.com/13kmb.png) And it as simple as: ``` TextTable tt = new TextTable(columnNames, data); tt.printTable(); ``` The API also allows...
1,875,936
At the end of my computations, I print results: ``` System.out.println("\nTree\t\tOdds of being by the sought author"); for (ParseTree pt : testTrees) { conditionalProbs = reg.classify(pt.features()); System.out.printf("%s\t\t%f", pt.toString(), conditionalProbs[1]); System.out.println(); } ``` This produces, f...
2009/12/09
[ "https://Stackoverflow.com/questions/1875936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/147601/" ]
How about ``` System.out.printf("%-30s %f\n", pt.toString(), conditionalProbs[1]); ``` See the docs for [more information on the Formatter mini-language](http://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.html).
<http://java.sun.com/j2se/1.5.0/docs/api/java/text/MessageFormat.html>
1,875,936
At the end of my computations, I print results: ``` System.out.println("\nTree\t\tOdds of being by the sought author"); for (ParseTree pt : testTrees) { conditionalProbs = reg.classify(pt.features()); System.out.printf("%s\t\t%f", pt.toString(), conditionalProbs[1]); System.out.println(); } ``` This produces, f...
2009/12/09
[ "https://Stackoverflow.com/questions/1875936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/147601/" ]
What you need is the amazing yet free `format()`. It works by letting you specify placeholders in a template string; it produces a combination of template and values as output. Example: ``` System.out.format("%-25s %9.7f%n", "K and Burstner", 0.055170); ``` * `%s` is a placeholder for Strings; * `%25s` means blank...
<http://java.sun.com/j2se/1.5.0/docs/api/java/text/MessageFormat.html>
1,875,936
At the end of my computations, I print results: ``` System.out.println("\nTree\t\tOdds of being by the sought author"); for (ParseTree pt : testTrees) { conditionalProbs = reg.classify(pt.features()); System.out.printf("%s\t\t%f", pt.toString(), conditionalProbs[1]); System.out.println(); } ``` This produces, f...
2009/12/09
[ "https://Stackoverflow.com/questions/1875936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/147601/" ]
You're looking for field lengths. Try using this: ``` printf ("%-32s %f\n", pt.toString(), conditionalProbs[1]) ``` The -32 tells you that the string should be left justified, but with a field length of 32 characters (adjust to your liking, I picked 32 as it is a multiple of 8, which is a normal tab stop on a termin...
Perhaps `java.io.PrintStream`'s [`printf`](http://java.sun.com/j2se/1.5.0/docs/api/java/io/PrintStream.html#printf(java.lang.String,%20java.lang.Object...)) and/or [`format`](http://java.sun.com/j2se/1.5.0/docs/api/java/io/PrintStream.html#format(java.lang.String,%20java.lang.Object...)) method is what you are looking ...
1,875,936
At the end of my computations, I print results: ``` System.out.println("\nTree\t\tOdds of being by the sought author"); for (ParseTree pt : testTrees) { conditionalProbs = reg.classify(pt.features()); System.out.printf("%s\t\t%f", pt.toString(), conditionalProbs[1]); System.out.println(); } ``` This produces, f...
2009/12/09
[ "https://Stackoverflow.com/questions/1875936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/147601/" ]
What you need is the amazing yet free `format()`. It works by letting you specify placeholders in a template string; it produces a combination of template and values as output. Example: ``` System.out.format("%-25s %9.7f%n", "K and Burstner", 0.055170); ``` * `%s` is a placeholder for Strings; * `%25s` means blank...
Using [j-text-utils](https://code.google.com/p/j-text-utils/) you may print to console a table like: ![](https://i.stack.imgur.com/13kmb.png) And it as simple as: ``` TextTable tt = new TextTable(columnNames, data); tt.printTable(); ``` The API also allows...
1,875,936
At the end of my computations, I print results: ``` System.out.println("\nTree\t\tOdds of being by the sought author"); for (ParseTree pt : testTrees) { conditionalProbs = reg.classify(pt.features()); System.out.printf("%s\t\t%f", pt.toString(), conditionalProbs[1]); System.out.println(); } ``` This produces, f...
2009/12/09
[ "https://Stackoverflow.com/questions/1875936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/147601/" ]
What you need is the amazing yet free `format()`. It works by letting you specify placeholders in a template string; it produces a combination of template and values as output. Example: ``` System.out.format("%-25s %9.7f%n", "K and Burstner", 0.055170); ``` * `%s` is a placeholder for Strings; * `%25s` means blank...
Perhaps `java.io.PrintStream`'s [`printf`](http://java.sun.com/j2se/1.5.0/docs/api/java/io/PrintStream.html#printf(java.lang.String,%20java.lang.Object...)) and/or [`format`](http://java.sun.com/j2se/1.5.0/docs/api/java/io/PrintStream.html#format(java.lang.String,%20java.lang.Object...)) method is what you are looking ...
1,875,936
At the end of my computations, I print results: ``` System.out.println("\nTree\t\tOdds of being by the sought author"); for (ParseTree pt : testTrees) { conditionalProbs = reg.classify(pt.features()); System.out.printf("%s\t\t%f", pt.toString(), conditionalProbs[1]); System.out.println(); } ``` This produces, f...
2009/12/09
[ "https://Stackoverflow.com/questions/1875936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/147601/" ]
You're looking for field lengths. Try using this: ``` printf ("%-32s %f\n", pt.toString(), conditionalProbs[1]) ``` The -32 tells you that the string should be left justified, but with a field length of 32 characters (adjust to your liking, I picked 32 as it is a multiple of 8, which is a normal tab stop on a termin...
<http://java.sun.com/j2se/1.5.0/docs/api/java/text/MessageFormat.html>
40,559,399
I did some Google searches but could not find this, is there a way to delay ANY command into SSH? As an example, I want to start a Crontab tomorrow but I want to set it up right now ``` crontab mycron.txt ```
2016/11/12
[ "https://Stackoverflow.com/questions/40559399", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6048929/" ]
one dinky way to do it is to put a sleep && in front of it like this: ``` sleep 600 && echo "10 minutes later!" ```
There is [`at`](https://linux.die.net/man/1/at) command in Linux, which does exactly what you need. Something like this should do the job: ``` echo "your command" | at 11:00 ```
40,256,743
In our application we are using Azure Ad OpenIdConnectAuthentication to sign in which will redirect to "<https://login.microsoftonline.com/>" when calling our application I think some reason refresh tokens are not generating in our single page application and forcing the user to sign out after 1 hour because of the ac...
2016/10/26
[ "https://Stackoverflow.com/questions/40256743", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2880701/" ]
We usually acquiring the token via the **implicit flow** instead of **authorization code grant flow** for the SPA application. The token will return from the authorization endpoint directly instead of from token endpoint. And we can enable it by modify the app's manifest **oauth2AllowImplicitFlow** property to **true...
If using the Authorization Code grant flow you still can solve this problem by requesting a refresh token. The recent versions of ADAL automatically handles refreshing the access token if it it has expired. The OpenIDConnect request should contain the 'offline\_access' scope within it's Scope parameter. OpenIdConnectAu...
74,364
In the implementation of RSA-CRT, the exponent d is reduced mod p-1 ($d\_p = d \bmod {(p-1)}$). The only proof I've found for that, is the following (considering $d = k\varphi(p) + d \bmod {\varphi(p)}$: $$c^d = c^{k\varphi(n) + d \bmod {\varphi(p)}}$$ $$(c^{\varphi(p)})^k \* c^{d\bmod {\varphi(p)}} \equiv (1)^k \* c^{...
2019/09/17
[ "https://crypto.stackexchange.com/questions/74364", "https://crypto.stackexchange.com", "https://crypto.stackexchange.com/users/72993/" ]
You're correct, the proof isn't precisely correct, because we don't necessarily have $c^{\phi(n)} = 1$, specifically in the case $c \equiv 0 \pmod p$. Here is a more correct approach; we have $c^1 \equiv c \pmod p$ (trivially), and $c^{p-1} \equiv c \pmod p$ for any $c$, prime $p$ (Fermat's little theorem [1]). By ind...
I'm not sure how I didn't realize there are only two cases: $gcd(p, c) = 1$, or $c\equiv 0 \bmod (p)$. Given this, here's the proof I came with. For the former, the proof into the question is valid. For the latter, we have: $$c\equiv 0 \bmod (p)$$ $$c^k\equiv 0 \bmod (p)$$ for any $k$. So, using transitivity: $$c^k\eq...
42,514
So recently my doorbell button got stuck and it burnt out both the electromagnetic coil in the chime *and* the transformer. As I'm replacing everything I was thinking that I could add fuse to prevent a rogue button from causing so much damage again. The transformer is 16VAC 10W and I measured the voltage as just over ...
2014/05/30
[ "https://diy.stackexchange.com/questions/42514", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/21839/" ]
A good old bimetallic strip positioned close to the bell can open the circuit to prevent excessive over-heating. ![enter image description here](https://i.stack.imgur.com/296pG.gif) As the bell solenoid gets a little warm, the bimetal elements warp mechanically and open circuit the bell current. After it has cooled d...
Having had doorbell problems myself, I feel your pain. I would recommend against this kind of hack. Consider what would happen if an overly enthusiastic Girl Guide decided to hold down your doorbell button. From my personal experience, I found no problems holding down the doorbell continuously. This leads me to suspe...
42,514
So recently my doorbell button got stuck and it burnt out both the electromagnetic coil in the chime *and* the transformer. As I'm replacing everything I was thinking that I could add fuse to prevent a rogue button from causing so much damage again. The transformer is 16VAC 10W and I measured the voltage as just over ...
2014/05/30
[ "https://diy.stackexchange.com/questions/42514", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/21839/" ]
Wouldn't a slow-blow fuse work? I don't think you'd want to under size it. Just understand what voltage/current ratings you need and find a slow-blow fuse that can handle 10-15 seconds of that. Something like [this](http://www.littelfuse.com/~/media/electronics/datasheets/fuses/littelfuse_fuse_385_datasheet.pdf.pdf). ...
Having had doorbell problems myself, I feel your pain. I would recommend against this kind of hack. Consider what would happen if an overly enthusiastic Girl Guide decided to hold down your doorbell button. From my personal experience, I found no problems holding down the doorbell continuously. This leads me to suspe...
47,132,346
I am using: ``` driver.manage().window().maximize(); ``` to maximize the chrome screen, but it is not working and give me a message: > > this statement is not getting executed. version of chrome is:Version > 62.0.3202.75 (Official Build) (64-bit) > > > Can anybody help me to solve the issue.
2017/11/06
[ "https://Stackoverflow.com/questions/47132346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8640510/" ]
I replace ``` driver.manage().window().maximize(); ``` with ``` driver.manage().window().fullscreen(); ``` and it works for me, I am using chrome driver 2.35 on Mac
``` String filePath = System.getProperty("user.dir") + "\\libs\\chromedriver.exe"; System.setProperty("webdriver.chrome.driver", filePath); ChromeOptions options = new ChromeOptions(); options.addArguments("--start-maximized"); options.addArguments("--disable-notifications"); options.addArguments("--disable-extenstio...
47,132,346
I am using: ``` driver.manage().window().maximize(); ``` to maximize the chrome screen, but it is not working and give me a message: > > this statement is not getting executed. version of chrome is:Version > 62.0.3202.75 (Official Build) (64-bit) > > > Can anybody help me to solve the issue.
2017/11/06
[ "https://Stackoverflow.com/questions/47132346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8640510/" ]
If you need the window to start maximised at launch, use the below code. ``` System.setProperty("webdriver.chrome.driver",prop.getProperty("driverpath")); ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.addArguments("--start-maximized"); WebDriver driver= new ChromeDriver(chromeOptions); ```
I have same problem previously, after updating chrmedriver with 2.33 Version resolve the issue, Let a try and let me know Please download chromedriver 2.33 from this [link](https://sites.google.com/a/chromium.org/chromedriver/)
47,132,346
I am using: ``` driver.manage().window().maximize(); ``` to maximize the chrome screen, but it is not working and give me a message: > > this statement is not getting executed. version of chrome is:Version > 62.0.3202.75 (Official Build) (64-bit) > > > Can anybody help me to solve the issue.
2017/11/06
[ "https://Stackoverflow.com/questions/47132346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8640510/" ]
Just look selenoid guide: <http://aerokube.com/selenoid/latest/#_custom_screen_resolution_screenresolution>. I faced this this issue and founded solution: ``` @WhenPageOpens public void maximiseScreen() { getDriver().manage().window().setSize(new Dimension(2560,1440)); } ``` @WhenPageOpens is Serenity annotatio...
``` String filePath = System.getProperty("user.dir") + "\\libs\\chromedriver.exe"; System.setProperty("webdriver.chrome.driver", filePath); ChromeOptions options = new ChromeOptions(); options.addArguments("--start-maximized"); options.addArguments("--disable-notifications"); options.addArguments("--disable-extenstio...
47,132,346
I am using: ``` driver.manage().window().maximize(); ``` to maximize the chrome screen, but it is not working and give me a message: > > this statement is not getting executed. version of chrome is:Version > 62.0.3202.75 (Official Build) (64-bit) > > > Can anybody help me to solve the issue.
2017/11/06
[ "https://Stackoverflow.com/questions/47132346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8640510/" ]
I have same problem previously, after updating chrmedriver with 2.33 Version resolve the issue, Let a try and let me know Please download chromedriver 2.33 from this [link](https://sites.google.com/a/chromium.org/chromedriver/)
Just look selenoid guide: <http://aerokube.com/selenoid/latest/#_custom_screen_resolution_screenresolution>. I faced this this issue and founded solution: ``` @WhenPageOpens public void maximiseScreen() { getDriver().manage().window().setSize(new Dimension(2560,1440)); } ``` @WhenPageOpens is Serenity annotatio...
47,132,346
I am using: ``` driver.manage().window().maximize(); ``` to maximize the chrome screen, but it is not working and give me a message: > > this statement is not getting executed. version of chrome is:Version > 62.0.3202.75 (Official Build) (64-bit) > > > Can anybody help me to solve the issue.
2017/11/06
[ "https://Stackoverflow.com/questions/47132346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8640510/" ]
I replace ``` driver.manage().window().maximize(); ``` with ``` driver.manage().window().fullscreen(); ``` and it works for me, I am using chrome driver 2.35 on Mac
I have same problem previously, after updating chrmedriver with 2.33 Version resolve the issue, Let a try and let me know Please download chromedriver 2.33 from this [link](https://sites.google.com/a/chromium.org/chromedriver/)
47,132,346
I am using: ``` driver.manage().window().maximize(); ``` to maximize the chrome screen, but it is not working and give me a message: > > this statement is not getting executed. version of chrome is:Version > 62.0.3202.75 (Official Build) (64-bit) > > > Can anybody help me to solve the issue.
2017/11/06
[ "https://Stackoverflow.com/questions/47132346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8640510/" ]
I replace ``` driver.manage().window().maximize(); ``` with ``` driver.manage().window().fullscreen(); ``` and it works for me, I am using chrome driver 2.35 on Mac
Just look selenoid guide: <http://aerokube.com/selenoid/latest/#_custom_screen_resolution_screenresolution>. I faced this this issue and founded solution: ``` @WhenPageOpens public void maximiseScreen() { getDriver().manage().window().setSize(new Dimension(2560,1440)); } ``` @WhenPageOpens is Serenity annotatio...
47,132,346
I am using: ``` driver.manage().window().maximize(); ``` to maximize the chrome screen, but it is not working and give me a message: > > this statement is not getting executed. version of chrome is:Version > 62.0.3202.75 (Official Build) (64-bit) > > > Can anybody help me to solve the issue.
2017/11/06
[ "https://Stackoverflow.com/questions/47132346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8640510/" ]
it worked for me - ``` driver.manage().window().fullscreen(); ```
Please use below code for maximize chrome browser. ``` DesiredCapabilities capability = DesiredCapabilities.chrome(); ChromeOptions options = new ChromeOptions(); options.addArguments( Arrays.asList("--start-maximized", "allow-running-insecure-content", "ignore-certificate-errors")); capabi...
47,132,346
I am using: ``` driver.manage().window().maximize(); ``` to maximize the chrome screen, but it is not working and give me a message: > > this statement is not getting executed. version of chrome is:Version > 62.0.3202.75 (Official Build) (64-bit) > > > Can anybody help me to solve the issue.
2017/11/06
[ "https://Stackoverflow.com/questions/47132346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8640510/" ]
I have same problem previously, after updating chrmedriver with 2.33 Version resolve the issue, Let a try and let me know Please download chromedriver 2.33 from this [link](https://sites.google.com/a/chromium.org/chromedriver/)
Please use below code for maximize chrome browser. ``` DesiredCapabilities capability = DesiredCapabilities.chrome(); ChromeOptions options = new ChromeOptions(); options.addArguments( Arrays.asList("--start-maximized", "allow-running-insecure-content", "ignore-certificate-errors")); capabi...
47,132,346
I am using: ``` driver.manage().window().maximize(); ``` to maximize the chrome screen, but it is not working and give me a message: > > this statement is not getting executed. version of chrome is:Version > 62.0.3202.75 (Official Build) (64-bit) > > > Can anybody help me to solve the issue.
2017/11/06
[ "https://Stackoverflow.com/questions/47132346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8640510/" ]
I replace ``` driver.manage().window().maximize(); ``` with ``` driver.manage().window().fullscreen(); ``` and it works for me, I am using chrome driver 2.35 on Mac
Please use below code for maximize chrome browser. ``` DesiredCapabilities capability = DesiredCapabilities.chrome(); ChromeOptions options = new ChromeOptions(); options.addArguments( Arrays.asList("--start-maximized", "allow-running-insecure-content", "ignore-certificate-errors")); capabi...
47,132,346
I am using: ``` driver.manage().window().maximize(); ``` to maximize the chrome screen, but it is not working and give me a message: > > this statement is not getting executed. version of chrome is:Version > 62.0.3202.75 (Official Build) (64-bit) > > > Can anybody help me to solve the issue.
2017/11/06
[ "https://Stackoverflow.com/questions/47132346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8640510/" ]
it worked for me - ``` driver.manage().window().fullscreen(); ```
Just look selenoid guide: <http://aerokube.com/selenoid/latest/#_custom_screen_resolution_screenresolution>. I faced this this issue and founded solution: ``` @WhenPageOpens public void maximiseScreen() { getDriver().manage().window().setSize(new Dimension(2560,1440)); } ``` @WhenPageOpens is Serenity annotatio...
48,312,601
This is about ellipsis in multiple text in responsive design. I use jQuery to do it, but I think it will be more easier to write this code, but I have no idea to do it. I need some advice. ``` if(responsive>1200 && responsive<1919){ $(".ellipsis-2").each(function(){ var maxwidth=15;...
2018/01/18
[ "https://Stackoverflow.com/questions/48312601", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8148250/" ]
You just need a function to simplify your code, not really a constructor. Create one for the ellipsis logic receiving the selector for the elements to be applied as well as the max width: ``` function applyEllipsis(selector, maxWidth){ $(selector).each(function(){ if($(this).text().length > maxWidth){ ...
Depending on what else is after this code you might find some use in storing your class/width values in an object array: ``` var ellipsisData = [ { className: 'ellipses-2', smallWidth: 15, bigWidth: 23 },{ className: 'ellipses-3', smallWidth: 23, bigWidth: 53 ...
17,356,018
CSS question: I'm wanting a container with 3 inline images with a border around them (not each image). Under the image row and inside the container border I want a sentence or two of text. Without the text the container border is about the same width and height as the image row using display:inline-block, once I add th...
2013/06/28
[ "https://Stackoverflow.com/questions/17356018", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2530158/" ]
The following will create a div, with inner blocks for images and a block for text. They should both stay 500px. If the images are > 500px they will be clipped. The text won't cause it to overflow unless its a very long uninterrupted string. If this doesn't help, use jsFiddle to put up an example. CSS ``` .container...
This is a good example of what I'm wanting but with the text below the images. I would also like it to be HTML 5 compatible. ``` <div class="container"> <table> <tr> <td><img src="image1.jpg" height="200"></td> <td><img src="image2.jpg" height=200"></td> </tr> <caption>a paragraph of text here...</caption> </table> <...
26,496
Currently, I am a M.S. student in Applied Mathematics division, and I will graduate in the coming Dec, 2014. But I want to apply to a PhD. program to continue my study. But I have a complicated situation: 1. I had a bachelor's degree in software engineering outside US with GPA 3.7. But I'm pursing a M.S. degree in Ap...
2014/07/28
[ "https://academia.stackexchange.com/questions/26496", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/16154/" ]
> > Is it possible for me to seek PhD in the future? > > > Yes. It is possible to seek a PhD at *any point* in one's life, although at some point you will shift over into the "unconventional student" category. Some universities/faculty *do* tend to overlook unconventional students. However, if you keep publishing...
> > I want to apply a PhD. degree to continue my study. > > > I am going to assume that you are seeking a PhD in applied mathematics. In regards to your first point, seeking a masters prior to a PhD is a good way to improve your skill set. Does the program you are currently enrolled in offer research opportunitie...
5,577,253
I want to open a configuration screen and send back its data when user clicks ok. I have these objects as configurations ``` configObjA a; configObjB b; ``` Both implement IDisplayable (my interface). Now the congfig screen gets two ArrayLists and put them in JLists gui. it itterates the JList and put them in da...
2011/04/07
[ "https://Stackoverflow.com/questions/5577253", "https://Stackoverflow.com", "https://Stackoverflow.com/users/450602/" ]
> > how do i create a generic list when the type is of unknown object type? > > > You cannot. The whole point of generic lists is that you do know the object type at compile-time, so that the compiler can check your usage of that list. If you know at least a parent class or interface (which is the usual case act...
You can create a generic list of an unknown type, but you can't really put objects in them. ``` public <T> List<T> makeList() { return new ArrayList<T>(); } ``` Of course, the method using this method then has to know the type, and can only put objects of this type in. --- In your case, the problem seems to be...
55,804,696
am trying to get the selected item from the database, but its not displaying nothing code behind: ``` private void bindRows() { try { string connectionString = ConfigurationManager.ConnectionStrings["MainConnectionString"].ConnectionString; ...
2019/04/23
[ "https://Stackoverflow.com/questions/55804696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11218764/" ]
There is a difference between Angular's `Http` and `HttpClient` module and they are also exported differently. 1. **`Http`** -> is the core module which requires the user to call `res.json()`. This was common prior to Angular version 4.0. 2. **`HttpClient`** -> is new module since version 4.0. It defaults the communic...
You don't need to call `.json()` function in case you doing plain `this.http.get`. Angular does that for you. Simply do `this.items = res`. That will do the trick. UPD: your JSON object is not an array itself. You as well need to update your template in the following way: ``` <select> <option *ngFor="let item of i...
55,804,696
am trying to get the selected item from the database, but its not displaying nothing code behind: ``` private void bindRows() { try { string connectionString = ConfigurationManager.ConnectionStrings["MainConnectionString"].ConnectionString; ...
2019/04/23
[ "https://Stackoverflow.com/questions/55804696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11218764/" ]
The response probably isn't what you think. I suggest you console.log() the response of your query to see what it actually looks like: ``` items : any; constructor(private http:HttpClient) { this.http.get( this._trainUrl) .subscribe(res => { this.items = res.features; consol...
You don't need to call `.json()` function in case you doing plain `this.http.get`. Angular does that for you. Simply do `this.items = res`. That will do the trick. UPD: your JSON object is not an array itself. You as well need to update your template in the following way: ``` <select> <option *ngFor="let item of i...
55,804,696
am trying to get the selected item from the database, but its not displaying nothing code behind: ``` private void bindRows() { try { string connectionString = ConfigurationManager.ConnectionStrings["MainConnectionString"].ConnectionString; ...
2019/04/23
[ "https://Stackoverflow.com/questions/55804696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11218764/" ]
There is a difference between Angular's `Http` and `HttpClient` module and they are also exported differently. 1. **`Http`** -> is the core module which requires the user to call `res.json()`. This was common prior to Angular version 4.0. 2. **`HttpClient`** -> is new module since version 4.0. It defaults the communic...
Why do you do `this.items = res.json()`? Why not just `this.items = res`? `res` should already hold the JSON object returned from the GET request. If it is indeed a string try `this.items = JSON.parse(res)`.
55,804,696
am trying to get the selected item from the database, but its not displaying nothing code behind: ``` private void bindRows() { try { string connectionString = ConfigurationManager.ConnectionStrings["MainConnectionString"].ConnectionString; ...
2019/04/23
[ "https://Stackoverflow.com/questions/55804696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11218764/" ]
There is a difference between Angular's `Http` and `HttpClient` module and they are also exported differently. 1. **`Http`** -> is the core module which requires the user to call `res.json()`. This was common prior to Angular version 4.0. 2. **`HttpClient`** -> is new module since version 4.0. It defaults the communic...
Can you try : ``` private _trainUrl = "https://raw.githubusercontent.com/datameet/railways/master/trains.json"; items : any; constructor(private http:HttpClient) {} ngOnInit() { this.http.get( this._trainUrl).subscribe(res => { this.items = res; console.log(this.items); }); } ```
55,804,696
am trying to get the selected item from the database, but its not displaying nothing code behind: ``` private void bindRows() { try { string connectionString = ConfigurationManager.ConnectionStrings["MainConnectionString"].ConnectionString; ...
2019/04/23
[ "https://Stackoverflow.com/questions/55804696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11218764/" ]
The response probably isn't what you think. I suggest you console.log() the response of your query to see what it actually looks like: ``` items : any; constructor(private http:HttpClient) { this.http.get( this._trainUrl) .subscribe(res => { this.items = res.features; consol...
There is a difference between Angular's `Http` and `HttpClient` module and they are also exported differently. 1. **`Http`** -> is the core module which requires the user to call `res.json()`. This was common prior to Angular version 4.0. 2. **`HttpClient`** -> is new module since version 4.0. It defaults the communic...
55,804,696
am trying to get the selected item from the database, but its not displaying nothing code behind: ``` private void bindRows() { try { string connectionString = ConfigurationManager.ConnectionStrings["MainConnectionString"].ConnectionString; ...
2019/04/23
[ "https://Stackoverflow.com/questions/55804696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11218764/" ]
The response probably isn't what you think. I suggest you console.log() the response of your query to see what it actually looks like: ``` items : any; constructor(private http:HttpClient) { this.http.get( this._trainUrl) .subscribe(res => { this.items = res.features; consol...
Why do you do `this.items = res.json()`? Why not just `this.items = res`? `res` should already hold the JSON object returned from the GET request. If it is indeed a string try `this.items = JSON.parse(res)`.
55,804,696
am trying to get the selected item from the database, but its not displaying nothing code behind: ``` private void bindRows() { try { string connectionString = ConfigurationManager.ConnectionStrings["MainConnectionString"].ConnectionString; ...
2019/04/23
[ "https://Stackoverflow.com/questions/55804696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11218764/" ]
The response probably isn't what you think. I suggest you console.log() the response of your query to see what it actually looks like: ``` items : any; constructor(private http:HttpClient) { this.http.get( this._trainUrl) .subscribe(res => { this.items = res.features; consol...
Can you try : ``` private _trainUrl = "https://raw.githubusercontent.com/datameet/railways/master/trains.json"; items : any; constructor(private http:HttpClient) {} ngOnInit() { this.http.get( this._trainUrl).subscribe(res => { this.items = res; console.log(this.items); }); } ```
25,085,727
From my reading dbus performance should be twice slower than other messaging ipc mechanisms due to existence of a daemon. In the discussion of the so question [which Linux IPC technique to use](https://stackoverflow.com/questions/2281204/which-linux-ipc-technique-to-use) someones mention performance issues. Do you se...
2014/08/01
[ "https://Stackoverflow.com/questions/25085727", "https://Stackoverflow.com", "https://Stackoverflow.com/users/362754/" ]
I don't think there is any real-and-big performance issue. Did some profiling: * On an arm926ejs 200MHz processor, a method call and reply with two uint32 arguments consumes anywhere between 0 to 15 ms. average 6 ms. * Changed the 2nd parameter to an array of 1000 bytes. If use the iteration api to pack and unpack ...
Well, the [Genivi alliance](http://www.genivi.org/), targeting the automotive industry, implemented and supports [CommonAPI](http://projects.genivi.org/commonapi/home), which works on top of DBUS, as IPC mechanism for cars' head-units.
63,099,712
I apologise as this is probably either very basic or i've done something compeltely wrong. I'm brand new to React, and coding in general, and I'm trying to make a React app that shows the recipes im using on cards. The cards in turn should be searchable and dynamic, dissapearing if they don't match etc. This is my app...
2020/07/26
[ "https://Stackoverflow.com/questions/63099712", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13819606/" ]
Since you already have a `click` event for your `a` tags, you can remove the `onClick` from the HTML: ``` <a class="fach" id="deutsch" href="#"> Deutsch </a> ``` and then, in your `click` event, you can directly get the `id` of the element that is clicked and save it to local storage: ``` $(document).ready(function...
Is stufe ever not null? You shouldn't have two .ready functions. Just have one and call everything in it at the same time. ``` $(document).ready(function() { $(".fach").on("click", function() { function reply_click(clicked_id){ sessionStorage.setItem('fach', clicked_id); $(clicked_id)...
54,623,492
I have built out a form which submits fine, however subform values all end up as null on the receiving end when I look at them in the controller. Here is my `UserProfileType` form, based on the `User`class. So specifically, the subforms we are looking at are `subscriptionTier1`, `subscriptionTier1`, and `subscriptionT...
2019/02/11
[ "https://Stackoverflow.com/questions/54623492", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3880191/" ]
Since the `data_class` option of `UserProfileType` form type is set to `User` class, the model data will be an instance of `User` class and since the `User` class doesn't have fields like `subscriptionTier1` etc, these will not appear in your model data. Instead, you could access unmapped fields in a form in a control...
I don't know if this is just a workaround or of this is actually the best practices way to do it, but here's how I got it to work: I had the following subform tags in: `{{ form_start(form.subscriptionTier1) }} etc... {{ form_end(form.subscriptionTier1) }}` This will nest form tags. Apparently you are not allowed ...
35,974,839
Trying to display a number on the right side of a table view cell in a label as an 'accessoryView', but the cell only displays the text of cell label. What am I doing wrong? ``` override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let item = items[index...
2016/03/13
[ "https://Stackoverflow.com/questions/35974839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/213563/" ]
I think frame for UILabel is missing. ``` let label = UILabel(frame: CGRect(x: 0, y: 0, width: 45, height: 45)) label.textColor = UIColor.blackColor() label.text = String("8") label.textAlignment = .Right cell.accessoryView = label ```
should check if you have this part of code on your tableView ``` tableView.editing = true ``` Or ``` tableView.setEditing(true, animated:animated) ``` accessoryView will be hidden if editing mode is true
35,974,839
Trying to display a number on the right side of a table view cell in a label as an 'accessoryView', but the cell only displays the text of cell label. What am I doing wrong? ``` override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let item = items[index...
2016/03/13
[ "https://Stackoverflow.com/questions/35974839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/213563/" ]
I think frame for UILabel is missing. ``` let label = UILabel(frame: CGRect(x: 0, y: 0, width: 45, height: 45)) label.textColor = UIColor.blackColor() label.text = String("8") label.textAlignment = .Right cell.accessoryView = label ```
``` let label = UILabel() label.textColor = UIColor.blackColor() label.text = String(item.count) label.textAlignment = .Right label.sizeToFit() // ADD THIS LINE cell.accessoryView = label ```
35,974,839
Trying to display a number on the right side of a table view cell in a label as an 'accessoryView', but the cell only displays the text of cell label. What am I doing wrong? ``` override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let item = items[index...
2016/03/13
[ "https://Stackoverflow.com/questions/35974839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/213563/" ]
``` let label = UILabel() label.textColor = UIColor.blackColor() label.text = String(item.count) label.textAlignment = .Right label.sizeToFit() // ADD THIS LINE cell.accessoryView = label ```
should check if you have this part of code on your tableView ``` tableView.editing = true ``` Or ``` tableView.setEditing(true, animated:animated) ``` accessoryView will be hidden if editing mode is true
2,167,818
We have multiple project solution based on MS Prism in WPF. For ease of understanding lets take we have project shell, and project usercontrol. The usercontrol project has numerous views for various functions. We have a pop up window in shell project which is called from main shell window, what i want is to load differ...
2010/01/30
[ "https://Stackoverflow.com/questions/2167818", "https://Stackoverflow.com", "https://Stackoverflow.com/users/262445/" ]
You can use the `PopupRegionBehavior` that comes with the Prism-v2 [RI](http://msdn.microsoft.com/en-us/library/dd458919.aspx) to achieve what you are trying to do in a decoupled way. You can read more about it [here](http://compositewpf.codeplex.com/Thread/View.aspx?ThreadId=65394). Please let me know if this helps. ...
Using a Dependency Injection Container (such as [Unity](http://www.codeplex.com/unity/) which can also be obtained from the CompositeWPF [Microsoft page](http://www.microsoft.com/downloads/details.aspx?familyid=387C7A59-B217-4318-AD1B-CBC2EA453F40&displaylang=en)), you'll be able to pass around an instance of `IRegionM...
2,441,525
There are many tutorials online giving very complex or non-working examples on this. It seems that people recommend others to use the syntax highlighters offered by netbeans but I am totally puzzled on how to do so! I have checked many many sites on this and the best I can find is : <http://www.antonioshome.net/kitch...
2010/03/14
[ "https://Stackoverflow.com/questions/2441525", "https://Stackoverflow.com", "https://Stackoverflow.com/users/293304/" ]
This is how I use it: ``` String mimeType = "text/x-java"; // NOI18N JEditorPane editorPane = new JEditorPane(); editorPane.setEditorKit(MimeLookup.getLookup(mimeType).lookup(EditorKit.class)); ```
**Partial Answer :** Apparently the following will enable syntax highlighting for Java (and some code completion) however it does not seem to work for other languages (except java, XML) even though it should [1]. Also I cannot find any way of enabling line numbers (they are enabled but they don't show up)! ``` yourE...
2,441,525
There are many tutorials online giving very complex or non-working examples on this. It seems that people recommend others to use the syntax highlighters offered by netbeans but I am totally puzzled on how to do so! I have checked many many sites on this and the best I can find is : <http://www.antonioshome.net/kitch...
2010/03/14
[ "https://Stackoverflow.com/questions/2441525", "https://Stackoverflow.com", "https://Stackoverflow.com/users/293304/" ]
**Partial Answer :** Apparently the following will enable syntax highlighting for Java (and some code completion) however it does not seem to work for other languages (except java, XML) even though it should [1]. Also I cannot find any way of enabling line numbers (they are enabled but they don't show up)! ``` yourE...
To get line numbers you can use the following snippet: ``` BaseTextUI eui = new BaseTextUI(); eui.installUI(editor); panel.add(eui.getEditorUI().getExtComponent()); ```
2,441,525
There are many tutorials online giving very complex or non-working examples on this. It seems that people recommend others to use the syntax highlighters offered by netbeans but I am totally puzzled on how to do so! I have checked many many sites on this and the best I can find is : <http://www.antonioshome.net/kitch...
2010/03/14
[ "https://Stackoverflow.com/questions/2441525", "https://Stackoverflow.com", "https://Stackoverflow.com/users/293304/" ]
Hallo, I found similar lack of info if you're trying to do a standalone platform app, in the end here is how I did it in my own application, yes it might be reinventing the wheel.. but since I couldnt find the wheel in the first place, might as well create one.. I took the information on how to create a java editor k...
**Partial Answer :** Apparently the following will enable syntax highlighting for Java (and some code completion) however it does not seem to work for other languages (except java, XML) even though it should [1]. Also I cannot find any way of enabling line numbers (they are enabled but they don't show up)! ``` yourE...
2,441,525
There are many tutorials online giving very complex or non-working examples on this. It seems that people recommend others to use the syntax highlighters offered by netbeans but I am totally puzzled on how to do so! I have checked many many sites on this and the best I can find is : <http://www.antonioshome.net/kitch...
2010/03/14
[ "https://Stackoverflow.com/questions/2441525", "https://Stackoverflow.com", "https://Stackoverflow.com/users/293304/" ]
This is how I use it: ``` String mimeType = "text/x-java"; // NOI18N JEditorPane editorPane = new JEditorPane(); editorPane.setEditorKit(MimeLookup.getLookup(mimeType).lookup(EditorKit.class)); ```
To get line numbers you can use the following snippet: ``` BaseTextUI eui = new BaseTextUI(); eui.installUI(editor); panel.add(eui.getEditorUI().getExtComponent()); ```
2,441,525
There are many tutorials online giving very complex or non-working examples on this. It seems that people recommend others to use the syntax highlighters offered by netbeans but I am totally puzzled on how to do so! I have checked many many sites on this and the best I can find is : <http://www.antonioshome.net/kitch...
2010/03/14
[ "https://Stackoverflow.com/questions/2441525", "https://Stackoverflow.com", "https://Stackoverflow.com/users/293304/" ]
This is how I use it: ``` String mimeType = "text/x-java"; // NOI18N JEditorPane editorPane = new JEditorPane(); editorPane.setEditorKit(MimeLookup.getLookup(mimeType).lookup(EditorKit.class)); ```
The following should give you syntax highlighting for javascript. Find mimes for other types to use different syntax. ``` File tmpFile = File.createTempFile("tmp_sejsrunner", ".js"); tmpFile = FileUtil.normalizeFile(tmpFile); FileObject fob = FileUtil.createData(tmpFile); DataObject dob = DataObject.find(fob); Edito...
2,441,525
There are many tutorials online giving very complex or non-working examples on this. It seems that people recommend others to use the syntax highlighters offered by netbeans but I am totally puzzled on how to do so! I have checked many many sites on this and the best I can find is : <http://www.antonioshome.net/kitch...
2010/03/14
[ "https://Stackoverflow.com/questions/2441525", "https://Stackoverflow.com", "https://Stackoverflow.com/users/293304/" ]
The following should give you syntax highlighting for javascript. Find mimes for other types to use different syntax. ``` File tmpFile = File.createTempFile("tmp_sejsrunner", ".js"); tmpFile = FileUtil.normalizeFile(tmpFile); FileObject fob = FileUtil.createData(tmpFile); DataObject dob = DataObject.find(fob); Edito...
To get line numbers you can use the following snippet: ``` BaseTextUI eui = new BaseTextUI(); eui.installUI(editor); panel.add(eui.getEditorUI().getExtComponent()); ```
2,441,525
There are many tutorials online giving very complex or non-working examples on this. It seems that people recommend others to use the syntax highlighters offered by netbeans but I am totally puzzled on how to do so! I have checked many many sites on this and the best I can find is : <http://www.antonioshome.net/kitch...
2010/03/14
[ "https://Stackoverflow.com/questions/2441525", "https://Stackoverflow.com", "https://Stackoverflow.com/users/293304/" ]
Hallo, I found similar lack of info if you're trying to do a standalone platform app, in the end here is how I did it in my own application, yes it might be reinventing the wheel.. but since I couldnt find the wheel in the first place, might as well create one.. I took the information on how to create a java editor k...
To get line numbers you can use the following snippet: ``` BaseTextUI eui = new BaseTextUI(); eui.installUI(editor); panel.add(eui.getEditorUI().getExtComponent()); ```
2,441,525
There are many tutorials online giving very complex or non-working examples on this. It seems that people recommend others to use the syntax highlighters offered by netbeans but I am totally puzzled on how to do so! I have checked many many sites on this and the best I can find is : <http://www.antonioshome.net/kitch...
2010/03/14
[ "https://Stackoverflow.com/questions/2441525", "https://Stackoverflow.com", "https://Stackoverflow.com/users/293304/" ]
Hallo, I found similar lack of info if you're trying to do a standalone platform app, in the end here is how I did it in my own application, yes it might be reinventing the wheel.. but since I couldnt find the wheel in the first place, might as well create one.. I took the information on how to create a java editor k...
The following should give you syntax highlighting for javascript. Find mimes for other types to use different syntax. ``` File tmpFile = File.createTempFile("tmp_sejsrunner", ".js"); tmpFile = FileUtil.normalizeFile(tmpFile); FileObject fob = FileUtil.createData(tmpFile); DataObject dob = DataObject.find(fob); Edito...
135,802
![enter image description here](https://i.stack.imgur.com/mxESw.png) that tension generator has 1V , Can i just ignore it and apply the parallel resistors theorem R= R1R2/R1 + R2 ? and replace R1 and R2 by R? if the generator wasn't there this would be easy
2014/09/16
[ "https://physics.stackexchange.com/questions/135802", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/31731/" ]
The answer depends on what you're trying to do. If you're trying to find the voltage between A and B, then note that the circuit can be redrawn as ![enter image description here](https://i.stack.imgur.com/zxNWb.gif) From this redrawn circuit, it's clear that the resistors need to be treated as being in series in the...
No, you can't. You have $V\_A-V\_B$ across $R\_2$, so can calculate the current in that leg. You have $(V\_A-1)-V\_B$ across $R\_1$, so can calculate the current in that leg. Adding the currents will give the current into/out of $A,B$
49,098,828
I have the following element: ``` <h1 msgId = "someId"> Some text </h1> ``` and in a code.js the following function: ``` document.addEventListener('click', function(e) { target = e.target; }, false); ``` I need to obtain the string "someId" in msgId property. Something like target.msgId ``` document.addEvent...
2018/03/04
[ "https://Stackoverflow.com/questions/49098828", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7519700/" ]
`msgId` is an *attribute* on that element, so you'd use `getAttribute`: ``` console.log(e.target.getAttribute("msgId")); ``` Live Example: ```js document.addEventListener('click', function(e) { console.log(e.target.getAttribute("msgId")); }, false); ``` ```html <h1 msgId = "someId"> Some text </h1> ``` **Ho...
You can use [**Element.getAttribute**](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttribute) to get the value of `msgId` attribute. ```js document.addEventListener('click', function(e) { target = e.target.getAttribute("msgId"); console.log(target); }, false); ``` ```html <h1 msgId = "someI...
49,098,828
I have the following element: ``` <h1 msgId = "someId"> Some text </h1> ``` and in a code.js the following function: ``` document.addEventListener('click', function(e) { target = e.target; }, false); ``` I need to obtain the string "someId" in msgId property. Something like target.msgId ``` document.addEvent...
2018/03/04
[ "https://Stackoverflow.com/questions/49098828", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7519700/" ]
`msgId` is an *attribute* on that element, so you'd use `getAttribute`: ``` console.log(e.target.getAttribute("msgId")); ``` Live Example: ```js document.addEventListener('click', function(e) { console.log(e.target.getAttribute("msgId")); }, false); ``` ```html <h1 msgId = "someId"> Some text </h1> ``` **Ho...
This should work `e.target.getAttribute("msgId");` But I would suggest use `data-attribute` since it will be valid HTML5 attribute
49,098,828
I have the following element: ``` <h1 msgId = "someId"> Some text </h1> ``` and in a code.js the following function: ``` document.addEventListener('click', function(e) { target = e.target; }, false); ``` I need to obtain the string "someId" in msgId property. Something like target.msgId ``` document.addEvent...
2018/03/04
[ "https://Stackoverflow.com/questions/49098828", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7519700/" ]
You can use [**Element.getAttribute**](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttribute) to get the value of `msgId` attribute. ```js document.addEventListener('click', function(e) { target = e.target.getAttribute("msgId"); console.log(target); }, false); ``` ```html <h1 msgId = "someI...
This should work `e.target.getAttribute("msgId");` But I would suggest use `data-attribute` since it will be valid HTML5 attribute
50,208,403
I am trying to render out a list of object data using FlatList in my React Native component, however I am getting a blank screen without any errors on the console which is why it is rather difficult to get to the bottom of the issue here. The data is made available to the component using Redux-Saga approach and supplie...
2018/05/07
[ "https://Stackoverflow.com/questions/50208403", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8231683/" ]
Use Oracle ROLLUP function in group by to achieve the desired result. ``` select city, month, month_number, sum(totalcount) as totalcount, sum(total_value) total_value from ( select city, to_char( testdate, 'Mon') month, to_number( to_char( testdate, 'mm' ) ) month_number, count( to...
Try the below SQL. ``` SELECT city, month,month_number sum(totalcount) as totalcount, sum(total_value) total_value FROM ( select city, to_char( testdate, 'Mon') month, to_number( to_char( testdate, 'mm' ) ) month_number, count( totalcount ) totalcount, sum( total_value...
14
It's been less than ten minutes since I've been on this page and already I have a dire need: A checklist on: how do I determine whether a question fits on English Language & Usage or on English Language Learners?
2013/01/23
[ "https://ell.meta.stackexchange.com/questions/14", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/55/" ]
*I think I'll post this as an answer, because some of the opinions expressed in the comments seem so WRONG to me, not just in and of themselves, but also as a basis for a site.* First of all, we **CANNOT** define this site as "questions that can be answered by a native speaker with no particular expertise", because an...
This is something that will very likely take a few weeks at the very least to figure out, as ELL and EL&U figure out their boundaries, so to speak. Thus, very rough guidance follows: * If you natively speak English or are fluent in it, it is more than likely your question belongs on EL&U. * If you are not yet fluent i...
14
It's been less than ten minutes since I've been on this page and already I have a dire need: A checklist on: how do I determine whether a question fits on English Language & Usage or on English Language Learners?
2013/01/23
[ "https://ell.meta.stackexchange.com/questions/14", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/55/" ]
*I think I'll post this as an answer, because some of the opinions expressed in the comments seem so WRONG to me, not just in and of themselves, but also as a basis for a site.* First of all, we **CANNOT** define this site as "questions that can be answered by a native speaker with no particular expertise", because an...
I've mulled this one over for a long time now, and I've realized that the right place to ask not only depends on the nature of the question, but sometimes it depends on the nature of the answer sought. If you'd like someone with a strong background in linguistics to give an explanation that goes something like this: ...
14
It's been less than ten minutes since I've been on this page and already I have a dire need: A checklist on: how do I determine whether a question fits on English Language & Usage or on English Language Learners?
2013/01/23
[ "https://ell.meta.stackexchange.com/questions/14", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/55/" ]
This is something that will very likely take a few weeks at the very least to figure out, as ELL and EL&U figure out their boundaries, so to speak. Thus, very rough guidance follows: * If you natively speak English or are fluent in it, it is more than likely your question belongs on EL&U. * If you are not yet fluent i...
How about this: If you have something to ask about a certain linguistic element **for your own practical use**, ask on **ELL**; If you are not mainly concerned with using the element yourself, but instead **you would like to know more about it**, such as how it came to be, whether there is a pattern behind what you ...
14
It's been less than ten minutes since I've been on this page and already I have a dire need: A checklist on: how do I determine whether a question fits on English Language & Usage or on English Language Learners?
2013/01/23
[ "https://ell.meta.stackexchange.com/questions/14", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/55/" ]
We brought this up in [a proposal discussion](https://area51.meta.stackexchange.com/questions/7945/drawing-the-lines-between-ell-and-elu). I'll copy my suggestions here. **ELL is intended to be geared toward the needs of both people learning English and people teaching English.** I feel these general topics encompass ...
How about this: If you have something to ask about a certain linguistic element **for your own practical use**, ask on **ELL**; If you are not mainly concerned with using the element yourself, but instead **you would like to know more about it**, such as how it came to be, whether there is a pattern behind what you ...
14
It's been less than ten minutes since I've been on this page and already I have a dire need: A checklist on: how do I determine whether a question fits on English Language & Usage or on English Language Learners?
2013/01/23
[ "https://ell.meta.stackexchange.com/questions/14", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/55/" ]
This is something that will very likely take a few weeks at the very least to figure out, as ELL and EL&U figure out their boundaries, so to speak. Thus, very rough guidance follows: * If you natively speak English or are fluent in it, it is more than likely your question belongs on EL&U. * If you are not yet fluent i...
I like waiwai933's answer, but I feel it isn't refined enough. It focuses on the person asking the question. I feel the criteria should be based on the question itself. I propose the following * If the question is one that could be reasonably expected to be answered by a typical fluent English speaker, and not requir...
14
It's been less than ten minutes since I've been on this page and already I have a dire need: A checklist on: how do I determine whether a question fits on English Language & Usage or on English Language Learners?
2013/01/23
[ "https://ell.meta.stackexchange.com/questions/14", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/55/" ]
We brought this up in [a proposal discussion](https://area51.meta.stackexchange.com/questions/7945/drawing-the-lines-between-ell-and-elu). I'll copy my suggestions here. **ELL is intended to be geared toward the needs of both people learning English and people teaching English.** I feel these general topics encompass ...
I like waiwai933's answer, but I feel it isn't refined enough. It focuses on the person asking the question. I feel the criteria should be based on the question itself. I propose the following * If the question is one that could be reasonably expected to be answered by a typical fluent English speaker, and not requir...
14
It's been less than ten minutes since I've been on this page and already I have a dire need: A checklist on: how do I determine whether a question fits on English Language & Usage or on English Language Learners?
2013/01/23
[ "https://ell.meta.stackexchange.com/questions/14", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/55/" ]
We brought this up in [a proposal discussion](https://area51.meta.stackexchange.com/questions/7945/drawing-the-lines-between-ell-and-elu). I'll copy my suggestions here. **ELL is intended to be geared toward the needs of both people learning English and people teaching English.** I feel these general topics encompass ...
I've mulled this one over for a long time now, and I've realized that the right place to ask not only depends on the nature of the question, but sometimes it depends on the nature of the answer sought. If you'd like someone with a strong background in linguistics to give an explanation that goes something like this: ...
14
It's been less than ten minutes since I've been on this page and already I have a dire need: A checklist on: how do I determine whether a question fits on English Language & Usage or on English Language Learners?
2013/01/23
[ "https://ell.meta.stackexchange.com/questions/14", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/55/" ]
*I think I'll post this as an answer, because some of the opinions expressed in the comments seem so WRONG to me, not just in and of themselves, but also as a basis for a site.* First of all, we **CANNOT** define this site as "questions that can be answered by a native speaker with no particular expertise", because an...
I like waiwai933's answer, but I feel it isn't refined enough. It focuses on the person asking the question. I feel the criteria should be based on the question itself. I propose the following * If the question is one that could be reasonably expected to be answered by a typical fluent English speaker, and not requir...
14
It's been less than ten minutes since I've been on this page and already I have a dire need: A checklist on: how do I determine whether a question fits on English Language & Usage or on English Language Learners?
2013/01/23
[ "https://ell.meta.stackexchange.com/questions/14", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/55/" ]
*I think I'll post this as an answer, because some of the opinions expressed in the comments seem so WRONG to me, not just in and of themselves, but also as a basis for a site.* First of all, we **CANNOT** define this site as "questions that can be answered by a native speaker with no particular expertise", because an...
We brought this up in [a proposal discussion](https://area51.meta.stackexchange.com/questions/7945/drawing-the-lines-between-ell-and-elu). I'll copy my suggestions here. **ELL is intended to be geared toward the needs of both people learning English and people teaching English.** I feel these general topics encompass ...
14
It's been less than ten minutes since I've been on this page and already I have a dire need: A checklist on: how do I determine whether a question fits on English Language & Usage or on English Language Learners?
2013/01/23
[ "https://ell.meta.stackexchange.com/questions/14", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/55/" ]
*I think I'll post this as an answer, because some of the opinions expressed in the comments seem so WRONG to me, not just in and of themselves, but also as a basis for a site.* First of all, we **CANNOT** define this site as "questions that can be answered by a native speaker with no particular expertise", because an...
How about this: If you have something to ask about a certain linguistic element **for your own practical use**, ask on **ELL**; If you are not mainly concerned with using the element yourself, but instead **you would like to know more about it**, such as how it came to be, whether there is a pattern behind what you ...
65,652,677
I am testig a public method and I want to verify if a private method, that have mocked params, is called. All the answers I have found are using invoke method, but this was removed since JMockit v1.36 ``` public class ClassToTest{ public void methodToTest(){ DependencyClass abc = new DependencyClass(); i...
2021/01/10
[ "https://Stackoverflow.com/questions/65652677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14741440/" ]
Input df ``` vals 0 2.5807003.49 9/2020 24,54 4.7103181.69 9 /2020 172,0 5 4.7197189.46 09/2020 172,0 5 1 4.7861901.25 9/2020 8 9,16 2 2.5807003.49 10/2020 35,65 4.7103181.69 10/2020 185,50 4.7197189.46 1 0/2020 185,5 0 3 4.7861901.25 10/2020 94 ,32 ``` Now, as multiple rows in the expected df is combine...
A regex that could work for the provided example: ``` (2\.5807003\.49|4\.7103181\.69|4\.7197189\.46|4\.7861901\.25)\s+([\d\s]+\/\d{4})\s+([\d\s]+,[\d\s]+)(?:\s|$) ``` Demo: <https://regex101.com/r/VLc53D/1/> Or if there can be a space in the year: ``` (2\.5807003\.49|4\.7103181\.69|4\.7197189\.46|4\.7861901\.25)\s...
479,363
I want to open the `Application lens` in the `Unity Dash` as the `default lens`, since I much more open a programm then searching for a Wikipedia article, the weather or anything else the Home lens offers. Here [How do I show the Applications Lens By Default?](https://askubuntu.com/questions/117144/how-do-i-show-the-...
2014/06/08
[ "https://askubuntu.com/questions/479363", "https://askubuntu.com", "https://askubuntu.com/users/290562/" ]
install `dconf` if you don't have it `sudo apt-get install dconf-editor` if you want to use GUI way, in `dconf` go to `com` > `canonical` > `unity` > `lenses` all the rest you can find [here](https://askubuntu.com/questions/474894/need-a-little-help-with-dconf-formatting) If you want to disable `maximum per-monitor sc...
you can uninstall all lenses/scopes except "applications" ``` sudo apt-get --purge remove unity-lens-files unity-lens-friends unity-lens-music unity-lens-photos unity-lens-video unity-scope-audacious unity-scope-calculator unity-scope-chromiumbookmarks unity-scope-clementine unity-scope-colourlovers unity-scope-devhel...
479,363
I want to open the `Application lens` in the `Unity Dash` as the `default lens`, since I much more open a programm then searching for a Wikipedia article, the weather or anything else the Home lens offers. Here [How do I show the Applications Lens By Default?](https://askubuntu.com/questions/117144/how-do-i-show-the-...
2014/06/08
[ "https://askubuntu.com/questions/479363", "https://askubuntu.com", "https://askubuntu.com/users/290562/" ]
install `dconf` if you don't have it `sudo apt-get install dconf-editor` if you want to use GUI way, in `dconf` go to `com` > `canonical` > `unity` > `lenses` all the rest you can find [here](https://askubuntu.com/questions/474894/need-a-little-help-with-dconf-formatting) If you want to disable `maximum per-monitor sc...
It is not an exact answer to the question, just one more workarond, but quite satisfactory for me. I have added 'applications.scope' in front of home-lens-priority list (com > canonical > unity > lenses in dconf-editor), and the home lens started to search for applications first, very quickly. Though it also shows all ...
479,363
I want to open the `Application lens` in the `Unity Dash` as the `default lens`, since I much more open a programm then searching for a Wikipedia article, the weather or anything else the Home lens offers. Here [How do I show the Applications Lens By Default?](https://askubuntu.com/questions/117144/how-do-i-show-the-...
2014/06/08
[ "https://askubuntu.com/questions/479363", "https://askubuntu.com", "https://askubuntu.com/users/290562/" ]
install `dconf` if you don't have it `sudo apt-get install dconf-editor` if you want to use GUI way, in `dconf` go to `com` > `canonical` > `unity` > `lenses` all the rest you can find [here](https://askubuntu.com/questions/474894/need-a-little-help-with-dconf-formatting) If you want to disable `maximum per-monitor sc...
One command to solve it all! `gsettings set com.canonical.Unity.Lenses always-search "['applications.scope']"` That will make dash search by default, only on the application scope. EASY AS! No need to install no programs. Just enter it in the command line, and restart your computer to see the changes taking effect. ...
479,363
I want to open the `Application lens` in the `Unity Dash` as the `default lens`, since I much more open a programm then searching for a Wikipedia article, the weather or anything else the Home lens offers. Here [How do I show the Applications Lens By Default?](https://askubuntu.com/questions/117144/how-do-i-show-the-...
2014/06/08
[ "https://askubuntu.com/questions/479363", "https://askubuntu.com", "https://askubuntu.com/users/290562/" ]
install `dconf` if you don't have it `sudo apt-get install dconf-editor` if you want to use GUI way, in `dconf` go to `com` > `canonical` > `unity` > `lenses` all the rest you can find [here](https://askubuntu.com/questions/474894/need-a-little-help-with-dconf-formatting) If you want to disable `maximum per-monitor sc...
Navigate to `com > canonical > unity`, then add 'home.scopes' to hidden scopes in lenses and add 'applications.scope' as the first entry in dash using `dconf-editor`.
479,363
I want to open the `Application lens` in the `Unity Dash` as the `default lens`, since I much more open a programm then searching for a Wikipedia article, the weather or anything else the Home lens offers. Here [How do I show the Applications Lens By Default?](https://askubuntu.com/questions/117144/how-do-i-show-the-...
2014/06/08
[ "https://askubuntu.com/questions/479363", "https://askubuntu.com", "https://askubuntu.com/users/290562/" ]
One command to solve it all! `gsettings set com.canonical.Unity.Lenses always-search "['applications.scope']"` That will make dash search by default, only on the application scope. EASY AS! No need to install no programs. Just enter it in the command line, and restart your computer to see the changes taking effect. ...
you can uninstall all lenses/scopes except "applications" ``` sudo apt-get --purge remove unity-lens-files unity-lens-friends unity-lens-music unity-lens-photos unity-lens-video unity-scope-audacious unity-scope-calculator unity-scope-chromiumbookmarks unity-scope-clementine unity-scope-colourlovers unity-scope-devhel...
479,363
I want to open the `Application lens` in the `Unity Dash` as the `default lens`, since I much more open a programm then searching for a Wikipedia article, the weather or anything else the Home lens offers. Here [How do I show the Applications Lens By Default?](https://askubuntu.com/questions/117144/how-do-i-show-the-...
2014/06/08
[ "https://askubuntu.com/questions/479363", "https://askubuntu.com", "https://askubuntu.com/users/290562/" ]
Navigate to `com > canonical > unity`, then add 'home.scopes' to hidden scopes in lenses and add 'applications.scope' as the first entry in dash using `dconf-editor`.
you can uninstall all lenses/scopes except "applications" ``` sudo apt-get --purge remove unity-lens-files unity-lens-friends unity-lens-music unity-lens-photos unity-lens-video unity-scope-audacious unity-scope-calculator unity-scope-chromiumbookmarks unity-scope-clementine unity-scope-colourlovers unity-scope-devhel...
479,363
I want to open the `Application lens` in the `Unity Dash` as the `default lens`, since I much more open a programm then searching for a Wikipedia article, the weather or anything else the Home lens offers. Here [How do I show the Applications Lens By Default?](https://askubuntu.com/questions/117144/how-do-i-show-the-...
2014/06/08
[ "https://askubuntu.com/questions/479363", "https://askubuntu.com", "https://askubuntu.com/users/290562/" ]
One command to solve it all! `gsettings set com.canonical.Unity.Lenses always-search "['applications.scope']"` That will make dash search by default, only on the application scope. EASY AS! No need to install no programs. Just enter it in the command line, and restart your computer to see the changes taking effect. ...
It is not an exact answer to the question, just one more workarond, but quite satisfactory for me. I have added 'applications.scope' in front of home-lens-priority list (com > canonical > unity > lenses in dconf-editor), and the home lens started to search for applications first, very quickly. Though it also shows all ...
479,363
I want to open the `Application lens` in the `Unity Dash` as the `default lens`, since I much more open a programm then searching for a Wikipedia article, the weather or anything else the Home lens offers. Here [How do I show the Applications Lens By Default?](https://askubuntu.com/questions/117144/how-do-i-show-the-...
2014/06/08
[ "https://askubuntu.com/questions/479363", "https://askubuntu.com", "https://askubuntu.com/users/290562/" ]
Navigate to `com > canonical > unity`, then add 'home.scopes' to hidden scopes in lenses and add 'applications.scope' as the first entry in dash using `dconf-editor`.
It is not an exact answer to the question, just one more workarond, but quite satisfactory for me. I have added 'applications.scope' in front of home-lens-priority list (com > canonical > unity > lenses in dconf-editor), and the home lens started to search for applications first, very quickly. Though it also shows all ...
479,363
I want to open the `Application lens` in the `Unity Dash` as the `default lens`, since I much more open a programm then searching for a Wikipedia article, the weather or anything else the Home lens offers. Here [How do I show the Applications Lens By Default?](https://askubuntu.com/questions/117144/how-do-i-show-the-...
2014/06/08
[ "https://askubuntu.com/questions/479363", "https://askubuntu.com", "https://askubuntu.com/users/290562/" ]
One command to solve it all! `gsettings set com.canonical.Unity.Lenses always-search "['applications.scope']"` That will make dash search by default, only on the application scope. EASY AS! No need to install no programs. Just enter it in the command line, and restart your computer to see the changes taking effect. ...
Navigate to `com > canonical > unity`, then add 'home.scopes' to hidden scopes in lenses and add 'applications.scope' as the first entry in dash using `dconf-editor`.
7,332,920
I am receiving the error shown in the title from a LINQ query that includes two tables from two different edmx files. Here is the query: ``` var query = (from a in db1.Table1 join b in db1.Table2 on a.Id equals b.Id orderby a.Status where b.Id == 1 && a.Status == "new" selec...
2011/09/07
[ "https://Stackoverflow.com/questions/7332920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/792308/" ]
You'll have to perform two database queries: ``` var IDs = (from a in db1.Table1 join b in db1.Table2 on a.Id equals b.Id orderby a.Status where b.Id == 1 && a.Status == "new" select new a.Id).ToArray(); var query = from c in db2.Company join a in IDs o...
You either need to add the second table to the model of the first context. If this is in multiple databases, you need to do the secondary lookup client-side using a Linq to Objects join.
7,332,920
I am receiving the error shown in the title from a LINQ query that includes two tables from two different edmx files. Here is the query: ``` var query = (from a in db1.Table1 join b in db1.Table2 on a.Id equals b.Id orderby a.Status where b.Id == 1 && a.Status == "new" selec...
2011/09/07
[ "https://Stackoverflow.com/questions/7332920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/792308/" ]
You either need to add the second table to the model of the first context. If this is in multiple databases, you need to do the secondary lookup client-side using a Linq to Objects join.
You have to create manually EntityConnection filled with resources from all .EDMXs you want to use. You can do it either by adding connection to app.config or programmaticaly. Then you can create DBContext using prepared EntityConnection. method a) ``` <add name="MyConnection" connectionString="metadata=res://*/Enti...
7,332,920
I am receiving the error shown in the title from a LINQ query that includes two tables from two different edmx files. Here is the query: ``` var query = (from a in db1.Table1 join b in db1.Table2 on a.Id equals b.Id orderby a.Status where b.Id == 1 && a.Status == "new" selec...
2011/09/07
[ "https://Stackoverflow.com/questions/7332920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/792308/" ]
You'll have to perform two database queries: ``` var IDs = (from a in db1.Table1 join b in db1.Table2 on a.Id equals b.Id orderby a.Status where b.Id == 1 && a.Status == "new" select new a.Id).ToArray(); var query = from c in db2.Company join a in IDs o...
You have to create manually EntityConnection filled with resources from all .EDMXs you want to use. You can do it either by adding connection to app.config or programmaticaly. Then you can create DBContext using prepared EntityConnection. method a) ``` <add name="MyConnection" connectionString="metadata=res://*/Enti...
8,354,986
I'm trying to write a small program in C# to calculate a equation with a few known variables. A few textboxes (where each variable need to be typed) and a single "calculate" button. What I'm trying to implement now is that my keyboard cursor is active in a selected textbox when the program starts. But I can't figure ...
2011/12/02
[ "https://Stackoverflow.com/questions/8354986", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1077186/" ]
For Winforms : View > Tab Order. Set tab order of start textbox to 0.
write this in your head tag ``` <script type='text/javascript'> document.getElementById('txtName').focus(); </script> ```
8,354,986
I'm trying to write a small program in C# to calculate a equation with a few known variables. A few textboxes (where each variable need to be typed) and a single "calculate" button. What I'm trying to implement now is that my keyboard cursor is active in a selected textbox when the program starts. But I can't figure ...
2011/12/02
[ "https://Stackoverflow.com/questions/8354986", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1077186/" ]
For Winforms : View > Tab Order. Set tab order of start textbox to 0.
So, what programming language that you are using? In php you could use simple javascript : ``` <form> <input type="text" id="mytext1" name="mytext1" value="1"><br> <input type="text" id="mytext2" name="mytext2" value="2"><br> <input type="text" id="mytext3" name="mytext3" value="3"><br> </form> <script language="jav...
8,354,986
I'm trying to write a small program in C# to calculate a equation with a few known variables. A few textboxes (where each variable need to be typed) and a single "calculate" button. What I'm trying to implement now is that my keyboard cursor is active in a selected textbox when the program starts. But I can't figure ...
2011/12/02
[ "https://Stackoverflow.com/questions/8354986", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1077186/" ]
write this in your head tag ``` <script type='text/javascript'> document.getElementById('txtName').focus(); </script> ```
So, what programming language that you are using? In php you could use simple javascript : ``` <form> <input type="text" id="mytext1" name="mytext1" value="1"><br> <input type="text" id="mytext2" name="mytext2" value="2"><br> <input type="text" id="mytext3" name="mytext3" value="3"><br> </form> <script language="jav...
8,354,986
I'm trying to write a small program in C# to calculate a equation with a few known variables. A few textboxes (where each variable need to be typed) and a single "calculate" button. What I'm trying to implement now is that my keyboard cursor is active in a selected textbox when the program starts. But I can't figure ...
2011/12/02
[ "https://Stackoverflow.com/questions/8354986", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1077186/" ]
For Winforms : View > Tab Order. Set tab order of start textbox to 0.
I see, you forgot to write down your C# (when i post my first answer). If you're using C# it would be lot easier thank HTML or PHP. Simply type this in form\_load() : ``` <your textboxname>.Focus() ``` Example : ``` TextBox1.Focus() ```