Posts

asp.net - HowTo Web.config transformation in VS 2010 IIS Website without creating a Web Application Project? -

Image
I would like to use web.config conversion, but in the context menu when I right click on my original web.config file . I do not have any web application project and there can not be one in my solutions for BLL, DAL etc. I have a few projects, so I have a local IIS website for the main website. under my local IIS website I have the web Is config and has tried to add the web. Debug.config such as: I local host IIS Web using the website How can I make the configured change? Create a web application project? Is this possible? Is a web application making the project a necessity? I was recently reading this topic and for my knowledge you can not change web.config for a simple site A web site project ??? Web sites do not have a project file, which is where the MSBield configuration is stored. So if you need that functionality then you have to create a project file. But look at this blog which I think gives better explanation for it. After saying that if you find ...

osx - How to add glassfish 2.x to Netbeans 7.0.1 on mac os x -

I am trying to install glashfish 2.x in netbeans 7.0.1 for three days. Needless to say, I have tried many things, I am currently here: According to Netbeans.org, Glassfish 2.x should be in the list of available plugins. But it is not there. Will someone share my success with me? I'm using Mac OS X. Thanks Tell me about it was fighting for a week now Keep plugins back to 7.0.0 before adding 'Fixes'. Very disappointing!

Hash from "email+salt " as a token to verify email -

I am verifying the user's email address The way most people say, he has some unique tokens store in DB Make and send to the user. I am doing just with the email address with Hashing (sha256) sitthers salt Some things that may be worth a look (or not). If someone finds your salt, they can rebuild your hashes and flood your system. In this case, you want to make sure that any user is requesting anything other than your e-mail address. (I.e., I can not get rid of the complete hash stored in DB.) In addition, if the salt is the same then the same will be the same if they re-request the same e-mail Addresses Are you requested every time, want a different hash for the same e-mail address? You can add server date / time to the e-mail address before you have hashes to isolate it every day.

php - Traverse $_POST Array to show field Names -

Is there an array, such as to see the name of $ _POST field and not just the value values Do something foreach (as the $ _POST $ value) {echo $ value; } This will show me the value - but I would like to display the name in that array too. If my $ _POST value was something like $ _POST ['some'] and it was collected 55; I want to output "some". I have a few selected fields for which I need it. Do you mean it? foreach ($ key as $ _POST = & gt; $ value) {resonant "$ key: $ value "; } If you want an array of keys to repeat again, you can also use it. If you want to use callback to repeat, you can also use it: function test_walk (& $ value, $ key) {. .. do stuff ...} array_walk ($ arr, 'test_walk');

What's the difference between two array declarations in Java? -

In my book they are changing the way the array is declared between the following two ways: int array1 [] = {1, 2, 3}; Int [] array2 = {1, 2, 3}; I was wondering what was the difference between what was the position of both the brackets, and why is it that when I put brackets after the name (like in array 1), So why should I either start it for values ​​or a new array, but in array2, I just say "int [] array2;" I can say it and then use it later ... They are similar except that That you mention that you have to start this if you put brackets after the name, a benefit of declaring them before the name starts in a variety of ways: int [ ] MyArray1, myArray2; Int myArray1 [], myArray2 []; In the manner of Java to keep the parenthesis before the name of the array.

xhtml - page content in javascript needs to go in to html -

I have the link when users click them, the page immediately updates using the DOM, it's my O2 () does The problem is that I want to separate the content from logic ... that is, I like the content below in .html file Currently it is in a .js file My understanding is that logic is a good practice to keep separate structure / content ... For example, advanced registration for javascript works in opposition to inline registration To use How do I get html content in .html file below? function l1 () {o2 ('ac1_3', ' & lt; p class = "h" & gt; all your bookmarks in one place & lt ; / P & gt; & lt; img class = "i1" src = "i3.jpg" alt = "" / & gt; & lt; img class = "i1" src = "i4.jpg" alt = "" /> '); } "post-text" itemprop = "text"> If you dynamically add stuff to the DOM using Javascript, Personally, I think That's okay to mix the...

c# - how to position an object using variables -

Image
I am trying to create 81 picture boxes and have positioned them automatically at a certain distance apart from each other. But they seem to keep in any logical order that I have to start the X point for the -1700 so that the screen also appears. The following code gets the first 15 where I want them, but then they start stacking on each other rather than continuing the pattern. This is the result of an hour of tinkering but in the beginning the argument looks fine. I also had a message box that was being displayed at current X, Y and it was right that it would not be kept on those coordinates. int x = -1700; Int Y = 0; For (Int i = 0; I This code works as you expect private zeros form 1_load (object sender, event_arriage_e) {int x = 0; Int y = 0; For (Int i = 0; I 425) {x = 0; Y = = 85; } this. Control. Add (p); }} But I will go with something like Eddie said, a flow layout control