qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
35,253,840
I am building an app which uploads files to the server via ajax. The problem is that users most likely sometimes won't have the internet connection and client would like to have the ajax call scheduled to time when user have the connection back. This is possible that user will schedule the file upload when he's offline...
2016/02/07
[ "https://Stackoverflow.com/questions/35253840", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2008950/" ]
The short answer is no, your app can't run code after being terminated. You can run code in your `AppDelegate`'s `applicationWillTerminate`, but that method is mainly intended for saving user data and other similar tasks. See [this answer](https://stackoverflow.com/a/32225247/5389870) also.
I have already answered a similar question: <https://stackoverflow.com/a/57245917/6157415> You can implement notification, when user receive notification part of your code can be executed. in particular there are **Silent Push Notification** to do this: > > Sometimes, you may want to use a **Silent Push Notificati...
35,253,840
I am building an app which uploads files to the server via ajax. The problem is that users most likely sometimes won't have the internet connection and client would like to have the ajax call scheduled to time when user have the connection back. This is possible that user will schedule the file upload when he's offline...
2016/02/07
[ "https://Stackoverflow.com/questions/35253840", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2008950/" ]
Yes you can do stuff in the background. You are limited to several different background modes of execution. Server communication is one of the modes that is allowed (background fetch). Make sure you set the properties correctly in Xcode per the guidelines (i.e. don't say you are a audio app when you are doing data tran...
I have already answered a similar question: <https://stackoverflow.com/a/57245917/6157415> You can implement notification, when user receive notification part of your code can be executed. in particular there are **Silent Push Notification** to do this: > > Sometimes, you may want to use a **Silent Push Notificati...
35,253,840
I am building an app which uploads files to the server via ajax. The problem is that users most likely sometimes won't have the internet connection and client would like to have the ajax call scheduled to time when user have the connection back. This is possible that user will schedule the file upload when he's offline...
2016/02/07
[ "https://Stackoverflow.com/questions/35253840", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2008950/" ]
``` - (void)applicationWillTerminate:(UIApplication *)application { if (application) { __block UIBackgroundTaskIdentifier backgroundTask = UIBackgroundTaskInvalid; backgroundTask = [application beginBackgroundTaskWithName:@"MyTask" expirationHandler:^{ backgroundTask = UIBackgroundTaskI...
I have already answered a similar question: <https://stackoverflow.com/a/57245917/6157415> You can implement notification, when user receive notification part of your code can be executed. in particular there are **Silent Push Notification** to do this: > > Sometimes, you may want to use a **Silent Push Notificati...
26,556
I am wanting to write a chess engine (see here: [Creating chess engine, machine learning vs. traditional engine?](https://chess.stackexchange.com/questions/26489/creating-chess-engine-machine-learning-vs-traditional-engine)). The first step I am doing is taking a position in as an FEN and converting this position into ...
2019/10/08
[ "https://chess.stackexchange.com/questions/26556", "https://chess.stackexchange.com", "https://chess.stackexchange.com/users/19802/" ]
I immediately notice that you've missed the castling moves (O-O and O-O-O). I would list the pawn-promoting moves according to their PGN syntax (=Q/R/N/B suffix), as that's the most commonly used in computer chess. Algebraic notation can be ambiguous for sliding and leaping pieces (everything except pawn and king, ac...
You've got a big list, but you forgot disambiguate moves. N1f3, N1f3+, N1f3#, Qd6d4... If you want to include all possible Algebraic moves, you need to increase your list at least tenfold.
988,147
Can one give an example of an abelian Banach algebra with empty character space? Such algebra must be necessarily non-unital. I couldn't find any examples of such algebras. Thanks!
2014/10/23
[ "https://math.stackexchange.com/questions/988147", "https://math.stackexchange.com", "https://math.stackexchange.com/users/186437/" ]
The [Volterra algebra](http://mathworld.wolfram.com/VolterraAlgebra.html) $V$ is an example of a commutative Banach algebra without maximal ideals (hence with empty character space). See also Definition 4.7.38 in > > H. G. Dales, *Banach algebras and automatic continuity*, London Math. Soc. > Monographs, Volume 24,...
A related comment: I think I have an example of a commutative unital complex algebra $A$ without any nontrivial complex homomorphisms. Take $A$ to be all rational functions with complex coefficients, that is $$ A= \{[p/q]: p,q \text{ complex polynomials and }q \text{ not identically } 0\}. $$ Here $[p/q]$ denotes th...
59,699,155
Now I started studying Angular, I was doing a simple exercise, but I had a giant doubt. I have two components (Navbar and app), in navbar I present one that returns me the value 5. In the component app, by clicking the EXECUTE button, I want the value displayed in Navbar to 4 (-1). Is there a way to do this or make an...
2020/01/11
[ "https://Stackoverflow.com/questions/59699155", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12696698/" ]
In your case, the "button" and the component are in the same .html -and in the same `<router-outlet></router-outlet>` you only need a [template reference variable](https://angular.io/guide/template-syntax#template-reference-variables-var) ``` <app-navbar #navbar></app-navbar> <p>My APP COMPONENT</p> <button (click)="...
It depends on the structure of your program If they're sibling components (meaning they're instanced in the same HTML, in this case requiring a 3rd component) the best way to do this would be to use a Service with an Observable. If there exists a parent-child relationship (one of the components instances the other on...
83,697
Everybody needs a leisure activity. Most of the books I need for mine are downstairs, with none in the bedroom. But as I like to keep an eye on things I have this (unsorted) pile by my bed to remind me. **What's my hobby?** [![enter image description here](https://i.stack.imgur.com/KfTm8.jpg)](https://i.stack.imgur.c...
2019/05/06
[ "https://puzzling.stackexchange.com/questions/83697", "https://puzzling.stackexchange.com", "https://puzzling.stackexchange.com/users/58787/" ]
Your hobby is > > **birdwatching** (hinted by the word "hobby" and the reference to "keeping an eye on things"). > > > We have: > > The Four **Feathers** > > What is the name of this book? (published by **Pelican**) > > Poems of Matthew **Arnold** -- "Arnold" means something like "strength of the eagl...
I think your hobby might be > > [Scramblers](https://en.wikipedia.org/wiki/Scrambler) > > > Reasoning > > Take the first letter of the first author name, if shown, otherwise take the last letter of the last name. Then rearrage: > > **S** tephen Jay Gould > **C** olm Tóibín > **R** aymond Smully...
1,687
Editing a question has the effect of bumping it on top of the front page. Should we limit the number of edits done on old questions? Bumping forty old questions in the front page has just the effect to hide the newest questions. I am asking the question because something I observed between today, and yesterday. I a...
2011/07/29
[ "https://english.meta.stackexchange.com/questions/1687", "https://english.meta.stackexchange.com", "https://english.meta.stackexchange.com/users/252/" ]
Are you referring to JSBangs removing a tag from 40 different questions? That's the only thing I see at the moment, scrolling down. If you need to remove a lot of tags, **you should post a request here on meta,** since developers have the ability to destroy tags without causing revisions. So the mistake in this case ...
For me, this brings the related question: **should tag edits really bump questions?** They are most often done either when the question is young, because it was badly tagged by its author (and thus in the top of the list anyway), or on old questions as part of retagging efforts (in which case, do we want to bump it?).
6,902,467
In some programming API's I see a list of methods to call, like getBoolean(String key, getDouble(String key), and getString(String key). Some other API's use a general get(String key) method, and return an Object which you are supposed to cast to an appropriate type yourself. Now I am writing my own data accessing poi...
2011/08/01
[ "https://Stackoverflow.com/questions/6902467", "https://Stackoverflow.com", "https://Stackoverflow.com/users/789939/" ]
Advantage: getBoolean(), getDouble(), etc. allow you to return the respective primitive types. As far as I've seen, that's the primary reason anyone writes methods like that.
Provide getters for the types that are most likely to be used. There's no real right or wrong way.
6,902,467
In some programming API's I see a list of methods to call, like getBoolean(String key, getDouble(String key), and getString(String key). Some other API's use a general get(String key) method, and return an Object which you are supposed to cast to an appropriate type yourself. Now I am writing my own data accessing poi...
2011/08/01
[ "https://Stackoverflow.com/questions/6902467", "https://Stackoverflow.com", "https://Stackoverflow.com/users/789939/" ]
Advantage: getBoolean(), getDouble(), etc. allow you to return the respective primitive types. As far as I've seen, that's the primary reason anyone writes methods like that.
It depends on the purpose of the library. When the output is a predictable set of items, then toy can have specific names. As in [ResultSet](http://download.oracle.com/javase/6/docs/api/java/sql/ResultSet.html). If it is generic, then you will need generic get methods. Like [ObjectOutputStream](http://download.oracle.c...
6,902,467
In some programming API's I see a list of methods to call, like getBoolean(String key, getDouble(String key), and getString(String key). Some other API's use a general get(String key) method, and return an Object which you are supposed to cast to an appropriate type yourself. Now I am writing my own data accessing poi...
2011/08/01
[ "https://Stackoverflow.com/questions/6902467", "https://Stackoverflow.com", "https://Stackoverflow.com/users/789939/" ]
Advantage: getBoolean(), getDouble(), etc. allow you to return the respective primitive types. As far as I've seen, that's the primary reason anyone writes methods like that.
Two questions: 1) Why don't you use general Properties instead, à là: ``` String getName() Address getAddress() Date getDateOfBirth() ``` etc? 2) If you want to use methods like: ``` String getString(String key) Double getDouble(String key) Address getAddress(String key) ``` How on earth would I, as the user, kn...
12,766,528
I want to create a function object, which also has some properties held on it. For example in JavaScript I would do: ``` var f = function() { } f.someValue = 3; ``` Now in TypeScript I can describe the type of this as: ``` var f: { (): any; someValue: number; }; ``` However I can't actually build it, without requ...
2012/10/07
[ "https://Stackoverflow.com/questions/12766528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/664175/" ]
This is easily achievable now (typescript 2.x) with `Object.assign(target, source)` example: [![enter image description here](https://i.stack.imgur.com/9EtVw.png)](https://i.stack.imgur.com/9EtVw.png) The magic here is that `Object.assign<T, U>(t: T, u: U)` is typed to return the *intersection* `T & U`. Enforcing...
I can't say that it's very straightforward but it's definitely possible: ``` interface Optional { <T>(value?: T): OptionalMonad<T>; empty(): OptionalMonad<any>; } const Optional = (<T>(value?: T) => OptionalCreator(value)) as Optional; Optional.empty = () => OptionalCreator(); ``` if you got curious [this is fr...
12,766,528
I want to create a function object, which also has some properties held on it. For example in JavaScript I would do: ``` var f = function() { } f.someValue = 3; ``` Now in TypeScript I can describe the type of this as: ``` var f: { (): any; someValue: number; }; ``` However I can't actually build it, without requ...
2012/10/07
[ "https://Stackoverflow.com/questions/12766528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/664175/" ]
So if the requirement is to simply build and assign that function to "f" without a cast, here is a possible solution: ``` var f: { (): any; someValue: number; }; f = (() => { var _f : any = function () { }; _f.someValue = 3; return _f; })(); ``` Essentially, it uses a self executing function literal to ...
Old question, but for versions of TypeScript starting with 3.1, you can simply do the property assignment as you would in plain JS, as long as you use a function declaration or the `const` keyword for your variable: ``` function f () {} f.someValue = 3; // fine const g = function () {}; g.someValue = 3; // also fine v...
12,766,528
I want to create a function object, which also has some properties held on it. For example in JavaScript I would do: ``` var f = function() { } f.someValue = 3; ``` Now in TypeScript I can describe the type of this as: ``` var f: { (): any; someValue: number; }; ``` However I can't actually build it, without requ...
2012/10/07
[ "https://Stackoverflow.com/questions/12766528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/664175/" ]
TypeScript is designed to handle this case through [**declaration merging**](https://www.typescriptlang.org/docs/handbook/declaration-merging.html): > > you may also be familiar with JavaScript practice of creating a function and then extending the function further by adding properties onto the function. TypeScript u...
An updated answer: since the addition of intersection types via `&`, it is possible to "merge" two inferred types on the fly. Here's a general helper that reads the properties of some object `from` and copies them over an object `onto`. It returns the same object `onto` but with a new type that includes both sets of p...
12,766,528
I want to create a function object, which also has some properties held on it. For example in JavaScript I would do: ``` var f = function() { } f.someValue = 3; ``` Now in TypeScript I can describe the type of this as: ``` var f: { (): any; someValue: number; }; ``` However I can't actually build it, without requ...
2012/10/07
[ "https://Stackoverflow.com/questions/12766528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/664175/" ]
This is easily achievable now (typescript 2.x) with `Object.assign(target, source)` example: [![enter image description here](https://i.stack.imgur.com/9EtVw.png)](https://i.stack.imgur.com/9EtVw.png) The magic here is that `Object.assign<T, U>(t: T, u: U)` is typed to return the *intersection* `T & U`. Enforcing...
An updated answer: since the addition of intersection types via `&`, it is possible to "merge" two inferred types on the fly. Here's a general helper that reads the properties of some object `from` and copies them over an object `onto`. It returns the same object `onto` but with a new type that includes both sets of p...
12,766,528
I want to create a function object, which also has some properties held on it. For example in JavaScript I would do: ``` var f = function() { } f.someValue = 3; ``` Now in TypeScript I can describe the type of this as: ``` var f: { (): any; someValue: number; }; ``` However I can't actually build it, without requ...
2012/10/07
[ "https://Stackoverflow.com/questions/12766528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/664175/" ]
Update: This answer was the best solution in earlier versions of TypeScript, but there are better options available in newer versions (see other answers). The accepted answer works and might be required in some situations, but have the downside of providing no type safety for building up the object. This technique wil...
This departs from strong typing, but you can do ``` var f: any = function() { } f.someValue = 3; ``` if you are trying to get around oppressive strong typing like I was when I found this question. Sadly this is a case TypeScript fails on perfectly valid JavaScript so you have to you tell TypeScript to back off. "Yo...
12,766,528
I want to create a function object, which also has some properties held on it. For example in JavaScript I would do: ``` var f = function() { } f.someValue = 3; ``` Now in TypeScript I can describe the type of this as: ``` var f: { (): any; someValue: number; }; ``` However I can't actually build it, without requ...
2012/10/07
[ "https://Stackoverflow.com/questions/12766528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/664175/" ]
As a shortcut, you can dynamically assign the object value using the ['property'] accessor: ``` var f = function() { } f['someValue'] = 3; ``` This bypasses the type checking. However, it is pretty safe because you have to intentionally access the property the same way: ``` var val = f.someValue; // This won't work...
This departs from strong typing, but you can do ``` var f: any = function() { } f.someValue = 3; ``` if you are trying to get around oppressive strong typing like I was when I found this question. Sadly this is a case TypeScript fails on perfectly valid JavaScript so you have to you tell TypeScript to back off. "Yo...
12,766,528
I want to create a function object, which also has some properties held on it. For example in JavaScript I would do: ``` var f = function() { } f.someValue = 3; ``` Now in TypeScript I can describe the type of this as: ``` var f: { (): any; someValue: number; }; ``` However I can't actually build it, without requ...
2012/10/07
[ "https://Stackoverflow.com/questions/12766528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/664175/" ]
So if the requirement is to simply build and assign that function to "f" without a cast, here is a possible solution: ``` var f: { (): any; someValue: number; }; f = (() => { var _f : any = function () { }; _f.someValue = 3; return _f; })(); ``` Essentially, it uses a self executing function literal to ...
As a shortcut, you can dynamically assign the object value using the ['property'] accessor: ``` var f = function() { } f['someValue'] = 3; ``` This bypasses the type checking. However, it is pretty safe because you have to intentionally access the property the same way: ``` var val = f.someValue; // This won't work...
12,766,528
I want to create a function object, which also has some properties held on it. For example in JavaScript I would do: ``` var f = function() { } f.someValue = 3; ``` Now in TypeScript I can describe the type of this as: ``` var f: { (): any; someValue: number; }; ``` However I can't actually build it, without requ...
2012/10/07
[ "https://Stackoverflow.com/questions/12766528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/664175/" ]
Update: This answer was the best solution in earlier versions of TypeScript, but there are better options available in newer versions (see other answers). The accepted answer works and might be required in some situations, but have the downside of providing no type safety for building up the object. This technique wil...
As a shortcut, you can dynamically assign the object value using the ['property'] accessor: ``` var f = function() { } f['someValue'] = 3; ``` This bypasses the type checking. However, it is pretty safe because you have to intentionally access the property the same way: ``` var val = f.someValue; // This won't work...
12,766,528
I want to create a function object, which also has some properties held on it. For example in JavaScript I would do: ``` var f = function() { } f.someValue = 3; ``` Now in TypeScript I can describe the type of this as: ``` var f: { (): any; someValue: number; }; ``` However I can't actually build it, without requ...
2012/10/07
[ "https://Stackoverflow.com/questions/12766528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/664175/" ]
Old question, but for versions of TypeScript starting with 3.1, you can simply do the property assignment as you would in plain JS, as long as you use a function declaration or the `const` keyword for your variable: ``` function f () {} f.someValue = 3; // fine const g = function () {}; g.someValue = 3; // also fine v...
An updated answer: since the addition of intersection types via `&`, it is possible to "merge" two inferred types on the fly. Here's a general helper that reads the properties of some object `from` and copies them over an object `onto`. It returns the same object `onto` but with a new type that includes both sets of p...
12,766,528
I want to create a function object, which also has some properties held on it. For example in JavaScript I would do: ``` var f = function() { } f.someValue = 3; ``` Now in TypeScript I can describe the type of this as: ``` var f: { (): any; someValue: number; }; ``` However I can't actually build it, without requ...
2012/10/07
[ "https://Stackoverflow.com/questions/12766528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/664175/" ]
This is easily achievable now (typescript 2.x) with `Object.assign(target, source)` example: [![enter image description here](https://i.stack.imgur.com/9EtVw.png)](https://i.stack.imgur.com/9EtVw.png) The magic here is that `Object.assign<T, U>(t: T, u: U)` is typed to return the *intersection* `T & U`. Enforcing...
As a shortcut, you can dynamically assign the object value using the ['property'] accessor: ``` var f = function() { } f['someValue'] = 3; ``` This bypasses the type checking. However, it is pretty safe because you have to intentionally access the property the same way: ``` var val = f.someValue; // This won't work...
3,059,019
INFORMIX-SQL or any other SQL-based DB: Suppose I have an app where depending on the value of some columns, example: ``` company.code char(3) {abc} company.branch char(2) {01} ``` Can I construct table name "abc01" for inclusion in SELECT \* FROM abc01; ? In other words, a variable table name.. same question appli...
2010/06/17
[ "https://Stackoverflow.com/questions/3059019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/366797/" ]
Only in a language which can manipulate character strings and handle Dynamic SQL. It has to create the statement on the fly. You can only use placeholders in queries for values, not for the structural elements of the query such as the table name or column name.
Only if you use dynamic sql. It's like you build sql code in your app, then use something like execute immediate. ``` sprintf(cdb_text1, "create table %s (field1 char(3));", usr_db_id); EXEC SQL execute immediate :cdb_text; ``` If you use dynamic sql, it's bad because of sql injections.
29,549,905
I am trying to create a simple 3D scatter plot but I want to also show a 2D projection of this data on the same figure. This would allow to show a correlation between two of those 3 variables that might be hard to see in a 3D plot. I remember seeing this somewhere before but was not able to find it again. Here is so...
2015/04/09
[ "https://Stackoverflow.com/questions/29549905", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1130635/" ]
You can add 2D projections of your 3D scatter data by using the `plot` method and specifying `zdir`: ``` import numpy as np import matplotlib.pyplot as plt x= np.random.random(100) y= np.random.random(100) z= np.sin(3*x**2+y**2) fig= plt.figure() ax= fig.add_subplot(111, projection= '3d') ax.scatter(x,y,z) ax.plot(...
The other answer works with matplotlib 0.99, but 1.0 and later versions need something a bit different (this code checked with v1.3.1): ``` import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D x= np.random.random(100) y= np.random.random(100) z= np.sin(3*x**2+y**2) fig= plt.figu...
827,893
I have two menu items for dir, mark, regexp, multiple and single on the menu bar in dired mode. While it doesn't affect the usage, but it seems something is wrong and makes me feel uncomfortable. Anyone know what is the cause? Thank you very much!
2014/10/17
[ "https://superuser.com/questions/827893", "https://superuser.com", "https://superuser.com/users/380371/" ]
Do you see this problem already with `emacs -Q`? If not, then try to see which part of your config file triggers this problem.
Someone else has the same issue. Here is the bug report <https://bitbucket.org/lyro/evil/issue/404/dired-menus-are-duplicated>
32,626,809
I'm looking for a way to map "emacs" to "emacs -nw" in powershell. I tried this (screenshot below), and it adds it as an alias, but it doesn't work. However, the command "emacs -nw" works before setting the alias. [![enter image description here](https://i.stack.imgur.com/q4HkM.png)](https://i.stack.imgur.com/q4HkM.pn...
2015/09/17
[ "https://Stackoverflow.com/questions/32626809", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3603899/" ]
try creating a function: ``` function emacs {emacs.exe -nw} ``` then add it to your powershell profile ( `$profile` )
Create a function, but within the function explicitly invoke the .exe : ``` function emacs {emacs.exe -nw} ```
32,626,809
I'm looking for a way to map "emacs" to "emacs -nw" in powershell. I tried this (screenshot below), and it adds it as an alias, but it doesn't work. However, the command "emacs -nw" works before setting the alias. [![enter image description here](https://i.stack.imgur.com/q4HkM.png)](https://i.stack.imgur.com/q4HkM.pn...
2015/09/17
[ "https://Stackoverflow.com/questions/32626809", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3603899/" ]
try creating a function: ``` function emacs {emacs.exe -nw} ``` then add it to your powershell profile ( `$profile` )
I see you have your answers but I just wanted to spell it out here. You created a recursive function. By not specifying the .exe as part of the extension PowerShell was able to match `emacs` back to your function definition. So it would call itself infinitely. You can see this by checking the results of `Get-Command...
32,626,809
I'm looking for a way to map "emacs" to "emacs -nw" in powershell. I tried this (screenshot below), and it adds it as an alias, but it doesn't work. However, the command "emacs -nw" works before setting the alias. [![enter image description here](https://i.stack.imgur.com/q4HkM.png)](https://i.stack.imgur.com/q4HkM.pn...
2015/09/17
[ "https://Stackoverflow.com/questions/32626809", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3603899/" ]
Create a function, but within the function explicitly invoke the .exe : ``` function emacs {emacs.exe -nw} ```
I see you have your answers but I just wanted to spell it out here. You created a recursive function. By not specifying the .exe as part of the extension PowerShell was able to match `emacs` back to your function definition. So it would call itself infinitely. You can see this by checking the results of `Get-Command...
48,583,446
Which one is better: having a BLOB field in the same table or having a 1-TO-1 reference to it in another table? I'm making a MySQL database whose main table is called item(ID, Description). This table is consulted by a program I'm developing in VB.NET which offers the possibility to double-click a specific item obtaine...
2018/02/02
[ "https://Stackoverflow.com/questions/48583446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3802998/" ]
You can add the BLOB field directly to your main table, as BLOB fields are not stored in-row and require a separate look-up to retrieve its contents. Your dependent table is needless. BUT another and preferred way is to store on your database table only a pointer (path to the file on server) to your image file. In thi...
To quote [the documentation about blobs](https://dev.mysql.com/doc/refman/5.7/en/blob.html): > > Each `BLOB` or TEXT value is represented internally by a separately allocated object. This is in contrast to all other data types, for which storage is allocated once per column when the table is opened. > > > In simp...
48,583,446
Which one is better: having a BLOB field in the same table or having a 1-TO-1 reference to it in another table? I'm making a MySQL database whose main table is called item(ID, Description). This table is consulted by a program I'm developing in VB.NET which offers the possibility to double-click a specific item obtaine...
2018/02/02
[ "https://Stackoverflow.com/questions/48583446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3802998/" ]
You can add the BLOB field directly to your main table, as BLOB fields are not stored in-row and require a separate look-up to retrieve its contents. Your dependent table is needless. BUT another and preferred way is to store on your database table only a pointer (path to the file on server) to your image file. In thi...
Most of what has been said in the other Answers is mostly correct. I'll start from scratch, adding some caveats. The two-table, 1-1, design is *usually* better for MyISAM, but not for InnoDB. The rest of my Answer applies only to InnoDB. "Off-record" storage *may* happen to `BLOB`, `TEXT`, and 'large' `VARCHAR` and `...
30,540,835
I am struggling with a problem big time and just can't see how it can be done... so any help appreciated from you SQL gurus! What I have now is a table like this: ``` Sticker Price Cash Price Credit Price Value Yes Yes NULL 107 NULL Yes NULL ...
2015/05/30
[ "https://Stackoverflow.com/questions/30540835", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4955095/" ]
What do you mean by "any subsequent errors then end up failing silently"? If the original promise `rp` fails, the `catch` executes… *at the time of failure.* Once a promise is rejected, that's it, there can be no "subsequent errors." Also, `should` looks like an assertion (e.g. from `chai`) which would suggest that yo...
So apparently the .catch() in promises is basically a wrapper around a JS try-catch. So in order to have subsequent errors logged to the console after already having written one handler, you have to have a second handler to throw the eventual error to the console. More info on GitHub here: <https://github.com/request/...
54,617,134
The problem is incorrect path to remote host, but is not true. I have acces to my server via ftp without problems. All WP files are there and the site is working fine (frontend/backent). I have also access to phpMyAdmin to MySQL datepase binded to this site. I have notce that paht to the web files is differ depend on F...
2019/02/10
[ "https://Stackoverflow.com/questions/54617134", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11041089/" ]
relative pathes resolved by current directory. Solutions: Get script directory and combine with the relative path, something like: ``` require(dirname(__FILE__).'/../../../app.config.php'); ```
You need to use absolute path. A different relative path may be produced if a script is called directly or the script is included in another script. For example: ``` a.php is on path A/B/C the ../../ will result in in A/ b.php is on path A/B/C/D, if it inlcudes the a.php then the ../../ on a.php will result in A/B/....
24,217,412
I am in the process of making a simple racing game using Apple's SceneKit library. I have modeled a left turn section of the race track. I am able to successfully load the model into an SCNGeometry that I can then render. However, I would like to be able to use this model for both a left and right turn segment. To do t...
2014/06/14
[ "https://Stackoverflow.com/questions/24217412", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2351182/" ]
Alright, turns out setting the SCNNode's x scale to -1 does in fact mirror the SCNGeometry.The issue is, when an SCNGeometry is mirrored that way, all of the faces are pointed inwards instead of outwards so none are rendered. If the object's material is changed so that the front faces are culled instead of the back fac...
When you scale the geometry to any "-" negative it flip the normals face. the default for normal faces are "One sided" Set the "Material" property to "Double Sided" with swift it might look like this ``` yourNode.geometry?.firstMaterial?.doubleSided = true ```
24,217,412
I am in the process of making a simple racing game using Apple's SceneKit library. I have modeled a left turn section of the race track. I am able to successfully load the model into an SCNGeometry that I can then render. However, I would like to be able to use this model for both a left and right turn segment. To do t...
2014/06/14
[ "https://Stackoverflow.com/questions/24217412", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2351182/" ]
Alright, turns out setting the SCNNode's x scale to -1 does in fact mirror the SCNGeometry.The issue is, when an SCNGeometry is mirrored that way, all of the faces are pointed inwards instead of outwards so none are rendered. If the object's material is changed so that the front faces are culled instead of the back fac...
If you don't want to change the geometry, but just change the texture, you can do: ``` let flip = SCNMatrix4Translate( SCNMatrix4Scale(material.diffuse.contentsTransform, 1.0, -1.0, 1.0), 0, 1, 0 ) material.diffuse.contentsTransform = flip ``` or directly, ``` material.diffuse.contentsTransform ...
24,217,412
I am in the process of making a simple racing game using Apple's SceneKit library. I have modeled a left turn section of the race track. I am able to successfully load the model into an SCNGeometry that I can then render. However, I would like to be able to use this model for both a left and right turn segment. To do t...
2014/06/14
[ "https://Stackoverflow.com/questions/24217412", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2351182/" ]
If you don't want to change the geometry, but just change the texture, you can do: ``` let flip = SCNMatrix4Translate( SCNMatrix4Scale(material.diffuse.contentsTransform, 1.0, -1.0, 1.0), 0, 1, 0 ) material.diffuse.contentsTransform = flip ``` or directly, ``` material.diffuse.contentsTransform ...
When you scale the geometry to any "-" negative it flip the normals face. the default for normal faces are "One sided" Set the "Material" property to "Double Sided" with swift it might look like this ``` yourNode.geometry?.firstMaterial?.doubleSided = true ```
71,321
My daughter is 8 and has been taking private piano lessons for around 3 months now but will take a break from lessons over the summer. In the fall (when school starts back up) she will be taking cello lessons at school. What if anything can I do with her over the summer on the piano that will help prepare her or make ...
2018/05/25
[ "https://music.stackexchange.com/questions/71321", "https://music.stackexchange.com", "https://music.stackexchange.com/users/10492/" ]
I have a couple of thoughts. First, she will be reading primarily bass clef for cello, so any drilling of those notes in particular will be useful. Also, help her to "forget" her piano fingering. I have piano students who play stringed instruments and discussing fingering is such a pain. I wish there was a universal fi...
Some of your preparation you will probably want to do off of the piano. Work with your student on being able to quickly and easily identify letters that come before other letters, and recite the alphabet backwards from G. This will aid in knowing the note names on the finger board and in the sheet music. Normally peop...
2,042,775
Solve the following recurrence relation by examining the first few values for a formula and then prove your conjectured formula by induction $h\_n=h\_{n-1} -n+3, \ (n\geq 1); \ h\_0=2$ --- Here I've gone all the way to $n=8$ and the only pattern I've noticed is in the differences. By that I mean, --- $h\_0=2$ $h...
2016/12/04
[ "https://math.stackexchange.com/questions/2042775", "https://math.stackexchange.com", "https://math.stackexchange.com/users/373431/" ]
\*\*Hint: \*\*Write it in terms of $n$.$$h\_n = h\_{n-1}-n+3,$$ but $$h\_{n-1}=h\_{n-2}-(n-1)+3,$$ so $$h\_n = h\_{n-2}-n-(n-1)+2\*3,$$ replace it now using $h\_{n-2}=h\_{n-3}-(n-2)+3,$ you will get $$h\_n=h\_{n-3}-(n-2)-(n-1)-n+3\*3,$$ Do it again and again and the pattern will pop out. So what is $h\_{n-k}?$ what ...
You have: $h\_n = (h\_n - h\_{n-1}) + (h\_{n-1} - h\_{n-2})+ ...+ (h\_2 - h\_1) + (h\_1-h\_0) + h\_0 = -n+3 - (n-1) + 3 - (n-2) + 3 + ... + (-1 + 3) + 2 = -(1+2++\cdots + n) + 3n + 2 = $? Can you finish it off?
2,042,775
Solve the following recurrence relation by examining the first few values for a formula and then prove your conjectured formula by induction $h\_n=h\_{n-1} -n+3, \ (n\geq 1); \ h\_0=2$ --- Here I've gone all the way to $n=8$ and the only pattern I've noticed is in the differences. By that I mean, --- $h\_0=2$ $h...
2016/12/04
[ "https://math.stackexchange.com/questions/2042775", "https://math.stackexchange.com", "https://math.stackexchange.com/users/373431/" ]
You noticed the pattern examining the first few values and noticed that the difference between successive terms varies as a linear function of $n$. If you make an analogy with derivatives, this seesm to mean that the terms vary as a quadratic function of $n$.
You have: $h\_n = (h\_n - h\_{n-1}) + (h\_{n-1} - h\_{n-2})+ ...+ (h\_2 - h\_1) + (h\_1-h\_0) + h\_0 = -n+3 - (n-1) + 3 - (n-2) + 3 + ... + (-1 + 3) + 2 = -(1+2++\cdots + n) + 3n + 2 = $? Can you finish it off?
2,042,775
Solve the following recurrence relation by examining the first few values for a formula and then prove your conjectured formula by induction $h\_n=h\_{n-1} -n+3, \ (n\geq 1); \ h\_0=2$ --- Here I've gone all the way to $n=8$ and the only pattern I've noticed is in the differences. By that I mean, --- $h\_0=2$ $h...
2016/12/04
[ "https://math.stackexchange.com/questions/2042775", "https://math.stackexchange.com", "https://math.stackexchange.com/users/373431/" ]
You noticed the pattern examining the first few values and noticed that the difference between successive terms varies as a linear function of $n$. If you make an analogy with derivatives, this seesm to mean that the terms vary as a quadratic function of $n$.
\*\*Hint: \*\*Write it in terms of $n$.$$h\_n = h\_{n-1}-n+3,$$ but $$h\_{n-1}=h\_{n-2}-(n-1)+3,$$ so $$h\_n = h\_{n-2}-n-(n-1)+2\*3,$$ replace it now using $h\_{n-2}=h\_{n-3}-(n-2)+3,$ you will get $$h\_n=h\_{n-3}-(n-2)-(n-1)-n+3\*3,$$ Do it again and again and the pattern will pop out. So what is $h\_{n-k}?$ what ...
47,949,328
I'm trying to pass a json script to curl using powershell. It seems to work if I hard code it right into a variable escaping the double quotes with backslash, but I want to pass the json in a file. I tried putting the json script in a separate json file and then use get-content and throw it in a variable, but it does n...
2017/12/23
[ "https://Stackoverflow.com/questions/47949328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4352563/" ]
Try: ``` $json = Get-Content C:\test.json -Raw ``` By default `Get-Content` loads into an array of strings. The `-Raw` flag forces it to load into a single string. You should also be able to do this and tell curl to read the file itself: ``` curl -v -X POST https://[...] -d @test.json ``` From the man page: > ...
Remember curl in PoSH, is really this... ``` Get-Alias -Name curl CommandType Name ----------- ---- Alias curl -> Invoke-WebRequest ``` ... if you were not aware. The is another alias for Invoke-WebRequest as well. If you want to use true curl in your PoSH session, you must use the full UNC to the executabl...
63,570,652
New to SQL. I have two SQL tables T1 and T2 which looks like the following ``` T1 customer_key X1 X2 X3 1000 60 10 2018-02-01 1001 42 9 2018-02-01 1002 03 1 2018-02-01 1005 15 1 2018-02-01 1002 32 2 2018-02-05 T2 customer_key A1 A2 A3 1001 20 2 2018-02-17 100...
2020/08/25
[ "https://Stackoverflow.com/questions/63570652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7933418/" ]
Full outer join with filtering is just confusing. I recommend filtering in subqueries: ``` select T1.customer_key, T3.customer_key, T1.X1, T1.X2 from (select t1.* from T1 where T1.X3 = '2018-02-01' ) t1 full outer join (select t2.* from T2 where T2.A3 = '2018-02-17' ) t2 on ...
When you join tables via `FULL OUTER JOIN`, the query engine finds all matched records (`INNER JOIN`) and also add any unmatched records from both tables to the `JOIN` result set. The latter have `NULL`s in all columns for the other table. So for example, `customer = 1000` in `T1` will be included in the `JOIN` result...
68,276,673
Assume I have `df1`: ``` df1= pd.DataFrame({'alligator_apple': range(1, 11), 'barbadine': range(11, 21), 'capulin_cherry': range(21, 31)}) alligator_apple barbadine capulin_cherry 0 1 11 21 1 2 12 22 2 ...
2021/07/06
[ "https://Stackoverflow.com/questions/68276673", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11133739/" ]
I just had the same issue and fixed it. So, you probably installed jest globally on accident. In doing so, it likely ended up installed inside of `users/yourname/node-modules/`. If you can pull up a terminal, try doing a `cd` into `node-modules` from your home folder then do a `ls -a`. If you see `babel-jest`, do a `rm...
You probably installed a different global (npm install -g) version that is currently conflicting with the one you installed in your project. You can quite literally delete the folder `babel-jest` inside `C:\Users\YV\node_modules\` and try again. I would assume you're doing this by using create-react-app. Rest assured ...
2,314,781
I have a class which sets an alarm but I need to set around 10 more of these alarms. Instead of duplicating classes, is there a way I can just make a new instance of the class and set the alarm time? Here's my code. ``` import java.util.Calendar; import java.lang.String; import android.app.Activity; import androi...
2010/02/22
[ "https://Stackoverflow.com/questions/2314781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/264905/" ]
Can't you just create one Calendar instance in onCreate(), set its parameters, then pass the instance to setAlarm(), modify the instance, call setAlarm(), etc, or am I missing something? e.g. - ``` public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.m...
You can only have one activity in the foreground so to call setAlarm 10 times you would need to go an alternative route. Maybe loop? ;)
978,052
I have Alienware 15 R3 with: * 512GB NVME SSD - Windows 10. * 1TB HDD - 300GB free space available. I would like to install Ubuntu using the free space available in 1TB HDD. I have experience installing Dual Boot Ubuntu on my old laptop, but after a Windows 10 auto-update, the boot loader got corrupted. So, how sho...
2017/11/19
[ "https://askubuntu.com/questions/978052", "https://askubuntu.com", "https://askubuntu.com/users/136502/" ]
I have been having this issue for a while and I found an answer to a similar questions [here](https://askubuntu.com/questions/31786/chrome-asks-for-password-to-unlock-keyring-on-startup#answer-968149) that seems to resolve this. In short, copy `google-chrome.desktop` file to your home folder and edit it to use the 'Bas...
Chrome has fixed the bug and now available as per this bug report <https://bugs.chromium.org/p/chromium/issues/detail?id=571003>
9,970,713
I am having real trouble with provisioning and code signing issues. I have migrated to a new computer and have a bunch of "Valid signing identity not found" messages. In repeated attempts to fix distribution code signing I have managed to lose my developer code signing as well. I am the first to admit that the root pr...
2012/04/02
[ "https://Stackoverflow.com/questions/9970713", "https://Stackoverflow.com", "https://Stackoverflow.com/users/401543/" ]
**Step 1**: Open XCode. In the Organizer, delete all provisioning profiles. **Step 2**: Open Keychain Access (Utilities>Keychain Access); delete all certificates related to developer/distribution and the WWDCCA (or whatever it's called) intermediate certificate. **Step 3**: Re-download and resign. Make sure you expor...
Have a look at this tutorial here. You may find this helpful <http://seventhsoulmountain.blogspot.com/2013/09/ios-code-sign-in-complete-walkthrough.html>
57,362,904
I'll try to simplify my question: I have a div container with a fixed height of 200px. Inside, I have a flexbox that shows vertical items. Each item has a FIXED height which should not change. I use `overflow: hidden` to prevent the last item to break out of that 200px. This works well. **This is what I have with `o...
2019/08/05
[ "https://Stackoverflow.com/questions/57362904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/282918/" ]
First Thing : you should get benefits from using react: To make Content Dynamically I'll add `gridItem` to state so that they're rendered dynamically. ``` state = { items: [ "1", "2", "3", " 4 I want this hidden, its partially visible", "5 I want this hidden, its partially visible" ...
why not test elements with `document.getElementById('element').clientHeight`? check the container size and find which element is visible or not.
57,362,904
I'll try to simplify my question: I have a div container with a fixed height of 200px. Inside, I have a flexbox that shows vertical items. Each item has a FIXED height which should not change. I use `overflow: hidden` to prevent the last item to break out of that 200px. This works well. **This is what I have with `o...
2019/08/05
[ "https://Stackoverflow.com/questions/57362904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/282918/" ]
You could use the flexbox columns to send the overflowing items to another column and set the width to the width of the container to hide the items if you want to achieve this by plain flexbox css properties like you mentioned in the question. <https://jsfiddle.net/kna61edz/> ```css .gridContainer { display: flex;...
why not test elements with `document.getElementById('element').clientHeight`? check the container size and find which element is visible or not.
57,362,904
I'll try to simplify my question: I have a div container with a fixed height of 200px. Inside, I have a flexbox that shows vertical items. Each item has a FIXED height which should not change. I use `overflow: hidden` to prevent the last item to break out of that 200px. This works well. **This is what I have with `o...
2019/08/05
[ "https://Stackoverflow.com/questions/57362904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/282918/" ]
First Thing : you should get benefits from using react: To make Content Dynamically I'll add `gridItem` to state so that they're rendered dynamically. ``` state = { items: [ "1", "2", "3", " 4 I want this hidden, its partially visible", "5 I want this hidden, its partially visible" ...
You could use the flexbox columns to send the overflowing items to another column and set the width to the width of the container to hide the items if you want to achieve this by plain flexbox css properties like you mentioned in the question. <https://jsfiddle.net/kna61edz/> ```css .gridContainer { display: flex;...
16,602,277
I am trying to use the @Scheduled feature. I have followed [this](http://krams915.blogspot.com/2011/01/spring-3-task-scheduling-via.html) and [this](http://blog.springsource.com/2010/01/05/task-scheduling-simplifications-in-spring-3-0/) tutorials but I can not get my scheduled task to be executed. I have created a wor...
2013/05/17
[ "https://Stackoverflow.com/questions/16602277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/162345/" ]
`<context:annotation-config />` does not detect beans - it just processes the annotations on declared beans. Which means your `@Service` is not actually turned into a bean. Use `<context:component-scan base-package="com.yourcomany" />` instead.
I faced the same problem, but the cause was different. I had to add in my top project the following: ``` <task:annotation-driven /> ``` When you add this, don't forget to also add to the correct place in your application context: ``` xmlns:task="http://www.springframework.org/schema/task" ``` and: ``` http://www...
22,468,622
While using resque-scheduler to set\_schedule dynamic cron jobs based on user's input the schedules seem to be set but the worker never actually starts at the set schedule. In the Resque configuration dynamic is set to true like so: Resque::Scheduler.dynamic = true And I am setting the schedule like so: ``` name =...
2014/03/18
[ "https://Stackoverflow.com/questions/22468622", "https://Stackoverflow.com", "https://Stackoverflow.com/users/664675/" ]
You probably forgot to start the scheduler with the `DYNAMIC_SCHEDULE` environment variable set to `true`. Here is the command I use to start the scheduler: ``` DYNAMIC_SCHEDULE=true rake resque:scheduler ``` Quote from README: > > DYNAMIC\_SCHEDULE - Enables dynamic scheduling if non-empty (default > false) > ...
Make sure you have queue task running. So your scheduled task will get picked up by the queue. ``` QUEUE=* rake resque:work ``` Set the cron job and try again after issuing that command
22,468,622
While using resque-scheduler to set\_schedule dynamic cron jobs based on user's input the schedules seem to be set but the worker never actually starts at the set schedule. In the Resque configuration dynamic is set to true like so: Resque::Scheduler.dynamic = true And I am setting the schedule like so: ``` name =...
2014/03/18
[ "https://Stackoverflow.com/questions/22468622", "https://Stackoverflow.com", "https://Stackoverflow.com/users/664675/" ]
I actually solved my issue by using the following commands: bundle exec rake environment resque:work bundle exec rake resque:scheduler Turns out by not using Bundle Exec the schedule would not get picked up. I have not tried the environment variable command up there, but I will tomorrow and if that works out I'll giv...
Make sure you have queue task running. So your scheduled task will get picked up by the queue. ``` QUEUE=* rake resque:work ``` Set the cron job and try again after issuing that command
22,468,622
While using resque-scheduler to set\_schedule dynamic cron jobs based on user's input the schedules seem to be set but the worker never actually starts at the set schedule. In the Resque configuration dynamic is set to true like so: Resque::Scheduler.dynamic = true And I am setting the schedule like so: ``` name =...
2014/03/18
[ "https://Stackoverflow.com/questions/22468622", "https://Stackoverflow.com", "https://Stackoverflow.com/users/664675/" ]
You probably forgot to start the scheduler with the `DYNAMIC_SCHEDULE` environment variable set to `true`. Here is the command I use to start the scheduler: ``` DYNAMIC_SCHEDULE=true rake resque:scheduler ``` Quote from README: > > DYNAMIC\_SCHEDULE - Enables dynamic scheduling if non-empty (default > false) > ...
I actually solved my issue by using the following commands: bundle exec rake environment resque:work bundle exec rake resque:scheduler Turns out by not using Bundle Exec the schedule would not get picked up. I have not tried the environment variable command up there, but I will tomorrow and if that works out I'll giv...
21,324,330
How can I get `[jobNo]` using loop from array below? ```none Array ( [date] => 2014-01-13 [totcomdraft] => 400 [comdraft] => 0 [0] => Array ( [jobNo] => 1401018618 [dateType] => 1 [comdraft] => 200 ) [1] => Array ( [jobNo] =>...
2014/01/24
[ "https://Stackoverflow.com/questions/21324330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1325668/" ]
Try this ``` foreach($array as $key=>$val){ if(is_array($val)){ echo $val["jobNo"]; echo "<br />"; } } ```
``` for( $i = 0; $ < count($array); $i++ ) { print $array[$i]['jobNo'] . "<br>"; } ```
21,324,330
How can I get `[jobNo]` using loop from array below? ```none Array ( [date] => 2014-01-13 [totcomdraft] => 400 [comdraft] => 0 [0] => Array ( [jobNo] => 1401018618 [dateType] => 1 [comdraft] => 200 ) [1] => Array ( [jobNo] =>...
2014/01/24
[ "https://Stackoverflow.com/questions/21324330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1325668/" ]
Try this ``` foreach($array as $key=>$val){ if(is_array($val)){ echo $val["jobNo"]; echo "<br />"; } } ```
try with array in-built function :- ``` $result_array=array_map(function($input_array) { return $input_array['desired_column']; },$input_array_original ); ```
21,324,330
How can I get `[jobNo]` using loop from array below? ```none Array ( [date] => 2014-01-13 [totcomdraft] => 400 [comdraft] => 0 [0] => Array ( [jobNo] => 1401018618 [dateType] => 1 [comdraft] => 200 ) [1] => Array ( [jobNo] =>...
2014/01/24
[ "https://Stackoverflow.com/questions/21324330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1325668/" ]
Try this ``` foreach($array as $key=>$val){ if(is_array($val)){ echo $val["jobNo"]; echo "<br />"; } } ```
Use This ``` foreach($array as $key=>$val){ if(is_array($val)){ // check this value in array echo $val["jobNo"]; echo "<br />"; } } ```
21,324,330
How can I get `[jobNo]` using loop from array below? ```none Array ( [date] => 2014-01-13 [totcomdraft] => 400 [comdraft] => 0 [0] => Array ( [jobNo] => 1401018618 [dateType] => 1 [comdraft] => 200 ) [1] => Array ( [jobNo] =>...
2014/01/24
[ "https://Stackoverflow.com/questions/21324330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1325668/" ]
Try this ``` foreach($array as $key=>$val){ if(is_array($val)){ echo $val["jobNo"]; echo "<br />"; } } ```
This code should work. I have tested. ``` $array = array ( 'date' => '2014-01-13', 'totcomdraft' => 400, 'comdraft' => 0, '0' => array ( 'jobNo' => 1401018618, 'dateType' => 1, 'comdraft' => 200 ), '1' => array ( 'jobNo' => 1401018615, 'dateType...
4,404,711
The **differential equation** is the following: $ydx+(\frac{y^2}{4}-2x)dy=0$ It can be written as: $\frac{y}{2x-\frac{y^2}{4}}=\frac{dy}{dx}$ However, this is not the linear shape. So we rewrite the equation as: $\frac{2x-\frac{y^2}{4}}{y}=\frac{dx}{dy}\to\frac{dx}{dy}-\frac{2x}{y}=-\frac{y}{4}$ The **integrating...
2022/03/16
[ "https://math.stackexchange.com/questions/4404711", "https://math.stackexchange.com", "https://math.stackexchange.com/users/986528/" ]
You can not just apply the integrating factor to the original equation. You need to apply it to the equation that you computed it for. $$ \frac1{y^2}\frac{xy}{xy}-\frac{2x}{y^3}=-\frac1{4y} $$ is nicely integrable.
$$ydx+(\frac{y^2}{4}-2x)dy=0$$ $$y\dfrac {dx}{dy}+(\frac{y^2}{4}-2x)=0$$ $$y\dfrac {dx}{dy}-2x=-\frac{y^2}{4}$$ The integrating factor is easy to find now. $$y^2\dfrac {dx}{dy}-2yx=-\frac{y^3}{4}$$ $$\dfrac {y^2\dfrac {dx}{dy}-2yx}{y^4}=-\frac{1}{4y}$$ $$\left (\dfrac {x}{y^2}\right)'=-\frac{1}{4y}$$ As @Moo commented ...
24,398,937
I have a flask running at domain.com I also have another flask instance on another server running at username.domain.com Normally user logs in through domain.com However, for paying users they are suppose to login at username.domain.com Using flask, how can I make sure that sessions are shared between domain.com an...
2014/06/25
[ "https://Stackoverflow.com/questions/24398937", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2982246/" ]
**EDIT: Later, after reading your full question I noticed the original answer is not what you're looking for.** I've left the original at the bottom of this answer for Googlers, but the revised version is below. Cookies are automatically sent to subdomains on a domain (in most modern browsers the domain name must con...
You can do this with the builtin Flask sessions, which are cookie-based client-side sessions. To allow users to login to multiple subdomains in '.domain.com', you need only to specify ``` app.config['SESSION_COOKIE_DOMAIN'] = '.domain.com' ``` and the client's browser will have a session cookie that allows him to l...
8,412,530
I have a hash with the following key/value pair ``` 4 => model1 2 => model2 ``` I want the following string created from the above hash ``` 4 X model1 , 2 X model2 ``` I tried the following ``` my %hash, foreach my $keys (keys %hash) { my $string = $string . join(' X ',$keys,$hash{$keys}); } print $string; ...
2011/12/07
[ "https://Stackoverflow.com/questions/8412530", "https://Stackoverflow.com", "https://Stackoverflow.com/users/238021/" ]
You could do: ``` my %hash = (4 => "model1", 2 => "model2"); my $str = join(", ", map { "$_ X $hash{$_}" } keys %hash); print $str; ``` Output: ``` 4 X model1, 2 X model2 ``` How it works: `map { expr } list` evaluates `expr` for every item in `list`, and returns the list that contains all the results of these e...
You can also modify your loop as follows: ``` my @tokens =(); foreach my $key (keys %hash) { push @tokens, $string . join(' X ',$key, $hash{$key}); } print join(', ' , @tokens); ```
3,913,574
As the title implies, I want to compare two objects whose type may be diffrent. For eg, I expects 'true' for comparing 1000.0(Decimal) with 1000(Double) . Similary, it should return true if I compare 10(string) and 10(double) . I tried to compare using Object.Equals() , but it did NOT work.It return false if two obje...
2010/10/12
[ "https://Stackoverflow.com/questions/3913574", "https://Stackoverflow.com", "https://Stackoverflow.com/users/364412/" ]
Try this: ``` Dim oldVal As Object 'assgin some value Dim newVal As Object 'assgin some value Dim b As Boolean = False If IsNumeric(oldVal) And IsNumeric(newVal) Then b = (Val(oldVal) = Val(newVal)) ElseIf IsDate(oldVal) And IsDate(newVal) Then b = (CDate(oldVal) = CDate(newVal)) Else b = (oldVal.ToStri...
Mixing pears and apples? :) Equals does equality comparison (the eefault implementation of Equals tests for referential equality). While "=" does identity comparison. If you need a different behaviour for comparing two objects, then define an Equals method and/or a CompareTo method. To compare integers with doubles, ...
3,913,574
As the title implies, I want to compare two objects whose type may be diffrent. For eg, I expects 'true' for comparing 1000.0(Decimal) with 1000(Double) . Similary, it should return true if I compare 10(string) and 10(double) . I tried to compare using Object.Equals() , but it did NOT work.It return false if two obje...
2010/10/12
[ "https://Stackoverflow.com/questions/3913574", "https://Stackoverflow.com", "https://Stackoverflow.com/users/364412/" ]
Try this: ``` Dim oldVal As Object 'assgin some value Dim newVal As Object 'assgin some value Dim b As Boolean = False If IsNumeric(oldVal) And IsNumeric(newVal) Then b = (Val(oldVal) = Val(newVal)) ElseIf IsDate(oldVal) And IsDate(newVal) Then b = (CDate(oldVal) = CDate(newVal)) Else b = (oldVal.ToStri...
[Object.Equals](http://msdn.microsoft.com/en-us/library/w4hkze5k.aspx) considers two value objects equal when they (a) have the **same binary representation** and (b) are bitwise equal, so basically it will always return false for different value types. You can try to convert all values to double using [Convert.ToDoub...
3,913,574
As the title implies, I want to compare two objects whose type may be diffrent. For eg, I expects 'true' for comparing 1000.0(Decimal) with 1000(Double) . Similary, it should return true if I compare 10(string) and 10(double) . I tried to compare using Object.Equals() , but it did NOT work.It return false if two obje...
2010/10/12
[ "https://Stackoverflow.com/questions/3913574", "https://Stackoverflow.com", "https://Stackoverflow.com/users/364412/" ]
Try this: ``` Dim oldVal As Object 'assgin some value Dim newVal As Object 'assgin some value Dim b As Boolean = False If IsNumeric(oldVal) And IsNumeric(newVal) Then b = (Val(oldVal) = Val(newVal)) ElseIf IsDate(oldVal) And IsDate(newVal) Then b = (CDate(oldVal) = CDate(newVal)) Else b = (oldVal.ToStri...
You've basically described the standard behaviour of VB.Net if you use `Option Strict Off`? So just use `Option Strict Off` and then write `a = b` In fact I recommend you do not do this as it is very likely to introduce bugs :) Can you explain why you need this behaviour?
3,913,574
As the title implies, I want to compare two objects whose type may be diffrent. For eg, I expects 'true' for comparing 1000.0(Decimal) with 1000(Double) . Similary, it should return true if I compare 10(string) and 10(double) . I tried to compare using Object.Equals() , but it did NOT work.It return false if two obje...
2010/10/12
[ "https://Stackoverflow.com/questions/3913574", "https://Stackoverflow.com", "https://Stackoverflow.com/users/364412/" ]
Try this: ``` Dim oldVal As Object 'assgin some value Dim newVal As Object 'assgin some value Dim b As Boolean = False If IsNumeric(oldVal) And IsNumeric(newVal) Then b = (Val(oldVal) = Val(newVal)) ElseIf IsDate(oldVal) And IsDate(newVal) Then b = (CDate(oldVal) = CDate(newVal)) Else b = (oldVal.ToStri...
there are a couple of ways you could do this, below is the one i feel that is closest to what you're looking for, though personally I dont think its a good way to structure your solution. ``` Dim fooObj As New Foo Dim barObj As New Bar fooObj.Value = 10 barObj.Value = 10 System.Diagnostics.Debug.WriteLine(barObj.Eq...
49,748,378
I am currently creating a math's quiz for kids in python tkinter. In this quiz i have 3 different 'pages' as per say. A start page, a quiz page and a score page for when the quiz is finished. In my start page, i have three different difficulties of the quiz the user can choose from. How do i essentially clear elements ...
2018/04/10
[ "https://Stackoverflow.com/questions/49748378", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9623512/" ]
You could use a tabbed view and switch the tabs according to the difficulty selected (see tkinter notebooks <https://docs.python.org/3.1/library/tkinter.ttk.html#notebook>) Or you could have the quiz in their selected difficulty in their own windows.
I would suggest you to use different frames that can be pushed on top of each other. Have a look at this answer [Switch between two frames in tkinter](https://stackoverflow.com/questions/7546050/switch-between-two-frames-in-tkinter).
49,748,378
I am currently creating a math's quiz for kids in python tkinter. In this quiz i have 3 different 'pages' as per say. A start page, a quiz page and a score page for when the quiz is finished. In my start page, i have three different difficulties of the quiz the user can choose from. How do i essentially clear elements ...
2018/04/10
[ "https://Stackoverflow.com/questions/49748378", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9623512/" ]
If you put all your widgets in one frame, inside the window, like this: ``` root=Tk() main=Frame(root) main.pack() widget=Button(main, text='whatever', command=dosomething) widget.pack() etc. ``` Then you can clear the screen like this: ``` main.destroy() main=Frame(root) ``` Or in a button: ``` def clear(): ...
I would suggest you to use different frames that can be pushed on top of each other. Have a look at this answer [Switch between two frames in tkinter](https://stackoverflow.com/questions/7546050/switch-between-two-frames-in-tkinter).
1,395
This question is for anyone who has learned programming in a Spanish speaking country. Seeing as though the key words for programming languages like Java, C, Python etc are all in English I have a couple of questions: * Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite? * Do ...
2012/01/16
[ "https://spanish.stackexchange.com/questions/1395", "https://spanish.stackexchange.com", "https://spanish.stackexchange.com/users/312/" ]
Keywords aren't changed and their meaning is explained. But almost everything else is in Spanish, because concepts are taught in Spanish and have their own Spanish terminology, and exercises reflect that. I mean, if the lesson was about trees or stacks, it would be taught in terms of "árboles" and "pilas", and the prog...
I learned programming in French. Since French is of the same root it is fair to assume it is the same in Spanish. I followed programming courses in highschool in my native country as well (Colombia, where spanish is spoken) and it was the same as in France. > > **Do courses in Spanish speaking countries expect some k...
1,395
This question is for anyone who has learned programming in a Spanish speaking country. Seeing as though the key words for programming languages like Java, C, Python etc are all in English I have a couple of questions: * Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite? * Do ...
2012/01/16
[ "https://spanish.stackexchange.com/questions/1395", "https://spanish.stackexchange.com", "https://spanish.stackexchange.com/users/312/" ]
I'm a Mexican telecommunications engineer, and here's how it went for me: > > Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite? > > > Usually not, but it's a *very* good idea to start with some cursory knowledge of English. > > Do they teach you what English keywords m...
This is from a long time ago. After I learned to program in ANSII Basic I once started reading a book called "Basic in Spanish" I threw it away the very first day since it didn't make sense to relearn every single keyword in Spanish.
1,395
This question is for anyone who has learned programming in a Spanish speaking country. Seeing as though the key words for programming languages like Java, C, Python etc are all in English I have a couple of questions: * Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite? * Do ...
2012/01/16
[ "https://spanish.stackexchange.com/questions/1395", "https://spanish.stackexchange.com", "https://spanish.stackexchange.com/users/312/" ]
How it looks in Spain: > > Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite? > > > Not in Spain. Obviously it's a plus if someone can, but most people don't understand English and it's not a requirement. All of terminology is translated. > > Do they teach you what Eng...
This is an old question, but still relevant I think, and I just came across it today. **Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite?** Most other answers here say you don't need to know English as a prerequisite. Although I'm sure it varies widely from university to u...
1,395
This question is for anyone who has learned programming in a Spanish speaking country. Seeing as though the key words for programming languages like Java, C, Python etc are all in English I have a couple of questions: * Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite? * Do ...
2012/01/16
[ "https://spanish.stackexchange.com/questions/1395", "https://spanish.stackexchange.com", "https://spanish.stackexchange.com/users/312/" ]
I learned to program in Spanish, in Peru. > > Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite? > > > No, they don't expect you to know English. I'm very sure on this point. Sometimes even teachers don't know English. On the other hand, most people can read documentation...
This is from a long time ago. After I learned to program in ANSII Basic I once started reading a book called "Basic in Spanish" I threw it away the very first day since it didn't make sense to relearn every single keyword in Spanish.
1,395
This question is for anyone who has learned programming in a Spanish speaking country. Seeing as though the key words for programming languages like Java, C, Python etc are all in English I have a couple of questions: * Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite? * Do ...
2012/01/16
[ "https://spanish.stackexchange.com/questions/1395", "https://spanish.stackexchange.com", "https://spanish.stackexchange.com/users/312/" ]
Keywords aren't changed and their meaning is explained. But almost everything else is in Spanish, because concepts are taught in Spanish and have their own Spanish terminology, and exercises reflect that. I mean, if the lesson was about trees or stacks, it would be taught in terms of "árboles" and "pilas", and the prog...
From DO (Dominican Republic) ============================ > > Do courses in Spanish speaking countries expect some knowledge of > English as a prerequisite? > > > Formally, no. Some technical courses (outside universities) use to accept anyone no matter their English (spoken, read, or written). Some are conseque...
1,395
This question is for anyone who has learned programming in a Spanish speaking country. Seeing as though the key words for programming languages like Java, C, Python etc are all in English I have a couple of questions: * Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite? * Do ...
2012/01/16
[ "https://spanish.stackexchange.com/questions/1395", "https://spanish.stackexchange.com", "https://spanish.stackexchange.com/users/312/" ]
I learned to program in Spanish, in Peru. > > Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite? > > > No, they don't expect you to know English. I'm very sure on this point. Sometimes even teachers don't know English. On the other hand, most people can read documentation...
I learned programming in French. Since French is of the same root it is fair to assume it is the same in Spanish. I followed programming courses in highschool in my native country as well (Colombia, where spanish is spoken) and it was the same as in France. > > **Do courses in Spanish speaking countries expect some k...
1,395
This question is for anyone who has learned programming in a Spanish speaking country. Seeing as though the key words for programming languages like Java, C, Python etc are all in English I have a couple of questions: * Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite? * Do ...
2012/01/16
[ "https://spanish.stackexchange.com/questions/1395", "https://spanish.stackexchange.com", "https://spanish.stackexchange.com/users/312/" ]
Keywords aren't changed and their meaning is explained. But almost everything else is in Spanish, because concepts are taught in Spanish and have their own Spanish terminology, and exercises reflect that. I mean, if the lesson was about trees or stacks, it would be taught in terms of "árboles" and "pilas", and the prog...
This is an old question, but still relevant I think, and I just came across it today. **Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite?** Most other answers here say you don't need to know English as a prerequisite. Although I'm sure it varies widely from university to u...
1,395
This question is for anyone who has learned programming in a Spanish speaking country. Seeing as though the key words for programming languages like Java, C, Python etc are all in English I have a couple of questions: * Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite? * Do ...
2012/01/16
[ "https://spanish.stackexchange.com/questions/1395", "https://spanish.stackexchange.com", "https://spanish.stackexchange.com/users/312/" ]
I learned programming in French. Since French is of the same root it is fair to assume it is the same in Spanish. I followed programming courses in highschool in my native country as well (Colombia, where spanish is spoken) and it was the same as in France. > > **Do courses in Spanish speaking countries expect some k...
This is from a long time ago. After I learned to program in ANSII Basic I once started reading a book called "Basic in Spanish" I threw it away the very first day since it didn't make sense to relearn every single keyword in Spanish.
1,395
This question is for anyone who has learned programming in a Spanish speaking country. Seeing as though the key words for programming languages like Java, C, Python etc are all in English I have a couple of questions: * Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite? * Do ...
2012/01/16
[ "https://spanish.stackexchange.com/questions/1395", "https://spanish.stackexchange.com", "https://spanish.stackexchange.com/users/312/" ]
I'm a Mexican telecommunications engineer, and here's how it went for me: > > Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite? > > > Usually not, but it's a *very* good idea to start with some cursory knowledge of English. > > Do they teach you what English keywords m...
From DO (Dominican Republic) ============================ > > Do courses in Spanish speaking countries expect some knowledge of > English as a prerequisite? > > > Formally, no. Some technical courses (outside universities) use to accept anyone no matter their English (spoken, read, or written). Some are conseque...
1,395
This question is for anyone who has learned programming in a Spanish speaking country. Seeing as though the key words for programming languages like Java, C, Python etc are all in English I have a couple of questions: * Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite? * Do ...
2012/01/16
[ "https://spanish.stackexchange.com/questions/1395", "https://spanish.stackexchange.com", "https://spanish.stackexchange.com/users/312/" ]
How it looks in Spain: > > Do courses in Spanish speaking countries expect some knowledge of English as a prerequisite? > > > Not in Spain. Obviously it's a plus if someone can, but most people don't understand English and it's not a requirement. All of terminology is translated. > > Do they teach you what Eng...
From DO (Dominican Republic) ============================ > > Do courses in Spanish speaking countries expect some knowledge of > English as a prerequisite? > > > Formally, no. Some technical courses (outside universities) use to accept anyone no matter their English (spoken, read, or written). Some are conseque...
27,612,785
I have a bunch of different show times in a database and want to display the correct time based on the users time zone by creating an offset. I'm getting the users time zone offset from GMT and converting that to hours first. ``` NSTimeZone.localTimeZone().secondsFromGMT / 60 / 60 ``` Then I need to find a way to a...
2014/12/23
[ "https://Stackoverflow.com/questions/27612785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3712837/" ]
I would use the [dateByAddingTimeInterval](https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSDate_Class/index.html%23//apple_ref/occ/instm/NSDate/dateByAddingTimeInterval:) function to add and subtract hours. Add a to the dateFormat string to print am or pm. ``` var showTimeStr...
Here is my final code, combined with b.Morgans answer. I believe it's all working now. ``` let offsetTime = NSTimeInterval(NSTimeZone.localTimeZone().secondsFromGMT) var showTimeStr = "05:00 PM" //show time in GMT as String let formatter = NSDateFormatter() formatter.dateFormat = "h:mm a" let showTime = formatter.dat...
27,612,785
I have a bunch of different show times in a database and want to display the correct time based on the users time zone by creating an offset. I'm getting the users time zone offset from GMT and converting that to hours first. ``` NSTimeZone.localTimeZone().secondsFromGMT / 60 / 60 ``` Then I need to find a way to a...
2014/12/23
[ "https://Stackoverflow.com/questions/27612785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3712837/" ]
If you want to convert a show time which is stored as a string in GMT, and you want to show it in the user's local time zone, you should *not* be manually adjusting the `NSDate`/`Date` objects. You should be simply using the appropriate time zones with the formatter. For example, in Swift 3: ``` let gmtTimeString = "5...
I would use the [dateByAddingTimeInterval](https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSDate_Class/index.html%23//apple_ref/occ/instm/NSDate/dateByAddingTimeInterval:) function to add and subtract hours. Add a to the dateFormat string to print am or pm. ``` var showTimeStr...
27,612,785
I have a bunch of different show times in a database and want to display the correct time based on the users time zone by creating an offset. I'm getting the users time zone offset from GMT and converting that to hours first. ``` NSTimeZone.localTimeZone().secondsFromGMT / 60 / 60 ``` Then I need to find a way to a...
2014/12/23
[ "https://Stackoverflow.com/questions/27612785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3712837/" ]
If you want to convert a show time which is stored as a string in GMT, and you want to show it in the user's local time zone, you should *not* be manually adjusting the `NSDate`/`Date` objects. You should be simply using the appropriate time zones with the formatter. For example, in Swift 3: ``` let gmtTimeString = "5...
Here is my final code, combined with b.Morgans answer. I believe it's all working now. ``` let offsetTime = NSTimeInterval(NSTimeZone.localTimeZone().secondsFromGMT) var showTimeStr = "05:00 PM" //show time in GMT as String let formatter = NSDateFormatter() formatter.dateFormat = "h:mm a" let showTime = formatter.dat...
46,672
As a puzzle author, I often write puzzles with red ink and then test-solve them with pencil. What would be the most efficient way to remove the pencil and blue gridlines from the paper to leave only the red puzzle clues behind?
2015/01/31
[ "https://graphicdesign.stackexchange.com/questions/46672", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/26073/" ]
As one who has typeset a thick mathematical book (written by various contributors), I would make two points in favour of Computer Modern. First, the lower-case italic *v* and the lower-case Greek *ν* are clearly distinguished. Second, parentheses rise higher than ascending letters, so that items in parentheses look m...
Yes it is! It's well-designed as a text font, and it has small caps and text figures. But it was designed a long time ago and there are a few oddities: - and – are at very different heights and some modern currency symbols are a problem, the € was clearly not added by the font's original designer and ₹ is missing (a co...
86,573
I'm using Parallels on my mac. But when I open a software the font are so small, it's very weird. Can anyone help me out!!! ![The tool bar of chrome is so small](https://i.stack.imgur.com/zgQM4.png) The picture above is when I open up my chrome, how can I fix it?
2013/03/24
[ "https://apple.stackexchange.com/questions/86573", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/26496/" ]
I've seen this particular problem many times, and a lot of it has to do with how Windows handles DPI scaling. Since you are using a Retina MBP - which has an extremely high resolution, you'll want Parallels to manage the DPI of your Windows VM. You can do this under your Virtual Machine's configuration, Hardware, Vide...
I had the exact same problem. I went a different route, and decided to sacrifice the nice high-DPI of the Retina for a scaled solution that makes everything look right. 1. In Parallels VM Config → Hardware → Video → Resolution Use: **Scaled** Not: Best for Retina, More Space 2. Restart VM 3. Windows Display Settin...
86,573
I'm using Parallels on my mac. But when I open a software the font are so small, it's very weird. Can anyone help me out!!! ![The tool bar of chrome is so small](https://i.stack.imgur.com/zgQM4.png) The picture above is when I open up my chrome, how can I fix it?
2013/03/24
[ "https://apple.stackexchange.com/questions/86573", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/26496/" ]
I've seen this particular problem many times, and a lot of it has to do with how Windows handles DPI scaling. Since you are using a Retina MBP - which has an extremely high resolution, you'll want Parallels to manage the DPI of your Windows VM. You can do this under your Virtual Machine's configuration, Hardware, Vide...
All my coworkers had the same problem. In Parallels 9, you can set for every VM if it should be **scaled**, **best for retina** or **more space**. As DPI scaling under Windows is inherently broken, as application developers have to support this, and many just don't, it's not useful you can configure this at all, which ...
86,573
I'm using Parallels on my mac. But when I open a software the font are so small, it's very weird. Can anyone help me out!!! ![The tool bar of chrome is so small](https://i.stack.imgur.com/zgQM4.png) The picture above is when I open up my chrome, how can I fix it?
2013/03/24
[ "https://apple.stackexchange.com/questions/86573", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/26496/" ]
I've seen this particular problem many times, and a lot of it has to do with how Windows handles DPI scaling. Since you are using a Retina MBP - which has an extremely high resolution, you'll want Parallels to manage the DPI of your Windows VM. You can do this under your Virtual Machine's configuration, Hardware, Vide...
I have a new solution for this,set the video properties to "Scaled" and the video memory to 256MB. ![Parallels Settings](https://i.stack.imgur.com/XHOJD.png) One's you do this , go back to your windows--> Control Panel --> Display --> Set it to Smaller(100%). check the Screen Resolution now it shows 1436\*756 on a M...
86,573
I'm using Parallels on my mac. But when I open a software the font are so small, it's very weird. Can anyone help me out!!! ![The tool bar of chrome is so small](https://i.stack.imgur.com/zgQM4.png) The picture above is when I open up my chrome, how can I fix it?
2013/03/24
[ "https://apple.stackexchange.com/questions/86573", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/26496/" ]
I've seen this particular problem many times, and a lot of it has to do with how Windows handles DPI scaling. Since you are using a Retina MBP - which has an extremely high resolution, you'll want Parallels to manage the DPI of your Windows VM. You can do this under your Virtual Machine's configuration, Hardware, Vide...
The solution of this problem is here... Just forget about all the old advises and read this. I've MacBook Pro Retina 15" The problem's started when I've setup Parallel Desktop 9 and installed WIN 8.1, after that I've installed the Parallels Tools .. Than .. on WIN ... the screen resolution is SO high because of the R...
86,573
I'm using Parallels on my mac. But when I open a software the font are so small, it's very weird. Can anyone help me out!!! ![The tool bar of chrome is so small](https://i.stack.imgur.com/zgQM4.png) The picture above is when I open up my chrome, how can I fix it?
2013/03/24
[ "https://apple.stackexchange.com/questions/86573", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/26496/" ]
I had the exact same problem. I went a different route, and decided to sacrifice the nice high-DPI of the Retina for a scaled solution that makes everything look right. 1. In Parallels VM Config → Hardware → Video → Resolution Use: **Scaled** Not: Best for Retina, More Space 2. Restart VM 3. Windows Display Settin...
All my coworkers had the same problem. In Parallels 9, you can set for every VM if it should be **scaled**, **best for retina** or **more space**. As DPI scaling under Windows is inherently broken, as application developers have to support this, and many just don't, it's not useful you can configure this at all, which ...
86,573
I'm using Parallels on my mac. But when I open a software the font are so small, it's very weird. Can anyone help me out!!! ![The tool bar of chrome is so small](https://i.stack.imgur.com/zgQM4.png) The picture above is when I open up my chrome, how can I fix it?
2013/03/24
[ "https://apple.stackexchange.com/questions/86573", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/26496/" ]
I had the exact same problem. I went a different route, and decided to sacrifice the nice high-DPI of the Retina for a scaled solution that makes everything look right. 1. In Parallels VM Config → Hardware → Video → Resolution Use: **Scaled** Not: Best for Retina, More Space 2. Restart VM 3. Windows Display Settin...
I have a new solution for this,set the video properties to "Scaled" and the video memory to 256MB. ![Parallels Settings](https://i.stack.imgur.com/XHOJD.png) One's you do this , go back to your windows--> Control Panel --> Display --> Set it to Smaller(100%). check the Screen Resolution now it shows 1436\*756 on a M...
86,573
I'm using Parallels on my mac. But when I open a software the font are so small, it's very weird. Can anyone help me out!!! ![The tool bar of chrome is so small](https://i.stack.imgur.com/zgQM4.png) The picture above is when I open up my chrome, how can I fix it?
2013/03/24
[ "https://apple.stackexchange.com/questions/86573", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/26496/" ]
I had the exact same problem. I went a different route, and decided to sacrifice the nice high-DPI of the Retina for a scaled solution that makes everything look right. 1. In Parallels VM Config → Hardware → Video → Resolution Use: **Scaled** Not: Best for Retina, More Space 2. Restart VM 3. Windows Display Settin...
The solution of this problem is here... Just forget about all the old advises and read this. I've MacBook Pro Retina 15" The problem's started when I've setup Parallel Desktop 9 and installed WIN 8.1, after that I've installed the Parallels Tools .. Than .. on WIN ... the screen resolution is SO high because of the R...
86,573
I'm using Parallels on my mac. But when I open a software the font are so small, it's very weird. Can anyone help me out!!! ![The tool bar of chrome is so small](https://i.stack.imgur.com/zgQM4.png) The picture above is when I open up my chrome, how can I fix it?
2013/03/24
[ "https://apple.stackexchange.com/questions/86573", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/26496/" ]
I have a new solution for this,set the video properties to "Scaled" and the video memory to 256MB. ![Parallels Settings](https://i.stack.imgur.com/XHOJD.png) One's you do this , go back to your windows--> Control Panel --> Display --> Set it to Smaller(100%). check the Screen Resolution now it shows 1436\*756 on a M...
All my coworkers had the same problem. In Parallels 9, you can set for every VM if it should be **scaled**, **best for retina** or **more space**. As DPI scaling under Windows is inherently broken, as application developers have to support this, and many just don't, it's not useful you can configure this at all, which ...
86,573
I'm using Parallels on my mac. But when I open a software the font are so small, it's very weird. Can anyone help me out!!! ![The tool bar of chrome is so small](https://i.stack.imgur.com/zgQM4.png) The picture above is when I open up my chrome, how can I fix it?
2013/03/24
[ "https://apple.stackexchange.com/questions/86573", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/26496/" ]
I have a new solution for this,set the video properties to "Scaled" and the video memory to 256MB. ![Parallels Settings](https://i.stack.imgur.com/XHOJD.png) One's you do this , go back to your windows--> Control Panel --> Display --> Set it to Smaller(100%). check the Screen Resolution now it shows 1436\*756 on a M...
The solution of this problem is here... Just forget about all the old advises and read this. I've MacBook Pro Retina 15" The problem's started when I've setup Parallel Desktop 9 and installed WIN 8.1, after that I've installed the Parallels Tools .. Than .. on WIN ... the screen resolution is SO high because of the R...
41,061
Older French texts often use defunct spellings, such as *-oi* instead of *-ai* in verb conjugations or spellings that contain consonants that were later dropped, like in *doubter*. When these texts are read aloud by modern French speakers, are these words read as if they were written with the modern spelling, or is the...
2020/01/27
[ "https://french.stackexchange.com/questions/41061", "https://french.stackexchange.com", "https://french.stackexchange.com/users/4082/" ]
I'm no expert in old French so I can't tell you if we *should*, but we'd definitely pronounce it as it is written, but following the pronunciation rules of modern French. So "*déchiroit*" would be pronounced as "*déchiroit*" and "*entrez*" as "*entré*". That's what a native would say naturally, but I have no idea if t...
Cela dépend d'abord de la compétence du lecteur en matière de prononciation ancienne: s'il ne connaît pas les règles anciennes de prononciation, il n'y a aucun risque qu'il les utilise. Son choix reste donc soit de prononcer comme il lit, soit de prononcer comme si le texte était écrit en français moderne. En l'espèce,...
26,678,824
Whenever I run phpunit tests from PHPStorm I get an error. I have provided more info below. I am not sure where I have miss configured the setup. ### My Setup * Ubuntu * PHPStorm 8.0.1 * PHPUnit 4.3.4 ### More Info: PHPUnit.phar is located at `/usr/local/bin/phpunit.phar`. I have setup PHPUnit path directly in PHPS...
2014/10/31
[ "https://Stackoverflow.com/questions/26678824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1301804/" ]
This appears to be the autoloading issue. When you bootstrap your app for the test suite you must initialise your autoloader, which doesn't seem to be happening, as something doesn't get found. The easiest way would be to use Composer to manage the PHPUnit dependency and autoload your classes via the `autoload` directi...
The problem isn't that you autoloading phpunit via composer, but that in the composer you use an old version of phpUnit. In my case instead of using 4.0.0 I updated to 4.6.\*.
26,678,824
Whenever I run phpunit tests from PHPStorm I get an error. I have provided more info below. I am not sure where I have miss configured the setup. ### My Setup * Ubuntu * PHPStorm 8.0.1 * PHPUnit 4.3.4 ### More Info: PHPUnit.phar is located at `/usr/local/bin/phpunit.phar`. I have setup PHPUnit path directly in PHPS...
2014/10/31
[ "https://Stackoverflow.com/questions/26678824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1301804/" ]
This appears to be the autoloading issue. When you bootstrap your app for the test suite you must initialise your autoloader, which doesn't seem to be happening, as something doesn't get found. The easiest way would be to use Composer to manage the PHPUnit dependency and autoload your classes via the `autoload` directi...
Sometimes is better an image... [![enter image description here](https://i.stack.imgur.com/LdxsR.png)](https://i.stack.imgur.com/LdxsR.png) As you can see, you can also use your `phpunit.phar` file.
26,678,824
Whenever I run phpunit tests from PHPStorm I get an error. I have provided more info below. I am not sure where I have miss configured the setup. ### My Setup * Ubuntu * PHPStorm 8.0.1 * PHPUnit 4.3.4 ### More Info: PHPUnit.phar is located at `/usr/local/bin/phpunit.phar`. I have setup PHPUnit path directly in PHPS...
2014/10/31
[ "https://Stackoverflow.com/questions/26678824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1301804/" ]
This appears to be the autoloading issue. When you bootstrap your app for the test suite you must initialise your autoloader, which doesn't seem to be happening, as something doesn't get found. The easiest way would be to use Composer to manage the PHPUnit dependency and autoload your classes via the `autoload` directi...
I've been having this same issue with composer and found using the .phar didnt have any issues. Today I've just realised **slaps forehead** it was just caused by installing phpunit via composer and then not reindexing the vendor folder. I haven't found that I've had this issue previously when installing new packages w...
26,678,824
Whenever I run phpunit tests from PHPStorm I get an error. I have provided more info below. I am not sure where I have miss configured the setup. ### My Setup * Ubuntu * PHPStorm 8.0.1 * PHPUnit 4.3.4 ### More Info: PHPUnit.phar is located at `/usr/local/bin/phpunit.phar`. I have setup PHPUnit path directly in PHPS...
2014/10/31
[ "https://Stackoverflow.com/questions/26678824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1301804/" ]
I will answer my own question in case someone else comes across this issue. The issue was autoloading PHPUnit via composer and using phpunit.phar. Once I removed the phpunit dependence from composer PHPStorm was able to successfully run all my tests.
The problem isn't that you autoloading phpunit via composer, but that in the composer you use an old version of phpUnit. In my case instead of using 4.0.0 I updated to 4.6.\*.
26,678,824
Whenever I run phpunit tests from PHPStorm I get an error. I have provided more info below. I am not sure where I have miss configured the setup. ### My Setup * Ubuntu * PHPStorm 8.0.1 * PHPUnit 4.3.4 ### More Info: PHPUnit.phar is located at `/usr/local/bin/phpunit.phar`. I have setup PHPUnit path directly in PHPS...
2014/10/31
[ "https://Stackoverflow.com/questions/26678824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1301804/" ]
I will answer my own question in case someone else comes across this issue. The issue was autoloading PHPUnit via composer and using phpunit.phar. Once I removed the phpunit dependence from composer PHPStorm was able to successfully run all my tests.
Sometimes is better an image... [![enter image description here](https://i.stack.imgur.com/LdxsR.png)](https://i.stack.imgur.com/LdxsR.png) As you can see, you can also use your `phpunit.phar` file.
26,678,824
Whenever I run phpunit tests from PHPStorm I get an error. I have provided more info below. I am not sure where I have miss configured the setup. ### My Setup * Ubuntu * PHPStorm 8.0.1 * PHPUnit 4.3.4 ### More Info: PHPUnit.phar is located at `/usr/local/bin/phpunit.phar`. I have setup PHPUnit path directly in PHPS...
2014/10/31
[ "https://Stackoverflow.com/questions/26678824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1301804/" ]
I will answer my own question in case someone else comes across this issue. The issue was autoloading PHPUnit via composer and using phpunit.phar. Once I removed the phpunit dependence from composer PHPStorm was able to successfully run all my tests.
I've been having this same issue with composer and found using the .phar didnt have any issues. Today I've just realised **slaps forehead** it was just caused by installing phpunit via composer and then not reindexing the vendor folder. I haven't found that I've had this issue previously when installing new packages w...
26,678,824
Whenever I run phpunit tests from PHPStorm I get an error. I have provided more info below. I am not sure where I have miss configured the setup. ### My Setup * Ubuntu * PHPStorm 8.0.1 * PHPUnit 4.3.4 ### More Info: PHPUnit.phar is located at `/usr/local/bin/phpunit.phar`. I have setup PHPUnit path directly in PHPS...
2014/10/31
[ "https://Stackoverflow.com/questions/26678824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1301804/" ]
Sometimes is better an image... [![enter image description here](https://i.stack.imgur.com/LdxsR.png)](https://i.stack.imgur.com/LdxsR.png) As you can see, you can also use your `phpunit.phar` file.
The problem isn't that you autoloading phpunit via composer, but that in the composer you use an old version of phpUnit. In my case instead of using 4.0.0 I updated to 4.6.\*.
26,678,824
Whenever I run phpunit tests from PHPStorm I get an error. I have provided more info below. I am not sure where I have miss configured the setup. ### My Setup * Ubuntu * PHPStorm 8.0.1 * PHPUnit 4.3.4 ### More Info: PHPUnit.phar is located at `/usr/local/bin/phpunit.phar`. I have setup PHPUnit path directly in PHPS...
2014/10/31
[ "https://Stackoverflow.com/questions/26678824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1301804/" ]
The problem isn't that you autoloading phpunit via composer, but that in the composer you use an old version of phpUnit. In my case instead of using 4.0.0 I updated to 4.6.\*.
I've been having this same issue with composer and found using the .phar didnt have any issues. Today I've just realised **slaps forehead** it was just caused by installing phpunit via composer and then not reindexing the vendor folder. I haven't found that I've had this issue previously when installing new packages w...
26,678,824
Whenever I run phpunit tests from PHPStorm I get an error. I have provided more info below. I am not sure where I have miss configured the setup. ### My Setup * Ubuntu * PHPStorm 8.0.1 * PHPUnit 4.3.4 ### More Info: PHPUnit.phar is located at `/usr/local/bin/phpunit.phar`. I have setup PHPUnit path directly in PHPS...
2014/10/31
[ "https://Stackoverflow.com/questions/26678824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1301804/" ]
Sometimes is better an image... [![enter image description here](https://i.stack.imgur.com/LdxsR.png)](https://i.stack.imgur.com/LdxsR.png) As you can see, you can also use your `phpunit.phar` file.
I've been having this same issue with composer and found using the .phar didnt have any issues. Today I've just realised **slaps forehead** it was just caused by installing phpunit via composer and then not reindexing the vendor folder. I haven't found that I've had this issue previously when installing new packages w...
17,015
I have moved into a house with a nice Wolf-range griddle, and I would like to know what the primary advantages of the griddle are over a cast-iron skillet, including, is there anything I can do with a griddle that can not be done with a skillet? I have found that the primary downside to using the griddle is the time i...
2011/08/21
[ "https://cooking.stackexchange.com/questions/17015", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/3418/" ]
Yes, you don't have the edge of a pan in the way when going to flip things, but it also means that you don't have a mass of metal there to add as a heat sink, which can help dramatically when pre-heating your pans, as they'll be evenly heated across their bottom more quickly (at least, compared to something of the same...
I would say the biggest advantage, which you've hinted at, is being able to use a spatula for quick and easy flipping (think pancakes, french toast, etc). Apart from its shape and size, there really is no other difference (even the difference in heat-up time, I've found, is negligible).
17,015
I have moved into a house with a nice Wolf-range griddle, and I would like to know what the primary advantages of the griddle are over a cast-iron skillet, including, is there anything I can do with a griddle that can not be done with a skillet? I have found that the primary downside to using the griddle is the time i...
2011/08/21
[ "https://cooking.stackexchange.com/questions/17015", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/3418/" ]
I would say the biggest advantage, which you've hinted at, is being able to use a spatula for quick and easy flipping (think pancakes, french toast, etc). Apart from its shape and size, there really is no other difference (even the difference in heat-up time, I've found, is negligible).
I'm going to just use to frying pans ('skillets'). The lack of sides allows stuff to fall off too easily - I fried chopped onions today - and there's no carrying handle - so you can't move the griddle to plate up. The other downer - my griddle's cast iron and it's just cracked while heating it !
17,015
I have moved into a house with a nice Wolf-range griddle, and I would like to know what the primary advantages of the griddle are over a cast-iron skillet, including, is there anything I can do with a griddle that can not be done with a skillet? I have found that the primary downside to using the griddle is the time i...
2011/08/21
[ "https://cooking.stackexchange.com/questions/17015", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/3418/" ]
Yes, you don't have the edge of a pan in the way when going to flip things, but it also means that you don't have a mass of metal there to add as a heat sink, which can help dramatically when pre-heating your pans, as they'll be evenly heated across their bottom more quickly (at least, compared to something of the same...
Surface area is the biggest difference. You can do a much larger job on a griddle than in a skillet. Even 2 or 3 jobs at time, and when you are done there is just the griddle to clean and not several items. You will also want to pick up a '[bacon press](http://rads.stackoverflow.com/amzn/click/B00004UE7B)' to minimiz...