Posts

mysql - Can mysql_pconnect be called multiple times in one php page? -

I was wondering if it is valid for calling mysql_pconnect several times in a php page? Also, if possible, should I either close my last ISSL handle or something? Actually the following code is okay? Or is there a lack of some other steps? mysql_pconnect ("ip: 3306", "user", "pass") or die (mysql_error ()); Mysql_select_db ("test") or die (mysql_error ()); // Some SQL queries mysql_pconnect ("ip2: 3306", "user", "pass") or die (mysql_error ()); Mysql_select_db ("test") or die (mysql_error ()); // Another SQL query Yes but this is probably a better practice, both the headset To store both in the database and make the correct DB explicit use. dbServer1 = mysql_pconnect ("ip: 3306", "user", "pass") or die (mysql_error ()); Mysql_select_db ("test", dbServer1) or die (mysql_error ()); DbServer2 = mysql_pconnect ("ip: 3306", "user", "...

msdn - where are the official directx forums? -

I am checking around MSDN and Microsoft dot com but I can only find archived platforms. Are there any Microsoft DirectX forums for DirectX? Here it is: You can use XNA, D3, D3 10, D311 etc. Everything will be related.

MVP, design question -

I am working on an MVP designated application and there are some design questions: I presenter how to communicate while writing code in the layer Should go between different presenters / ideas? Let's say I have a window window with a window viewer and I want to set the window title on the window from the second window. I have a title-setter on the window view, which wraps the actual Gui title. Should I call the title-setter directly on the scene (window viewer.tit = "title") or should I wrap the view title as the presentation title setter (window-creator.tit = "title")? Ask yourself how you will test it? If you do a window presentation. View. Tight = "Title", how can you test that the presenter is setting the title?

excel - Populate list via a bi-Condition -

