qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
12,598,223
I need to get both table and here is the table structure Table A ------- * UserID * Username * Status * IntroCode Table B ------- * IntroCode * UserID I want to get the table a data and join with table b on tblA.IntroCode = tblB.IntroCode, then get the username of tblB.userID. How can i do such join ? I tried hal...
2012/09/26
[ "https://Stackoverflow.com/questions/12598223", "https://Stackoverflow.com", "https://Stackoverflow.com/users/235119/" ]
This is just a simple join. ``` SELECT a.*, b.* -- select your desired columns here FROM tableA a INNER JOIN tableB b ON a.IntroCode = b.IntroCode WHERE b.userid = valueHere ``` **UPDATE 1** ``` SELECT a.UserID, a.`Username` OrigUserName, a.`Status`, c.`Usernam...
use this query ``` SELECT * FROM tblA INNER JOIN tblB ON tblA.IntroCode = tblB.IntroCode where tblB.userid = value ```
12,598,223
I need to get both table and here is the table structure Table A ------- * UserID * Username * Status * IntroCode Table B ------- * IntroCode * UserID I want to get the table a data and join with table b on tblA.IntroCode = tblB.IntroCode, then get the username of tblB.userID. How can i do such join ? I tried hal...
2012/09/26
[ "https://Stackoverflow.com/questions/12598223", "https://Stackoverflow.com", "https://Stackoverflow.com/users/235119/" ]
This is just a simple join. ``` SELECT a.*, b.* -- select your desired columns here FROM tableA a INNER JOIN tableB b ON a.IntroCode = b.IntroCode WHERE b.userid = valueHere ``` **UPDATE 1** ``` SELECT a.UserID, a.`Username` OrigUserName, a.`Status`, c.`Usernam...
Use this query. ``` SELECT TableA.Username FROM TableA JOIN TableB ON (TableA.IntroCode = TableB.IntroCode); ```
12,598,223
I need to get both table and here is the table structure Table A ------- * UserID * Username * Status * IntroCode Table B ------- * IntroCode * UserID I want to get the table a data and join with table b on tblA.IntroCode = tblB.IntroCode, then get the username of tblB.userID. How can i do such join ? I tried hal...
2012/09/26
[ "https://Stackoverflow.com/questions/12598223", "https://Stackoverflow.com", "https://Stackoverflow.com/users/235119/" ]
you have to give the columns with same name an unique value: ``` SELECT a.UserID as uid_a, b.UserID as uid_b FROM tableA a INNER JOIN tableB b ON a.IntroCode = b.IntroCode WHERE b.UserID = 1 ```
use this query ``` SELECT * FROM tblA INNER JOIN tblB ON tblA.IntroCode = tblB.IntroCode where tblB.userid = value ```
4,507,009
Why does this test fail? ``` private class TestClass { public string Property { get; set; } } [Test] public void Test() { var testClasses = new[] { "a", "b", "c", "d" } .Select(x => new TestClass()); foreach(var testC...
2010/12/22
[ "https://Stackoverflow.com/questions/4507009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21966/" ]
Every time you iterate over the `testClasses` variable, you will run the code in the `.Select()` lambda expression. The effect in your case is that the different foreach loops gets different instances of `TestClass` objects. As you noticed yourself, sticking a `.ToList()` at the end of the query will make sure the ot...
It's because LINQ extension methods such as Select return `IEnumerable<T>` which are lazy. Try to be more eager: ``` var testClasses = new[] { "a", "b", "c", "d" } .Select(x => new TestClass()) .ToArray(); ```
4,507,009
Why does this test fail? ``` private class TestClass { public string Property { get; set; } } [Test] public void Test() { var testClasses = new[] { "a", "b", "c", "d" } .Select(x => new TestClass()); foreach(var testC...
2010/12/22
[ "https://Stackoverflow.com/questions/4507009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21966/" ]
Because of how LINQ works, you are actually creating **8** different versions of `TestClass` - one set of 4 per `foreach`. Essentially the same as if you had: ``` var testClasses = new[] { "a", "b", "c", "d" }; foreach(var testClass in testClasses.Select(x => new TestClass())) { testClass.Property = "test"; } for...
Every time you iterate over the `testClasses` variable, you will run the code in the `.Select()` lambda expression. The effect in your case is that the different foreach loops gets different instances of `TestClass` objects. As you noticed yourself, sticking a `.ToList()` at the end of the query will make sure the ot...
4,507,009
Why does this test fail? ``` private class TestClass { public string Property { get; set; } } [Test] public void Test() { var testClasses = new[] { "a", "b", "c", "d" } .Select(x => new TestClass()); foreach(var testC...
2010/12/22
[ "https://Stackoverflow.com/questions/4507009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21966/" ]
Because of how LINQ works, you are actually creating **8** different versions of `TestClass` - one set of 4 per `foreach`. Essentially the same as if you had: ``` var testClasses = new[] { "a", "b", "c", "d" }; foreach(var testClass in testClasses.Select(x => new TestClass())) { testClass.Property = "test"; } for...
It's because LINQ extension methods such as Select return `IEnumerable<T>` which are lazy. Try to be more eager: ``` var testClasses = new[] { "a", "b", "c", "d" } .Select(x => new TestClass()) .ToArray(); ```
8,787
I use discrete Fourier transform for digital image processing purposes , but I don't understand basic concept behind it. For example : 1. What information exists in frequency domain? 2. What is difference between spatial domain and frequency domain?
2013/04/22
[ "https://dsp.stackexchange.com/questions/8787", "https://dsp.stackexchange.com", "https://dsp.stackexchange.com/users/4408/" ]
> > What information exists in frequency domain? > > > As JasonR says in the comment, ***The frequency domain is a different view of the same data.*** No new information is created, it just takes the "spatial" domain data (the image pixel values and their locations) and re-presents it as the coefficients of com...
Fourier transform approximates a function to a sum of sine and cosine signals of varying frequency. The Fourier transform is an extension of the Fourier series that results when the period of the represented function is lengthened and allowed to approach infinity. Due to the properties of sine and cosine, it is possi...
8,787
I use discrete Fourier transform for digital image processing purposes , but I don't understand basic concept behind it. For example : 1. What information exists in frequency domain? 2. What is difference between spatial domain and frequency domain?
2013/04/22
[ "https://dsp.stackexchange.com/questions/8787", "https://dsp.stackexchange.com", "https://dsp.stackexchange.com/users/4408/" ]
Fourier transform approximates a function to a sum of sine and cosine signals of varying frequency. The Fourier transform is an extension of the Fourier series that results when the period of the represented function is lengthened and allowed to approach infinity. Due to the properties of sine and cosine, it is possi...
Spatial domain in image looks like time domain in signals. Any signal (image,data...everything) can be composed of sine signals of varying frequencies (cosine signals are sine signals too, with just some lag or lead). So a definite signal can be decomposed to the sum of lots of sine signals with different frequencies. ...
8,787
I use discrete Fourier transform for digital image processing purposes , but I don't understand basic concept behind it. For example : 1. What information exists in frequency domain? 2. What is difference between spatial domain and frequency domain?
2013/04/22
[ "https://dsp.stackexchange.com/questions/8787", "https://dsp.stackexchange.com", "https://dsp.stackexchange.com/users/4408/" ]
> > What information exists in frequency domain? > > > As JasonR says in the comment, ***The frequency domain is a different view of the same data.*** No new information is created, it just takes the "spatial" domain data (the image pixel values and their locations) and re-presents it as the coefficients of com...
Spatial domain in image looks like time domain in signals. Any signal (image,data...everything) can be composed of sine signals of varying frequencies (cosine signals are sine signals too, with just some lag or lead). So a definite signal can be decomposed to the sum of lots of sine signals with different frequencies. ...
26,301
If yes, where and why would you use it? If no, please provide an explanation to why C is not acceptable to you.
2010/12/14
[ "https://softwareengineering.stackexchange.com/questions/26301", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/3306/" ]
I use C professionally, nearly every day. In fact, C is the *highest* level language in which I regularly program. **Where I use C:** I write low-level library code that has a requirement to be as efficient as possible. My glue code is written in C, inner computational loops are written in assembly. **Why I use C:** ...
Yes, I do it all the time. If you don't call any libraries, code generated from C requires no OS support. It also gives you fine control over the generated machine language. So it's great for writing drivers or other code that lives in kernel spaces, and other constrained situations like many kinds of embedded systems...
26,301
If yes, where and why would you use it? If no, please provide an explanation to why C is not acceptable to you.
2010/12/14
[ "https://softwareengineering.stackexchange.com/questions/26301", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/3306/" ]
Every single language out there has a decent niche of use. I frequently find myself implementing things in higher-level languages, and then gradually bringing them down to C-land if I need them to be higher-performance or even simply just more portable. There are C compilers for nearly everything in existence, and if y...
**C++** is portable across platforms and embedded devices like microcontrollers. (C++ can be compiled to C, therefore microcontrollers.) **C** is even portable (as foreign functions) to other languages. Therefore, iff I program low-level libraries, then I want more compatibility than C++. **Haskell** is portable acro...
26,301
If yes, where and why would you use it? If no, please provide an explanation to why C is not acceptable to you.
2010/12/14
[ "https://softwareengineering.stackexchange.com/questions/26301", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/3306/" ]
I work mostly with the Xen hypervisor, the assorted libraries it features and the Linux kernel. On occasion, I have to write a device driver (or re-write one so that nxx virtual machines can share a single device such as a HRNG). C is my primary language and I am quite happy with that. Would I try to write a spreadshe...
if it has to be both * fast, and * portable then I use C. Maybe C++.
26,301
If yes, where and why would you use it? If no, please provide an explanation to why C is not acceptable to you.
2010/12/14
[ "https://softwareengineering.stackexchange.com/questions/26301", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/3306/" ]
Every single language out there has a decent niche of use. I frequently find myself implementing things in higher-level languages, and then gradually bringing them down to C-land if I need them to be higher-performance or even simply just more portable. There are C compilers for nearly everything in existence, and if y...
Embedded systems frequently have no more than a few kilobytes of RAM and perhaps a couple dozen kilobytes of flash, with a processor clock rate of a few MHz. C is the only option that makes any sense in such a bare-metal environment.
26,301
If yes, where and why would you use it? If no, please provide an explanation to why C is not acceptable to you.
2010/12/14
[ "https://softwareengineering.stackexchange.com/questions/26301", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/3306/" ]
if it has to be both * fast, and * portable then I use C. Maybe C++.
I would use C if I was writing an operating system. Since that is not going to happen in the next twenty years, unless I hit lotto and have nothing else to do but make my own awesome Linux distro, I'll probably just stick to C#, Java, Python, etc, etc. I haven't used C in a very long time but I always enjoyed using it;...
26,301
If yes, where and why would you use it? If no, please provide an explanation to why C is not acceptable to you.
2010/12/14
[ "https://softwareengineering.stackexchange.com/questions/26301", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/3306/" ]
Yes, I do it all the time. If you don't call any libraries, code generated from C requires no OS support. It also gives you fine control over the generated machine language. So it's great for writing drivers or other code that lives in kernel spaces, and other constrained situations like many kinds of embedded systems...
Embedded systems frequently have no more than a few kilobytes of RAM and perhaps a couple dozen kilobytes of flash, with a processor clock rate of a few MHz. C is the only option that makes any sense in such a bare-metal environment.
26,301
If yes, where and why would you use it? If no, please provide an explanation to why C is not acceptable to you.
2010/12/14
[ "https://softwareengineering.stackexchange.com/questions/26301", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/3306/" ]
C is a great language for System programming -------------------------------------------- I would use C if I implemented some harware drivers. And I would use C if I implement my own Operating System kernel or my own Virtual Machine. It is a very good language to do low-level things if you have to deal with hardware ...
**Yes, in fact I have recently!** I like programming in C. I do most my programming in python, but there are times when I need fast code and I really enjoy the elegance that come from the simplicity of the language. The project I'm working on now is a database, which, as you can imagine, is performance critical. At t...
26,301
If yes, where and why would you use it? If no, please provide an explanation to why C is not acceptable to you.
2010/12/14
[ "https://softwareengineering.stackexchange.com/questions/26301", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/3306/" ]
I work mostly with the Xen hypervisor, the assorted libraries it features and the Linux kernel. On occasion, I have to write a device driver (or re-write one so that nxx virtual machines can share a single device such as a HRNG). C is my primary language and I am quite happy with that. Would I try to write a spreadshe...
Every single language out there has a decent niche of use. I frequently find myself implementing things in higher-level languages, and then gradually bringing them down to C-land if I need them to be higher-performance or even simply just more portable. There are C compilers for nearly everything in existence, and if y...
26,301
If yes, where and why would you use it? If no, please provide an explanation to why C is not acceptable to you.
2010/12/14
[ "https://softwareengineering.stackexchange.com/questions/26301", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/3306/" ]
**Yes, in fact I have recently!** I like programming in C. I do most my programming in python, but there are times when I need fast code and I really enjoy the elegance that come from the simplicity of the language. The project I'm working on now is a database, which, as you can imagine, is performance critical. At t...
I would use C if I was writing an operating system. Since that is not going to happen in the next twenty years, unless I hit lotto and have nothing else to do but make my own awesome Linux distro, I'll probably just stick to C#, Java, Python, etc, etc. I haven't used C in a very long time but I always enjoyed using it;...
26,301
If yes, where and why would you use it? If no, please provide an explanation to why C is not acceptable to you.
2010/12/14
[ "https://softwareengineering.stackexchange.com/questions/26301", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/3306/" ]
C is a great language for System programming -------------------------------------------- I would use C if I implemented some harware drivers. And I would use C if I implement my own Operating System kernel or my own Virtual Machine. It is a very good language to do low-level things if you have to deal with hardware ...
**C++** is portable across platforms and embedded devices like microcontrollers. (C++ can be compiled to C, therefore microcontrollers.) **C** is even portable (as foreign functions) to other languages. Therefore, iff I program low-level libraries, then I want more compatibility than C++. **Haskell** is portable acro...
62,256,834
I keep getting this error while writing a spring boot application using REST API. > > { > "status": 415, > "error": "Unsupported Media Type", > "message": "Content type 'text/plain' not supported" } > > > How do I get rid of the error? My Post Request code is as follows, in my ``` StudentController.java, @...
2020/06/08
[ "https://Stackoverflow.com/questions/62256834", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13704420/" ]
As each Pod of Statefulset is created, it gets a matching DNS subdomain, taking the form: `$(podname).$(governing service domain)`. For your case, * podname = `report-mysqlha-0` * governing service domain = `report-mysqlha.middleware.svc.cluster.local` Pod's subdomain will be, `report-mysqlha-0.report-mysqlha.middl...
`report-mysqlha-0` is the name of the pod and not the name of the service. Hence you can't access it via `report-mysqlha-0.middleware.svc.cluster.local`
42,298,694
* History: I'm making a Powershell script in order to create user from a defined table containing list of users and put them in a defined OrganizationalUnit. * Problem: At the end of the script, I'd like to have a report in order to list whether or not there is one or many user account disabled amoung newly created acc...
2017/02/17
[ "https://Stackoverflow.com/questions/42298694", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7572709/" ]
You need to check if `firstNode` is `null` before you try to access it in the line with the error, since you initialize it with `null`.
In ``` public class LinkedSet<T> implements Set<T> { private Node firstNode; public LinkedSet() { firstNode = null; } // end Constructor ``` `firstNode` is null and you are not initializing the memory to the node and accessing it afterwards.That's the reason you are getting null pointer except...
42,298,694
* History: I'm making a Powershell script in order to create user from a defined table containing list of users and put them in a defined OrganizationalUnit. * Problem: At the end of the script, I'd like to have a report in order to list whether or not there is one or many user account disabled amoung newly created acc...
2017/02/17
[ "https://Stackoverflow.com/questions/42298694", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7572709/" ]
Your set is empty if it has no nodes. Therefore your `isEmpty()` implementation is your problem, since it assumes you always have a `firstNode` even though you explicitly set it to `null` in the constructor. Try this: ``` public boolean isEmpty() { return firstNode == null; } ``` *Edit after the first problem w...
In ``` public class LinkedSet<T> implements Set<T> { private Node firstNode; public LinkedSet() { firstNode = null; } // end Constructor ``` `firstNode` is null and you are not initializing the memory to the node and accessing it afterwards.That's the reason you are getting null pointer except...
42,298,694
* History: I'm making a Powershell script in order to create user from a defined table containing list of users and put them in a defined OrganizationalUnit. * Problem: At the end of the script, I'd like to have a report in order to list whether or not there is one or many user account disabled amoung newly created acc...
2017/02/17
[ "https://Stackoverflow.com/questions/42298694", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7572709/" ]
``` public boolean isEmpty() { Node next = firstNode.next; //Get error here if (next.equals(null)) { return true; } return false; } // end isEmpty() ``` This line gives you NullPointerException, I hope: ``` Node next = firstNode.next; //Get error here ``` Because `firstNode` is probably `nu...
In ``` public class LinkedSet<T> implements Set<T> { private Node firstNode; public LinkedSet() { firstNode = null; } // end Constructor ``` `firstNode` is null and you are not initializing the memory to the node and accessing it afterwards.That's the reason you are getting null pointer except...
42,298,694
* History: I'm making a Powershell script in order to create user from a defined table containing list of users and put them in a defined OrganizationalUnit. * Problem: At the end of the script, I'd like to have a report in order to list whether or not there is one or many user account disabled amoung newly created acc...
2017/02/17
[ "https://Stackoverflow.com/questions/42298694", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7572709/" ]
Your set is empty if it has no nodes. Therefore your `isEmpty()` implementation is your problem, since it assumes you always have a `firstNode` even though you explicitly set it to `null` in the constructor. Try this: ``` public boolean isEmpty() { return firstNode == null; } ``` *Edit after the first problem w...
You need to check if `firstNode` is `null` before you try to access it in the line with the error, since you initialize it with `null`.
42,298,694
* History: I'm making a Powershell script in order to create user from a defined table containing list of users and put them in a defined OrganizationalUnit. * Problem: At the end of the script, I'd like to have a report in order to list whether or not there is one or many user account disabled amoung newly created acc...
2017/02/17
[ "https://Stackoverflow.com/questions/42298694", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7572709/" ]
``` public boolean isEmpty() { Node next = firstNode.next; //Get error here if (next.equals(null)) { return true; } return false; } // end isEmpty() ``` This line gives you NullPointerException, I hope: ``` Node next = firstNode.next; //Get error here ``` Because `firstNode` is probably `nu...
You need to check if `firstNode` is `null` before you try to access it in the line with the error, since you initialize it with `null`.
27,216,349
I want a quick way to burn a ZIP file into an ISO file so I use NeroCmd.exe which is the command-line tool for Nero. When I'm using the following command: ``` NeroCmd --write --drivename "Image Recorder" --real --iso isoName rarFile.rar ``` The problem is that it prompts for the image name and I don't know if it's p...
2014/11/30
[ "https://Stackoverflow.com/questions/27216349", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4133866/" ]
In the first example, some variation of the below may happen: 1. `even()` acquires the lock 2. `even()` prints `count` (which is 0) and signals the condition (though `odd()` can't wake until `even()` releases the lock) 3. `even()` increments `count` to 1 4. `even()` releases the lock, and `odd()` wakes. 5. `odd()` inc...
In the first example, in `even()`, then if count is odd, you `pthread_cond_signal` `odd()` to run if `count` is even. `count` will be incremented, and the mutex dropped. At this point `odd()` may run and signal `even()` before `even()` ever reaches the `pthread_cond_wait()`. Now `odd()` will never again signal `even()`...
27,216,349
I want a quick way to burn a ZIP file into an ISO file so I use NeroCmd.exe which is the command-line tool for Nero. When I'm using the following command: ``` NeroCmd --write --drivename "Image Recorder" --real --iso isoName rarFile.rar ``` The problem is that it prompts for the image name and I don't know if it's p...
2014/11/30
[ "https://Stackoverflow.com/questions/27216349", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4133866/" ]
In the first example, in `even()`, then if count is odd, you `pthread_cond_signal` `odd()` to run if `count` is even. `count` will be incremented, and the mutex dropped. At this point `odd()` may run and signal `even()` before `even()` ever reaches the `pthread_cond_wait()`. Now `odd()` will never again signal `even()`...
``` #include <stdio.h> #include <pthread.h> #include<iostream> void *odd(void* data); void *even(void* data); static int count=0; pthread_mutex_t mutex; pthread_cond_t cond; int main() { pthread_t thread1,thread2; pthread_create(&thread1,NULL,&even,0); pthread_create(&thread2,NULL,&odd,0); pthread_join(...
27,216,349
I want a quick way to burn a ZIP file into an ISO file so I use NeroCmd.exe which is the command-line tool for Nero. When I'm using the following command: ``` NeroCmd --write --drivename "Image Recorder" --real --iso isoName rarFile.rar ``` The problem is that it prompts for the image name and I don't know if it's p...
2014/11/30
[ "https://Stackoverflow.com/questions/27216349", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4133866/" ]
In the first example, some variation of the below may happen: 1. `even()` acquires the lock 2. `even()` prints `count` (which is 0) and signals the condition (though `odd()` can't wake until `even()` releases the lock) 3. `even()` increments `count` to 1 4. `even()` releases the lock, and `odd()` wakes. 5. `odd()` inc...
``` #include <stdio.h> #include <pthread.h> #include<iostream> void *odd(void* data); void *even(void* data); static int count=0; pthread_mutex_t mutex; pthread_cond_t cond; int main() { pthread_t thread1,thread2; pthread_create(&thread1,NULL,&even,0); pthread_create(&thread2,NULL,&odd,0); pthread_join(...
16,892,869
I am using JSP and Servlets to first display a Form in a JSP page then inserting all the parameters to a table in the servlet. Here is some of the code which I am using: ``` <form action="ClassServlet" method="post"> <fieldset> <label for="year">Year</label> <input type="text"...
2013/06/03
[ "https://Stackoverflow.com/questions/16892869", "https://Stackoverflow.com", "https://Stackoverflow.com/users/994926/" ]
What you're looking for is a process called ajax. Rather than going to a new page, you want to send a message to the server to do the insert but without making the page change. Take a look at using jquery with a servlet, so the flow would be something like the following in javascript. ``` $.post('/servlet'); ``` T...
you can have both input and output on the same page with the use of XmlHttpRequest in java script. The following code snippet should work out for you... ``` var xhReq = new XMLHttpRequest(); xhReq.open("post", "ClassServlet", false); xhReq.send(null); var serverResponse = xhReq.responseText; alert(serverResponse); ...
16,892,869
I am using JSP and Servlets to first display a Form in a JSP page then inserting all the parameters to a table in the servlet. Here is some of the code which I am using: ``` <form action="ClassServlet" method="post"> <fieldset> <label for="year">Year</label> <input type="text"...
2013/06/03
[ "https://Stackoverflow.com/questions/16892869", "https://Stackoverflow.com", "https://Stackoverflow.com/users/994926/" ]
There are several technologies, which I only can recommend. You could do it all in one servlet as follows: * On HTTP GET (normal page call) fill the data *model* = do `request.setAttribute("TeacherId", teacherId);` and forward to the JSP with the form, the *view*. * On HTTP POST (coming back from the form), do the SQ...
you can have both input and output on the same page with the use of XmlHttpRequest in java script. The following code snippet should work out for you... ``` var xhReq = new XMLHttpRequest(); xhReq.open("post", "ClassServlet", false); xhReq.send(null); var serverResponse = xhReq.responseText; alert(serverResponse); ...
59,514,022
I wanted to ask if there is a way in Java where I can read in, basically any file format (N3, JSON, RDF-XML) etc and then convert it into turtle(.ttl). I have searched on Google to get some idea, but they mainly just explain for specific file types and how a file type can be converted to RDF whereas I want it the other...
2019/12/28
[ "https://Stackoverflow.com/questions/59514022", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12615393/" ]
Yes, this is possible. One option is to use [Eclipse RDF4J](https://rdf4j.org/) for this purpose, or more specifically, its [Rio parser/writer toolkit](https://rdf4j.org/documentation/programming/rio/). Here's a code example using RDF4J Rio. It detects the syntax format of the input file based on the file extension, a...
An other option would be to use [Apache Jena](https://jena.apache.org/tutorials/rdf_api.html).
72,980,481
I've tryed running a raw mongo command from C# this is the command that I'm interested to run in C# ``` db.getUser("MyUser") ``` I've tried ``` public static async Task GetUserInfoAsync(this IMongoDatabase database, string username, string databaseName) { try { BsonDocument docum...
2022/07/14
[ "https://Stackoverflow.com/questions/72980481", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
You can do: ``` new int[][][] myArray = new int[][][] { new int[][] { new int[] { // Your numbers } } } ``` ``` myArray[0].Length myArray[0][0].Length myArray[0][0][0].Length ``` Works fine
First, ``` int[][][] ``` is a jagged array, or an array of arrays of arrays. Where as, ``` int [,,] ``` is a multi-dimensioinal array. A single array with many dimensions. --- While multi-dimensional arrays are easier to instantiate and will have fixed dimensions on every axis, historically, the CLR [has been o...
72,980,481
I've tryed running a raw mongo command from C# this is the command that I'm interested to run in C# ``` db.getUser("MyUser") ``` I've tried ``` public static async Task GetUserInfoAsync(this IMongoDatabase database, string username, string databaseName) { try { BsonDocument docum...
2022/07/14
[ "https://Stackoverflow.com/questions/72980481", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
You can't declare a jagged array in one line like this: `new int[sizeX][sizeY][sizeZ];` as you really have three levels of nested arrays. You need to initialize them at each level. This is what that would look like: ``` void Set3DArraySize(int sizeX, int sizeY, int sizeZ) { my3DArray = new int[sizeX][][]; for...
First, ``` int[][][] ``` is a jagged array, or an array of arrays of arrays. Where as, ``` int [,,] ``` is a multi-dimensioinal array. A single array with many dimensions. --- While multi-dimensional arrays are easier to instantiate and will have fixed dimensions on every axis, historically, the CLR [has been o...
72,980,481
I've tryed running a raw mongo command from C# this is the command that I'm interested to run in C# ``` db.getUser("MyUser") ``` I've tried ``` public static async Task GetUserInfoAsync(this IMongoDatabase database, string username, string databaseName) { try { BsonDocument docum...
2022/07/14
[ "https://Stackoverflow.com/questions/72980481", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
int[][] is a jaggad array, which means that every array can be in a different size. This is why you can initialize it that way: ``` int[][] arr2D= new int[3][]; arr2D[0] = new int[0]; arr2D[1] = new int[1]; arr2D[2] = new int[2]; ``` which will create a 2d array that looks like this: ``` _ _ _ _ _ _...
First, ``` int[][][] ``` is a jagged array, or an array of arrays of arrays. Where as, ``` int [,,] ``` is a multi-dimensioinal array. A single array with many dimensions. --- While multi-dimensional arrays are easier to instantiate and will have fixed dimensions on every axis, historically, the CLR [has been o...
72,980,481
I've tryed running a raw mongo command from C# this is the command that I'm interested to run in C# ``` db.getUser("MyUser") ``` I've tried ``` public static async Task GetUserInfoAsync(this IMongoDatabase database, string username, string databaseName) { try { BsonDocument docum...
2022/07/14
[ "https://Stackoverflow.com/questions/72980481", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
You can do: ``` new int[][][] myArray = new int[][][] { new int[][] { new int[] { // Your numbers } } } ``` ``` myArray[0].Length myArray[0][0].Length myArray[0][0][0].Length ``` Works fine
``` void Set3DArraySize(int sizeX, int sizeY, int sizeZ) { my3DArray = Enumerable.Repeat(Enumerable.Repeat(new int[sizeZ], sizeY).ToArray(),sizeX).ToArray(); } ```
72,980,481
I've tryed running a raw mongo command from C# this is the command that I'm interested to run in C# ``` db.getUser("MyUser") ``` I've tried ``` public static async Task GetUserInfoAsync(this IMongoDatabase database, string username, string databaseName) { try { BsonDocument docum...
2022/07/14
[ "https://Stackoverflow.com/questions/72980481", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
You can do: ``` new int[][][] myArray = new int[][][] { new int[][] { new int[] { // Your numbers } } } ``` ``` myArray[0].Length myArray[0][0].Length myArray[0][0][0].Length ``` Works fine
You can't declare a jagged array in one line like this: `new int[sizeX][sizeY][sizeZ];` as you really have three levels of nested arrays. You need to initialize them at each level. This is what that would look like: ``` void Set3DArraySize(int sizeX, int sizeY, int sizeZ) { my3DArray = new int[sizeX][][]; for...
72,980,481
I've tryed running a raw mongo command from C# this is the command that I'm interested to run in C# ``` db.getUser("MyUser") ``` I've tried ``` public static async Task GetUserInfoAsync(this IMongoDatabase database, string username, string databaseName) { try { BsonDocument docum...
2022/07/14
[ "https://Stackoverflow.com/questions/72980481", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
You can't declare a jagged array in one line like this: `new int[sizeX][sizeY][sizeZ];` as you really have three levels of nested arrays. You need to initialize them at each level. This is what that would look like: ``` void Set3DArraySize(int sizeX, int sizeY, int sizeZ) { my3DArray = new int[sizeX][][]; for...
``` void Set3DArraySize(int sizeX, int sizeY, int sizeZ) { my3DArray = Enumerable.Repeat(Enumerable.Repeat(new int[sizeZ], sizeY).ToArray(),sizeX).ToArray(); } ```
72,980,481
I've tryed running a raw mongo command from C# this is the command that I'm interested to run in C# ``` db.getUser("MyUser") ``` I've tried ``` public static async Task GetUserInfoAsync(this IMongoDatabase database, string username, string databaseName) { try { BsonDocument docum...
2022/07/14
[ "https://Stackoverflow.com/questions/72980481", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
int[][] is a jaggad array, which means that every array can be in a different size. This is why you can initialize it that way: ``` int[][] arr2D= new int[3][]; arr2D[0] = new int[0]; arr2D[1] = new int[1]; arr2D[2] = new int[2]; ``` which will create a 2d array that looks like this: ``` _ _ _ _ _ _...
``` void Set3DArraySize(int sizeX, int sizeY, int sizeZ) { my3DArray = Enumerable.Repeat(Enumerable.Repeat(new int[sizeZ], sizeY).ToArray(),sizeX).ToArray(); } ```
72,980,481
I've tryed running a raw mongo command from C# this is the command that I'm interested to run in C# ``` db.getUser("MyUser") ``` I've tried ``` public static async Task GetUserInfoAsync(this IMongoDatabase database, string username, string databaseName) { try { BsonDocument docum...
2022/07/14
[ "https://Stackoverflow.com/questions/72980481", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
int[][] is a jaggad array, which means that every array can be in a different size. This is why you can initialize it that way: ``` int[][] arr2D= new int[3][]; arr2D[0] = new int[0]; arr2D[1] = new int[1]; arr2D[2] = new int[2]; ``` which will create a 2d array that looks like this: ``` _ _ _ _ _ _...
You can't declare a jagged array in one line like this: `new int[sizeX][sizeY][sizeZ];` as you really have three levels of nested arrays. You need to initialize them at each level. This is what that would look like: ``` void Set3DArraySize(int sizeX, int sizeY, int sizeZ) { my3DArray = new int[sizeX][][]; for...
35,122,168
I am confused on how to write the map function, which maps over two lists: for example: ``` def map[A,B,C](f: (A, B) => C, lst1: List[A], lst2: List[B]): List[C] ``` The input would be 2 lists and the output could be a list that adds the integers alternatively Test example: ``` assert(map(add, List(1, 2, 3), Lis...
2016/02/01
[ "https://Stackoverflow.com/questions/35122168", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4570919/" ]
You could use `f.tupled` to convert `f` from a function that accepts to arguments `(A, B) => C`, to a function that accepts one argument as a tuple `((A, B)) => C`. Then, you can `zip` the lists together (make them one list of tuples) and feed them to `f` using the traditional `map`. ``` def map[A,B,C](f: (A, B) => C,...
As stated in m-z's answer you can zip the lists, and then map on the list of tuples. If you want to avoid the use of `tupled`, you can do the destructure explicitly: ``` def map[A,B,C](f: (A, B) => C, lst1: List[A], lst2: List[B]): List[C] = { val zipped = lst1 zip lst2 zipped.map { case (a,b) => f(a,b) } } ```
36,282,550
I am having trouble running my ASP.NET5 from command line under IISExpress. My current command line setup (thanks to [this answer](https://stackoverflow.com/questions/33295622/iis-express-command-line-asp-net-mvc-6-beta-8/33309714#33309714)) looks like so > > iisexpress.exe /config:"[project\_dir].vs\config\applicat...
2016/03/29
[ "https://Stackoverflow.com/questions/36282550", "https://Stackoverflow.com", "https://Stackoverflow.com/users/94278/" ]
As the earlier answer points out, Visual Studio sets %LAUNCHER\_PATH% and %LAUNCHER\_ARGS% environment variables when launching iisexpress. If you set these, you don't have to run `dotnet publish`, however the contents of these arguments changes slightly from version to version of Visual Studio. Luckily, you can use Pr...
The applicationhost.config is likely pointing to your project's root directory, and in that directory, the default web.config file for the project has a line that looks something like the following: ``` <aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="fal...
40,941,800
I try to convert my excel data to tree data using vba. ``` Sub MakeTree() Dim r As Integer ' Iterate through the range, looking for the Root For r = 1 To Range("Data").Rows.Count If Range("Data").Cells(r, 1) = "Root" Then DrawNode Range("Data").Cells(r, 2), 0, 0 End If Next...
2016/12/02
[ "https://Stackoverflow.com/questions/40941800", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1967219/" ]
I guess the downloader script is broken. As a temporal workaround can manually download the punkt tokenizer from [here](http://www.nltk.org/nltk_data/) and then place the unzipped folder in the corresponding location. The default folders for each OS are: * Windows: `C:\nltk_data\tokenizers` * OSX: `/usr/local/share/nl...
Though this is an old question, I had the same issue on my mac today. The solution [here](https://github.com/sloria/TextBlob/issues/133#issuecomment-338844284) helped me solve it. Edit: Run the following command on the OSX before running nltk.download(): ``` /Applications/Python\ PYTHON_VERSION_HERE/Install\ Certifi...
52,592,627
I can't quite believe I'm having to ask this, but **how do I obtain the full value of a String variable in the Watch window in VSCode**? From here: [![I want this string](https://i.stack.imgur.com/3pjJo.png)](https://i.stack.imgur.com/3pjJo.png) I'm trying to get the multi-line string that I can see in the tooltip i...
2018/10/01
[ "https://Stackoverflow.com/questions/52592627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1073157/" ]
I'm a bit late to this but you can try putting this in the variable watch ``` *(char (*)[3091])variableName ```
That's because you're selecting an expression with nested values. If you right-click on anything "below" that (meaning in the same tree) but with a primitive value (meaning not nested), you'll see a `copy value` menu entry. What you want is probably in the `value` entry. Expand that and right-click on the entry for w...
52,592,627
I can't quite believe I'm having to ask this, but **how do I obtain the full value of a String variable in the Watch window in VSCode**? From here: [![I want this string](https://i.stack.imgur.com/3pjJo.png)](https://i.stack.imgur.com/3pjJo.png) I'm trying to get the multi-line string that I can see in the tooltip i...
2018/10/01
[ "https://Stackoverflow.com/questions/52592627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1073157/" ]
I'm a bit late to this but you can try putting this in the variable watch ``` *(char (*)[3091])variableName ```
A workaround I found is to cast variable in Watch pane: e.g. Type in "(char \*)variableName" instead of "variableName". It is annoying but works.
52,592,627
I can't quite believe I'm having to ask this, but **how do I obtain the full value of a String variable in the Watch window in VSCode**? From here: [![I want this string](https://i.stack.imgur.com/3pjJo.png)](https://i.stack.imgur.com/3pjJo.png) I'm trying to get the multi-line string that I can see in the tooltip i...
2018/10/01
[ "https://Stackoverflow.com/questions/52592627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1073157/" ]
I'm a bit late to this but you can try putting this in the variable watch ``` *(char (*)[3091])variableName ```
Perhaps, you may copy/paste the output to any JSON formatter to work with your data. In a debug console: `copy(JSON.stringify(yourVarialbeHere));` I tope it helps.
40,556,945
I have a project build using jdk1.5 which is using ant as a build tool. As you know that in ant scripting we can write our own custom tasks like this and than later on we can use this. ``` <taskdef name="loadxml" classname="SomeClass" classpathref="CLASSPATH"/> ``` And here is the java class looks like. ``` import ...
2016/11/11
[ "https://Stackoverflow.com/questions/40556945", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1646665/" ]
> > I currently have my java home variable pointing to jdk 1.5. > > > That is probably the problem. It looks like you are trying to use a version of Ant that has been compiled for a newer Java platform. Running it on an ancient copy of Java won't work. You should UNINSTALL the JDK 1.5 installation. It is years o...
I had the same problem (Using Java 1.5 and Ant 1.7.1). I upgraded to ant 1.9.7 and that resolved my problem. Make sure you change the ANT\_HOME, antrc locations.
20,487,912
I am trying to save drawing as an image from `GLPaint` app from Apple sample code. Saving the image is working fine in iPad(non-retina), but it issued when it runs on iPad(retina). Whenever I run my app on iPad retina, then the image size is 1/4 from original. Can anyone help me out from this?
2013/12/10
[ "https://Stackoverflow.com/questions/20487912", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2894098/" ]
You're on the right track there, but you forgot to implement one step of the description: ``` remove it from the current playlist and place it at the end of newList ``` The method Shuffle needs to be rewritten to the following: ``` public void shuffle (){ newList = new ArrayList<Mp3> (); while (songs.size()...
The program goes crash, it is because, in your `shuffle` method, **`while (songs.size()>0){`** is always be `true`. **The size of list is not changed.** If you want to write a `shuffle` method with your own, then a simple way is to **iterater the songs list** and **swap 2 songs of current index i and the song with a r...
20,487,912
I am trying to save drawing as an image from `GLPaint` app from Apple sample code. Saving the image is working fine in iPad(non-retina), but it issued when it runs on iPad(retina). Whenever I run my app on iPad retina, then the image size is 1/4 from original. Can anyone help me out from this?
2013/12/10
[ "https://Stackoverflow.com/questions/20487912", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2894098/" ]
``` import java.util.Random; public class SuffleSongs { public static void main(String[] args) { List<String> playList = new ArrayList<String>(); playList.add("Song1"); playList.add("Song2"); playList.add("Song3"); playList.add("Song4"); playList.add("Song5"); ...
The program goes crash, it is because, in your `shuffle` method, **`while (songs.size()>0){`** is always be `true`. **The size of list is not changed.** If you want to write a `shuffle` method with your own, then a simple way is to **iterater the songs list** and **swap 2 songs of current index i and the song with a r...
51,085,357
I am trying to get a properties file from within a zip file. I need to use a wild card, because I will want to match either "my.properties" or "my\_en.properties". I create a `ResourcePatternResolver` like so: ``` ClassLoader loader = MyClass.class.getClassLoader(); ResourcePatternResolver resolver = new PathMatchingR...
2018/06/28
[ "https://Stackoverflow.com/questions/51085357", "https://Stackoverflow.com", "https://Stackoverflow.com/users/352319/" ]
The documentation is unclear about this, but the `getResource` method does not use PathMatcher internally to resolve the resource (that means that no wildcard is allowed), try `getResources(String locationPattern)` instead. For example : ``` Resource[] resources = resolver.getResources("file:C:/somePath/a.zip/META-I...
The official documentation explains it: > > **No Wildcards:** > > > In the simple case, if the specified location path does not start with > the "classpath\*:" prefix, and does not contain a PathMatcher pattern, > this resolver will simply return a single resource via a getResource() > call on the underlying Res...
51,085,357
I am trying to get a properties file from within a zip file. I need to use a wild card, because I will want to match either "my.properties" or "my\_en.properties". I create a `ResourcePatternResolver` like so: ``` ClassLoader loader = MyClass.class.getClassLoader(); ResourcePatternResolver resolver = new PathMatchingR...
2018/06/28
[ "https://Stackoverflow.com/questions/51085357", "https://Stackoverflow.com", "https://Stackoverflow.com/users/352319/" ]
The documentation is unclear about this, but the `getResource` method does not use PathMatcher internally to resolve the resource (that means that no wildcard is allowed), try `getResources(String locationPattern)` instead. For example : ``` Resource[] resources = resolver.getResources("file:C:/somePath/a.zip/META-I...
How suggest Sébastien Helbert getResource and getResources works very different in fact if you see the original Spring Code you can see a this code: ``` public class PathMatchingResourcePatternResolver implements ResourcePatternResolver { .... @Override public Resource getResource(String location) { retur...
5,940,633
I'm a novice programmer so feel free to comment on things that make no sense so that I can learn. I'm working on a coffee shop finder android app that makes calls to the [SimpleGeo](http://simplegeo.com "SimpleGeo") API to get each place of interest. I'm having trouble thinking up a way to store the returned JSON data...
2011/05/09
[ "https://Stackoverflow.com/questions/5940633", "https://Stackoverflow.com", "https://Stackoverflow.com/users/338724/" ]
You should **not** use NHibernate.Linq.dll with NHibernate 3.0! NHibernate 3.0 has Linq included (a by far better version than the old extension dll), you just need to add `using NHibernate.Linq;` and use `session.Query<T>()` instead of `session.Linq<T>()`.
as far as I can see you are not comparing, but assigning the Text. Should it not be == in stead of =: ``` using(var session = NHibernateHelper.OpenSession()) { var informations = (from i in session<Information>() where i.Text=="some text" select i).ToList(); } ```
1,700,015
I've the following question for homework. Find the wrong operations between `a` and `d` and explain why. [![enter image description here](https://i.stack.imgur.com/3NHep.png)](https://i.stack.imgur.com/3NHep.png) Currently i think that the following operations are wrong: * `a` is wrong since the number `1` in the de...
2016/03/16
[ "https://math.stackexchange.com/questions/1700015", "https://math.stackexchange.com", "https://math.stackexchange.com/users/19059/" ]
Note that $$ \{X\_2 = X\_3\} \supseteq \{X\_1 = X\_3\} \cap \{X\_1 = X\_2\} $$ that is, in points $\omega \in \Omega$ where $X\_1(\omega) = X\_3(\omega)$ and $X\_1(\omega) = X\_2(\omega)$ we must have $X\_2(\omega) = X\_3(\omega)$. Hence, we have \begin{align\*} \def\P{\mathbf P}\P[X\_2 = X\_3] &\ge \P[X\_1 = X\_2, X...
If $A$ and $B$ are events with $P(A)=1=P(B)$ then: $$P(A\cap B)=P(A)+P(B)-P(A\cup B)=1+1-1=1$$ Applying that on $A=\{X\_1=X\_2\}$ and $B=\{X\_1=X\_3\}$ we find that $P(X\_1=X\_2=X\_3)=1$ and consequently $P(X\_2=X\_3)=1$
1,700,015
I've the following question for homework. Find the wrong operations between `a` and `d` and explain why. [![enter image description here](https://i.stack.imgur.com/3NHep.png)](https://i.stack.imgur.com/3NHep.png) Currently i think that the following operations are wrong: * `a` is wrong since the number `1` in the de...
2016/03/16
[ "https://math.stackexchange.com/questions/1700015", "https://math.stackexchange.com", "https://math.stackexchange.com/users/19059/" ]
Suppose that $X$, $Y$ and $Z$ are random variables defined on the same probablity space $(\Omega,\mathcal F,P)$ such that $P(X=Y)=1$ and $P(X=Z)=1$. Since $P(X=Y)=1$, there exists $\Omega\_1\subset\Omega$ such that $X(\omega)=Y(\omega)$ for each $\omega\in\Omega\_1$ and $P(\Omega\_1)=1$. Similarly, there exists $\Omeg...
If $A$ and $B$ are events with $P(A)=1=P(B)$ then: $$P(A\cap B)=P(A)+P(B)-P(A\cup B)=1+1-1=1$$ Applying that on $A=\{X\_1=X\_2\}$ and $B=\{X\_1=X\_3\}$ we find that $P(X\_1=X\_2=X\_3)=1$ and consequently $P(X\_2=X\_3)=1$
42,949
How do I disable or hide the pink background on missing fonts? I do not care that the fonts are missing. I do not want to install the fonts. I do not want to replace the fonts in the file; I want to keep the fonts the same even though I have opened the file on a computer that does not have these fonts installed.
2014/12/01
[ "https://graphicdesign.stackexchange.com/questions/42949", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/34277/" ]
Understand that you **can not** *"Keep the fonts the same"* unless you install the fonts on your system. The pink background is telling you that the fonts **are not** displaying correctly. In any event, you can turn off the pink background by navigating to `Preferences > Type` and *unchecking* the `Enable Missing Glyp...
Try: Preferences > Type and make sure'Highlight Substituted Fonts' is unchecked
13,733,840
Is it possible to get Google Drive to **automatically** convert uploaded documents to the native format? I know it works with **manual** upload (i.e. Google Drive can auto-convert files you upload via the website), but I want to avoid having to upload every file by hand. I'd prefer to use the API, or better yet, dump...
2012/12/05
[ "https://Stackoverflow.com/questions/13733840", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18763/" ]
Using the API, you can pass the `convert=true` parameter to [`files.insert`](https://developers.google.com/drive/v2/reference/files/insert). The uploaded file will attempt to be converted to a native Google Docs format.
Sure, see this [answer](https://stackoverflow.com/questions/34905363/create-file-with-google-drive-api-v3-javascript/44527113?noredirect=1#answer-35182924). Note you can upload a text file or a csv file and set its content type to google doc or google sheets respectively, and google will attempt to convert it. I have t...
10,311,701
I'm trying to turn my icons into font glyphs. Now, the problem is antialiasing of the font in Google Chrome on Windows 7 (it looks good on OS X). I took two shots, where on the first one you can see the desired behaviour, as seen on Firefox/Windows 7 and all the other browsers, except Google Chrome, which is the seco...
2012/04/25
[ "https://Stackoverflow.com/questions/10311701", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1355580/" ]
Try using [`Range.Value`](http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel.range.value%28v=office.11%29.aspx) property instead of `Text`. So instead of ``` (range.Cells[rCnt, cCnt] as Range).Text; ``` you would write ``` (range.Cells[rCnt, cCnt] as Range).Value; ```
I have seen numerous examples where the Range is read using the property Value OR Value2. Could you try this? ``` data[rCnt - 1, cCnt - 1] = (string)(range.Cells[rCnt, cCnt] as Range).Value.ToString(); ``` The Value2 property is similar to Value but don't translate well the Date columns, so it's better to use the...
10,311,701
I'm trying to turn my icons into font glyphs. Now, the problem is antialiasing of the font in Google Chrome on Windows 7 (it looks good on OS X). I took two shots, where on the first one you can see the desired behaviour, as seen on Firefox/Windows 7 and all the other browsers, except Google Chrome, which is the seco...
2012/04/25
[ "https://Stackoverflow.com/questions/10311701", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1355580/" ]
I have seen numerous examples where the Range is read using the property Value OR Value2. Could you try this? ``` data[rCnt - 1, cCnt - 1] = (string)(range.Cells[rCnt, cCnt] as Range).Value.ToString(); ``` The Value2 property is similar to Value but don't translate well the Date columns, so it's better to use the...
use (string) (range.Cells[rCnt, cCnt] as Range).Value as Value will return the actual value of a cell. Text will return what you actually see on the spreadsheet
10,311,701
I'm trying to turn my icons into font glyphs. Now, the problem is antialiasing of the font in Google Chrome on Windows 7 (it looks good on OS X). I took two shots, where on the first one you can see the desired behaviour, as seen on Firefox/Windows 7 and all the other browsers, except Google Chrome, which is the seco...
2012/04/25
[ "https://Stackoverflow.com/questions/10311701", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1355580/" ]
Try using [`Range.Value`](http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel.range.value%28v=office.11%29.aspx) property instead of `Text`. So instead of ``` (range.Cells[rCnt, cCnt] as Range).Text; ``` you would write ``` (range.Cells[rCnt, cCnt] as Range).Value; ```
use (string) (range.Cells[rCnt, cCnt] as Range).Value as Value will return the actual value of a cell. Text will return what you actually see on the spreadsheet
151,200
In Harry Potter, the first book, Harry receives a letter from Hogwarts after he turned eleven. Due to the interception of his uncle, he didn't get to read the first letter. They then began to send him dozens of letters, and then they sent Hagrid since they could not reach him by mail. How did they know that he hadn't...
2017/01/27
[ "https://scifi.stackexchange.com/questions/151200", "https://scifi.stackexchange.com", "https://scifi.stackexchange.com/users/67324/" ]
He didn't reply. > > Dear Mr Potter, > > > We are pleased to inform you that you have a place at Hogwarts School of Witchcraft and Wizardry. Please find enclosed a list of all necessary books and equipment. > > > Term begins on 1 September. **We await your owl by no later than 31 July.** > > > Yours sincerely, ...
If you remember they appeared to be monitoring him at all times. Remember how Hagrid was the one sending the letters. And when they noticed them not reading the letters they sent more. *Edit*: Yeah as the other answer said he didn't reply. But also they sent another before the deadline.
151,200
In Harry Potter, the first book, Harry receives a letter from Hogwarts after he turned eleven. Due to the interception of his uncle, he didn't get to read the first letter. They then began to send him dozens of letters, and then they sent Hagrid since they could not reach him by mail. How did they know that he hadn't...
2017/01/27
[ "https://scifi.stackexchange.com/questions/151200", "https://scifi.stackexchange.com", "https://scifi.stackexchange.com/users/67324/" ]
If you remember they appeared to be monitoring him at all times. Remember how Hagrid was the one sending the letters. And when they noticed them not reading the letters they sent more. *Edit*: Yeah as the other answer said he didn't reply. But also they sent another before the deadline.
The thing is, is that they actually thought he got the letters. When Hagrid first Came to visit Harry on the island, and he was telling him everything he needed to know, he was talking about magic, and Harry didn't know about them. then Hagrid said Something like " Havn't you been getting the letters?" and then Harry s...
151,200
In Harry Potter, the first book, Harry receives a letter from Hogwarts after he turned eleven. Due to the interception of his uncle, he didn't get to read the first letter. They then began to send him dozens of letters, and then they sent Hagrid since they could not reach him by mail. How did they know that he hadn't...
2017/01/27
[ "https://scifi.stackexchange.com/questions/151200", "https://scifi.stackexchange.com", "https://scifi.stackexchange.com/users/67324/" ]
If you remember they appeared to be monitoring him at all times. Remember how Hagrid was the one sending the letters. And when they noticed them not reading the letters they sent more. *Edit*: Yeah as the other answer said he didn't reply. But also they sent another before the deadline.
Actually what Hagrid says In H.P.S.S is this > > "It's them who should be sorry! I knew yeh weren't gettin' yer letters but I never thought ya wouldn't even know about Hogwarts, for crying out loud! Did you never wonder where your parents learned it all?" > Blockquote > > > So no... They knew Harry was NOT gett...
151,200
In Harry Potter, the first book, Harry receives a letter from Hogwarts after he turned eleven. Due to the interception of his uncle, he didn't get to read the first letter. They then began to send him dozens of letters, and then they sent Hagrid since they could not reach him by mail. How did they know that he hadn't...
2017/01/27
[ "https://scifi.stackexchange.com/questions/151200", "https://scifi.stackexchange.com", "https://scifi.stackexchange.com/users/67324/" ]
He didn't reply. > > Dear Mr Potter, > > > We are pleased to inform you that you have a place at Hogwarts School of Witchcraft and Wizardry. Please find enclosed a list of all necessary books and equipment. > > > Term begins on 1 September. **We await your owl by no later than 31 July.** > > > Yours sincerely, ...
The thing is, is that they actually thought he got the letters. When Hagrid first Came to visit Harry on the island, and he was telling him everything he needed to know, he was talking about magic, and Harry didn't know about them. then Hagrid said Something like " Havn't you been getting the letters?" and then Harry s...
151,200
In Harry Potter, the first book, Harry receives a letter from Hogwarts after he turned eleven. Due to the interception of his uncle, he didn't get to read the first letter. They then began to send him dozens of letters, and then they sent Hagrid since they could not reach him by mail. How did they know that he hadn't...
2017/01/27
[ "https://scifi.stackexchange.com/questions/151200", "https://scifi.stackexchange.com", "https://scifi.stackexchange.com/users/67324/" ]
He didn't reply. > > Dear Mr Potter, > > > We are pleased to inform you that you have a place at Hogwarts School of Witchcraft and Wizardry. Please find enclosed a list of all necessary books and equipment. > > > Term begins on 1 September. **We await your owl by no later than 31 July.** > > > Yours sincerely, ...
Actually what Hagrid says In H.P.S.S is this > > "It's them who should be sorry! I knew yeh weren't gettin' yer letters but I never thought ya wouldn't even know about Hogwarts, for crying out loud! Did you never wonder where your parents learned it all?" > Blockquote > > > So no... They knew Harry was NOT gett...
151,200
In Harry Potter, the first book, Harry receives a letter from Hogwarts after he turned eleven. Due to the interception of his uncle, he didn't get to read the first letter. They then began to send him dozens of letters, and then they sent Hagrid since they could not reach him by mail. How did they know that he hadn't...
2017/01/27
[ "https://scifi.stackexchange.com/questions/151200", "https://scifi.stackexchange.com", "https://scifi.stackexchange.com/users/67324/" ]
Actually what Hagrid says In H.P.S.S is this > > "It's them who should be sorry! I knew yeh weren't gettin' yer letters but I never thought ya wouldn't even know about Hogwarts, for crying out loud! Did you never wonder where your parents learned it all?" > Blockquote > > > So no... They knew Harry was NOT gett...
The thing is, is that they actually thought he got the letters. When Hagrid first Came to visit Harry on the island, and he was telling him everything he needed to know, he was talking about magic, and Harry didn't know about them. then Hagrid said Something like " Havn't you been getting the letters?" and then Harry s...
146,548
I have confusion about the multicast addresses, I have read an example which is given by. Suppose two applications have been built to send audio over a network. One application accepts and digitizes an audio input stream, and then sends the resulting frame across the network to other application. The second applicat...
2010/05/29
[ "https://serverfault.com/questions/146548", "https://serverfault.com", "https://serverfault.com/users/44270/" ]
The multicast address is chosen arbitrarily out of the 239.0.0.0/8 range (if the application is enterprise-internal, at least). It is then configured on the source(s) and all subscribers. So, there is in general no "directory service" within the network, it relies on human interaction, to configure the applications co...
First off let me state that multicasting is evil. It is extremely hard to set up and really tricky to troubleshoot effectively. That being said, I will attempt to answer your question. The sender chooses what multicast IP address that it uses to send traffic on. The reserved range of multicast IP addresses is 224.0.0....
146,548
I have confusion about the multicast addresses, I have read an example which is given by. Suppose two applications have been built to send audio over a network. One application accepts and digitizes an audio input stream, and then sends the resulting frame across the network to other application. The second applicat...
2010/05/29
[ "https://serverfault.com/questions/146548", "https://serverfault.com", "https://serverfault.com/users/44270/" ]
The multicast address is chosen arbitrarily out of the 239.0.0.0/8 range (if the application is enterprise-internal, at least). It is then configured on the source(s) and all subscribers. So, there is in general no "directory service" within the network, it relies on human interaction, to configure the applications co...
Windows Media Services has the option of broadcasting live events over multicast. As Lloyd Baker pointed out, this is something that ends up being local to a network. On our University network we would multicast things like Commencement and speeches by the President, which would allow anyone on the network to tune in (...
18,098,274
I have two datatable dt1 and dt2 and my stored procedure are as follows ``` ALTER procedure [dbo].[Sp_ShowAllEmpLeaveSummary] @TableName1 nvarchar(128) , @TableName2 nvarchar(128) as begin DECLARE @Columns VARCHAR(MAX) SELECT @Columns = COALESCE(@Columns + ',' + name + '', '' + name + '') FROM ( SELECT DISTINCT...
2013/08/07
[ "https://Stackoverflow.com/questions/18098274", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2516261/" ]
We had significant performance problems with boost::property\_tree and JSON. Our approach was to stop using `std::string` and use an in-house string class with a custom allocator, and hash tables for not reallocating the same string twice. This improved performance and memory usage by at least a few orders of magnitude...
It doesn't matter much what's really in the JSON file. I tried multiple JSON files with different conent. Boost is just slow. Now I already switched to jansson which is much better - fast and nice API to use.
18,098,274
I have two datatable dt1 and dt2 and my stored procedure are as follows ``` ALTER procedure [dbo].[Sp_ShowAllEmpLeaveSummary] @TableName1 nvarchar(128) , @TableName2 nvarchar(128) as begin DECLARE @Columns VARCHAR(MAX) SELECT @Columns = COALESCE(@Columns + ',' + name + '', '' + name + '') FROM ( SELECT DISTINCT...
2013/08/07
[ "https://Stackoverflow.com/questions/18098274", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2516261/" ]
We had significant performance problems with boost::property\_tree and JSON. Our approach was to stop using `std::string` and use an in-house string class with a custom allocator, and hash tables for not reallocating the same string twice. This improved performance and memory usage by at least a few orders of magnitude...
I found that there is a huge difference between Release Build vs Debug Build performance numbers from VS for Property Tree. on my specific hardware a parsing through a 1 MB JSON File using read\_json was taking 8 sec in Debug build , but only 0.7 sec in release version.
24,614,333
Hi I have problem with idle instance When I trying: ``` sqlplus / as sysdba ``` I get result: `Connected to an idle instance.` And when I try startup I get: ``` ORA-01078: failure in processing system parameters ORA-01565 error in identifying file 'C:\oraclexe\app\oracle\product\11.2.0\server\dbs/spfileXE.ora OR...
2014/07/07
[ "https://Stackoverflow.com/questions/24614333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3506652/" ]
I just had the same problem. You just have to start the setup to install the database as administrator. After this and a reboot everything works fine.
I highly recommend reading the [Oracle® Database 2 Day DBA](http://docs.oracle.com/cd/E11882_01/server.112/e10897/toc.htm) manual, or hire a dba. You are missing the init{ORACLE\_SID}.ora, the parameter file which contains things like database name, controlfile locations. the init{ORACLE\_SID}.ora is a text file that ...
24,614,333
Hi I have problem with idle instance When I trying: ``` sqlplus / as sysdba ``` I get result: `Connected to an idle instance.` And when I try startup I get: ``` ORA-01078: failure in processing system parameters ORA-01565 error in identifying file 'C:\oraclexe\app\oracle\product\11.2.0\server\dbs/spfileXE.ora OR...
2014/07/07
[ "https://Stackoverflow.com/questions/24614333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3506652/" ]
I've got that pain too. To install Oracle XE you should login as local admin - NOT domain account. This <https://community.oracle.com/thread/2361291> made me happy :)
I highly recommend reading the [Oracle® Database 2 Day DBA](http://docs.oracle.com/cd/E11882_01/server.112/e10897/toc.htm) manual, or hire a dba. You are missing the init{ORACLE\_SID}.ora, the parameter file which contains things like database name, controlfile locations. the init{ORACLE\_SID}.ora is a text file that ...
24,614,333
Hi I have problem with idle instance When I trying: ``` sqlplus / as sysdba ``` I get result: `Connected to an idle instance.` And when I try startup I get: ``` ORA-01078: failure in processing system parameters ORA-01565 error in identifying file 'C:\oraclexe\app\oracle\product\11.2.0\server\dbs/spfileXE.ora OR...
2014/07/07
[ "https://Stackoverflow.com/questions/24614333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3506652/" ]
I've got that pain too. To install Oracle XE you should login as local admin - NOT domain account. This <https://community.oracle.com/thread/2361291> made me happy :)
I just had the same problem. You just have to start the setup to install the database as administrator. After this and a reboot everything works fine.
55,453
We are flying from USA to Greece and from Greece to Africa. Can i have some luggage send straight from the US airport to Africa so i don't have to drag them to Greece with me?
2015/09/06
[ "https://travel.stackexchange.com/questions/55453", "https://travel.stackexchange.com", "https://travel.stackexchange.com/users/34801/" ]
**No**. Due to the risk of terrorism (bombs in bags etc), plus more pedestrian concerns like customs clearance, airlines will not send passengers' bags unless the passenger accompanies them. You could ship your bags ahead as air cargo, but this tends to be extremely expensive. One cheaper option would be to just leave...
There are luggage services that will send your bag to any destination you choose. They will arrange for your bag to be picked up from your home and delivered to your destination. Most work through UPS and FedEx, so the fees are similar to what you would pay if you walked in. They have an advantage over air cargo, as th...
29,428,904
I am struggling to deduce a way to make dynamic INDIRECT references to cell ranges on other worksheets. Would appreciate any suggestions, details are: The workbook includes 4 worksheets (Product1, Product2, Product3, Warehouses). The Warehouses sheet contains the following formula to populate an inventory list for eac...
2015/04/03
[ "https://Stackoverflow.com/questions/29428904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3831261/" ]
There are a number of ways to introduce an incrementing number into the [INDIRECT function's](https://support.office.com/en-us/article/indirect-function-21f8bcfc-b174-4a50-9dc6-4dfb5b3361cd) string concatenation. I prefer a simple [ROW function](https://support.office.com/en-us/article/row-function-fde8c59b-a604-4474-9...
You can modify your `INDIRECT()` formula to take into account the row number of current cell, for example: ``` =INDIRECT(B$2&"!B$"&ROW()&":B$"&(ROW()+397)) ``` Alternatively, you could use `OFFSET()` function to shift your reference with each row: ``` =OFFSET(INDIRECT(B$2&"!B$3:B$400"),ROW()-3,0) ```
160,802
We have given a certificate chain: `X <-- Y <-- Z` (`X` is an end-entity cert, `Z` is root CA). Certificates are extended with CRL distribution points info. Because of the fact `Y -> X` `Y` is a CA for `X`. Therefore, `Y` can revoke `X` 's certificate by placing it on `Y`'s CRL. `Z` is CA for `Y`. `Z` can revoke cer...
2017/05/30
[ "https://security.stackexchange.com/questions/160802", "https://security.stackexchange.com", "https://security.stackexchange.com/users/149645/" ]
Short answer: NO, Z can't revoke X directly. Exception: YES, if Z's CRLs are, due to prior arrangement between Z & Y, in the CRL Distribution Point list of X's certificate that was issued by Y. RFC5280 refers to this as "[Indirect CRL](https://www.rfc-editor.org/rfc/rfc5280#page-55)" - where Z can issue a CRL that inc...
If Z is revoked, Y and X is not revoked, but can't be trusted anymore so we can say it is revoked. As Z didn't signed X it can't revoke it directly in its CRL. By the way, nobody will be looking to Z CRL if X is revoked there but to X CRL. WHat you can theoretically do is to merge both X and Z CRLs, but the problem is ...
160,802
We have given a certificate chain: `X <-- Y <-- Z` (`X` is an end-entity cert, `Z` is root CA). Certificates are extended with CRL distribution points info. Because of the fact `Y -> X` `Y` is a CA for `X`. Therefore, `Y` can revoke `X` 's certificate by placing it on `Y`'s CRL. `Z` is CA for `Y`. `Z` can revoke cer...
2017/05/30
[ "https://security.stackexchange.com/questions/160802", "https://security.stackexchange.com", "https://security.stackexchange.com/users/149645/" ]
*[The two existing answers are good, but since they have no upvotes, I'll try to provide a canonical answer]* --- In general, **No**. I mean, `Z` can revoke `Y`, which automatically revokes `X` and all other certs issued by `Y`, but with commonly used PKIs and TLS engines `Z` has no mechanism to revoke `X` directly. ...
If Z is revoked, Y and X is not revoked, but can't be trusted anymore so we can say it is revoked. As Z didn't signed X it can't revoke it directly in its CRL. By the way, nobody will be looking to Z CRL if X is revoked there but to X CRL. WHat you can theoretically do is to merge both X and Z CRLs, but the problem is ...
117,104
As it turns out, conifers are not the only trees to grow in boreal forests, or *taiga*. At the southernmost ends, the evergreens are mixed with such deciduous trees as: * Birch * Alder * Willow * Poplar * Maple * Elm * Lime * Rowan Now in an alternate Earth, the trees listed above either never existed or went extinct...
2018/07/03
[ "https://worldbuilding.stackexchange.com/questions/117104", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/10274/" ]
I do not live in an artic zone, but I live in an area where it reaches 30f degrees in winter. I also keep a garden, so a little research with some second hand knowledge, this is a list of trees I would think could live on the edge of a tundra forest where maple, willows, and other trees like them grow. * [Malus](https...
[**Aspen.**](https://en.wikipedia.org/wiki/Aspen) [![mixed aspen conifer forest](https://i.stack.imgur.com/yCnll.jpg)](https://i.stack.imgur.com/yCnll.jpg) In our world, aspen trees compete with conifers in the subartic boreal forest. The photo above is in the Yukon. You can easily distinguish the yellow-leaved stand...
829
I've edited the title to better reflect what I was wanting from this post. The initial title was written in haste, and (admittedly) in frustration as this isn't the first time this has occurred. (See edit history if it is value to you.) Moreover, the thread in question was put "on-hold" and not actually "closed". Howe...
2018/12/13
[ "https://networkengineering.meta.stackexchange.com/questions/829", "https://networkengineering.meta.stackexchange.com", "https://networkengineering.meta.stackexchange.com/users/3675/" ]
* We edit the question to be obviously a generic protocol-theory question * We edit out the suggestion about "disingenuous" * We reopen the question * Someone with a view answers [struck-through text shows these things were done.] If this meta-post gets suitable comments or votes I'll happily do the edits.
Update based on [SE Meta](https://meta.stackexchange.com/): =========================================================== From the answer to the SE Meta site question [How soon should I “vote to close”?](https://meta.stackexchange.com/questions/98022/how-soon-should-i-vote-to-close): > > **Always vote to close immedia...
829
I've edited the title to better reflect what I was wanting from this post. The initial title was written in haste, and (admittedly) in frustration as this isn't the first time this has occurred. (See edit history if it is value to you.) Moreover, the thread in question was put "on-hold" and not actually "closed". Howe...
2018/12/13
[ "https://networkengineering.meta.stackexchange.com/questions/829", "https://networkengineering.meta.stackexchange.com", "https://networkengineering.meta.stackexchange.com/users/3675/" ]
> > the thread in question was put "on-hold" and not actually "closed". However, I do want to point out that the difference between the two is difficult to distinguish > > > I would tend to agree. In part because they are both components of the same process. Will circle back to this in a bit. > > The mod who put...
Update based on [SE Meta](https://meta.stackexchange.com/): =========================================================== From the answer to the SE Meta site question [How soon should I “vote to close”?](https://meta.stackexchange.com/questions/98022/how-soon-should-i-vote-to-close): > > **Always vote to close immedia...
829
I've edited the title to better reflect what I was wanting from this post. The initial title was written in haste, and (admittedly) in frustration as this isn't the first time this has occurred. (See edit history if it is value to you.) Moreover, the thread in question was put "on-hold" and not actually "closed". Howe...
2018/12/13
[ "https://networkengineering.meta.stackexchange.com/questions/829", "https://networkengineering.meta.stackexchange.com", "https://networkengineering.meta.stackexchange.com/users/3675/" ]
* We edit the question to be obviously a generic protocol-theory question * We edit out the suggestion about "disingenuous" * We reopen the question * Someone with a view answers [struck-through text shows these things were done.] If this meta-post gets suitable comments or votes I'll happily do the edits.
For those of you saying it was impossible to answer this question without more information... Here is the answer I was in the middle of typing out when the question was closed (minus a few supporting links). How about we put it to the OP (@Ludwigthestud) ... If this answer would have sufficed, great, then we know th...
829
I've edited the title to better reflect what I was wanting from this post. The initial title was written in haste, and (admittedly) in frustration as this isn't the first time this has occurred. (See edit history if it is value to you.) Moreover, the thread in question was put "on-hold" and not actually "closed". Howe...
2018/12/13
[ "https://networkengineering.meta.stackexchange.com/questions/829", "https://networkengineering.meta.stackexchange.com", "https://networkengineering.meta.stackexchange.com/users/3675/" ]
> > the thread in question was put "on-hold" and not actually "closed". However, I do want to point out that the difference between the two is difficult to distinguish > > > I would tend to agree. In part because they are both components of the same process. Will circle back to this in a bit. > > The mod who put...
For those of you saying it was impossible to answer this question without more information... Here is the answer I was in the middle of typing out when the question was closed (minus a few supporting links). How about we put it to the OP (@Ludwigthestud) ... If this answer would have sufficed, great, then we know th...
829
I've edited the title to better reflect what I was wanting from this post. The initial title was written in haste, and (admittedly) in frustration as this isn't the first time this has occurred. (See edit history if it is value to you.) Moreover, the thread in question was put "on-hold" and not actually "closed". Howe...
2018/12/13
[ "https://networkengineering.meta.stackexchange.com/questions/829", "https://networkengineering.meta.stackexchange.com", "https://networkengineering.meta.stackexchange.com/users/3675/" ]
* We edit the question to be obviously a generic protocol-theory question * We edit out the suggestion about "disingenuous" * We reopen the question * Someone with a view answers [struck-through text shows these things were done.] If this meta-post gets suitable comments or votes I'll happily do the edits.
> > the thread in question was put "on-hold" and not actually "closed". However, I do want to point out that the difference between the two is difficult to distinguish > > > I would tend to agree. In part because they are both components of the same process. Will circle back to this in a bit. > > The mod who put...
20,254
I need a utility that can be called from an automation script to convert a CSS-styled HTML document to PDF. The twist is that I want to add page numbers for all the sections in the table of contents (and a page number in the footer of each page). A colleague found a utility called [Prince](http://www.princexml.com/pur...
2015/06/11
[ "https://softwarerecs.stackexchange.com/questions/20254", "https://softwarerecs.stackexchange.com", "https://softwarerecs.stackexchange.com/users/9087/" ]
[DocRaptor](https://docraptor.com) is a hosted version of PrinceXML. It has a much less upfront cost than Prince, although sometimes fixed costs are advantageous (client projects, etc). Test documents are always free at DocRaptor. Note: I work at DocRaptor.
[pandoc](http://pandoc.org/) can produce pdfs from a wide viriety of formats including HTML, (some sites pages better than others - beware ones with restricted fonts), via latex and if invoked with the --toc flag will embed in the latex instructions to generate a table of contents which should include page numbers once...
12,759,141
I want to encrypt, decrypt, sign and verify data using PKCS#7 Cryptographic Message Syntax. I saw sample code for this with Bouncy Castle. I want to know can I do this without using the Bouncy Castle libraries?
2012/10/06
[ "https://Stackoverflow.com/questions/12759141", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1724969/" ]
There is no support for PKCS7 messages in the standard Java libraries. There is no reason not to use an existing implementation like Bouncycastle. It has such a liberal license you can probably just grab it and say you wrote it.
You should have fully compatible results using JCE and PKCS5.
1,006,650
I have a lot of apps that send email. Sometimes it's one or two messages at a time. Sometimes it's thousands of messages. In development, I usually test by substituting my own address for any recipient addresses. I'm sure that's what everybody else does, until they get fed up with it and find a better solution. I wa...
2009/06/17
[ "https://Stackoverflow.com/questions/1006650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/437/" ]
This is similar to the smtp4dev except implemented in java so it works for non-windows developers. <http://www.aboutmyip.com/AboutMyXApp/DevNullSmtp.jsp>
You can also use netDumbster. <http://netdumbster.codeplex.com/>
1,006,650
I have a lot of apps that send email. Sometimes it's one or two messages at a time. Sometimes it's thousands of messages. In development, I usually test by substituting my own address for any recipient addresses. I'm sure that's what everybody else does, until they get fed up with it and find a better solution. I wa...
2009/06/17
[ "https://Stackoverflow.com/questions/1006650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/437/" ]
There is now a web based version of Papercut. Also the app based version works fine for me.
This is similar to the smtp4dev except implemented in java so it works for non-windows developers. <http://www.aboutmyip.com/AboutMyXApp/DevNullSmtp.jsp>
1,006,650
I have a lot of apps that send email. Sometimes it's one or two messages at a time. Sometimes it's thousands of messages. In development, I usually test by substituting my own address for any recipient addresses. I'm sure that's what everybody else does, until they get fed up with it and find a better solution. I wa...
2009/06/17
[ "https://Stackoverflow.com/questions/1006650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/437/" ]
A few ago I came across the following solution for the **.NET platform**. ``` <system.net> <mailSettings> <smtp deliveryMethod="SpecifiedPickupDirectory"> <specifiedPickupDirectory pickupDirectoryLocation="C:\TestMailMessages\" /> </smtp> </mailSettings> </system.net> ``` Simply place the above cod...
There is also [Papercut](http://invalidlogic.com/papercut/) and [Neptune](http://www.donovanbrown.com/post/2008/10/20/Neptune.aspx), too bad none of these can be run in a portable way.
1,006,650
I have a lot of apps that send email. Sometimes it's one or two messages at a time. Sometimes it's thousands of messages. In development, I usually test by substituting my own address for any recipient addresses. I'm sure that's what everybody else does, until they get fed up with it and find a better solution. I wa...
2009/06/17
[ "https://Stackoverflow.com/questions/1006650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/437/" ]
I faced the same problem a few weeks ago and wrote this: <http://smtp4dev.codeplex.com> > > Windows 7/Vista/XP/2003/2010 compatible dummy SMTP server. Sits in the system tray and does not deliver the received messages. The received messages can be quickly viewed, saved and the source/structure inspected. Useful for t...
Dumbster might be what you want then. It's an open source fake SMTP server written in Java. It takes the place of a real SMTP server, so you can test your app in a realistic setting, without having any code stubbed out. You can make sure the right messages are sent to the SMTP server without actually delivering message...
1,006,650
I have a lot of apps that send email. Sometimes it's one or two messages at a time. Sometimes it's thousands of messages. In development, I usually test by substituting my own address for any recipient addresses. I'm sure that's what everybody else does, until they get fed up with it and find a better solution. I wa...
2009/06/17
[ "https://Stackoverflow.com/questions/1006650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/437/" ]
if you are using java I would use [Wiser](http://code.google.com/p/subethasmtp/wiki/Wiser): Wiser is a simple SMTP server that you can use for unit testing applications that send mail.
You can also use netDumbster. <http://netdumbster.codeplex.com/>
1,006,650
I have a lot of apps that send email. Sometimes it's one or two messages at a time. Sometimes it's thousands of messages. In development, I usually test by substituting my own address for any recipient addresses. I'm sure that's what everybody else does, until they get fed up with it and find a better solution. I wa...
2009/06/17
[ "https://Stackoverflow.com/questions/1006650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/437/" ]
Dumbster might be what you want then. It's an open source fake SMTP server written in Java. It takes the place of a real SMTP server, so you can test your app in a realistic setting, without having any code stubbed out. You can make sure the right messages are sent to the SMTP server without actually delivering message...
I've been using "Test Mail Server Tool" from ToolHeap for years. <http://www.toolheap.com/test-mail-server-tool/> It is a simple app that runs in your system tray and dumps emails to a folder. It can also be configured to open each email in your default mail program.
1,006,650
I have a lot of apps that send email. Sometimes it's one or two messages at a time. Sometimes it's thousands of messages. In development, I usually test by substituting my own address for any recipient addresses. I'm sure that's what everybody else does, until they get fed up with it and find a better solution. I wa...
2009/06/17
[ "https://Stackoverflow.com/questions/1006650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/437/" ]
There is also [Papercut](http://invalidlogic.com/papercut/) and [Neptune](http://www.donovanbrown.com/post/2008/10/20/Neptune.aspx), too bad none of these can be run in a portable way.
You can also use netDumbster. <http://netdumbster.codeplex.com/>
1,006,650
I have a lot of apps that send email. Sometimes it's one or two messages at a time. Sometimes it's thousands of messages. In development, I usually test by substituting my own address for any recipient addresses. I'm sure that's what everybody else does, until they get fed up with it and find a better solution. I wa...
2009/06/17
[ "https://Stackoverflow.com/questions/1006650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/437/" ]
A few ago I came across the following solution for the **.NET platform**. ``` <system.net> <mailSettings> <smtp deliveryMethod="SpecifiedPickupDirectory"> <specifiedPickupDirectory pickupDirectoryLocation="C:\TestMailMessages\" /> </smtp> </mailSettings> </system.net> ``` Simply place the above cod...
if you are using java I would use [Wiser](http://code.google.com/p/subethasmtp/wiki/Wiser): Wiser is a simple SMTP server that you can use for unit testing applications that send mail.
1,006,650
I have a lot of apps that send email. Sometimes it's one or two messages at a time. Sometimes it's thousands of messages. In development, I usually test by substituting my own address for any recipient addresses. I'm sure that's what everybody else does, until they get fed up with it and find a better solution. I wa...
2009/06/17
[ "https://Stackoverflow.com/questions/1006650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/437/" ]
Dumbster might be what you want then. It's an open source fake SMTP server written in Java. It takes the place of a real SMTP server, so you can test your app in a realistic setting, without having any code stubbed out. You can make sure the right messages are sent to the SMTP server without actually delivering message...
There is also [Papercut](http://invalidlogic.com/papercut/) and [Neptune](http://www.donovanbrown.com/post/2008/10/20/Neptune.aspx), too bad none of these can be run in a portable way.
1,006,650
I have a lot of apps that send email. Sometimes it's one or two messages at a time. Sometimes it's thousands of messages. In development, I usually test by substituting my own address for any recipient addresses. I'm sure that's what everybody else does, until they get fed up with it and find a better solution. I wa...
2009/06/17
[ "https://Stackoverflow.com/questions/1006650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/437/" ]
There is now a web based version of Papercut. Also the app based version works fine for me.
There is also [Papercut](http://invalidlogic.com/papercut/) and [Neptune](http://www.donovanbrown.com/post/2008/10/20/Neptune.aspx), too bad none of these can be run in a portable way.
1,770
I first found out there was a club in my city through a [JEF](https://www.jef-hamburg.de/), young European federalists event, but it took quite some time - and the help of a friend - until I went there the first time. How do I find out if there is an Esperanto club in my city?
2016/10/24
[ "https://esperanto.stackexchange.com/questions/1770", "https://esperanto.stackexchange.com", "https://esperanto.stackexchange.com/users/134/" ]
There are a couple of possibilities: 1. google Esperanto + yourcityname (by this way I found an event in my city) 2. search on Facebook for Esperanto + yourcityname 3. ask the Esperanto organization of your country how to contact the local group 4. ask on [Telegram](https://telegramo.org) in one of the language groups...
I would like to second what Aviadisto said, especially the google search. Esperanto in my own city is very easy to find and comes right up in a google search. I've said before that if people can't find us, they're not really looking. There isn't really one good way to look -- or even five good ways to look - so look e...
48,949,525
I am trying to make a pixel art maken for an assignment for school, but i am not able to get the button event to work. I am adding an evenListener and bind a function to it but the function is never fired off. I am trying to show a simple text in the log. Can someone tell me what i am doing wrong here? Thanks in adva...
2018/02/23
[ "https://Stackoverflow.com/questions/48949525", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9184161/" ]
**You're calling the function `makeGrid`:** ``` btnSubmit.addEventListener("click", makeGrid()); ^ ``` **Try this:** ``` // When size is submitted by the user, call makeGrid() const btnSubmit = document.getElementById("submitButton"); btnSubmit.addEventListener("click", ...
In the Listener, the callback is without an argument function > > btnSubmit.addEventListener("click", makeGrid); > > >
69,190,135
Getting unexpected token error for this tsx code. I couldn't fix this error, I think it is a typescript compiling issue. I have shared some config files below. I have tried resolving the issue but cant locate the any character unexpected. ``` [ error ] ./project/app.tsx SyntaxError: C:\Projects\project\app.tsx: Unex...
2021/09/15
[ "https://Stackoverflow.com/questions/69190135", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8433332/" ]
I believe you will need to use the `variables` object to pass the other input, as @xadm mentioned. Using Postman, I tested the following code and it worked: ``` { "query": "mutation userUploadPostPhoto($photo: Upload!, $id: String!) { userUploadPostPhoto(photo: $photo, id: $id) }", "variables": { "photo": null, "i...
you can try to use [Altair](https://altair.sirmuel.design/) I think this is better than postman here you can see an example of how to [Upload a file whit altair](https://altair.sirmuel.design/docs/features/file-upload.html) your GraphQL query should looks like this ``` mutation ($Picture: Upload!) { userUploadPos...
68,117,280
I am having 2 tables, Customers and Customer Contacts table. **Ex: Customers** Column: ``` Id Customer Name ``` **Contacts Table** Column ``` id customer_id contact_no ``` I need to fetch a record by below format.' Customer Name, contact\_no\_1, contact\_no\_2 .... etc. I'm using oracle 11g.
2021/06/24
[ "https://Stackoverflow.com/questions/68117280", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5707365/" ]
you must do a default tag option for select, this way on change element this will bind the value to the property ``` <select class="form-select px-4 py-3 w-full rounded" wire:model="team_id"> <option>Select Team</option> @foreach($teams as $team) <option value="{{$team->id}}">{{$team->name}}</option> @en...
`wire:model` should be on `option` tag not on `select`
18,383,869
Would this be the correct way to loop through the $POST data sent by an API and have a equivalent $SESSION name/value pair be created from it? ``` foreach($_POST as $key=>$value) { $_SESSION['$key']=$value; } ``` **UPDATE:** First, thanks for the solid responses - I think I need to explain the problem I'm trying to ...
2013/08/22
[ "https://Stackoverflow.com/questions/18383869", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2065226/" ]
Don't you rather want to keep them separated? ``` $_SESSION['response'] = $_POST; ```
Ignoring the security issues this could cause depending on how you use it, what you could do is use: ``` $_SESSION = array_merge($_POST, $_SESSION); ``` This will only bring in POST vars which have a key not already found in $\_SESSION. Switch them around if you want the POST vars to take precedence of course. Just...
18,383,869
Would this be the correct way to loop through the $POST data sent by an API and have a equivalent $SESSION name/value pair be created from it? ``` foreach($_POST as $key=>$value) { $_SESSION['$key']=$value; } ``` **UPDATE:** First, thanks for the solid responses - I think I need to explain the problem I'm trying to ...
2013/08/22
[ "https://Stackoverflow.com/questions/18383869", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2065226/" ]
If you **really** want to do it as you state, you could use something like ``` $_SESSION=array_merge($_SESSION,$_POST); ``` which would work but be a "bad thing" - plenty of scope to overwrite items already in the `$_SESSION` variable: index.php: ``` <form action="2.php" method="post"> <input type="text" name="hid...
Since the POST is made by a payment gateway, the session will be associated with it (and most likely be lost at first request, since it can be assumed that it won't ever bother reading the session cookie). Your client won't ever see this data in their session. If you want to have this data available, you need to pers...
18,383,869
Would this be the correct way to loop through the $POST data sent by an API and have a equivalent $SESSION name/value pair be created from it? ``` foreach($_POST as $key=>$value) { $_SESSION['$key']=$value; } ``` **UPDATE:** First, thanks for the solid responses - I think I need to explain the problem I'm trying to ...
2013/08/22
[ "https://Stackoverflow.com/questions/18383869", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2065226/" ]
Don't use single quotes: ``` foreach ($_POST as $key => $value) { $_SESSION[$key] = $value; } ``` I'd encourage you to read about [Strings in PHP](http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.single). **Note:** This is potentially unsafe for several reasons - mostly injectio...
Don't you rather want to keep them separated? ``` $_SESSION['response'] = $_POST; ```