qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
25,682,963
I'm trying to mimic Windows 8 sidescrolling and multiple column layout using CSS3 columns, but I want columns to have a fixed width, or as I'm doing in [my fiddle](http://jsfiddle.net/noquierouser/u0u6k5ke/5/), viewport width. Now, no matter what kind of unit I use, it seems columns auto-fit themselves into the contai...
2014/09/05
[ "https://Stackoverflow.com/questions/25682963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1061340/" ]
You can find explanations about timers and how to use (declare) it in the help system of your IDE. For example, in the [CODESYS](https://en.wikipedia.org/wiki/CODESYS) help you can read about timers of the standard library. In general, you can declare timer-delay (TON) as: ``` VAR MY_TON: TON; END_VAR (* standard...
I solved it like this in Gx-Works(Mitsubishi / FXCPU): ``` TON_1(IN:= Enable_Timer,PT:= PresetTime ,Q:= Output,ET:= TimeLeft); ``` Remember to declare TON\_1 :)
25,682,963
I'm trying to mimic Windows 8 sidescrolling and multiple column layout using CSS3 columns, but I want columns to have a fixed width, or as I'm doing in [my fiddle](http://jsfiddle.net/noquierouser/u0u6k5ke/5/), viewport width. Now, no matter what kind of unit I use, it seems columns auto-fit themselves into the contai...
2014/09/05
[ "https://Stackoverflow.com/questions/25682963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1061340/" ]
The timer works so that `TON.Q` goes high only if `TON.IN` is continuously high for at least the duration of `TON.PT`. This makes sure that `TON.Q` only goes high if `TON.IN` is in a stable high state. This could be useful for instance to ensure that the output is only enabled if a button is pressed for at least a du...
I have done this with an OMRON PLC which supports the ST language. There's a timer interrupt in the PLC, and we used it to build our own timer in ST, and then we could skip out of the PLC limitations. When the PLC power on, the code inside the interrupt task is executed every interruption, and you can write "A=A+1" in...
25,682,963
I'm trying to mimic Windows 8 sidescrolling and multiple column layout using CSS3 columns, but I want columns to have a fixed width, or as I'm doing in [my fiddle](http://jsfiddle.net/noquierouser/u0u6k5ke/5/), viewport width. Now, no matter what kind of unit I use, it seems columns auto-fit themselves into the contai...
2014/09/05
[ "https://Stackoverflow.com/questions/25682963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1061340/" ]
You can find explanations about timers and how to use (declare) it in the help system of your IDE. For example, in the [CODESYS](https://en.wikipedia.org/wiki/CODESYS) help you can read about timers of the standard library. In general, you can declare timer-delay (TON) as: ``` VAR MY_TON: TON; END_VAR (* standard...
I have done this with an OMRON PLC which supports the ST language. There's a timer interrupt in the PLC, and we used it to build our own timer in ST, and then we could skip out of the PLC limitations. When the PLC power on, the code inside the interrupt task is executed every interruption, and you can write "A=A+1" in...
25,682,963
I'm trying to mimic Windows 8 sidescrolling and multiple column layout using CSS3 columns, but I want columns to have a fixed width, or as I'm doing in [my fiddle](http://jsfiddle.net/noquierouser/u0u6k5ke/5/), viewport width. Now, no matter what kind of unit I use, it seems columns auto-fit themselves into the contai...
2014/09/05
[ "https://Stackoverflow.com/questions/25682963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1061340/" ]
You can find explanations about timers and how to use (declare) it in the help system of your IDE. For example, in the [CODESYS](https://en.wikipedia.org/wiki/CODESYS) help you can read about timers of the standard library. In general, you can declare timer-delay (TON) as: ``` VAR MY_TON: TON; END_VAR (* standard...
Typically, you set a preset time and enable the timer. When it elapses, there will be done sort of done bit set true. When you reset the enable, the time will reset as well.
25,682,963
I'm trying to mimic Windows 8 sidescrolling and multiple column layout using CSS3 columns, but I want columns to have a fixed width, or as I'm doing in [my fiddle](http://jsfiddle.net/noquierouser/u0u6k5ke/5/), viewport width. Now, no matter what kind of unit I use, it seems columns auto-fit themselves into the contai...
2014/09/05
[ "https://Stackoverflow.com/questions/25682963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1061340/" ]
You can find explanations about timers and how to use (declare) it in the help system of your IDE. For example, in the [CODESYS](https://en.wikipedia.org/wiki/CODESYS) help you can read about timers of the standard library. In general, you can declare timer-delay (TON) as: ``` VAR MY_TON: TON; END_VAR (* standard...
We also have built our own timer structure with using milliseconds counter provided by PLC, so we could make arrays of timer (Schneider Electric) when we need and exceed PLC limitation. ``` TTIMER Count: UINT timclock :INT OUT :BOOL IN: BOOL END_STRUCT; TIM_SOD=ARRAY[0..1] OF TTIMER; (*This part runs every cy...
25,682,963
I'm trying to mimic Windows 8 sidescrolling and multiple column layout using CSS3 columns, but I want columns to have a fixed width, or as I'm doing in [my fiddle](http://jsfiddle.net/noquierouser/u0u6k5ke/5/), viewport width. Now, no matter what kind of unit I use, it seems columns auto-fit themselves into the contai...
2014/09/05
[ "https://Stackoverflow.com/questions/25682963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1061340/" ]
The timer works so that `TON.Q` goes high only if `TON.IN` is continuously high for at least the duration of `TON.PT`. This makes sure that `TON.Q` only goes high if `TON.IN` is in a stable high state. This could be useful for instance to ensure that the output is only enabled if a button is pressed for at least a du...
Typically, you set a preset time and enable the timer. When it elapses, there will be done sort of done bit set true. When you reset the enable, the time will reset as well.
25,682,963
I'm trying to mimic Windows 8 sidescrolling and multiple column layout using CSS3 columns, but I want columns to have a fixed width, or as I'm doing in [my fiddle](http://jsfiddle.net/noquierouser/u0u6k5ke/5/), viewport width. Now, no matter what kind of unit I use, it seems columns auto-fit themselves into the contai...
2014/09/05
[ "https://Stackoverflow.com/questions/25682963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1061340/" ]
I solved it like this in Gx-Works(Mitsubishi / FXCPU): ``` TON_1(IN:= Enable_Timer,PT:= PresetTime ,Q:= Output,ET:= TimeLeft); ``` Remember to declare TON\_1 :)
I have done this with an OMRON PLC which supports the ST language. There's a timer interrupt in the PLC, and we used it to build our own timer in ST, and then we could skip out of the PLC limitations. When the PLC power on, the code inside the interrupt task is executed every interruption, and you can write "A=A+1" in...
25,682,963
I'm trying to mimic Windows 8 sidescrolling and multiple column layout using CSS3 columns, but I want columns to have a fixed width, or as I'm doing in [my fiddle](http://jsfiddle.net/noquierouser/u0u6k5ke/5/), viewport width. Now, no matter what kind of unit I use, it seems columns auto-fit themselves into the contai...
2014/09/05
[ "https://Stackoverflow.com/questions/25682963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1061340/" ]
I solved it like this in Gx-Works(Mitsubishi / FXCPU): ``` TON_1(IN:= Enable_Timer,PT:= PresetTime ,Q:= Output,ET:= TimeLeft); ``` Remember to declare TON\_1 :)
We also have built our own timer structure with using milliseconds counter provided by PLC, so we could make arrays of timer (Schneider Electric) when we need and exceed PLC limitation. ``` TTIMER Count: UINT timclock :INT OUT :BOOL IN: BOOL END_STRUCT; TIM_SOD=ARRAY[0..1] OF TTIMER; (*This part runs every cy...
25,682,963
I'm trying to mimic Windows 8 sidescrolling and multiple column layout using CSS3 columns, but I want columns to have a fixed width, or as I'm doing in [my fiddle](http://jsfiddle.net/noquierouser/u0u6k5ke/5/), viewport width. Now, no matter what kind of unit I use, it seems columns auto-fit themselves into the contai...
2014/09/05
[ "https://Stackoverflow.com/questions/25682963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1061340/" ]
You can find explanations about timers and how to use (declare) it in the help system of your IDE. For example, in the [CODESYS](https://en.wikipedia.org/wiki/CODESYS) help you can read about timers of the standard library. In general, you can declare timer-delay (TON) as: ``` VAR MY_TON: TON; END_VAR (* standard...
The timer works so that `TON.Q` goes high only if `TON.IN` is continuously high for at least the duration of `TON.PT`. This makes sure that `TON.Q` only goes high if `TON.IN` is in a stable high state. This could be useful for instance to ensure that the output is only enabled if a button is pressed for at least a du...
53,336,762
I am trying to add the serial number in recycler view by using the add button. need to check whether duplicate value trying to add in recycler view. add button Onclick listener code are given below ``` serialNumberAddButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick...
2018/11/16
[ "https://Stackoverflow.com/questions/53336762", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7331939/" ]
You could do something like this: ``` SerialNumberPojo serialNumberPojo = new SerialNumberPojo(serialNumberField.getText().toString()); if (!serialNumberPojoList.contains(serialNumberPojo)) { serialNumberPojoList.add(serialNumberPojo); } ``` And in SerialNumberPojo you need to implement your own equals() like: ...
You can init Recycle View in `onCreate` function. Like: ``` @Override public void onCreate(...) { ... recyclerView = findViewById(R.id.serial_recycle); serialNumberAdapter = new SerialNumberAdapter(serialNumberPojoList, view.getContext(), ScannedDetailsFragment.this); mLayoutManager = new LinearLayout...
26,756,502
I've computed a triangulation of a region, which boundaries are described by a polygon. But the triangulation is computed for the convex hull, bigger than the region. Some of the triangles in the resulting set must be discarded. Dou you know about an algorithm for this operation?
2014/11/05
[ "https://Stackoverflow.com/questions/26756502", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3636662/" ]
I would combine this (triangulation of the convex hull) with another algorithm which would check if a given point is inside the polygon or not. Then, for each resulting triangle, I would check if it's median point is inside the polygon.
If you can use a 3rd party library, you can use [CGAL](http://www.cgal.org) and the following [example](http://doc.cgal.org/latest/Triangulation_2/index.html#title29) will do what you want (including the triangulation).
26,756,502
I've computed a triangulation of a region, which boundaries are described by a polygon. But the triangulation is computed for the convex hull, bigger than the region. Some of the triangles in the resulting set must be discarded. Dou you know about an algorithm for this operation?
2014/11/05
[ "https://Stackoverflow.com/questions/26756502", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3636662/" ]
I would combine this (triangulation of the convex hull) with another algorithm which would check if a given point is inside the polygon or not. Then, for each resulting triangle, I would check if it's median point is inside the polygon.
You can try alpha shapes. Its delaunay triangulation without edges exceeding alpha.
35,857,271
I'm attempting to write a plugin for babel, and am needing the filename of the current file that is being parsed. I know the lines of the code are passed in, but I haven't managed to find a reference to the filename. Any help?? For instance given this code what could I do ``` export default function({ types: t }) { ...
2016/03/08
[ "https://Stackoverflow.com/questions/35857271", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3325262/" ]
You can you `this` or use the 2nd parameter in a visitor (`state`) ``` Identifier(path, state) { console.log(state.file.opts.filename); } ```
For any future viewers, you can use this.file.opts.filename in a visitor function
43,100,112
Is it possible to create a CRUD system without database in spring mvc framework? If possible then which way? I made an application where i can save and update a single value but i need to save and update a list of value.
2017/03/29
[ "https://Stackoverflow.com/questions/43100112", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7218865/" ]
HSQLDB offers in memory DB, you can use it to do crud operations for your unit tests. You can maintain spring configuration for the Unit tests and another spring configuration for deployed code. The db configuration can be different for both, so, you run the data updates on the in-memory databse when running tests and ...
You Can recreate a CRUD operation using File Systems In Java using a File or Excel as a Database and and then Using File Handling or Apache POI in order to Create Update or Delete.
1,281,116
I have a class designated for a certain site. In that site I have different functions to retrieve data from the database and store that data into an array. I have other functions within the same class that take the data and format it into html and returns the html containing the data from the database. For example... ...
2009/08/15
[ "https://Stackoverflow.com/questions/1281116", "https://Stackoverflow.com", "https://Stackoverflow.com/users/156814/" ]
It's a good practice. Personally, I use the following template "engine": ``` <?php class Template{ static function show($path, $arg = NULL){ include "templates/$path.php"; } static function get($path, $arg = NULL){ ob_start(); self::show($path, $info); $block = ob_get_conte...
You can use Smarty template engine or something similar. It's templates are stored separately and look like this: <http://www.smarty.net/sampleapp/sampleapp_p5.php>
16,402,982
I have the following page ![enter image description here](https://i.stack.imgur.com/eK4RI.png) **CODE** ``` <table border="0" cellspacing="1" cellpadding="1" id="echipajucator" title="Echipa Jucator"> <tr> <th><div align="left"><span>Echipa</span></div></th> </tr> </table> <table cellspacing="2" cell...
2013/05/06
[ "https://Stackoverflow.com/questions/16402982", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1918556/" ]
Do this just using javascript, without jsp. ``` <script> function changeimage(choice){ document.getElementById('icon').src=choice + ".png"; } </script> <img src="" id="icon" width='52' height='50'> <table cellspacing="2" cellpadding="1" id="echipa"> <tr> <td> <select name="selecte...
I've done it! ``` <script type="text/javascript"> function loadImage() { if (document.getElementById("jucatorechipa").innerHTML == "AC Milan") { icn.src="HTML-CODE/icons/AC Milan.png"; } if (document.getElementById("jucatorechipa").innerHTML =...
9,629
I ve seen many recipes for a longer lasting SD, but no one convinced me that this is not a tremendous flaw in the whole Raspberry concept. Targeted for students, packaged with N.O.O.B.S., etc, it become clear the newbie's happiness will last a month, and then, corruption. What a welcome message! In the past, we coul...
2013/09/16
[ "https://raspberrypi.stackexchange.com/questions/9629", "https://raspberrypi.stackexchange.com", "https://raspberrypi.stackexchange.com/users/9550/" ]
You make a lot of assumptions. The statement about 1 month is just flat-out wrong. Compact flash cards are actually worse for this kind of operation than SD-cards. I tried to install a server onto one which lasted a whole three weeks before dying. Compare that to the server I have running on an SD card on the pi for ...
Well, the welcome message for a newbie would be a kind advice indeed: **always do backups**. I've experienced two or three SD failures (even from "famous" brands) and the corresponding loss of hours and hours of configuration work. Now I settled with two cards running 24/7 on two RPi's that didn't show a single hiccu...
9,629
I ve seen many recipes for a longer lasting SD, but no one convinced me that this is not a tremendous flaw in the whole Raspberry concept. Targeted for students, packaged with N.O.O.B.S., etc, it become clear the newbie's happiness will last a month, and then, corruption. What a welcome message! In the past, we coul...
2013/09/16
[ "https://raspberrypi.stackexchange.com/questions/9629", "https://raspberrypi.stackexchange.com", "https://raspberrypi.stackexchange.com/users/9550/" ]
You make a lot of assumptions. The statement about 1 month is just flat-out wrong. Compact flash cards are actually worse for this kind of operation than SD-cards. I tried to install a server onto one which lasted a whole three weeks before dying. Compare that to the server I have running on an SD card on the pi for ...
There are many cheap and small USB pen drives in the market, it's a pity the Pi won't directly boot from USB. I assume that another USB socket/bus would raise the cost of the Pi too much. On the counterpart, not having to buy a new SD every month is a money saver. IMHO USB pen drives are more reliable than SD card. No...
9,629
I ve seen many recipes for a longer lasting SD, but no one convinced me that this is not a tremendous flaw in the whole Raspberry concept. Targeted for students, packaged with N.O.O.B.S., etc, it become clear the newbie's happiness will last a month, and then, corruption. What a welcome message! In the past, we coul...
2013/09/16
[ "https://raspberrypi.stackexchange.com/questions/9629", "https://raspberrypi.stackexchange.com", "https://raspberrypi.stackexchange.com/users/9550/" ]
You make a lot of assumptions. The statement about 1 month is just flat-out wrong. Compact flash cards are actually worse for this kind of operation than SD-cards. I tried to install a server onto one which lasted a whole three weeks before dying. Compare that to the server I have running on an SD card on the pi for ...
You don't actually need to write to the SD Card at all, or at least not much after the initial configuration. Depending on the application you have in mind. We use the RaspberryPi in a system we ship to customers and we configured the SD Card to be mounted read only with a union file system on top. The downside you l...
54,468,853
When I add some item in the beginning, my code works, but after 1, 2 or maybe 3 items, it's not showing the new items and instead keeps showing old ones. RecycleView Class: ``` public class FilmateShikuara { private String Emri; private Double Rating; private Bitmap Image; public String getEmri() ...
2019/01/31
[ "https://Stackoverflow.com/questions/54468853", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8875695/" ]
A for loop will continue as long as the middle expression evaluates to true, i.e. a non-zero value. So in this case: ``` for(i=0; st[i]; i++) ``` The loop continues as long as `st[i]` is not 0. Since there are no elements of the array that contain 0, this ends up reading past the end of the array. Doing so invokes ...
In C, a condition is true if it evaluates to non-zero, and false if it evaluates to zero. In the case where the condition is simply `st[i]`, it is implicitly comparing the value of `st[i]` with zero to determine whether the condition is true or false. This is a pretty common thing when dealing with strings where the l...
54,468,853
When I add some item in the beginning, my code works, but after 1, 2 or maybe 3 items, it's not showing the new items and instead keeps showing old ones. RecycleView Class: ``` public class FilmateShikuara { private String Emri; private Double Rating; private Bitmap Image; public String getEmri() ...
2019/01/31
[ "https://Stackoverflow.com/questions/54468853", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8875695/" ]
A for loop will continue as long as the middle expression evaluates to true, i.e. a non-zero value. So in this case: ``` for(i=0; st[i]; i++) ``` The loop continues as long as `st[i]` is not 0. Since there are no elements of the array that contain 0, this ends up reading past the end of the array. Doing so invokes ...
`st[i]` may becomes zero (which means false in C) on some unpredictable iteration as you read the elements past the array end. It is an UB and anything may happen. modify ``` #include<stdio.h> int main() { int st[] ={1,2,3,4,5,6,7,8,0}; int i; for(i=0; st[i]; i++) printf("\n%d %d %d %d"...
61,782,742
I'm trying to set up a material ui date range picker example following the code on the docs but it's giving me an error, TypeError: undefined is not a function. I've never seen useState followed by a component before and it's what's throwing the error. `React.useState<DateRange>([null, null])` <https://dev.material-...
2020/05/13
[ "https://Stackoverflow.com/questions/61782742", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3377364/" ]
Below is a working version. I've added in the `LocalizationProvider` and removed the `<DateRange>` Typescript syntax. ``` import React from "react"; import TextField from "@material-ui/core/TextField"; import { DateRangePicker, DateRangeDelimiter, LocalizationProvider } from "@material-ui/pickers"; import DateFn...
The `DateRangePicker` component also needs the `DateFnsAdapter` and the entire block should be wrapped with `LocalizationProvider`. Your code should look like this: ``` import React from 'react'; import { TextField } from "@material-ui/core"; import DateFnsAdapter from '@material-ui/pickers/adapter/date-fns'; // choo...
61,782,742
I'm trying to set up a material ui date range picker example following the code on the docs but it's giving me an error, TypeError: undefined is not a function. I've never seen useState followed by a component before and it's what's throwing the error. `React.useState<DateRange>([null, null])` <https://dev.material-...
2020/05/13
[ "https://Stackoverflow.com/questions/61782742", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3377364/" ]
I was also facing an error for Mui DateRangePicker with typescript, "Type 'null[]' is missing the following properties from type 'RangeInput': 0, 1" latest versions --> "@material-ui/pickers": "^4.0.0-alpha.12" , "date-fns": "^2.16.1" Working code: ``` import React from "react"; import TextField from "@material-ui/c...
The `DateRangePicker` component also needs the `DateFnsAdapter` and the entire block should be wrapped with `LocalizationProvider`. Your code should look like this: ``` import React from 'react'; import { TextField } from "@material-ui/core"; import DateFnsAdapter from '@material-ui/pickers/adapter/date-fns'; // choo...
61,782,742
I'm trying to set up a material ui date range picker example following the code on the docs but it's giving me an error, TypeError: undefined is not a function. I've never seen useState followed by a component before and it's what's throwing the error. `React.useState<DateRange>([null, null])` <https://dev.material-...
2020/05/13
[ "https://Stackoverflow.com/questions/61782742", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3377364/" ]
The `DateRangePicker` component also needs the `DateFnsAdapter` and the entire block should be wrapped with `LocalizationProvider`. Your code should look like this: ``` import React from 'react'; import { TextField } from "@material-ui/core"; import DateFnsAdapter from '@material-ui/pickers/adapter/date-fns'; // choo...
It is not working for me, I have used all alpha versions and it shows this error TypeError: Cannot read property 'keyboardDate' of undefined 99 | ...other, 100 | value, 101 | onChange, > > 102 | inputFormat: passedInputFormat || utils.formats.keyboardDate, > | ^ 103 | }; > 104 | > 105 | const restProps = { > > > ...
61,782,742
I'm trying to set up a material ui date range picker example following the code on the docs but it's giving me an error, TypeError: undefined is not a function. I've never seen useState followed by a component before and it's what's throwing the error. `React.useState<DateRange>([null, null])` <https://dev.material-...
2020/05/13
[ "https://Stackoverflow.com/questions/61782742", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3377364/" ]
Below is a working version. I've added in the `LocalizationProvider` and removed the `<DateRange>` Typescript syntax. ``` import React from "react"; import TextField from "@material-ui/core/TextField"; import { DateRangePicker, DateRangeDelimiter, LocalizationProvider } from "@material-ui/pickers"; import DateFn...
It is not working for me, I have used all alpha versions and it shows this error TypeError: Cannot read property 'keyboardDate' of undefined 99 | ...other, 100 | value, 101 | onChange, > > 102 | inputFormat: passedInputFormat || utils.formats.keyboardDate, > | ^ 103 | }; > 104 | > 105 | const restProps = { > > > ...
61,782,742
I'm trying to set up a material ui date range picker example following the code on the docs but it's giving me an error, TypeError: undefined is not a function. I've never seen useState followed by a component before and it's what's throwing the error. `React.useState<DateRange>([null, null])` <https://dev.material-...
2020/05/13
[ "https://Stackoverflow.com/questions/61782742", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3377364/" ]
I was also facing an error for Mui DateRangePicker with typescript, "Type 'null[]' is missing the following properties from type 'RangeInput': 0, 1" latest versions --> "@material-ui/pickers": "^4.0.0-alpha.12" , "date-fns": "^2.16.1" Working code: ``` import React from "react"; import TextField from "@material-ui/c...
It is not working for me, I have used all alpha versions and it shows this error TypeError: Cannot read property 'keyboardDate' of undefined 99 | ...other, 100 | value, 101 | onChange, > > 102 | inputFormat: passedInputFormat || utils.formats.keyboardDate, > | ^ 103 | }; > 104 | > 105 | const restProps = { > > > ...
20,147,635
I have a 100% width table containing several cells. I want one of this cells to always show its contents in one line `white-space: nowrap` and to display an ellipsis at the end of the line if the contents exceed the table cell `text-overflow: ellipsis`. The problem i have is that the table will stop contracting it's w...
2013/11/22
[ "https://Stackoverflow.com/questions/20147635", "https://Stackoverflow.com", "https://Stackoverflow.com/users/638344/" ]
Does [this look like what you're after](http://jsfiddle.net/5H2L5/1/)? **[updated](http://jsfiddle.net/5H2L5/2/)** HTML ``` <div class='table'> <div class='row'> <div class='cell'>Something quite long</div> </div> <div class='row'> <div class='cell'> here is some moreSometh...
Here's a way to do it without using `table-layout: fixed` that allows you to keep dynamic widths with jQuery. HTML: ``` <div class="table"> <div class="left">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div> <div class="right">Lor...
806
[Constellation search from April 22 2007](https://astronomy.stackexchange.com/q/46831/7982) received three good answers before it was *correctly* closed as duplicate to our canonical [Where can I find the positions of the planets, stars, moons, artificial satellites, etc. and visualize them?](https://astronomy.stackexc...
2021/09/23
[ "https://astronomy.meta.stackexchange.com/questions/806", "https://astronomy.meta.stackexchange.com", "https://astronomy.meta.stackexchange.com/users/7982/" ]
Remove the "pin to top" behaviour. ---------------------------------- I want this behaviour to be removed. An accepted answer should be sorted in the same way as all answers.
Keep the "pin to top" behaviour. -------------------------------- I want this behaviour to be kept. An accepted answer should be placed at the top of the list.
15,155,045
In my code I enumerate all local IIS sites and for each site I try to validate the certificate for port 443. ``` using( var sm = new ServerManager() ) { foreach( var site in sm.Sites ) { foreach( var binding in site.Bindings ) { if( binding.EndPoint.Port == 443 ) { var thumbprint = binding.Certi...
2013/03/01
[ "https://Stackoverflow.com/questions/15155045", "https://Stackoverflow.com", "https://Stackoverflow.com/users/57428/" ]
There's a difference between a store *name* and a store *location*. All of the certificates for IIS are stored in the Local Machine location, rather than one for a specific user account. This is what the constructor for `X509Store` looks like, that just takes a `StoreLocation`, that your second example is calling: `...
This method will get certificate for you: ``` private X509Certificate2 GetServiceCertificate(String certificateSubjectName, StoreName storeName = StoreName.My, StoreLocation storeLocation = StoreLocation.CurrentUser) { X509Store certificateStore = new X509Store(storeName, storeLocation); foreach (X509Certifica...
10,783,583
I'm using a `PasswordBox` on a `Page`. Because of the implemented workflow the user can navigate to sub pages (`NavigationWindow`) and than return with `GoBack()` to the main page. But when doing that, the password box is always empty! My job is to prevent that behaviour, but at the moment I have no clue how do achive...
2012/05/28
[ "https://Stackoverflow.com/questions/10783583", "https://Stackoverflow.com", "https://Stackoverflow.com/users/338645/" ]
It is a feature. See: [How to bind to a PasswordBox in MVVM](https://stackoverflow.com/questions/1483892/wpf-binding-to-the-passwordbox-in-mvvm-working-solution) To enable the backward navigation the state of the page needs to be stored. And that is not secure.
I don't think his exact problem is a feature, but a bug of the navigation service. In your code behind you have no easy way to distinguish between the navigation control blanking your password on navigation or the user blanking it by deleting it from the box. So if you don't consider that, your password in your viewm...
84,748
I am trying to include a Mathematica code in LaTeX. To obtain the Mathematica code I just exported notebook as PDF. I didn't like the way it was included in my TEX code so I just thought of adding a box around picture so as to make it a bit more fancy. It's not yet there but it's better than nothing. The code used is ...
2012/11/29
[ "https://tex.stackexchange.com/questions/84748", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/12795/" ]
You could use `listings` together with `xcolor` to include the code, for example with this MWE ``` \documentclass[a4paper,12pt]{scrartcl} \usepackage[utf8]{inputenc} \usepackage{listings,xcolor} \lstset{language=Mathematica} \lstset{basicstyle={\sffamily\footnotesize}, numbers=left, numberstyle=\tiny\color{gray},...
Using the `listings` package, it is possible to get math mode in the mathematica code. You need to add the `mathescape` option on the `listings` environment definition, and manually place the math delimiters in the listing. I realise that this may be impractical if you want to insert a lot of code. I hope the followin...
84,748
I am trying to include a Mathematica code in LaTeX. To obtain the Mathematica code I just exported notebook as PDF. I didn't like the way it was included in my TEX code so I just thought of adding a box around picture so as to make it a bit more fancy. It's not yet there but it's better than nothing. The code used is ...
2012/11/29
[ "https://tex.stackexchange.com/questions/84748", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/12795/" ]
I know this question is old and surely OP doesn't need it anymore, but recently I had similar problem and I think my solution answers the question. First thing to note is that in Mathematica FrontEnd cells can have arbitrary styles. Each styles appearance is customizable by a stylesheet. With default stylesheet even m...
You could use `listings` together with `xcolor` to include the code, for example with this MWE ``` \documentclass[a4paper,12pt]{scrartcl} \usepackage[utf8]{inputenc} \usepackage{listings,xcolor} \lstset{language=Mathematica} \lstset{basicstyle={\sffamily\footnotesize}, numbers=left, numberstyle=\tiny\color{gray},...
84,748
I am trying to include a Mathematica code in LaTeX. To obtain the Mathematica code I just exported notebook as PDF. I didn't like the way it was included in my TEX code so I just thought of adding a box around picture so as to make it a bit more fancy. It's not yet there but it's better than nothing. The code used is ...
2012/11/29
[ "https://tex.stackexchange.com/questions/84748", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/12795/" ]
You could use `listings` together with `xcolor` to include the code, for example with this MWE ``` \documentclass[a4paper,12pt]{scrartcl} \usepackage[utf8]{inputenc} \usepackage{listings,xcolor} \lstset{language=Mathematica} \lstset{basicstyle={\sffamily\footnotesize}, numbers=left, numberstyle=\tiny\color{gray},...
Another way to include mathematica packages into latex is to use this package [mma.sty](http://kauers.de/software/mma/mma.sty) by [Manuel Kauers](http://kauers.de/index.html). With ``` \usepackage{mma} ``` in the preamble one can do a lot. I find it really amazing. I normally enclose it in [mdframed](https://www....
84,748
I am trying to include a Mathematica code in LaTeX. To obtain the Mathematica code I just exported notebook as PDF. I didn't like the way it was included in my TEX code so I just thought of adding a box around picture so as to make it a bit more fancy. It's not yet there but it's better than nothing. The code used is ...
2012/11/29
[ "https://tex.stackexchange.com/questions/84748", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/12795/" ]
I know this question is old and surely OP doesn't need it anymore, but recently I had similar problem and I think my solution answers the question. First thing to note is that in Mathematica FrontEnd cells can have arbitrary styles. Each styles appearance is customizable by a stylesheet. With default stylesheet even m...
Using the `listings` package, it is possible to get math mode in the mathematica code. You need to add the `mathescape` option on the `listings` environment definition, and manually place the math delimiters in the listing. I realise that this may be impractical if you want to insert a lot of code. I hope the followin...
84,748
I am trying to include a Mathematica code in LaTeX. To obtain the Mathematica code I just exported notebook as PDF. I didn't like the way it was included in my TEX code so I just thought of adding a box around picture so as to make it a bit more fancy. It's not yet there but it's better than nothing. The code used is ...
2012/11/29
[ "https://tex.stackexchange.com/questions/84748", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/12795/" ]
I know this question is old and surely OP doesn't need it anymore, but recently I had similar problem and I think my solution answers the question. First thing to note is that in Mathematica FrontEnd cells can have arbitrary styles. Each styles appearance is customizable by a stylesheet. With default stylesheet even m...
Another way to include mathematica packages into latex is to use this package [mma.sty](http://kauers.de/software/mma/mma.sty) by [Manuel Kauers](http://kauers.de/index.html). With ``` \usepackage{mma} ``` in the preamble one can do a lot. I find it really amazing. I normally enclose it in [mdframed](https://www....
25,424,464
In Adobe Fireworks you were always able to numerically specify the X and Y coordinates, width, and height of the area you want to crop - where is this option in Photoshop? Apologies if I'm being thick - I'm still pretty new to Photoshop! I need to be able to do this through the Photoshop editor as opposed to through...
2014/08/21
[ "https://Stackoverflow.com/questions/25424464", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3963773/" ]
You can find it in Info pallet in window/Info also there is other information like color of the pixel youre pointing.
You can use the rectangle mark tool to mark the area you want to crop, then go to Image -> Crop
8,818,551
Recently I've started on a project which requires a Cortex M3 processor. I have some previous experience with 8bit AVR microcontrollers, so I was hoping for a not to big transition. So I've bought a STM32L-Discovery kit (since low power is an important point) and started looking at some examples. However, I'm complete...
2012/01/11
[ "https://Stackoverflow.com/questions/8818551", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1143055/" ]
I completely agree with you. I am also starting out and I find it difficult to even scratch the surface! I have some good experience with PICs, but with ARMs the learning curve is really steep. For the STM32F4Discovery I am using, ST provides a number of examples. Starting from simple pin toggling. I am going through ...
I would suggest using CMSIS and standard peripheral library for programming ARM Cortex. Here are some tutorials on how to set up things and start writing code: <http://www.embedds.com/arm-cortex-tutorials/>
1,732,221
Evaluate $\Re[\cos(1+i)]$. The trigonometric function in the expression is throwing me in a loop and need some guidance on how to evaluate this. Thanks.
2016/04/07
[ "https://math.stackexchange.com/questions/1732221", "https://math.stackexchange.com", "https://math.stackexchange.com/users/329507/" ]
**Hint:** You should know the formulas $$\cos i\theta = \cosh \theta$$ $$\sin i\theta = i\sinh \theta$$
> > Notice, when $a\space\wedge\space b\in\mathbb{R}$: > > > * $$\cos\left(ae^{bi}\right)=\cos(a\cos(b))\cosh(a\sin(b))-\sin(a\cos(b))\sinh(a\sin(b))i$$ > > > So: * $$1+i=|1+i|e^{\arg(1+i)i}=\sqrt{2}e^{\frac{\pi i}{4}}$$ * $$\cos(1+i)=\cos\left(\sqrt{2}e^{\frac{\pi i}{4}}\right)=\cos(1)\cosh(1)-\sin(1)\sinh(1)i...
1,732,221
Evaluate $\Re[\cos(1+i)]$. The trigonometric function in the expression is throwing me in a loop and need some guidance on how to evaluate this. Thanks.
2016/04/07
[ "https://math.stackexchange.com/questions/1732221", "https://math.stackexchange.com", "https://math.stackexchange.com/users/329507/" ]
$$\cos(1+i)=\cos1\cos i-\sin1\sin i\\ \cos i={e^{ii}+e^{-ii}\over2}={e^{-1}+e\over2}\\ \sin i={e^{ii}-e^{-ii} \over2i }={e-e^{-1}\over2}i$$ so $$\Re(\cos(1+i))=\cos1\left({e^{-1}+e\over2}\right)$$
> > Notice, when $a\space\wedge\space b\in\mathbb{R}$: > > > * $$\cos\left(ae^{bi}\right)=\cos(a\cos(b))\cosh(a\sin(b))-\sin(a\cos(b))\sinh(a\sin(b))i$$ > > > So: * $$1+i=|1+i|e^{\arg(1+i)i}=\sqrt{2}e^{\frac{\pi i}{4}}$$ * $$\cos(1+i)=\cos\left(\sqrt{2}e^{\frac{\pi i}{4}}\right)=\cos(1)\cosh(1)-\sin(1)\sinh(1)i...
1,732,221
Evaluate $\Re[\cos(1+i)]$. The trigonometric function in the expression is throwing me in a loop and need some guidance on how to evaluate this. Thanks.
2016/04/07
[ "https://math.stackexchange.com/questions/1732221", "https://math.stackexchange.com", "https://math.stackexchange.com/users/329507/" ]
**Hint:** You should know the formulas $$\cos i\theta = \cosh \theta$$ $$\sin i\theta = i\sinh \theta$$
$$2\cos(a+ib)=e^{i(a+ib)}+e^{-i(a+ib)}=e^{-b}e^{ia}+e^be^{-ia}$$ Use Euler Identity: $e^{ix}=\cos x+i\sin x$
1,732,221
Evaluate $\Re[\cos(1+i)]$. The trigonometric function in the expression is throwing me in a loop and need some guidance on how to evaluate this. Thanks.
2016/04/07
[ "https://math.stackexchange.com/questions/1732221", "https://math.stackexchange.com", "https://math.stackexchange.com/users/329507/" ]
$$\cos(1+i)=\cos1\cos i-\sin1\sin i\\ \cos i={e^{ii}+e^{-ii}\over2}={e^{-1}+e\over2}\\ \sin i={e^{ii}-e^{-ii} \over2i }={e-e^{-1}\over2}i$$ so $$\Re(\cos(1+i))=\cos1\left({e^{-1}+e\over2}\right)$$
**Hint:** You should know the formulas $$\cos i\theta = \cosh \theta$$ $$\sin i\theta = i\sinh \theta$$
1,732,221
Evaluate $\Re[\cos(1+i)]$. The trigonometric function in the expression is throwing me in a loop and need some guidance on how to evaluate this. Thanks.
2016/04/07
[ "https://math.stackexchange.com/questions/1732221", "https://math.stackexchange.com", "https://math.stackexchange.com/users/329507/" ]
$$\cos(1+i)=\cos1\cos i-\sin1\sin i\\ \cos i={e^{ii}+e^{-ii}\over2}={e^{-1}+e\over2}\\ \sin i={e^{ii}-e^{-ii} \over2i }={e-e^{-1}\over2}i$$ so $$\Re(\cos(1+i))=\cos1\left({e^{-1}+e\over2}\right)$$
$$2\cos(a+ib)=e^{i(a+ib)}+e^{-i(a+ib)}=e^{-b}e^{ia}+e^be^{-ia}$$ Use Euler Identity: $e^{ix}=\cos x+i\sin x$
42,065,035
I have a page with different `<li>` elements with content under them. The content is hidden, and it is meant to be that when you click on the `<li>` element, the content under it, which is hidden, slides down and becomes shown. I have tried different methods, but none currently have worked as intended. Here is a JSFid...
2017/02/06
[ "https://Stackoverflow.com/questions/42065035", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7406989/" ]
Few Issues in your code: 1) You have used duplicate IDs. IDs must be unique. getElementById only selects first element with that ID. 2) You have added div as child element in `ul`. which makes the markup invalid. You should rather put that div element in li. ``` <li id="virsraksts" class="slid"> <h3>{{ post.date |...
Id is unique attribute and can be assigned to one element only. Every time you will try to `getElementById` it will get first LI only. Try using Class.
42,065,035
I have a page with different `<li>` elements with content under them. The content is hidden, and it is meant to be that when you click on the `<li>` element, the content under it, which is hidden, slides down and becomes shown. I have tried different methods, but none currently have worked as intended. Here is a JSFid...
2017/02/06
[ "https://Stackoverflow.com/questions/42065035", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7406989/" ]
Few Issues in your code: 1) You have used duplicate IDs. IDs must be unique. getElementById only selects first element with that ID. 2) You have added div as child element in `ul`. which makes the markup invalid. You should rather put that div element in li. ``` <li id="virsraksts" class="slid"> <h3>{{ post.date |...
In your html code you have use ID in `<li>` tag. ID should be unique. If you use different id name it will be work
11,543,182
Here's a rough image of what I'm trying to achieve (it won't compile, so consider it pseudocode). Please note that even though the example is based on public key cryptographic schemes, the question is about design patterns, templates and inheritance. ``` class CryptoProvider { public: template <typename T> vir...
2012/07/18
[ "https://Stackoverflow.com/questions/11543182", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1174378/" ]
CRTP will work to provide compile-time overrideable functionality without need for virtual functions: ``` template <typename Derived> class CryptoProvider { public: typename Derived::Ciphertext Encrypt() { typename Derived::Ciphertext data; return data; } }; class PaillierBase { public: ty...
You can create a base class called CipherText in which you hold the cipher text. Then, you can subclass that to the specific type that you need to return. You can specify the return type as a base class pointer. Of course, this answer might be right or wrong based on what you are trying to do.
11,543,182
Here's a rough image of what I'm trying to achieve (it won't compile, so consider it pseudocode). Please note that even though the example is based on public key cryptographic schemes, the question is about design patterns, templates and inheritance. ``` class CryptoProvider { public: template <typename T> vir...
2012/07/18
[ "https://Stackoverflow.com/questions/11543182", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1174378/" ]
All your child classes have the `Ciphertext` type defined to be different things. This suggest making it a template parameter of `CryptoProvider`. ``` template <typename T> class CryptoProvider { public: virtual T Encrypt () { ... } typedef T Ciphertext; }; class PaillierBase : public CryptoProvider<int> { .....
You can create a base class called CipherText in which you hold the cipher text. Then, you can subclass that to the specific type that you need to return. You can specify the return type as a base class pointer. Of course, this answer might be right or wrong based on what you are trying to do.
11,543,182
Here's a rough image of what I'm trying to achieve (it won't compile, so consider it pseudocode). Please note that even though the example is based on public key cryptographic schemes, the question is about design patterns, templates and inheritance. ``` class CryptoProvider { public: template <typename T> vir...
2012/07/18
[ "https://Stackoverflow.com/questions/11543182", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1174378/" ]
See another way to achieve this. Slightly round-about, though... This provides the possibility of a common implementation based on templates and derivability. Only problem is that the CipherText definition cannot be inside the derived classes. I guess this wouldn't be a big problem for you. If you can define these clas...
You can create a base class called CipherText in which you hold the cipher text. Then, you can subclass that to the specific type that you need to return. You can specify the return type as a base class pointer. Of course, this answer might be right or wrong based on what you are trying to do.
11,543,182
Here's a rough image of what I'm trying to achieve (it won't compile, so consider it pseudocode). Please note that even though the example is based on public key cryptographic schemes, the question is about design patterns, templates and inheritance. ``` class CryptoProvider { public: template <typename T> vir...
2012/07/18
[ "https://Stackoverflow.com/questions/11543182", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1174378/" ]
All your child classes have the `Ciphertext` type defined to be different things. This suggest making it a template parameter of `CryptoProvider`. ``` template <typename T> class CryptoProvider { public: virtual T Encrypt () { ... } typedef T Ciphertext; }; class PaillierBase : public CryptoProvider<int> { .....
CRTP will work to provide compile-time overrideable functionality without need for virtual functions: ``` template <typename Derived> class CryptoProvider { public: typename Derived::Ciphertext Encrypt() { typename Derived::Ciphertext data; return data; } }; class PaillierBase { public: ty...
11,543,182
Here's a rough image of what I'm trying to achieve (it won't compile, so consider it pseudocode). Please note that even though the example is based on public key cryptographic schemes, the question is about design patterns, templates and inheritance. ``` class CryptoProvider { public: template <typename T> vir...
2012/07/18
[ "https://Stackoverflow.com/questions/11543182", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1174378/" ]
See another way to achieve this. Slightly round-about, though... This provides the possibility of a common implementation based on templates and derivability. Only problem is that the CipherText definition cannot be inside the derived classes. I guess this wouldn't be a big problem for you. If you can define these clas...
CRTP will work to provide compile-time overrideable functionality without need for virtual functions: ``` template <typename Derived> class CryptoProvider { public: typename Derived::Ciphertext Encrypt() { typename Derived::Ciphertext data; return data; } }; class PaillierBase { public: ty...
11,674,807
I'm newbee in oracle and I try to change `varchar(50)` to `250` ```sql CREATE OR REPLACE TYPE CEQ_OWNER.TYPE_REC_PARAE2 AS OBJECT ( ... BONETAT_DESC VARCHAR2(250), ... ) / ``` I get ORA-02303: cannot drop or replace a type with type or table dependents
2012/07/26
[ "https://Stackoverflow.com/questions/11674807", "https://Stackoverflow.com", "https://Stackoverflow.com/users/943648/" ]
There are other types or tables that depend on the type you want to change. If it's a dependent type, then you can use the FORCE option to change the type. If it's a table that directly or indirectly uses the type, then you will need to create a new type and a new table, migrate all the data, and finally drop and rena...
I was looking everywhere for the syntax also, but was having a hard time finding the documentation. From the page that Codo linked... notice that the `FORCE` is between the object name and `as object` ``` create or replace type ceq_owner.type_rec_parae2 FORCE as object ( ... BONETAT_DESC VARCHAR2(250), ... ...
11,674,807
I'm newbee in oracle and I try to change `varchar(50)` to `250` ```sql CREATE OR REPLACE TYPE CEQ_OWNER.TYPE_REC_PARAE2 AS OBJECT ( ... BONETAT_DESC VARCHAR2(250), ... ) / ``` I get ORA-02303: cannot drop or replace a type with type or table dependents
2012/07/26
[ "https://Stackoverflow.com/questions/11674807", "https://Stackoverflow.com", "https://Stackoverflow.com/users/943648/" ]
There are other types or tables that depend on the type you want to change. If it's a dependent type, then you can use the FORCE option to change the type. If it's a table that directly or indirectly uses the type, then you will need to create a new type and a new table, migrate all the data, and finally drop and rena...
Try: ``` drop type your_type force; ```
11,674,807
I'm newbee in oracle and I try to change `varchar(50)` to `250` ```sql CREATE OR REPLACE TYPE CEQ_OWNER.TYPE_REC_PARAE2 AS OBJECT ( ... BONETAT_DESC VARCHAR2(250), ... ) / ``` I get ORA-02303: cannot drop or replace a type with type or table dependents
2012/07/26
[ "https://Stackoverflow.com/questions/11674807", "https://Stackoverflow.com", "https://Stackoverflow.com/users/943648/" ]
There are other types or tables that depend on the type you want to change. If it's a dependent type, then you can use the FORCE option to change the type. If it's a table that directly or indirectly uses the type, then you will need to create a new type and a new table, migrate all the data, and finally drop and rena...
There are some dependency for the Object you are trying to Modify or Drop. If you want to skip this first drop the dependant Object and try to DROP or MODIFY Like in the below Screenshot [![](https://i.stack.imgur.com/tIDit.jpg)](https://i.stack.imgur.com/tIDit.jpg) Regards, Arul
11,674,807
I'm newbee in oracle and I try to change `varchar(50)` to `250` ```sql CREATE OR REPLACE TYPE CEQ_OWNER.TYPE_REC_PARAE2 AS OBJECT ( ... BONETAT_DESC VARCHAR2(250), ... ) / ``` I get ORA-02303: cannot drop or replace a type with type or table dependents
2012/07/26
[ "https://Stackoverflow.com/questions/11674807", "https://Stackoverflow.com", "https://Stackoverflow.com/users/943648/" ]
I was looking everywhere for the syntax also, but was having a hard time finding the documentation. From the page that Codo linked... notice that the `FORCE` is between the object name and `as object` ``` create or replace type ceq_owner.type_rec_parae2 FORCE as object ( ... BONETAT_DESC VARCHAR2(250), ... ...
Try: ``` drop type your_type force; ```
11,674,807
I'm newbee in oracle and I try to change `varchar(50)` to `250` ```sql CREATE OR REPLACE TYPE CEQ_OWNER.TYPE_REC_PARAE2 AS OBJECT ( ... BONETAT_DESC VARCHAR2(250), ... ) / ``` I get ORA-02303: cannot drop or replace a type with type or table dependents
2012/07/26
[ "https://Stackoverflow.com/questions/11674807", "https://Stackoverflow.com", "https://Stackoverflow.com/users/943648/" ]
I was looking everywhere for the syntax also, but was having a hard time finding the documentation. From the page that Codo linked... notice that the `FORCE` is between the object name and `as object` ``` create or replace type ceq_owner.type_rec_parae2 FORCE as object ( ... BONETAT_DESC VARCHAR2(250), ... ...
There are some dependency for the Object you are trying to Modify or Drop. If you want to skip this first drop the dependant Object and try to DROP or MODIFY Like in the below Screenshot [![](https://i.stack.imgur.com/tIDit.jpg)](https://i.stack.imgur.com/tIDit.jpg) Regards, Arul
11,674,807
I'm newbee in oracle and I try to change `varchar(50)` to `250` ```sql CREATE OR REPLACE TYPE CEQ_OWNER.TYPE_REC_PARAE2 AS OBJECT ( ... BONETAT_DESC VARCHAR2(250), ... ) / ``` I get ORA-02303: cannot drop or replace a type with type or table dependents
2012/07/26
[ "https://Stackoverflow.com/questions/11674807", "https://Stackoverflow.com", "https://Stackoverflow.com/users/943648/" ]
Try: ``` drop type your_type force; ```
There are some dependency for the Object you are trying to Modify or Drop. If you want to skip this first drop the dependant Object and try to DROP or MODIFY Like in the below Screenshot [![](https://i.stack.imgur.com/tIDit.jpg)](https://i.stack.imgur.com/tIDit.jpg) Regards, Arul
264,038
a. He looked at them to help him. b. He looked to them to help him. c. He looked at them for help. d. He looked to them for help. Which of the above sentences are grammatically correct? Which are natural? Many thanks.
2020/10/20
[ "https://ell.stackexchange.com/questions/264038", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/32659/" ]
The PPP in that article refers to the [Paycheck Protection Program](https://www.sba.gov/funding-programs/loans/coronavirus-relief-options/paycheck-protection-program), a loan program run by the [U.S. Small Business Administration (SBA)](https://en.wikipedia.org/wiki/Small_Business_Administration). As per [their website...
In this context, PPP stands for Paycheck Protection Program: > > The **Paycheck Protection Program (PPP)** is a $669-billion business loan program established by the 2020 US Federal government Coronavirus Aid, Relief, and Economic Security Act (CARES Act) to help certain businesses, self-employed workers, sole propri...
19,464,288
Hi guys so the following is happening when i try access the code, the first part is good because without having the handbag in inventory i want it to say you are carrying however if i have the handbag i want it to say you are carrying these items in your handbag but the below happens; What now? get torch ok What now...
2013/10/19
[ "https://Stackoverflow.com/questions/19464288", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2897384/" ]
Your `hasItem[6]` value is true then `if (hasItem[6])` condiion will always true. Your else part wont get excuted May be you need `if(hasItem[i])` instead of `if(hasItem[6])`
I think the problem is that in the first part of your condition you only check whether the user has the hadbag and you don't check the item. The first condition should be rewritten: ``` if(hasItem[6] && hasItem[i]) { .... ``` At the same time I would refactor out the inner swich because it is twice there in the cod...
21,114,888
For the following code, ``` proctype A() { byte cond1; time = time + 1; time = time + 2; t[0] = 3; a[0] = 2; do :: (a[0] == 0)->break; :: else -> a[0] = a[0] - 1; do :: (t[0] <= t[1])->break; od; if :: (cond1 != 0) -> lock(mutex); time = time + 1; time = tim...
2014/01/14
[ "https://Stackoverflow.com/questions/21114888", "https://Stackoverflow.com", "https://Stackoverflow.com/users/760807/" ]
Here's your query, using regular expressions. You'll need to figure out to generate it in PHP: ``` SELECT * FROM operators WHERE location REGEXP '[[:<:]]1[[:>:]]' OR location REGEXP '[[:<:]]2[[:>:]]' ``` Unfortunately, this will scan all records in the operators table. Consider using an intersection table instead b...
Based on comments from Victor's answer, correct SQL was follow: ``` $where = "WHERE "; $count = count($locs); for ($i = 0; $i < $count; $i++) { $where .= "location = '". $locs[$i] ."' "; $where .= " OR location LIKE '%". $locs[$i] .",%' "; $where .= " OR location LIKE '%, ". $locs[$i] ."%' "; if ($i < ...
21,114,888
For the following code, ``` proctype A() { byte cond1; time = time + 1; time = time + 2; t[0] = 3; a[0] = 2; do :: (a[0] == 0)->break; :: else -> a[0] = a[0] - 1; do :: (t[0] <= t[1])->break; od; if :: (cond1 != 0) -> lock(mutex); time = time + 1; time = tim...
2014/01/14
[ "https://Stackoverflow.com/questions/21114888", "https://Stackoverflow.com", "https://Stackoverflow.com/users/760807/" ]
Here's your query, using regular expressions. You'll need to figure out to generate it in PHP: ``` SELECT * FROM operators WHERE location REGEXP '[[:<:]]1[[:>:]]' OR location REGEXP '[[:<:]]2[[:>:]]' ``` Unfortunately, this will scan all records in the operators table. Consider using an intersection table instead b...
You may explode your session value to array: ``` $locs = explode(', ' $_SESSION['locs']); ``` And SQL was follow: ``` $where = "WHERE "; $count = count($locs); for ($i = 0; $i < $count; $i++) { $where .= "location LIKE '%, ". $locs[$i] .",%' "; $where .= " OR location LIKE '%, ". $locs[$i] ."%' "; if ($...
12,559,017
Hi can anybody help me on this issue, like i was trying to create XML file from data in datagridview. Problem is datagridview is dynamically created n it depends on the user on how many rows n columns he creates n enters the data in it. Datagridview contains columns with integer as well as string. So initializing colum...
2012/09/24
[ "https://Stackoverflow.com/questions/12559017", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1679548/" ]
Refer to accepted solution on [this](https://stackoverflow.com/questions/3109009/how-to-make-a-datatable-from-datagrid-without-any-datasource) and create a `DataTable` manually ``` DataTable dt = new DataTable(); foreach(DataGridViewColumn col in dgv.Columns) { dt.Columns.Add(col.HeaderText); } foreach(DataGri...
``` private XElement GetData(DataGridView dgv) { var elem = new XElement("data"); foreach (DataGridViewRow row in dgv.Rows) { elem.Add(new XElement("row", row.Cells .Cast<DataGridViewCell>() .Select(a => new XElement(a.OwningCol...
12,559,017
Hi can anybody help me on this issue, like i was trying to create XML file from data in datagridview. Problem is datagridview is dynamically created n it depends on the user on how many rows n columns he creates n enters the data in it. Datagridview contains columns with integer as well as string. So initializing colum...
2012/09/24
[ "https://Stackoverflow.com/questions/12559017", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1679548/" ]
``` DataSet ds = new DataSet(); DataTable dt = (DataTable)gv.DataSource;// if data source is dynamic data table it will wokr ds.Tables.Add(dt); string xml = ds.GetXml(); ```
``` private XElement GetData(DataGridView dgv) { var elem = new XElement("data"); foreach (DataGridViewRow row in dgv.Rows) { elem.Add(new XElement("row", row.Cells .Cast<DataGridViewCell>() .Select(a => new XElement(a.OwningCol...
12,559,017
Hi can anybody help me on this issue, like i was trying to create XML file from data in datagridview. Problem is datagridview is dynamically created n it depends on the user on how many rows n columns he creates n enters the data in it. Datagridview contains columns with integer as well as string. So initializing colum...
2012/09/24
[ "https://Stackoverflow.com/questions/12559017", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1679548/" ]
Refer to accepted solution on [this](https://stackoverflow.com/questions/3109009/how-to-make-a-datatable-from-datagrid-without-any-datasource) and create a `DataTable` manually ``` DataTable dt = new DataTable(); foreach(DataGridViewColumn col in dgv.Columns) { dt.Columns.Add(col.HeaderText); } foreach(DataGri...
``` DataSet ds = new DataSet(); DataTable dt = (DataTable)gv.DataSource;// if data source is dynamic data table it will wokr ds.Tables.Add(dt); string xml = ds.GetXml(); ```
13,571,221
I am storing Unicode text `لاہور` in MySQL, I have set tables and columns to utf8\_general\_ci. The text `لاہور` is displaying correctly in MySQL. However if I echo that with PHP it shows `??????` on the browser window. One thing to mention here: I have the whole document in Unicode and all words are displaying correc...
2012/11/26
[ "https://Stackoverflow.com/questions/13571221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1032593/" ]
This is basically a query string if you replace `;` with `&`. You can try `parse_str()` like this: ``` $string = 'name=Service_Name;nextduedate=2013-02-25;status=Active'; parse_str(str_replace(';', '&', $string)); echo $name; // Service_Name echo $nextduedate; // 2013-02-25 echo $status; // Active ```
This can rather simply be solved without regex. The use of `explode()` will help you. ``` $str = "name=Service_Name;nextduedate=2013-02-25;status=Active"; $split = explode(";", $str); $structure = array(); foreach ($split as $element) { $element = explode("=", $element); $$element[0] = $element[1]; } var_du...
13,571,221
I am storing Unicode text `لاہور` in MySQL, I have set tables and columns to utf8\_general\_ci. The text `لاہور` is displaying correctly in MySQL. However if I echo that with PHP it shows `??????` on the browser window. One thing to mention here: I have the whole document in Unicode and all words are displaying correc...
2012/11/26
[ "https://Stackoverflow.com/questions/13571221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1032593/" ]
This can rather simply be solved without regex. The use of `explode()` will help you. ``` $str = "name=Service_Name;nextduedate=2013-02-25;status=Active"; $split = explode(";", $str); $structure = array(); foreach ($split as $element) { $element = explode("=", $element); $$element[0] = $element[1]; } var_du...
It sounds like you just want to break the text down into separate lines along the semicolons, add a dollar sign at the front and then add spaces and quotes. I'm not sure you can do that in one step with a regular expression (or at least I don't want to think about what *that* regular expression would look like), but yo...
13,571,221
I am storing Unicode text `لاہور` in MySQL, I have set tables and columns to utf8\_general\_ci. The text `لاہور` is displaying correctly in MySQL. However if I echo that with PHP it shows `??????` on the browser window. One thing to mention here: I have the whole document in Unicode and all words are displaying correc...
2012/11/26
[ "https://Stackoverflow.com/questions/13571221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1032593/" ]
This is basically a query string if you replace `;` with `&`. You can try `parse_str()` like this: ``` $string = 'name=Service_Name;nextduedate=2013-02-25;status=Active'; parse_str(str_replace(';', '&', $string)); echo $name; // Service_Name echo $nextduedate; // 2013-02-25 echo $status; // Active ```
It sounds like you just want to break the text down into separate lines along the semicolons, add a dollar sign at the front and then add spaces and quotes. I'm not sure you can do that in one step with a regular expression (or at least I don't want to think about what *that* regular expression would look like), but yo...
140,949
If a company says they lost $2M in Q1 because of: > > "non-cash mark-to-market increase in warrant liabilities" > > > As I understand warrants, they allow the holder to purchase the shares at the strike price before expiry. The only way I can see this as a loss, asides from their dilutive property, is if a compan...
2021/05/18
[ "https://money.stackexchange.com/questions/140949", "https://money.stackexchange.com", "https://money.stackexchange.com/users/105917/" ]
Yes, the loss ultimately arises from the scenario you describe, where the warrant becomes "in the money" and requires issuing shares below market value. However, whether or not the warrant is currently in the money, it has value (and constitutes a liability to the company) based on the *probability* that it will go in ...
Is this a SPAC? The below article says that companies must calculate the probability of being forced to make a cash tender offer. As this probability changes, the liability changes; and the liability change creates a non-cash profit or loss in every reporting period. > > The switch to classify the warrants as a liabi...
61,253,661
``` SELECT SUBSTR(PRODID,1, 4) AS [PROD4], COUNT(*) AS [NumberOfRows] FROM [sch].[ProdTable] GROUP BY SUBSTR(PRODID,1, 4) ``` We're writing a simple select that would count how many of our products have the same first 4 characters. Our Product IDs are 10 digits/characters. When running this, however, we get: > >...
2020/04/16
[ "https://Stackoverflow.com/questions/61253661", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5561246/" ]
try `testdf[!duplicated(testdf$.)&!duplicated(testdf$.,fromLast = TRUE),]`
Another `base`alternative(retains row names): ``` testdf[-which(testdf$`.` %in% testdf[duplicated(testdf$.),1]),] . V2 3 B 3 ```
61,253,661
``` SELECT SUBSTR(PRODID,1, 4) AS [PROD4], COUNT(*) AS [NumberOfRows] FROM [sch].[ProdTable] GROUP BY SUBSTR(PRODID,1, 4) ``` We're writing a simple select that would count how many of our products have the same first 4 characters. Our Product IDs are 10 digits/characters. When running this, however, we get: > >...
2020/04/16
[ "https://Stackoverflow.com/questions/61253661", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5561246/" ]
try `testdf[!duplicated(testdf$.)&!duplicated(testdf$.,fromLast = TRUE),]`
If want to stick with pipes ``` testdf %>% group_by(testdf$.) %>% summarise(num_x=n()) %>% filter(num_x==1) ```
61,253,661
``` SELECT SUBSTR(PRODID,1, 4) AS [PROD4], COUNT(*) AS [NumberOfRows] FROM [sch].[ProdTable] GROUP BY SUBSTR(PRODID,1, 4) ``` We're writing a simple select that would count how many of our products have the same first 4 characters. Our Product IDs are 10 digits/characters. When running this, however, we get: > >...
2020/04/16
[ "https://Stackoverflow.com/questions/61253661", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5561246/" ]
try `testdf[!duplicated(testdf$.)&!duplicated(testdf$.,fromLast = TRUE),]`
We can use `subset` with `table` ``` subset(testdf, `.` %in% names(which(table(`.`) == 1))) # . V2 #3 B 3 ```
61,253,661
``` SELECT SUBSTR(PRODID,1, 4) AS [PROD4], COUNT(*) AS [NumberOfRows] FROM [sch].[ProdTable] GROUP BY SUBSTR(PRODID,1, 4) ``` We're writing a simple select that would count how many of our products have the same first 4 characters. Our Product IDs are 10 digits/characters. When running this, however, we get: > >...
2020/04/16
[ "https://Stackoverflow.com/questions/61253661", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5561246/" ]
Another `base`alternative(retains row names): ``` testdf[-which(testdf$`.` %in% testdf[duplicated(testdf$.),1]),] . V2 3 B 3 ```
We can use `subset` with `table` ``` subset(testdf, `.` %in% names(which(table(`.`) == 1))) # . V2 #3 B 3 ```
61,253,661
``` SELECT SUBSTR(PRODID,1, 4) AS [PROD4], COUNT(*) AS [NumberOfRows] FROM [sch].[ProdTable] GROUP BY SUBSTR(PRODID,1, 4) ``` We're writing a simple select that would count how many of our products have the same first 4 characters. Our Product IDs are 10 digits/characters. When running this, however, we get: > >...
2020/04/16
[ "https://Stackoverflow.com/questions/61253661", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5561246/" ]
If want to stick with pipes ``` testdf %>% group_by(testdf$.) %>% summarise(num_x=n()) %>% filter(num_x==1) ```
We can use `subset` with `table` ``` subset(testdf, `.` %in% names(which(table(`.`) == 1))) # . V2 #3 B 3 ```
31,081,773
I have a simple ng-click in the nav bar and it doesn't work. I've placed the html template inside of a directive but the alert does not appear. There are no other issues in my console. I'm stumped as to why this doesn't work. ``` <signed-in-header></signed-in-header> ``` My directive as a whole. ``` angular.module(...
2015/06/26
[ "https://Stackoverflow.com/questions/31081773", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1509401/" ]
I have slightly updated your case with a templateUrl which is, in my opinion, much more readable. <http://plnkr.co/edit/8CHdeRmDtG52PgvAbucG?p=preview> Template here : ``` <ion-nav-bar id="signedInHeader" class="bar-light" align-title="center"> <ion-nav-buttons side="left"> <a class="button button-icon but...
Ionics CSS comes with this rule: ``` img { -webkit-user-drag: none; } ``` Removing this from ionic.css or setting it to `auto` should solve this. Update: ------- this doesn't solve the issue for the OP. But using his plunkr, removing the `ionic.css` from the document fixes the issue. Just as a hint, the answe...
31,081,773
I have a simple ng-click in the nav bar and it doesn't work. I've placed the html template inside of a directive but the alert does not appear. There are no other issues in my console. I'm stumped as to why this doesn't work. ``` <signed-in-header></signed-in-header> ``` My directive as a whole. ``` angular.module(...
2015/06/26
[ "https://Stackoverflow.com/questions/31081773", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1509401/" ]
I have slightly updated your case with a templateUrl which is, in my opinion, much more readable. <http://plnkr.co/edit/8CHdeRmDtG52PgvAbucG?p=preview> Template here : ``` <ion-nav-bar id="signedInHeader" class="bar-light" align-title="center"> <ion-nav-buttons side="left"> <a class="button button-icon but...
Some how the generated ionic code has it's title blocking its own button. ``` <ion-nav-bar id="signedInHeader" class="bar-light nav-bar-container" align-title="center" nav-bar-transition="ios"> <ion-nav-buttons side="left" class="hide"></ion-nav-buttons> <ion-nav-buttons side="right" class="hide"></ion-nav-but...
31,081,773
I have a simple ng-click in the nav bar and it doesn't work. I've placed the html template inside of a directive but the alert does not appear. There are no other issues in my console. I'm stumped as to why this doesn't work. ``` <signed-in-header></signed-in-header> ``` My directive as a whole. ``` angular.module(...
2015/06/26
[ "https://Stackoverflow.com/questions/31081773", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1509401/" ]
I have slightly updated your case with a templateUrl which is, in my opinion, much more readable. <http://plnkr.co/edit/8CHdeRmDtG52PgvAbucG?p=preview> Template here : ``` <ion-nav-bar id="signedInHeader" class="bar-light" align-title="center"> <ion-nav-buttons side="left"> <a class="button button-icon but...
What you have to remember is that `ng-click` will look for a function bound to the current `$scope`, so if you do ``` ng-click="alert(123)" ``` it is looking for a function `$scope.alert` and will not find it. It does not look in the `window` object to find it.
31,081,773
I have a simple ng-click in the nav bar and it doesn't work. I've placed the html template inside of a directive but the alert does not appear. There are no other issues in my console. I'm stumped as to why this doesn't work. ``` <signed-in-header></signed-in-header> ``` My directive as a whole. ``` angular.module(...
2015/06/26
[ "https://Stackoverflow.com/questions/31081773", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1509401/" ]
You just need to add the `button` class to your image. You can add `button-clear` so that the button border is not added. ``` <img class="button button-clear" ng-click="alert(123)" src="https://cdn1.iconfinder.com/data/icons/hawcons/32/700015-icon-27-one-finger-click-32.png" /> ``` [Working Plunker](http://plnkr.co/...
I have slightly updated your case with a templateUrl which is, in my opinion, much more readable. <http://plnkr.co/edit/8CHdeRmDtG52PgvAbucG?p=preview> Template here : ``` <ion-nav-bar id="signedInHeader" class="bar-light" align-title="center"> <ion-nav-buttons side="left"> <a class="button button-icon but...
31,081,773
I have a simple ng-click in the nav bar and it doesn't work. I've placed the html template inside of a directive but the alert does not appear. There are no other issues in my console. I'm stumped as to why this doesn't work. ``` <signed-in-header></signed-in-header> ``` My directive as a whole. ``` angular.module(...
2015/06/26
[ "https://Stackoverflow.com/questions/31081773", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1509401/" ]
I think you can't specify a directive using id? **Angular doc says:** > > The restrict option is typically set to: > > 'A' - only matches attribute name > > 'E' - only matches element name > > 'C' - only matches class name > > > Maybe you can try adding it as an attribute? ``` <ion-nav-bar signed...
Some how the generated ionic code has it's title blocking its own button. ``` <ion-nav-bar id="signedInHeader" class="bar-light nav-bar-container" align-title="center" nav-bar-transition="ios"> <ion-nav-buttons side="left" class="hide"></ion-nav-buttons> <ion-nav-buttons side="right" class="hide"></ion-nav-but...
31,081,773
I have a simple ng-click in the nav bar and it doesn't work. I've placed the html template inside of a directive but the alert does not appear. There are no other issues in my console. I'm stumped as to why this doesn't work. ``` <signed-in-header></signed-in-header> ``` My directive as a whole. ``` angular.module(...
2015/06/26
[ "https://Stackoverflow.com/questions/31081773", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1509401/" ]
You just need to add the `button` class to your image. You can add `button-clear` so that the button border is not added. ``` <img class="button button-clear" ng-click="alert(123)" src="https://cdn1.iconfinder.com/data/icons/hawcons/32/700015-icon-27-one-finger-click-32.png" /> ``` [Working Plunker](http://plnkr.co/...
I think you can't specify a directive using id? **Angular doc says:** > > The restrict option is typically set to: > > 'A' - only matches attribute name > > 'E' - only matches element name > > 'C' - only matches class name > > > Maybe you can try adding it as an attribute? ``` <ion-nav-bar signed...
31,081,773
I have a simple ng-click in the nav bar and it doesn't work. I've placed the html template inside of a directive but the alert does not appear. There are no other issues in my console. I'm stumped as to why this doesn't work. ``` <signed-in-header></signed-in-header> ``` My directive as a whole. ``` angular.module(...
2015/06/26
[ "https://Stackoverflow.com/questions/31081773", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1509401/" ]
I think you can't specify a directive using id? **Angular doc says:** > > The restrict option is typically set to: > > 'A' - only matches attribute name > > 'E' - only matches element name > > 'C' - only matches class name > > > Maybe you can try adding it as an attribute? ``` <ion-nav-bar signed...
Ionics CSS comes with this rule: ``` img { -webkit-user-drag: none; } ``` Removing this from ionic.css or setting it to `auto` should solve this. Update: ------- this doesn't solve the issue for the OP. But using his plunkr, removing the `ionic.css` from the document fixes the issue. Just as a hint, the answe...
31,081,773
I have a simple ng-click in the nav bar and it doesn't work. I've placed the html template inside of a directive but the alert does not appear. There are no other issues in my console. I'm stumped as to why this doesn't work. ``` <signed-in-header></signed-in-header> ``` My directive as a whole. ``` angular.module(...
2015/06/26
[ "https://Stackoverflow.com/questions/31081773", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1509401/" ]
You just need to add the `button` class to your image. You can add `button-clear` so that the button border is not added. ``` <img class="button button-clear" ng-click="alert(123)" src="https://cdn1.iconfinder.com/data/icons/hawcons/32/700015-icon-27-one-finger-click-32.png" /> ``` [Working Plunker](http://plnkr.co/...
Ionics CSS comes with this rule: ``` img { -webkit-user-drag: none; } ``` Removing this from ionic.css or setting it to `auto` should solve this. Update: ------- this doesn't solve the issue for the OP. But using his plunkr, removing the `ionic.css` from the document fixes the issue. Just as a hint, the answe...
31,081,773
I have a simple ng-click in the nav bar and it doesn't work. I've placed the html template inside of a directive but the alert does not appear. There are no other issues in my console. I'm stumped as to why this doesn't work. ``` <signed-in-header></signed-in-header> ``` My directive as a whole. ``` angular.module(...
2015/06/26
[ "https://Stackoverflow.com/questions/31081773", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1509401/" ]
I think you can't specify a directive using id? **Angular doc says:** > > The restrict option is typically set to: > > 'A' - only matches attribute name > > 'E' - only matches element name > > 'C' - only matches class name > > > Maybe you can try adding it as an attribute? ``` <ion-nav-bar signed...
What you have to remember is that `ng-click` will look for a function bound to the current `$scope`, so if you do ``` ng-click="alert(123)" ``` it is looking for a function `$scope.alert` and will not find it. It does not look in the `window` object to find it.
31,081,773
I have a simple ng-click in the nav bar and it doesn't work. I've placed the html template inside of a directive but the alert does not appear. There are no other issues in my console. I'm stumped as to why this doesn't work. ``` <signed-in-header></signed-in-header> ``` My directive as a whole. ``` angular.module(...
2015/06/26
[ "https://Stackoverflow.com/questions/31081773", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1509401/" ]
You just need to add the `button` class to your image. You can add `button-clear` so that the button border is not added. ``` <img class="button button-clear" ng-click="alert(123)" src="https://cdn1.iconfinder.com/data/icons/hawcons/32/700015-icon-27-one-finger-click-32.png" /> ``` [Working Plunker](http://plnkr.co/...
What you have to remember is that `ng-click` will look for a function bound to the current `$scope`, so if you do ``` ng-click="alert(123)" ``` it is looking for a function `$scope.alert` and will not find it. It does not look in the `window` object to find it.
66,769,964
``` @ECHO on CD C:\Users\User reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d C:\Users\User\Desktop\folder\Background1.png /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v TileWallpaper /t REG_SZ /d 0 /f RUNDLL32.EXE USER32.DLL, UpdatePerUserSystemParameters 1 True pause ``` *T...
2021/03/23
[ "https://Stackoverflow.com/questions/66769964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15419399/" ]
You cannot read and write the json file with the same with clause. Kindly use this code to get rid of that error that are the read and write buffers that not allowing you to write while reading at the same time ``` import pathlib import json import os obj = { "a": "1", "b": "2", "c": "3" }...
Reading of json is answerd by Daniel. To write a json file use `json.dump(jsonDict, outfile)` to save a jsonString `jsonvar = json.dumps(jsonDict)` There are several parameters to use, take a look at the [docs](https://docs.python.org/3/library/json.html)
594,547
I am struggling with when to use "be of", its different meanings and alternatives like "have". I did read another thread on this on this site but still not quite sure. > > These two pictures **are of** 8.5-day-old mouse embryo. ([The Economist](https://www.economist.com/science-and-technology/2022/08/31/mouse-embryoi...
2022/09/03
[ "https://english.stackexchange.com/questions/594547", "https://english.stackexchange.com", "https://english.stackexchange.com/users/461686/" ]
The first example could be rephrased as > > These two pictures are *pictures* of 8.5-day-old mouse embryo. > > > The additional "pictures" has been dropped. To rephrase the second example similarly I would start by noting that the reference to suffering is a reference to hell, not a reference to a view. I would ...
> > These two pictures **are of** 8.5-day-old mouse embryos. > > > You have analysed the sentence wrongly. These two pictures = noun phrase as subject are = copula of =preposition 8.5-day-old mouse embryos = noun phrase as the object of the preposition "of" **Preposition + NP = modifier** In this case, "of 8...
7,387,341
In my application, I want to create a dialog box with one text field, and a button, through which I can prompt user and get back user entered value. How do I do this in Cocoa, Objective-C ? I didn't find any predefined method for that.
2011/09/12
[ "https://Stackoverflow.com/questions/7387341", "https://Stackoverflow.com", "https://Stackoverflow.com/users/882819/" ]
You can call an NSAlert and put the NSTextField as it's accessoryView like this" ``` - (NSString *)input: (NSString *)prompt defaultValue: (NSString *)defaultValue { NSAlert *alert = [NSAlert alertWithMessageText: prompt defaultButton:@"OK" al...
I believe what you are looking for is a sheet. Have a look at the [Sheet Programming Topics](http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Sheets/Sheets.html#//apple_ref/doc/uid/10000002-BABFIBIA) documentation I've just updated a [Github Sample](https://github.com/Abizern/JCSSheetController) ...
7,387,341
In my application, I want to create a dialog box with one text field, and a button, through which I can prompt user and get back user entered value. How do I do this in Cocoa, Objective-C ? I didn't find any predefined method for that.
2011/09/12
[ "https://Stackoverflow.com/questions/7387341", "https://Stackoverflow.com", "https://Stackoverflow.com/users/882819/" ]
You can call an NSAlert and put the NSTextField as it's accessoryView like this" ``` - (NSString *)input: (NSString *)prompt defaultValue: (NSString *)defaultValue { NSAlert *alert = [NSAlert alertWithMessageText: prompt defaultButton:@"OK" al...
IN OS X 10.10: ``` NSAlert *alert = [[NSAlert alloc] init]; [alert setMessageText:@"Permission denied, sudo password?"]; [alert addButtonWithTitle:@"Ok"]; [alert addButtonWithTitle:@"Cancel"]; NSTextField *input = [[NSTextField alloc] initWithFrame:NSMakeRect(0, 0, 200, 24)]; [input setStringV...
7,387,341
In my application, I want to create a dialog box with one text field, and a button, through which I can prompt user and get back user entered value. How do I do this in Cocoa, Objective-C ? I didn't find any predefined method for that.
2011/09/12
[ "https://Stackoverflow.com/questions/7387341", "https://Stackoverflow.com", "https://Stackoverflow.com/users/882819/" ]
You can call an NSAlert and put the NSTextField as it's accessoryView like this" ``` - (NSString *)input: (NSString *)prompt defaultValue: (NSString *)defaultValue { NSAlert *alert = [NSAlert alertWithMessageText: prompt defaultButton:@"OK" al...
An example in Swift as of Xcode 7.2.1 and OS X 10.11: ``` let a = NSAlert() a.messageText = "Please enter a value" a.addButtonWithTitle("Save") a.addButtonWithTitle("Cancel") let inputTextField = NSTextField(frame: NSRect(x: 0, y: 0, width: 300, height: 24)) inputTextField.placeholderString = "Enter string" a.accesso...
7,387,341
In my application, I want to create a dialog box with one text field, and a button, through which I can prompt user and get back user entered value. How do I do this in Cocoa, Objective-C ? I didn't find any predefined method for that.
2011/09/12
[ "https://Stackoverflow.com/questions/7387341", "https://Stackoverflow.com", "https://Stackoverflow.com/users/882819/" ]
IN OS X 10.10: ``` NSAlert *alert = [[NSAlert alloc] init]; [alert setMessageText:@"Permission denied, sudo password?"]; [alert addButtonWithTitle:@"Ok"]; [alert addButtonWithTitle:@"Cancel"]; NSTextField *input = [[NSTextField alloc] initWithFrame:NSMakeRect(0, 0, 200, 24)]; [input setStringV...
I believe what you are looking for is a sheet. Have a look at the [Sheet Programming Topics](http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Sheets/Sheets.html#//apple_ref/doc/uid/10000002-BABFIBIA) documentation I've just updated a [Github Sample](https://github.com/Abizern/JCSSheetController) ...
7,387,341
In my application, I want to create a dialog box with one text field, and a button, through which I can prompt user and get back user entered value. How do I do this in Cocoa, Objective-C ? I didn't find any predefined method for that.
2011/09/12
[ "https://Stackoverflow.com/questions/7387341", "https://Stackoverflow.com", "https://Stackoverflow.com/users/882819/" ]
IN OS X 10.10: ``` NSAlert *alert = [[NSAlert alloc] init]; [alert setMessageText:@"Permission denied, sudo password?"]; [alert addButtonWithTitle:@"Ok"]; [alert addButtonWithTitle:@"Cancel"]; NSTextField *input = [[NSTextField alloc] initWithFrame:NSMakeRect(0, 0, 200, 24)]; [input setStringV...
An example in Swift as of Xcode 7.2.1 and OS X 10.11: ``` let a = NSAlert() a.messageText = "Please enter a value" a.addButtonWithTitle("Save") a.addButtonWithTitle("Cancel") let inputTextField = NSTextField(frame: NSRect(x: 0, y: 0, width: 300, height: 24)) inputTextField.placeholderString = "Enter string" a.accesso...
6,480,719
I have an e-mail field which is -not- required in my form validation. It should be able to be left blank. However, when I use the "valid\_email" parameter of the form validation's set\_rules, it still gives an error message that the e-mail is not valid when it's not supposed to check this if the field has not been fill...
2011/06/25
[ "https://Stackoverflow.com/questions/6480719", "https://Stackoverflow.com", "https://Stackoverflow.com/users/815703/" ]
**Rule Reference** Checking the [reference](http://codeigniter.com/user_guide/libraries/form_validation.html#rulereference) on this matter tells us the following regarding the `valid email` rule: > > Returns FALSE if the form element does not contain a valid email address. > > > This would be true of an empty fi...
You just have to appreciate that `''` IS not a valid e-mail address. If you don't want to validate some postdata and don't care if it's empty, you shouldn't set a rule on it, like so: ``` if($this->input->post('item')) { $this->form_validation->set_rules('item', 'Item number', 'trim|alpha_numeric|max_length[30]');...
6,480,719
I have an e-mail field which is -not- required in my form validation. It should be able to be left blank. However, when I use the "valid\_email" parameter of the form validation's set\_rules, it still gives an error message that the e-mail is not valid when it's not supposed to check this if the field has not been fill...
2011/06/25
[ "https://Stackoverflow.com/questions/6480719", "https://Stackoverflow.com", "https://Stackoverflow.com/users/815703/" ]
according to <https://codeigniter.com/user_guide/libraries/validation.html?highlight=validation#id28> use `permit_empty` this > > Allows the field to receive an empty array, empty string, null or > false > > > so your code looks like this: ``` $this->form_validation->set_rules('email', 'Email', 'permit_empty|va...
You just have to appreciate that `''` IS not a valid e-mail address. If you don't want to validate some postdata and don't care if it's empty, you shouldn't set a rule on it, like so: ``` if($this->input->post('item')) { $this->form_validation->set_rules('item', 'Item number', 'trim|alpha_numeric|max_length[30]');...
25,159,172
i have an application like timer in IOS. In the first screen i have button when i am click on it the timer is start and after some amount of time say 30 seconds i have run my application then i am stop my application (not in background) , i am terminating the application. I reopen my application after the timer shows 1...
2014/08/06
[ "https://Stackoverflow.com/questions/25159172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3914085/" ]
This is standard behaviour for sans-serif fonts I believe. The glyph has extra 'room' around it for ascender/decenders/serifs AFAIK. [Codepen.io example](http://codepen.io/Paulie-D/pen/fCdsl) **HTML** ``` <h1>Decent Test</h1> <h1 class="serif" >Decent Test</h1> ``` **CSS** ``` * { margin: 0; padding: 0; } h...
Update your CSS like below. Hopefully it will fix the issue. ``` body, html{margin:0; padding:0} h2 { font-size: 5.2em; font-family: UniSans; word-spacing: 1px; margin:0px; padding:0px; } ``` [**DEMO**](http://jsfiddle.net/LB2N5/7/)
25,159,172
i have an application like timer in IOS. In the first screen i have button when i am click on it the timer is start and after some amount of time say 30 seconds i have run my application then i am stop my application (not in background) , i am terminating the application. I reopen my application after the timer shows 1...
2014/08/06
[ "https://Stackoverflow.com/questions/25159172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3914085/" ]
This is standard behaviour for sans-serif fonts I believe. The glyph has extra 'room' around it for ascender/decenders/serifs AFAIK. [Codepen.io example](http://codepen.io/Paulie-D/pen/fCdsl) **HTML** ``` <h1>Decent Test</h1> <h1 class="serif" >Decent Test</h1> ``` **CSS** ``` * { margin: 0; padding: 0; } h...
You need to add `margin:0` to your `body` and to your `h2` Example : <http://jsfiddle.net/LB2N5/3/>
25,159,172
i have an application like timer in IOS. In the first screen i have button when i am click on it the timer is start and after some amount of time say 30 seconds i have run my application then i am stop my application (not in background) , i am terminating the application. I reopen my application after the timer shows 1...
2014/08/06
[ "https://Stackoverflow.com/questions/25159172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3914085/" ]
This is standard behaviour for sans-serif fonts I believe. The glyph has extra 'room' around it for ascender/decenders/serifs AFAIK. [Codepen.io example](http://codepen.io/Paulie-D/pen/fCdsl) **HTML** ``` <h1>Decent Test</h1> <h1 class="serif" >Decent Test</h1> ``` **CSS** ``` * { margin: 0; padding: 0; } h...
Just try to make the margin negative on your element like with -2px, you can adjust it to your Situation.
19,658,394
I am adding calendar with jQuery Here is my jQuery code of calendar ``` $(function() { $( "#dob" ).datepicker(); } ); ``` but the next and previous button cannot be seen in user interface. please suggest me wher do i have mistaken. you can check here - <http://screencast.com/t/idXD2qYlgk> please help
2013/10/29
[ "https://Stackoverflow.com/questions/19658394", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2656761/" ]
try adding the css , js like this and check once.. ``` <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> ```
**Try inspecting with firebug** the prev and next buttons might me there but as the sprite image is not loaded properly you the buttons are not visible. This type of problems occurs commonly but are simple to be solved !
27,222,988
I write a click hander like this; ``` $("#button1").click(function(evntData) { alert("button1 clicked."); }); ``` to invoke it immediately I do like this; ``` $("#button1").click(function(evntData) { alert("button1 clicked."); }(null)); ``` in this way it is called on start up and work fine. but later when bu...
2014/12/01
[ "https://Stackoverflow.com/questions/27222988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1651158/" ]
try this, Don't use to long multidimentional array directly in query, Use like this save in varialbe then use it, and other also care full for SQL injection, and also u have missed the comma before **NOW()** at the end of query. ``` <?php ini_set('display_errors', 1); //Adjust error reporting: error_reporting(E_ALL |...
Your values are strings, but you have only ending `'`: `VALUES ($_SESSION...', $_SESSION...'`, replace it with `VALUES ('{$_SESSION...}', '{$_SESSION...}'`. Also missing `,` before `NOW()` in values list
17,526,454
I have an HTML page that contains English words and Persian words. I want to know how can I detect English words and change the color of them, and detect Persian words and change the color of them to a different color. These words are dynamic and can be changed. I want to detect them by jQuery or JavaScript and change...
2013/07/08
[ "https://Stackoverflow.com/questions/17526454", "https://Stackoverflow.com", "https://Stackoverflow.com/users/737947/" ]
What about using the char code? English letters are within the first 255 chars but Persian letters aren't. html ``` <p>Hi سلام بر this این text can be برای اولین.</p> ``` javascript ``` jQuery(function($) { $("p").each(function(){ this.innerHTML = $(this).text().replace(/\S+/g, function (word) { ...
> > or can you provide me an example? > > > Well OK: ``` // Find text in descendents of an element, in reverse document order // pattern must be a regexp with global flag // function findText(element, pattern, callback) { var nonHtmlTags= {textarea:1, option:1, script:1, style:1, svg:1, math:1}; for (var ...
43,308,854
I would like to remove second `<p>` node and its content from: ``` <div> <p>1<div>D</div></p> <p>2</p> </div> ``` Checked [children](http://mojolicious.org/perldoc/Mojo/DOM#children) method, but it also returns all descending nodes, while I would like to get first level `<p>` nodes. ``` perl -Mojo -E' say ...
2017/04/09
[ "https://Stackoverflow.com/questions/43308854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/223226/" ]
You probably want: ``` perl -Mojo -E' say for @{ x(" <div> <p>1<div>D</div></p> <p>2</p> </div> ")->find("div > p")} ' ``` output ``` <p>1</p> <p>2</p> ``` But i'm unsure that this is what do you want..
> > Checked `children` method, but it also returns all descending nodes > > > The example you show tries to parse invalid HTML, which has an illegal `<div>` element inside a `<p>` paragraph. The parser solves this by moving the closing `</p>` to before the opening `<div>`, which is pretty much what a real browser ...
20,274
My friends' cat recently gave birth however it was later revealed that the father was the cats' son. My friend offered to let me adopt one of the kittens but I am worried that the kitten I adopt will end up having something wrong with it due to the inbreeding. My question is: **How harmful is inbreeding among cats?**
2018/05/01
[ "https://pets.stackexchange.com/questions/20274", "https://pets.stackexchange.com", "https://pets.stackexchange.com/users/11982/" ]
To answer this question, we first need to understand how incest is bad exactly. This has everything to do with genes and chromosomes. When producing offspring, a mix of the genes of the two parents is combined in the offspring. This is a random process, which is why siblings can be wildly different from eachother. No...
**Inbreeding** Inbreeding can be a problem, but in this case it probably isn't because it's only one time. (that you know of) And non-breed cats have overall less health problems. Breeders use [inbreeding](http://animals.mom.me/problems-with-inbreeding-cats-5105419.html) quite a bit to fix traits. But it can have ver...
40,037,424
I have installed node.js along with npm module manager. I have created a package.json file and from the root directory I am trying to execute `npm install` command but I am getting `npm WARN package.json` project name (in my case it is `NodejsDemo`) `@0.0.0 No repository field`.
2016/10/14
[ "https://Stackoverflow.com/questions/40037424", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5520013/" ]
From [using a package.json](https://docs.npmjs.com/getting-started/using-a-package.json) > > * As a bare minimum, a package.json must have: > + "name" > - all lowercase > > > Try lowercase name like nodejsdemo and you should add repository like ``` "repository": { "type": "git", "url": "git://git_repo_li...
If you want to create `package.json` file manually then use ``` `npm init` ``` command to create your `package.json` file > > Do this command in your root folder > > > It will ask to give some information during creation. After creating file, you can use it. and if you want to save your new modules in yo...
253,036
I want to shorten ``` sudo http_proxy="http://proxy:port" apt-get ______ ``` to ``` sudo rep apt-get ________ ``` Is this possible to implement in Ubuntu? ### EDIT: So I added ``` alias rapt-get="http_proxy="10.1.1.26:8080" apt-get" ``` to my `~/.bash_aliases`. I have other working aliases in this file. If...
2013/02/09
[ "https://askubuntu.com/questions/253036", "https://askubuntu.com", "https://askubuntu.com/users/129716/" ]
You can also make an sh script that reads input, inserts it into the command and runs it. I would upload a file like that for you, but I do not have access to my computer.
`~/.bashrc` adds aliases for you, and only you `sudo` runs as root. Even though you may have administrator access, your user is not root. So, add your alias to `~root/.bashrc` (generally this is `/root/.bashrc`). If you'd like to add this alias for all users, add it to `/etc/profile`