I'm interested in implementing something but I'm not sure it would be possible and would like to take it on. This is my scenario: I will have two verification cells, which will be shown as a list, from which I will select. This is my condition that I want to remember and remember my list from a database. I have a list of agents, which has been thrown at B13: B23 and the next two, I have columns of data that assume that my data base looks like this bcdx | Y Z Agent 1 1 | 1 | 0 Agent 2 0 | 1 | 0 Agent 3 0 | 1 | 1 agent 4 1 | 0 | 0 ... I want to populate a list named agent from column B, when I verify cell 1: x and verification cell 2: 1 I choose from. It should only show an agent in column X with column: agent1 agent4 or 0 ... I read somewhere Array formula but I do not know if this is convenient and I have unfortunately not any background in the macro :( But I know C ++ is quite easy with some conditional statement like this. Advance Thanks, This...

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -

There is an object like "set" in Java that can contain only unique string values, but it also includes a count Is the number of string value in number? This idea is simple. A data set, ALA ... ABBCCC I will set the text of each line set- I want to add to the object every time a non-unique text is added to the set, I also want to show a numeric value associated with the set to show how often it was added. So if I run it on the above data then set output will be something like this: A: 1B: 2C: 3 Any ideas? Maps & lt; String, integer & gt; add public null (strings) {if (map.containsKey (s)) {map.put (s, map.get (s) + 1); } And {map.put (S, 1); }}

iphone - How do I make a UIPickerView in a UIActionSheet -

Just want to know how I will create UIPickerView in a UIActionSheet with a simple array. Well, I really know how to put it in an action sheet but I like my way because it is more for my app, thanks, but I I also want to know how to put options in UIPKviewView, I just have an array with colors already on top of that part: red, green, blue, yellow, black, etc. in this, but I want to know how it In the preview d L'be if I am using the already Instifrem:? Please help anyone. I know that this is a stupid question, but I'm cheating my head on my $$$$$$ MacBook. Instead you want to do this, create your UIPickerView interface builder and have it in your view controller Connect to the outlet. Add it as a subview of your main view and set its frame coordinates so that it is offset right below the edge, x = 0, y = 480 Then, when you want to display a picker, animate it like something with the screen: [UIView startup permissions: zero reference: zero]; [Color picture setfr...

Is there an open source WebSockets (JavaScript) XMPP library? -

Has anyone written the open source XMPP library that uses the websacet and is being run by a browser? We do not yet have a standard XMPP that can enforce the server, Must be adequately faced before it may be necessary The first step is to eliminate WebSAT standardization. It seems that it can be in an IETF Haib working group, which has not been approved by the IESG so far in the writing time (see) a few weeks ago (Hiroshima), a hybrid bird-of-a-feather in IETF ( BOF), which went very well. WebSketches have a constant reference, and it seems to be systematically organized, one will make XMPP binding for webmasters, possibly with a bar for every webset frame. Edit: Jack Moffitt has written an IETF can be used with the first pass on a protocol. Warning . It is still likely to change fast enough, only apply it if you are ready to wrap it completely later. Warning

asp.net - Automated creation of IIS 6.0 websites -

We have a web application portal that hosts many applications with each of their IIS websites, so every time we do our own To adopt a code, developer workstation, or another machine to run the server, we will have to prepare all the websites for each of our applications, (and of course this list keeps on growing). Is there an API call to create an IIS website, so that I can store all the necessary information in a database table and then write a Winform program that will check the table and automatically create an IIS website for each record? If you want to do it in the WinForms / Console application, I recommend the Directory Services Namespace. Here are some good documents: For example, directories for creating sites and virtual: System.DirectoryServices Namespace is a managed wrapper around ADSI API that uses various IIS administrative scripts. For more information about different metabase properties, you would recommend this reference: If or when y...

concurrency - Memory effects of synchronization in Java -

Says: But there is more to synchronization than mutual exclusion. Synchronization ensures that a thread writes memory before or during a synchronized block, in an approximate way, appears to other threads that synchronizes on the same monitor. After we exit a synchronized block, we release the monitor, in which the cache is flushing in the main memory, so that the instruments written by this thread appear for another thread. Before entering a synchronized block, we receive the monitors, in which the effect of making the local processor cache invalid, so that the variable can be reloaded from the main memory. Then we will be able to see all the writing that is visible by the previous release. I also have to remember that unusual synchronization on modern Sun VM is cheap. I am a little confused with this claim, like the code: square fu {int x = 1; Int y = 1; .. synchronize (aLock) {x = x + 1; }} Update of X requires synchronization, but does the acquisition of lock also c...

css - Center float boxes horizontally -

I want to display some floating boxes (thumbnails containing divs) and the number of thumbnails depends on the current page width. For example: & lt; Div class = "container" & gt; & Lt; Div square = "box 1" style = "float: left; width: 120px; height: 120px; margin-right: 10px;" & Gt; Thumbnail image here & lt; / Div & gt; & Lt; Div square = "box 2" style = "float: left; width: 120px; height: 120px; margin-right: 10px;" & Gt; Thumbnail image here & lt; / Div & gt; & Lt; Div class = "box3" style = "float: left; width: 120px; height: 120px; margin-right: 10px;" & Gt; Thumbnail image here & lt; / Div & gt; & Lt; Div square = "box 4" style = "float: left; width: 120px; height: 120px; margin-right: 10px;" & Gt; Thumbnail image here & lt; / Div & gt; .......... ETC & lt; / Div & gt; The problem is that 4 boxes are shown...

ssms - "collapse all' or "toggle outline" in SQL Server Management Studio 2008 -

There is a new feature 'Outlineing' (the ability to collapse areas) in SQL Server Management Studio 2008. This is amazing. However, by default all areas are expanded. I can not seem to find a way to 'all fall' (also called 'toggle framework' in the visual studio) Does anyone know the way to do this? I have been entrusted with the task of reviewing the 3,000 line stored procedures, and the breakdown of each other is cumbersome. It seems that this feature does not exist. It has been recommended for Microsoft to vote I suggest; As part of the work, I am using Notepad ++ to edit locally. The identity of its area is not as good, but it is nothing better.

php - Is it possible to override the Subversion HTML pages? -

I have a subversion server, which provides subversion access via Apache2 and mod_dav_svn The system works fine and the client can use the repository with SON clients such as Tortoise SN.N etc. Users can also use HTML Reader of the same URL. Can these readers be more prone to, or be replaced? If so, how would I go about it? You can specify a SVNIndexXSLT httpd.conf : and / location: / repository & gt; In your repository, & lt; Location & gt; Code in> . DAV SVN SVN Path / var / repository SVNINDXXLT "/svnstyle.xsl" [...] & lt; / Location & gt; With this command, subversion will list an XML directory instead of one HTML directory, and you can list this XML in any way listed XSLT file. The way you specify in the SVNIndexXSLT directive, it is a URL of your webserver, it must be used to properly present the browser to pages.

php - Good tutorials for Joomla? -

Can someone really recommend a good tutorial for learning Joomla, most of which allow me to click spam ads Meet for many ads without learning anything I am using Joomla for the first time and I am confused with certain words because they are all the same. For example, section and category are almost identical, and so on. Maybe Joomla is not the right choice for me, what I really want is some kind of CMS: Free to use Easy to administer (add / customizable CSS or existing templates hack / exploitation / will not get injections so easily / Local> The best tutorial you can get from installing Joomla on your localhost And with it you have to play around it! Besides Joomla you can also look at other CMS but I can say that Joomla fits best according to your criteria. Wordpress basically There was a blogging engine and this is what is still the most. Drupal is another great free PHP CMS, but if you want to use it easily, then Jumla wins on Drupal. LA wins. Volume terms...

c# - USB How do you create a bootable custom USB application? -

Many LCD TVs nowadays have USB ports so that you can plug in your camera and it will be a camera gallery on TV. I want to write a gallery program that, when plugged into a TV, will start playing through images on a USB device. How would I do this? Is it possible to write some types of OS / applications that can run on a single USB device? will depend entirely on the firmware of that television, even if it is supported. If this happens, then it will need to see the details of how to do this.

vb.net - VisualBasic 2010 Syntax Refresher -

With the similarities and installing WinX, I thought I would return VisualStudio to my computer and Tinker for a while I'll give it, but it's a while and I'm a little messy with it. Can someone send me in the quick and easy guide for VBasic syntax? Keep an eye on these and

iPhone statistics access to client -

I have created an iPhone application and successfully approved by Apple. The application has been uploaded to the developer account of my company. Now my client wants to use to see sales reports. I can not give it to my company's developer account login details because there are many applications other than my clients in the account. Do I have permission to access my client to view financial reports of only my applications? / P> What options are available. Update: My customer is specific that he wants to log in and see. According to My knowledge is the only way that he can see the details of the report whether I uploaded the application using my developer account. One of the developers said, "We will submit an iphone app from the app store to our iTunes App Store, so you will naturally be able to access all the available data. Please let us know that you need to purchase a paid account to submit an application to the app store. " Does the above men...

iphone - Display keyboard without animation -

has been found in UIKeyboardAnimationDurationUserInfoKey but I can not find it anywhere that how to define a custom value Have to set up. UIKeyboardAnimationDurationUserInfoKey is a dictionary string identifier that holds the dictionary key Animation duration, so there is no way to change it easily. To view keyboard notifications and disable animation when they are visible and then they are re-enabled, there is a way to reveal the keyboard without animation. This, of course, disables any other animation as well. [[NSNotificationCenter defaultCenter] addObserver: auto selector: @selector (WillShowKeyboard :) Name: UIKeyboardWillShowNotification object: zero]; [[NSNotificationCenter defaultCenter] addObserver: Self Selector: @Selector (Shawkeyboard :) Name: UIKeyboardDidShowNotification Object: Zero]; - (empty) will be World Box: (nsnification *) Notification {[UIVV SetAnnaments enabled: No]; } - (zero) show showboard: (NSNetification *) Notification {[UIView set animat...

sql server 2005 - how to do attachments for each sql record in c# -

I am developing a desktop application c # & amp; SQL 2005. With the candidate data entry form I want to provide the option of attaching the necessary documents (in pdf format) Delayed data Please tell me the best method. Already, thank you very much. Ok, so unfortunately you have to manage the file storage using either the server file system, Or you see the SBL Server 2005 file archive OK, then for file management P> See this example

iphone - Open GL ES - Z order when rendering 2D sprites -

I was thinking that OpenGL EES was a way of presenting and rendering a batch of quads (provided with changes in texture page). Them in z order (or reverse) Note that I do not want a zubfire, I just want the quad provided in the order of zDepth. Now I know that people will just say they are in order, well I group them by texture pages. However you can imagine that there are some cases where sprites need to appear in front of another from a textual page. So I was wondering whether I would be assigning quads az to OpenGL ES to honor this? Any help received greatness. RIP Rich Get whatever you want without jj buffer / depth buffer Can not .. What are you asking for the depth buffer's work without having it enabled! When the Z buffer is enabled, then every OpenGL draws on a pixel. It looks at the current z value of pixels and then decides whether to attract it or not. When the depth buffer is not enabled, it only overwrites the current z of the existing pixel.

Why use a framework with PHP? -

I'm curious, what are the advantages (and disadvantages) on using the framework with PHP? I am using PHP on and off since the 3rd edition. I have never used any framework for PHP, so what am I missing? The framework links you to a low level of detail, makes you more productive, and the lower level (Such as blocking SQL injection attacks). A good PHP framework lets you separate your concern and implement a proven architecture, which eventually improves your design, and makes it easier for you to read and maintain your code and test the unit. is. The use of the framework in this context is