Posts

Showing posts from April, 2011

rhino mocks - Mocking problem, public function calling private function -

I am having a funny problem I know that only public methods should be joking. But when I am calling a private method in the public system, and this private method is receiving data from a file, what should I do? I want to duplicate this private method so that I can go with a public method test. I can make this public to work for the test, but this will not make any sense because it is private reason. I can also move everything to another class and make the function public there, but the reference to the main square object should be private either private I am using Rhino Mox Thanks for any help :) If you put that functionality File that reads the file such as FileReader: IFileReader Then in the form of a Arg in IFileReader Near the manufacturer. Then you can fake it

java - Is there a way to declare an annotation attribute for *any* enum? -

After the On the moment I am developing an annotation based binding-framework for the underway of the Java Swing Hood. Unfortunately I'm left with an annotation for JRDO button-binding. What I want to do is specify the property-name of a model that has a special value (enum). The radio-button will be selected if this property has a specific value. I want to specify the value in the annotation like this: @RadioButtonBinding (property = "SelectedItem", selectedValue = MyEnum.FIRST) JRadioButton firstButton @RadioButtonBinding (property = "SelectedItem", selectedValue = MyEnum.SECOND) JRadioButton secondButton However, I do not know how to declare the comment above and also any to allow other enum. My first estimate was this, but I have found that annotation attributes can not be generalized: T anemanvalue (); } Any ideas how to solve it? This is not the way you want it to work as you have found, You can use only plain withdrawal type in an

data binding - C#: How to adjust the value the user entered in DataGridView? -

I have a database datagrid view. Data source is a type of data that contains two dateTime columns (< Code> StartTimeStamp and EndTimeStamp ). I read and write the data in the SQL Server 2005 database using the update command of the typed data set. The user should enter a date in each of the two columns, which I would like to use for the Selenelization and Rowlification I apply for However, I also need to make sure that the following two rules apply: The time value for get started column should always be 00:00:00 for the end date column should always be 23:59:59 (or 11:59:59 pm if you wish) As I do not want the user to enter 23:59:59 all the time, I somehow want to change the user's input 1 and 2. In my code Where and how will I do this? Edit Sorry, if I was not clear, the user could enter any date part, though , Time portion for StartTimeStamp is fixed at midnight and for EndTimeStamp 23:59:59. Example: User enters the StartTimeSta

array_push vs $str .= in PHP -

Which is the best performance of one of 2? In JavaScript, Douglas Crockford says that you should not use str + = if you add a large string but instead use the sarab.shoot. I have seen a lot of code, where developers have $ str to consolidate PHP's large string. As well, but because in PHP "everything" is based on arrays (try to dump an object), I thought the same rule applies to PHP. Can anyone confirm this? Strings are ineligible in PHP so that. = = Javascript should not be affected by using + = as it does on php. That is, when you use the operator, you will not end up with two different stars. See:

c# - Populating Values For DataGridView from DataBase based on the condition -

"itemprop =" text "> I am creating an application where I want to display the rows in the DataGridView on the basis the user entered in the value text box. For example. I have used the following codings: User text box is all that should be displayed in a DataGridView of information about this book, < Code> SqlConnection objSqlConnection = New SqlConnection (); String Connection StringSettings = "Data Source = Initial Catalog = LibrarySystemManagement; Integrated Security = SSPI"; Private Zero btnSearch_Click (Object Sender, EventArgs e) {objSqlConnection.ConnectionString = connectionStringSettings; ObjSqlConnection.Open (); If ((txtBookName.Text! = "") || (txtCategory.Text! = "")) {SqlDataAdapter objSqlDataAdapter = new selection SqlDataAdapter ( "LIBRARYBOOKDETAILS * where title = '' + txtTitle.Text +" ' ", objSqlConnection ); SqlCommandBuilder objSqlCommandBuilder = new SqlCommandBuilder (objSq

Sequential execution of java programs == sequential activation of the jvm? -

I have a bash script that calls a Java program, respectively. It's a bit tricky, but primarily what I do is a loop and executes the same Java program 1500 times with different arguments. My question is, when using Java 1.5 (Sun VM), every time I am calling Java program, a new example is jvm? (I'm not sure that this is the correct terminology ...) Should I start the level of indirection to avoid this situation, that is, to create a list of all the parameters and then to a Java program Executing which takes them parameters and executed which were my entry points first? Or can I configure JVM as a resident or something to deal with this problem and can dynamically invite my program .... Hope it is clear .... thx ... You You can save the parameters in a file and use Java to process it without continuous restart, in the Java application that you run through the console Pipes can also be done in the parameter, similarly for example ls. Edit Grep Edit: And for

html - Why not always use enctype="multipart/form-data"? -

เคœเคฌ HTML เคซॉเคฐ्เคฎ เค•ा เคจिเคฐ्เคฎाเคฃ เคนोเคคा เคนै เคคो เคนเคฎ เคนเคฎेเคถा enctype = "multipart / form-data" เค•ा เค‰เคชเคฏोเค— เค•्เคฏों เคจเคนीं เค•เคฐเคคे ? < multipart / form-data เค•ी เคคुเคฒเคจा เคฎें เคฌเคนुเคค เค…เคงिเค• bulkier เคนै เค†เคตेเคฆเคจ / x-www เคซाเคฐ्เคฎ-urlencoded ; เค‰เคค्เคคเคฐाเคฐ्เคฆ्เคง เค•ेเคตเคฒ เคšाเคฌी เค”เคฐ เคฎूเคฒ्เคฏों เค•ा เคเค• เค—ुเคš्เค›ा เคนै (เค”เคฐ เค‡เคธे gET เคฏा POST เค•े เคฒिเค เคตैเคธे เคนी เคชाเคฐ्เคธ เค•िเคฏा เคœा เคธเค•เคคा เคนै), เคœเคฌเค•ि เคชूเคฐ्เคต เคฎें เคชूเคฐ्เคฃ MIME เคธเคฎเคฐ्เคฅเคจ เค•ी เค†เคตเคถ्เคฏเค•เคคा เคนै, เค”เคฐ เค‡เคธ เคช्เคฐเค•ाเคฐ เค…เคงिเค• เค‰เคชเคฏोเค—ी เคœเคฌ เค†เคชเค•े เคชाเคธ เคกेเคŸा เคนै เคœिเคธे เค•ेเคตเคฒ เค•ुंเคœी / เคฎाเคจ เคฏुเค—्เคฎ เค•े เคฐूเคช เคฎें เคช्เคฐเคฆเคฐ्เคถिเคค เคจเคนीं เค•िเคฏा เคœा เคธเค•เคคा เคนै।

Are static methods in Java always resolved at compile time? -

Is there a stable way in Java always resolved on compile time? Yes, this thread has been thoroughly tested on the forums and explained: Many quotes: "When the compiler aggregates the category that decides to compile at that time, which is called to call each method in a steady way (Which is a big difference for non-static method calls): In those cases, the decision on the runtime is correct. ". " Calling static methods sometimes depend on the compile-time type on which it is called. "

visual studio 2008 - ASP.NET virtual directory _within_ VS2008 -

I am creating an ASP.NET 3.5 web application. When I run the project (using Visual Studio's built-in server), it should be able to share a network as a virtual directory. I can not find any information about this. The network resource is huge, it is often updated, and it is also used in other developers and other projects - not mine and mine. I understand that once deployed on the site, I can create the IIS virtual directory in the network path, but when I debugging it does not help me. You can not do it with the web development server, this is to debug the same application, Not one that depends on many virtual directories. How does it reference to share the virtual directory? By redirecting resources under that virtual directory? If so, during debugging, can you change the redirect location of that IIS virtual directory?

Filter subform using combobox -

It took me about 2 weeks and I do not know what to do and what to do. I have a main form (UserSearch) that has a subform (TestUserSub) for both forms, the associated table is Tebsler very easy; Mainly (UserSearch) I have a ComboBox associated with Tblusers such as cmbid, cmbname, cmbdept fields and so on. I want all to be connected to any of these combiboxs for a user and to display in the subform (TestUserSub) for related fields. Is I've tried several different versions of the code after update event in Comboboks and subForm or in other instances not even, I get the error message is an example filtering by running an SQL command I've tried is private sub cmbid_AfterUpdate () select dim as strSQL string IsNull (Me.cmbaccess) then Me.RecordSource = "tblusers" rest strSQL = "TblUsers. [team Sdasy_aidi] TblUsers "& amp; _ "Ou (((tblUsers [Team Member_ID])." & Amp;. [Form_testusersub] [txtid2])) & amp; "," Me.RecordSource =

INotifyPropertyChanged WPF -

What is the purpose of INotifyPropertyChanged. I know that whenever the property changes, then this event is removed, but see how / UI can know how this event has been removed: This is my client class which is INotifyPropertyChanged Implementing the event: public class customer: INotifyPropertyChanged {Private string _firstName; Public String LastName {get; Set; } Private Event PropertyChangedEventHandler PropertyChanged; Protected Zero OnPropertyChanged (string propertyName) {If Property (PropertyChanged! = Zero) property changed (this, New PropertyChangedEventArgs (propertyName)); } Public string first name {back {return_firstName; } Set {_firstName = value; OnPropertyChanged ("First"); }}} But now the way to inform the UI is that the property has changed. As the user is given blank or empty space on the first name, how can I show the message box on the UI INotifyPropertyChangedWinFF UI Elements (through standard data binding mechanisms) to subscribe to the

tsql - Inserting Values into Dynamic Sql within a stored procedure - Where do the ticks go? -

I am trying to create a SQL statement in TSQL which looks like this: in user tab Enter (Username) Value (Username) It is as easy as you are not trying to do it in T-SQL and @username is varchar < P> Looks like this: SELECT @SQLInsert = 'Use in user (user name)' + 'value (' + @ username ')' < / Code> In addition to the course it does not work how much tick do I need to make a string in the string ???? I'm getting mad! I think the problem is that you're not quoting the user name string properly such that To use the parameter query using the best practices method (and safe methods), how would this be done using sp_executesql (untested) I hope this would be helpful. DECLARE @SQLInsert NVARCHAR (500) DECLARE @ Paramdif NVARCHAR (500) SET @SQLInsert = 'Enter userTable (username) values ​​(@InsUserName)' SET @paramDef = '@InsUserName NVHARA (50) 'exposed spave extecqual @ sqlnsart, @ palam deaf, insusaram = @ us

java - Need help with making a settings file -

I am trying to create an application launcher which has a settings file that includes 'name' and paths for programs Will save the program, and when you type the name in an input box, it will run the program that the name is assigned. In addition, if that name is entered, then the application will not be known by the application (in the setting file), the user should add the path and save that file from the user set path in the settings file. What do I need to do? This is the best way to do this and write / write files, Any suggestions? You can use - it adds a key / value to a text file, and instant It is quite easy. Ex: Properties mySettings = new properties (); MySettings.load (new FileInputStream ("myapp.cfg")); // getProperty () returns a string filepath 1 = mySettings.getProperty ("filePath1"); Then you can just save your settings in myapp.cfg , either directly (with this key = value ) Is a simple text file), or via mySettings.sto

Adsense doesn't seem to recognize PHP-generated content -

Using PHP to capture content from my site database I am running a Google Adsense ad with this content . The first time I pull data from the database, AdSense does not seem to recognize the subject matter and displays a very general, unrelated ad. / P> How can I get Adsense to identify AdSense content for content? thanks, John Please give it. Adsense can not tell the difference between PHP-generated and static content in any way. There may be a problem with the generated HTML, but this is unlikely - I guess that AdSense needs more time to spider your site and will use some good general keywords to use it, or can not recognize it / There are relatively few ads to present on the topic of content.

Restful Rails controller for Flex front end -

So I have an existing rail app, which I have been asked to return to support Flex Client. Since I do not really want to mess with existing controllers and routes, I thought that the best way to accomplish this is to create a subdirectory in App / Controllers and put Flex specific requests by putting some additional controllers named Flex. Therefore, instead of requesting / session / [method = POST], I want to go to my session_ controller in the Flex sub directory / Flex / session / [method = POST] directory. I can take it to the right controller, but it is looking for IDEx method (it seems that it is treating my request as a GET request, although the log it calls a post request. Any ideas how to add this controller to add this root to handle HTTP actions? Now there is only one spare in my routes. P> map.connect 'flex / sessions /: action',: rules Thank you in advance for any help. s.park

css - Why was the background color of the two input different? -

As can be seen, I have not specified the background color of the input, but one is gray, the other is white Why, why? & lt; Style & gt; .bank {border: 1px solid # 888888; Font-family: Trebuchet MS, Helvetica, Sense-Serif; Font-size: 130%; font-weight: bold; Margin: 3px; Padding: 2px; } & Lt; / Style & gt; & Lt; Input type = "button" class = "bacon" value = "answer your question" / & gt; & Lt; Input type = "button" value = "hello button" /> By specifying a limit on the button , this default operating-system-specific removal button On the styles, it is being brought back to some default (which looks gray) You can remove it from your class by entering border in action.

Can I use iPhone 3.0 symbols when building for 2.2.1? -

I've been working on the iPhone app for some time and still want to support 2.2.1 A user from one of the features can start the app via email by clicking on the link. In the world of 2.2.1, I completed applying this application: handleOpenURL: Message In iPhones 3.0, they have changed things by adding the application: didFinishLaunchingWithOptions: method (which is great, and in the old fashioned way too much) in that method, what was the URL To find out, you use the UIPP Launch Option URL key. The problem is, if I use that key then my app is not created in 2.2.1 because it was introduced in 3.0. What is the most beautiful way to get around this and still support 2.2.1? I was thinking about using the real value of UIApplicationLaunchOptionsURLKey enum, but I thought it was ugly, does anyone have to face it and feel better? To keep the same app that works on both OS versions, you have 2.2.1 SDK Will have to build against And since the SDK has no idea of ​​the UIAppl

how to enable innodb in Noinstall Zip Archive MySQL version -

I want to enable innodb in mysql I have been using ninistol zip archives with the following command to install it Mysqld-nt -install I finally tried to add - Nidob, but it seems that it does not work. I have all my Ini file has partially commented on InDub. Please help me with step-by-step instructions. Do not use mysqld-nt executable mysqld Executable If I remember correctly that innodb support in mysqld-nt is not compiled.

api - keyword search volumn and google pagerank -

How do I get search volume / popularity of a keyword? How do I get a site's PageRank? Google API is a way to do this? Is there any other way? To check the popularity of a search term (relatively), you can use Google Trends :

scripting - Unlimited fields in PHP? -

How do I make unlimited fields in PHP? Here's the scenario: First of all, there are only 2 fields, it says: First name 1, Last name 1 What do I have to do, when I use the "Add" button, This will add another 2 fields to the new line, field label / name name should be first 2, last name 2. And when I click again, its first name will be 3, last name 3, and so on .. Can someone give me some sample scripts in php? I'm new to PHP The form should be in HTML if an Ajax sample code can be given, then this will be a big plus. It depends on what you mean by "farm." It seems that you are talking about a form, which will not be PHP, but rather HTML. You can have a button [add] posting back to the server, after which the page is refreshed with other form-inputs, even without refreshing the page you do this via javascript. Simple JavaScript (jQuery) Example: Click on $ (document) .ready (function () {$ ("input [value = 'add']") Do (e

c# - How do you set the MasterType TypeName in code -

If you want easy access to masterpages properties etc in aspx, then you can set the masterpages type name in the top of aspx Page i.e. But how do you do this via code file? Type is a base class where your master page is getting, if you have your own If you have defined the basmeter step, then the code behind the master page obtained from your custom master is instead of System.Web.UI from MasterPage CustomMaster

language agnostic - The data structure for the "order" property of an object in a list -

I have a list of the order object stored in the database and through an ORM (specifically, the OSM of the DJ) has reached. This list is sorted voluntarily by the user and I need some ways to keep track of this. Each object has an "order" property for that object, which specifies its order in relation to other objects. Any data structure that you use to sort on this order field will need to be recreated on request, then the creation should be cheaper. I often compare between several objects. I and the inclusion I have in every database One line can not be needed to update Which data structure should I use? piles as compared to price Has been implemented with std :: set ( c ++ ) (such as value stored), for example integer by value, string by string sequence and so on. Good for order and access, but it is not certain that you need to revisit it, that during the inclusion, continuous and much more You are not specifying what you have other obstacles. If the

plugins - javascript private variables access problem -

For this JavaScript master: I'm experimenting with a new javascript framework. Its structure is inspired by someone other than powerful jQuery. There is a global variable named $ j , and look at it in action: / * file: jfoo Js * / $ j = new (function () {var module = []; this.loadModule = function (mod) {modules [modules.length] = mod;} this.hasModule = function (mod) {for (ind In module) if (module [ind] == modern) returned; return false;}}) (); You see that the module is a private variable. no problem; That's what I wanted to do. Now, I want to write a plugin that adds a $ j.loadBatch method to my system. Then .. / * file: loadBatch.jfoo.js * /! $ J || (Function () {$ j.loadBatch = function} {for (in the industry batch) module [modules.length ++] = batch [ind]}}) (); But, because this method is not part of the shutdown in file jfoo.js , this is not possible. I also tried this version: / * file: jfoo.js * / $ j = new (function () {var module = []

c# - How can I force a DropDownList style ComboBox to only open when the user clicks the drop-down button? -

In C # .NET 2.0, I have a WinForms ComboBox with ComboBoxStyle DropDownList. However, when the user clicks anywhere on the combo box, the drop down appears. Instead, I want to only open when I when the user explicitly clicks on the drop-down button on the rest of the user combo box, I can just so he or she can use some keyboard commands on selected items it Want to assign a keyboard. What is the best way to do this? Help some of the other answers, I came to the quick solution: public class MyComboBox: ComboBox {public MyComboBox () {FlatStyle = FlatStyle.Popup; Dropdown style = combo box style. drop down list; } Protected override void WndProc (ref Message m) {if (m.Msg == 0x0201 / * WM_LBUTTONDOWN * / || m.Msg == 0x0203 / * WM_LBUTTONDBLCLK * /) {int x = m.LParam.ToInt32 () & Amp; 0xFFFF; If (x & gt; = width - SystemInformation.VerticalScrollBarWidth) base.WndProc (reference meter); Else {Focus (); Invalid (); }} And base Weedproc (Ref M); }}

javascript - Why are arrow keys, tab, etc not received by input field's onkeypress handler in some browsers? -

I am creating specific text input fields to enter and edit time. One of the components of functionality needs different ways of focusing on different components of time (hours, minutes, seconds), which I represent through text selection. Is possible with direct selection mouse and it is working great. The second feature is keyboard navigation. Most of this functionality depends on the fact that I am capable of handling keyboard events, suppressing default behavior and instead of a particular action option in Firefox , I have to work this well to make users use the left / right arrow key or tab / change tab to move between parts of the timeline (and when they reach the end, the next tab Will leave the passenger area and will normally focus on the next element). In Internet Explorer 7 (possibly other?) Arrow keys and tabs are not received by the keyboard handler if the arrow key is pressed, the text selection is lost and the cursor moves through one of several The effects of ma

SQL Server: Clustered index on datetime, ASC or DESC -

เคฏเคฆि เคฎेเคฐे เคชाเคธ เคเค• datetime เคซ़ीเคฒ्เคก เคชเคฐ เคเค• เคธंเค•เคฒिเคค เค…เคจुเค•्เคฐเคฎเคฃिเค•ा เค•े เคธाเคฅ เคเค• SQL เคธเคฐ्เคตเคฐ เคคाเคฒिเค•ा เคนै, เคœो DateTime.Now เคชเคฐ เคธेเคŸ เคนै (เคธी # ) เคธเคฎ्เคฎिเคฒिเคค เค•เคฐเคจे เคธे เคชเคนเคฒे, เคธूเคšเค•ांเค• เคคाเคฒिเค•ा เค•े เคชुเคจเคฐ्เค—เค เคจ เคธे เคฌเคšเคจे เค•े เคฒिเค เค†เคฐोเคนी เคฏा เค…เคตเคฐोเคนी เคนोเคจा เคšाเคนिเค? เคงเคจ्เคฏเคตाเคฆ เคตाเคธ्เคคเคต เคฎें เค•ोเคˆ เคซเคฐ्เค• เคจเคนीं เคชเคก़เคคा - เคฒेเค•िเคจ เค•्เคฏा เคธเคฎเคฏ-เคธเคฎเคฏ เคชเคฐ เคตाเคธ्เคคเคต เคฎें เค…เคฆ्เคตिเคคीเคฏ เคนोเคจे เค•ी เค—ाเคฐंเคŸी เคนै ?? เคฎैं เคธिเคฐ्เคซ เคเค• เคกेเคŸเคŸाเค‡เคฎ เคชเคฐ เคเค• เค•्เคฒเคธ्เคŸเคฐिंเค— เค‡ंเคกेเค•्เคธ เคกाเคฒเค•เคฐ เคŸाเคฒเคจा เคšाเคนूंเค—ा- เคฎैं เค‡เคธเค•े เคฌเคœाเคฏ INT เคชเคนเคšाเคจ เคฏा เคฌเคก़ा เคชเคนเคšाเคจ เค•ा เค‰เคชเคฏोเค— เค•เคฐेเค—ा, เค”เคฐ เคกेเคŸเคŸाเค‡เคฎ เคชเคฐ เคเค• เคจिเคฏเคฎिเคค เค—ैเคฐ-เค•्เคฒเคธ्เคŸเคฐ เค‡ंเคกेเค•्เคธ เคกाเคฒूंเค—ा (เคšूंเค•ि เคฏเคน เคตाเคธ्เคคเคต เคฎें เค…เคฆ्เคตिเคคीเคฏ เคนोเคจे เค•ी เค—ाเคฐंเคŸी เคจเคนीं เคนै ...) < / P> เคฎाเคฐ्เค• เคชीเคเคธ: เคช्เคฐाเคฅเคฎिเค• เค•ुंเคœी เค•ी เคคเคฐเคน, เคเค• เคธंเค•เคฒिเคค เค•ुंเคœी เค•्เคฏा เคนोเคจी เคšाเคนिเค เคชเคฐ เคธाเคฎाเคจ्เคฏ เคธเคนเคฎเคคि: เค…เคฆ्เคตिเคคीเคฏ เคธंเคญเคตเคคः เคธंเค•ीเคฐ्เคฃ เค•े เคฐूเคช เคฎें เคธ्เคฅिเคฐ เค•เคญी เคญी เคฌเคข़เคคी เค•ॉเคฒเคฎ (เคเคธ) เคœो เค•्เคฒเคธ्เคŸेเคก เค•ुंเคœी เคฌเคจाเคคे เคนैं (เคœिเคธเคฎें 4- เคฌाเค‡เคŸ เค…เคจเคจ्เคฏเคซ़िเคซाเคฏเคฐ) เคนเคฐ เค—ैเคฐ-เคธंเค•ुเคฒ เคธूเคšเค•ांเค• เคฎें เคนเคฐ เคช्เคฐเคตिเคท्เคŸि เคฎें เคœोเคก़ เคฆिเคฏा เคœाเคคा เคนै - เค‡เคธเคฒिเค เค†เคช เคœिเคคเคจा เคธंเคญเคต เคนो เค‰เคคเคจा เคชเคคเคฒा เคฐเค–เคจा เคšाเคนเคคे เคนैं। เคชीเคเคธ 2: เคช्เคฐเคค्เคฏेเค• เค—ैเคฐ-เค•्เคฒเคธ्เคŸเคฐ เค‡ंเคกेเค•्เคธ เคฎें เค•्เคฒเคธ्เคŸเคฐिंเค— เค•ुंเคœी (เคเคธ) เค•ो เคœोเคก़ เคฆिเคฏा เคœाเคคा เคน

How do I properly remove an svn:externals and replace it with a local (non-external) copy of the same directory? -

I know that there are similar questions on this subject, but I can not even get answers to my specific case. I have a project that I have inherited from another team repo. Instead of redirecting our checked copies to our servers, instead, we did "svn switch --relocate". But, they still have one svn: externals for a subdirectory and it still points to any of their other repositories. How do I properly remove external and replace it with the local version of that directory? I tried removing the external directory and changing it with the local copy and checking it, but when 'svn up' on the root of the project, it complains that the directory is "locked". What am I doing wrong? Oh, and I do not have many GUI tools to install. I'm just doing it on the command line thanks! In the root of its working copy: svn Propedit svn: Externals You should see a file in your form of editor that has such lines: path / per / extenal http: / / Url / of

visual studio 2008 - Does “Client-only Framework subset" not include client application services? -

Recently discovered how extremely long. I tried to install 3.5 3.5 framework and found that what I thought was a solution - 'Client Only Framework Subset' This claim to include all the specific things needed for 'client applications', WPF etc. Our application uses the client application service (see here) Unfortunately it seems that "client only subset" system Do not input things like Web.ClientServices. Am I missing something? The client I am collecting does not include client applications. The reason, I think, is because the client profile preview client is designed to deploy a small subset of the .NET framework used by applications. Customer application services using a series of ASP.NET technologies However, ASP.NET technologies are not included in the client profile preview, possibly because ASP.NETnet technologies are available in AAP .NET will not be considered to use some client applications since a web application framework. Unfor

error handling - Is it kosher to assign to $! in Perl? -

Is it OK to assign $ $! On an error in Pearl? For example, if (! (-e $ inputfile)) {$! = "Input file $ inputfile appears absent \ n"; Return return; } In this way I can handle all the errors at the top-level. Thank you. If you are $! , The system is placed in the error number, which only takes the number then you can actually do this: Use the "EEXIST" error; $! = EEXIST; $ Print! Get string values ​​for any defined system error number, but you can not do whatever you want - setting it in an arbitrary string such strings will get you an argument ". .. "Scalair assignment is not numeric in the alert and leave the wrong set on 0. The other problem is that $! Can be replaced with any system call, you can rely solely on the trust unless you do not print or do anything else you probably want your own error variable.

c# - Multiple Drag and Drop actions on one control -

I have a windows form that has two user controls. There are two list views in a user control. There is a grid in the other user control. Drag two list views in first user control and leave their contents between each other. The grid user control is set to the dragview in the list view usercontrol. The problem is that drag drop events within listview usercontrol always takes precedence over dragdrops between two usercontrols. So if I pull the listview from user control over the usercontrol, then this list will execute the internal dragrap event of the visual control. In other words, it sets a fire on this incident lv_groupActivites_DragDrop Scheduling Booking instead of Reservations 1_DragDrop What Does Drop Drop Is it also to specify that the event should be removed? You are dragging the grid into a user control and on another user control or on any other user control Trying to drop on specific list views? If you want to drop anywhere on the other user contr

javascript - jQuery not updating div -

เคฎेเคฐे เคชाเคธ เคเค• เคคเคค्เคต เคนै: & lt; div id = "foo_ & lt ;? PHP echo $ id;? & Gt; " เคตเคฐ्เค— = "เค›िเคชा" & gt; & lt; / div & gt; เคฎैं เค•ोเคถिเคถ เค•เคฐ เคฐเคนा เคนूं เคฏเคฆि ($ ("# foo_" + id) .is (': hidden')) {// stuff $ ("#foo_" + id)। Html (html) .slideDown ('เคคेเคœ'); } เคฎैंเคจे เคฌाเคฐ-เคฌाเคฐ เคšेเค• เค•िเคฏा เคนै, div foo_233 เคซाเคฏเคฐเคฌเค— เคฎें เคชाเคฏा เคœा เคฐเคนा เคนै เค”เคฐ เค›िเคชा เคนुเค† เคฆिเค–ाเคฏा เคœा เคฐเคนा เคนै เค†เคˆเคกी เค•ो เคœाเคตाเคธ्เค•्เคฐिเคช्เคŸ เคซ़ंเค•्เคถเคจ เคชเคฐ เคธเคนी เคขंเค— เคธे เคชाเคธ เค•िเคฏा เค—เคฏा เคนै। เคฒेเค•िเคจ เค…เคญी เคญी เค‰เคชเคฐोเค•्เคค เคฒाเค‡เคจें เค•ाเคฎ เคจเคนीं เค•เคฐ เคฐเคนी เคนैं เค•्เคฏा เค—เคฒเคค เคนो เคธเค•เคคा เคนै? เคฏเคน เคฌเคนुเคค เคจिเคฐाเคถाเคœเคจเค• เคนै .. เค†เคชเค•े เคšเคฏเคจเค•เคฐ्เคคा เคฎें เคธ्เคฅाเคจ: เค…เค—เคฐ ($ ("# foo_" + id) .is (': hidden')) {// เคธाเคฎाเคจ $ ("# foo_" + id)। Html (html) .slideDown ('fast'); } เค‡เคธे เคธे เค›ुเคŸเค•ाเคฐा เคชाเคं: เคฏเคฆि ($ ("# foo_" + id) .is (': hidden')) {// เคธाเคฎाเคจ $ ("# foo_" + id) .html (html) .slideDown ('เคคेเคœ'); } เคธंเคญเคตเคคः, เค†เคชเค•े เคกिเคตी เค†เคˆเคกी เค•ो "foo_5" เคœैเคธा เคฆिเค–เคจा เคšाเคนिเค, เคฒेเค•िเคจ เค†เคชเค•े

How to do lua table operations from C? -

I need to work on the lugha tables from C where tables appear in lists or queue forms Is considered in. Especially I need to insert an element on the head and remove the head element, and the other elements need to move forward to adjust the new element. It will be straightforward in Leah, I Table.insert and table.remove . But in the C Lua in C API such as lua_settable, but table.insert and the table. Removes those who are in front. It seems that there are internal C functions inside an interpreter named tinsert and tremove , but they are not part of the API. Do I really want to call a lava function which does it for me? I believe that you can reuse the function <0> Static Int tincert (Lua_State * L) Static Ent Tramov (Lua_State * L) and Macro #define aux_getn (L, N ) (LuaL_checktype (L, n, LUA_TTABLE), luaL_getn (L, n)) which are in ltablib.c They rely only on Lea's API.

c# - Dynamic Linq To Sql With ComboBox and Column.Contains -

I have a text box, combo box, button and datagrid view, which is meant for searching and searching a customer. MSSQL visualization (vCustomer) is used, it works great, but I know that my code can be more efficient to represent four items in the cambod to represent the column. Is there an easy way to convert the following from dynamic LINQ to SQL? I'm new to C # I have checked some other posts, but I do not seem to be doing this work. Public Partial Segment MainForm: Form {Public MainForm () {InitializeComponent (); } Private Zero MainForm_Load (Object Sender, EventArgs E) {// column filter to filter for string [] list = new string [4]; List [0] = "name"; List [1] = "not a customer's right"; List [2] = "Telephone"; List [3] = "postal"; // bind to combobox cboColumn. DataSource = list; CboColumn.SelectedIndex = 0; } Private Zero btnSearch_Click (Object Sender, EventArgs e) {try {cursor.Current = Cursors.WaitCursor; CustomerSearchDa

iphone - NSInvalidArgumentException/copyWithZone exception with NSMutableDictionary -

I have a class that I am encapsulating with ABRecordID and when it comes to adding a NSMutableDictionary to a key I used to run run-time exceptions: "NSInvalidArgumentException: *** - [MyRecordId copyWithZone:]: Unfolded selector sent for example" < / P> MyRecordId has been declared as: @MyRecordId: NSObject {ABRecordID abRecordId; } - (id) initWithId: (ABRecordID) anABRecordId; @protty (nonatomic) Abe RecordsID Abraccharide ID; @end Adding to dictionary: NSMutableDictionary * dict = [[NSMutableDictionary alloc] init]; MyRecordId * record id = [[MyRecordId alloc] initWithId: anABRecordId]; [Dict Set Object: @ "Hello" for: record id]; The last line causes exception. I know that you can not store non-object types as a key for a dictionary but I thought NSObised derivative It's okay to wrap it in a square. Did not I want to store Abe Records in other objects? Should I do something else? Use NSNumber to store ABRecordID in the OBJ-C clas

ipc - Process on linux ignoring resource limits -

I had asked some questions about the development of an online judge on the Stack Overflow some time ago and I had some good answers meet. I have started working on developing one and I think there is a major flaw in my code. User submitted source will be compiled on the server This is done by GCC in a forwarded process. Now I have set a resource limit on CPU time and more than that, a SIGXCPU signal The process is sent. All right now, but suppose that someone writes a malicious code that handles the SIGXCPU code, then they will continue to run on the server and possibly open a way to take someone to the remote control on the server. So what am I missing here? There should not be anything that can be stopped. The original prototype of the compiled module goes like this: int main () {int pid; Int rv; If (! (Pid = fork ())) {struct rlimit limit; Friendly (RLIMIT_CPU, and Border); Limit.rlim_cur = 1; Setrrimat (RLIMIDCPU, and Border); // execl () with GCC and source file name}

python - Can I use Win32 COM to replace text inside a word document? -

I have to make a large number of replacements in some documents, and this is it, I want to be able to automatically enable that work Some documents contain normal strings, and if it can be automated it will be very useful. Com has been read so far, com could be a way to do this, but I do not know if text replacement is supported or not. I want to be able to do this work in dragon? Is this possible? Can you post a code snippet showing, how can you access the text of the document? Thanks See if you start using word parsing on word automation We do. Once you open a document, you can do the following. After the following code, you can use the document & amp; Open the other. Selection. Search. Clear formatting selection Find out Replacement. Clear formatting with selection.Find Text = "test" .Positionment. Text = "test2" .forward = true.ORP = wdfindContinue .form = false .MatchCase = False .MatchWholeWord = False .MatchDiacritics = False .MatchAlefHam

Control Hardware (TFT Display, Monitor) with .NET / C# -

I know, I'm out of line here: -) I control my control Displaying from a .NET application I want to do. Background is simple: There is a very good shot which should be my little assistant. For this reason, it will always be MyPc.Utils.SwitchOnDisplay (but not), but when performance is not required, the switch can be closed, and when something interesting happens Then the switch happens. ); Man, I wish it would be easy ... I'm sure I would have to dig into some DLL, but hey, maybe at least no DIM knows better search terms than Chris Chris PS: A WinXP value, and all screensaver or powermainmaging dumming stuff are never set up Oh, and in a few weeks, I have the same question with Windows 7 Will be: -) It is completely completely, but by folding it with the WinForms app: SendMessage (this.Handle.ToInt32 (), WM_SYSCOMMAND, SC_MONITORPOWER, -1);

Clojure Parameters with Optional Flags -

What's the best way to implement keywords as an alternative flag for a function? I want to call the function such as: (myfunction 5) (myfunction 6: do-this) (myfunction 3: go-here) (myfunction 2: two-this: what-is) Using defn, I can define a function such as: (myfunction [value and flags] ...) But flag becomes a list. I can write my own function to search the list, but such a function is not included in the core library, So I think it's idiotic is. What I'm using now: (defn flag-set? [List flag] (not (empty? (Filter # (= flag%) list ) (Defn flag-add [list flag] (opposition flag list)) (defn flag delete [list flag] (filter # (not = flag%) list)) Lists (as well as vectors and maps) are not a good option for data structure for value-based lookup (linear time) That clojure.core does not have such functions. Set via "What is" If it provides a fast value-based lookup, then about (defn foo [value and flags] (let's [flags] (if it's i

Python - Subprocess - How to call a Piped command in Windows? -

I have run this command with subprocess I tried: proc = subprocess.Popen ('' 'echo bosco |' C: \ Program Files \ GNU \ GnuPG \ gpg.exe "--batch --passphrase-fd 0 --output" c: \ docume ~ 1 \ Same locals ~ 1 \ temporary \ tmptlbxka.txt test.txt.gpg "" --decrypt "'' ', stdin = subprocess.ipip, stdout = subprocess.ipip, stderr = subprocess.STDOUT,) stdout_value, stderr_value = Proc .communicate () but found: Traceback (last most recent call): ... file "C: \ Python24 \ lib \ subprocess .py ", line 542, __init__ errread, errrite) file" C: \ Python24 \ lib \ sub Li> Running commands on the Windows console works fine If I remove the ECHO Bosco part, run it right popen up the run. So I think this problem is related to echo. First of all, you do not really need a pipe; You are just sending input you can use for it. Second, do not specify the command as a string; As soon as the file names a

Maven Exec Plugin not reading configuration -

I am trying to execute my project using the Maven Spread exec and I want to configure it with this snippet Have tried: & lt; Plugin & gt; & Lt; Group & gt; Org.codehaus.mojo & lt; / Group & gt; & Lt; ArtifactId & gt; Executive-Maven-plugin & lt; / ArtifactId> & Lt; Version & gt; 1.1.1 & lt; / Edition & gt; & Lt; Configuration & gt; & Lt; Execution & gt; Java & lt; / Execution & gt; & Lt; Logic & gt; & Lt; Logic & gt; -jar $ {staging.dir} /project.jar</argument> & Lt; / Logic & gt; & Lt; / Configuration & gt; & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; Goals & gt; & Lt; Goal & gt; Executive & lt; / Target & gt; & Lt; / Targets & gt; & Lt; / Execution & gt; & Lt; / Hanging & gt; & Lt; / Plugin & gt; When I run mvn exec: exec I get the output: -------- - ------------------------------

c# - difference between 2 datatables -

I have two figures DataTable dtRequired and DataTable dtResult. I want to output a dataset which contains rows which were not present in dtResponse but were found in dtRequired. Approach 1 We are using the algorithm specified on the following URL. Approach 2 So, I tried to replace the ala given above with some of the following things. DtRequired has been indexed on columns that use the Find line below I . if (dtResult.Rows.Count> 0) {lock (dtResult) {DataRow row = null; For (int i = 0; i However, the above piece is taking longer than the time taken by approach 1 approach 2 to 1250 With dots for dtResult takes DTRAEFair with 3 seconds and 4500 rows. Am I wrong with the above mentioned approach? Is there any better way to achieve this? This is an MSDN page that uses datasets from LINQ to get the rows appearing in both the figures To use this example hide I think that you can modify it by using except instead. I do not know if performance will impro

javascript - advanced parameter usage -

// This is a function that is added every time a new item is added or // list is sorted is . Var showNewOrder = function () {// This function means that we serialize () us the text of each // element instead of our ID, which is the default return. Var serializeFunction = function (el) {return el.get ('text'); }; // We pass our custom function to serialize (); Var orderTxt = sort.serialize (serializeFunction); // And then we add that text to our page so that everyone can see it. $ ('Data') Set ('text', orderTxt.join ('')); }; is a complete code var serializeFunction = function (* el *) {return el.get ('text'); }; Var orderTxt = sort.serialize (serializeFunction * (el) *); Compare the code Is B Passed or Not? What is happening ??? I want to learn how to use advanced parameters. Function names ("parameter1, parameter2, parameter3 ...)" do not declare tasks like. If there are no calling functions like "name (paramet

javascript - How Can I Change The Style Of A Div On Mousedown?, or any other event for that matter… -

But that does not work. You can see that I'm trying to change the season's class by clicking on the season and returning it to the on-homepost. What am I missing? Thank you. Mike This is working fine There is nothing wrong with the code you posted, so If you are not able to see it, then there should be something wrong with your CSS. I used it to test the code: & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;

javascript - How to list available callbacks exposed by a flash element -

Is there any way to query an embedded flash element to determine the available methods by JavaScript? EDIT: It appears that in IE it is easy (in the flash node) {alert (i); } After a lot of clicks, they will calculate some final members. Still not able to determine it in Firefox. In IE & lt; Object & gt; It is possible to obtain a callback by enuming the DOM node, they are mixed together with all other properties of the dom node, and are unable to be particularly distinguished keeping in view the list of known properties and their After that the difference between the two sets. This approach is questionable because properties can be arbitrarily added to any dom node. Worse, it only works in IE. Firefox (and possibly others) callback to & lt; Object & gt; DOM does not return the value of the node.

How to analyze a video stream -

Is it possible to analyze a video stream on the fly? For example, say I have a TV tuner and every pixel test is done every 5 seconds. How to go about analyzing? Will this be the same process if it was a video file (i.e. .mpg / .wma)? Yes, this is a look at

c# - data structure for multi-key data? -

Is the data structure commonly used for multi-key data? Like (Key1, key2, ..., keyN) -> Value I used to use dictionaries (C # in dictionary), and then wrote my own cover above it, so the syntax seems to be a bit good. But it seems that I still have to write a cover for each N-dictionary, where N is the number of keys, because I have to define the nested dictionary structure in the code. Considering that I am using C #, there is a data structure that better encapsulates this type of use, and hashtable-like lookup can be an arbitrary number of keys with display ? I just can not add all the keys to the same unique key, because I should be able to do something like this: foreach key2 [key1] data in foreach key3 [key1] [Key2] data [Fore key4] [key1] [key2] [key3] No, < / P> Dictionary of dictionaries - dictionary & lt; T1, dictionary & lt; T2, TRS & gt; & Gt; Dictionary of Tuples - dictionary & lt; Tupal 3 & lt; T1, T2, T3 & gt ;, RAS

tsql - Create a SQL query to retrieve most recent records -

I am creating status board modules for my project team. The status board allows the user to set their position or out and they can also provide a note. I was planning to store all the information in a table ... and the example of the data is as follows: Date User Status Notes ------------ - ----------------------------------------- 1/8/2009 12: 00pm for lunch in B.SOCO 1/8/2009 8:00 PM BScos 1/7/2009 at 5:00 PM in BSSCO 1/7/2009 8:00 PM 1 / 7/2009 at 8:00 p.m. On 1st January 2009 at 8.00 a.m. Janevay in Genwe January 1, 2009 at 8:00 in the morning. Piccard Out Holiday I want to query and return data to the most recent position for each user, in this case, my query will return the following results: Date user status notes ----------------- ----------------------- --------------- 1/8/2009 12:00 pm B. Asco for these lunch 1/7/2009 8:00 pm on January 1, 2009 at 8:00 am. Genwe J. Picard Out Holidays I'm trying to figure out the RANSACT-SQL to be this? Any help would be a

visual studio - How to log an application's entire stacktrace in .NET -

I started working on an existing application with about 40 active projects, while acquainting myself with the project, I myself I constantly move through the application, just to know the structure and logic flow. This can make this process so easy if I run the application and I can log every method call and then review the log. I know I can add the debug WrightLine or Trace.WriteLine , but in most 40 projects, adding those statements seems like overkill is there a good alternative to this approach? Introducing me in the appropriate keyword 'Call Graph' which led me to a duplicate question, . You can see the stack trace you want.

c# - Use CouchDB with .NET -

เค•्เคฏा เคจेเคŸ (เคช्เคฐเคฌंเคงिเคค เค•ोเคก) เค•ो เค•ोเคšเคกीเคฌी เคฎें เคชเคข़ा เค”เคฐ เคฒिเค– เคธเค•เคคा เคนै? เคฎैं เค…เคชเคจे เคช्เคฐोเคœेเค•्เคŸ เค•ा เคเค• เคนिเคธ्เคธा เคฌเคจाเคจा เคšाเคนूंเค—ा เคœो เค•ि เคฆเคธ्เคคाเคตेเคœ เคฎैเคจेเคœเคฎेंเคŸ เค•ा เค‰เคชเคฏोเค— CouchDB < P> เค‰เคชเคฏोเค—िเคคा เคตเคฐ्เค— เคชเคฐ เคเค• เคจเคœ़เคฐ เคกाเคฒें। เคฏเคน CouchDB HTTP API เค•े เคฒिเค เคเค• เคธเคฐเคฒ เค†เคตเคฐเคฃ เคตเคฐ्เค— เคนै।

c++ - Machine ID for Mac OS? -

I need to calculate machine ID for computers running MacOS, but I do not know the notifications To retrieve - such as the contents of HDD serial number etc. The main requirement for my special application is that the user should not be able to deceive it Before starting to laugh, I know that it is too far, but < At em> very low , the spoofing method requires a reboot. The best solution will be one of C / C ++ , but I take objective-if there is no other way the best solution requires the necessary rights Not . Any thoughts? Eric's suggestions (and its underlying, but without documented SystemProfiler) for system_profiler system_profiler and / or SystemProfiler.framework. I do not have your real requirements here, but these posts may be useful: < (It was around copy protection, which can not be your problem) (It was related to network authentication, which looks like your problem) I will post in the first post Saying something, I repeat: It is

.NET Partial Classes vs. Inheritance -

OK, so we have a utility that generates business-model classes from our database tables and views (but Not at all at all) In maintaining an ORM, it happened to me that the data in the schema is probably not going to change a whole lot. Functionality, however, may be that we may want to add additional functionality down the road, we may want to generate some of that functionality, and we may want to expand it. The sections we are building will reside in the class library for consumption by other libraries and applications. There is no big surprise there but the stamp here is how to design the generated sections in such a manner that we can interrupt as much as possible code while rebuilding a classroom. If, for example, the code has been added to a property (which represents a column in a database table), then we do not want to lose it. Thus, there are two ways to bring in meditation: Classical heritage , where the whole thing is done in the same thing, the "intact" c

qt - How to build QTcore4.dll without dependency to MSVCx80.dll? -

I have a windows screensaver that i can use for qt libraries so that i can make available for more platforms Are want to reunite. I'm facing problems with the deployment on Vista and XP. I compile my screensaver statically with MT, and run dependency checker. The results are: MyScreensaver.SCR requires many DLLs, QTCORE4.DLL but there is no MSVCx80.DLLs. So far this is fine. My problem is that in QTCORE4.DLL, in your turn, msvcp80.dll and msvcr80.dll need to have a result as your application does not run on Vista system. Can I build QTCORE4.DLL to integrate fixed Microsoft libraries (probably libcmt.lib?) So that I do not need any dependencies in MS CRT DLLs Limitations :? I do not want the user to install MS VC redistribution. The screensaver is only 1 MB, and it is ridiculed for the user to make so many changes in his computer for the screensaver. I do not want to use the trick to insert the MS CRT DLS in the same application path with the screensaver becau

javascript - Get the HTML contents of another frame on another domain -

I've read that you can not read the HTML of the second frame if the frame resides on another domain in javascript Any way I know this restriction is for security purposes but my use is valid. Regards Peter Do we have an iframe here Talking about? If so, can you not get the source attribute of iframe (jQuery?) And start an AJAX request, the page that will return, or perhaps your own script (PHP / ASP, whatever) to the source What information will you give to the attribute?

How do I build a Perl hash in C, using SWIG? -

I am trying to create a Pearl hash from within a C library. This is what I have so far received: Fixed zero add_string_to_perl_hash (HV * HV, four * key, four * value) {SV * obj = sv_2mortal (newSVpv (value, 0)) ; Hv_store (hv, (const char *) key, strlen (key), obj, 0); SvREFCNT_inc (obj); } SV * do_get_test_hash () {static char * foo = "foo"; Fixed four times = "bar"; HV * HV; HV = new HV (); Add_string_to_perl_hash (HV, "afu", afo); Add_string_to_perl_hash (HV, "bar", bar); Return sv_2mortal (newRV_noinc (SV *) HV)); } Try it: I do not get anything that makes me understand: use testlib; Use data: Dumper; Print dumper (testlab :: do_get_test_hash ()); $ VAR1 = Blessings (do {\ (my $ o = 5359872)}, '_p_SV'); Thoughts? look at example 6. It creates a bunch of hash and adds them to an array Finally, it gives a reference to the array. If you return a hash, then it will work practically the same.

java - Unable to Connect to Tomcat Using VisualVM -

I'm having problems monitoring a remote tome process. I can use the JConsole / JVisualVM I am trying to use 6 versions I I have jstatd running on remote server with the proper security policy. The process has started and TCP connections are available. When I try to connect through Jessensol, I get a connection fails: jmxrmi ' . When I try to connect through the vidyumum, then I add the host name and my right-click option is 'Add Jmx connection'. It is unclear to me if I expect to see it was. When I try to connect, I get: 'Can not connect by using the service: jmx: rmi: /// jndi / rmi: // & Lt; Host & gt ;: & lt; Port & gt; / Jmxrmi ' So, Docs suggests that I only need to walk away from jstatd to monitor in the scenestyle, while UI is asking for jmxrmi .. are they similar? I have tried to install tomatoes using the JMX RMI options and I am also time-out, although I know that this firewall is not an issue. If anyone has had succes

.net - regex for alphanumeric, but at least one character -

In my asp.net page, I have an input box that should have the following verification: Must be alphanumeric, with at least 1 character (i.e. all numbers can not be). ^ \ d * [a-zA-Z] [a-zA-Z0- 9] * $ In fact it means: Zero or more ASCII points; An alphabetical ASCII character; Zero or more alphanumeric ASCII characters. Try some tests and you'll see that it will pass an alphanumeric ASCII string where at least one non-numerical ASCII character will be required. The key is on the \ d * front without it the regex becomes more odd to do it.

windows - Run another installer in an Inno Setup installation -

My company is developing an application that relies on one of our applications. That second application already has an Ino Setup installer. So I think I want to bundle the installer of the other application inside the Inno Setup installer for the first app. But I'm not sure how to go about this properly. Does anyone know the "right way" to do this? I found this:. I think the technique can be used for Nested Ino Setup installer. But I have a few questions about the exact details: How can I make it, if the first application has been uninstalled, the other has also been uninstalled? (to automatically uninstall another application) is a sensible thing, or should I leave the user to do it manually? If the user tries to uninstall another application uninstalled for the first time, can anyone find out and give a warning to me? How can I go about doing this? Uninstaller is the level of functionality you are talking about, mine Recommend that you are familiar

c++ - Mac OS X free C compiler -

Is there a small, free C or C ++ compiler for OS X, like TCC? The Xcode TCC is not as short or simple as the AIFI. I'm looking for some GCC binary file or TCC for OS X. is the most widely used (and as part of the Apple XCode officially makes). XCode is usually distributed on your OS X CD, although this version may be slightly older, depending on the version of your OS X. If you want to create a GCC that is not connected to the xcode, then there is one from there. Although, Xcode is a great IDE for OS X. Although

Met a problem when runnning in dreamhost, django + mysql, can someone help look? -

programming error / account / registration / (1110, 'specify twice' about 'column') request Method: Post request URL: http: exception type: ProgrammingEar exception value: (1110, 'specify twice' about 'column') Exception location: / home / temp / lib / python2.6 / site-packages / MySQL_python- 1.2.3c1-py2. In defolterrorhandler, linux-x86_64.egg / MySQLdb / connections.pyPython Exposable: / home / temp / bin / python python version: 2.6.2 It looks like you have CREATE TABLE (or ALTER TABLE , etc.) which is the same SQL Table In the two columns of the name, put two names - beyond this, it is impossible to say no to see any code.

html - passing url to iframe -

I have links to my page, like "home", "news", "contact", ... If there is an iframe in the middle of the page, then I want to select iframe according to the link to go to different URLs. Can I just use html and / or how? Give iframe a name attribute, such as it: & Lt; Iframe name = 'content' ... & gt; and then assign each target to the target attribute, such as: & lt; A href = 'news.html' target = 'content' .. & gt;

cocoa - Binding to Media keys on Apple keyboards under OSX 10.5 -

I am quite new to the development of OSX, so it can be easy but Google is not helpful. I am trying to take action on the media keys found on the new Apple Keyboard (Play, Pause etc.). It appears that you can not force these keys using the regular hotkey API but this should be possible due to the obvious management of iTunes. Are there some difficult non-documented APIs to get this? Any help will be very much appreciated. After more detailed googling, it seems to address the problem is not an easy solution, But if you are developing a real Coco app then it seems to be the least possible.

How do I restrict access to files with specific extensions in ASP.NET? -

เคฎेเคฐे เคตेเคฌ เค…เคจुเคช्เคฐเคฏोเค— เคฎें เคเค• ADO.NET Entity-Framework * .edmx เคซ़ाเค‡เคฒ เคนै। เคœเคฌ เคฎैं เคฌ्เคฐाเค‰เคœ़เคฐ เคฎें (เคœเคฌ เคเคช्เคฒिเค•ेเคถเคจ เคšाเคฒू เคนो เคฐเคนा เคนै) เคเค• เคเคกीเคเคฎเคเค•्เคธ เคซ़ाเค‡เคฒ เค•ो เคฌ्เคฐाเค‰เคœ़ เค•เคฐเคคा เคนूं, เคฏเคน เคค्เคฐुเคŸि เคชेเคœ เค•ो เคจเคนीं เคฆिเค–ाเคคा เคœैเคธे เค•ि * .cs เคฏा vb เคซ़ाเค‡เคฒ เค•ो เคฌ्เคฐाเค‰เคœ़ เค•เคฐเคคे เคนुเค, เคฏเคน เคเคกीเคเคฎเคเค•्เคธ เค–ोเคฒเคคा เคนै เค”เคฐ เคธเคญी เคฎॉเคกเคฒ เค•ो เคฎेเคฐी เคฎॉเคกเคฒ เคฏोเคœเคจा เคฆिเค–ाเคคा เคนै เค†เคช เคฏเคน เคฆो เค•เคฐ เคธเค•เคคे เคนैं เคคเคฐीเค•े; เคธเคฌเคธे เคชเคนเคฒे web.config เคฎें เคฏा เคฆूเคธเคฐे IIS เคฎें & lt; system.web & gt; & LT; httpHandlers & gt; & Lt; เค•्เคฐिเคฏा = "*" เคชเคฅ = "*। Edmx" type = "System.Web.HttpForbiddenHandler" / & gt; เคœोเคก़ें & Lt; / httpHandlers & gt; & LT; /system.web> เคฏเคนां เคเค• Microsoft เคธเคฎเคฐ्เคฅเคจ เคชृเคท्เค  เคชเคฐ เคเค• เคฒिंเค• เคนै เคœो เคฏเคน เคตेเคฌ เค•ॉเคจ्เคซ़िเค— เค”เคฐ IIS เคฎें เค•ैเคธे เค•เคฐें।

parsing - How to use Fortran compilers to parse-check or pretty print source files? -

Is there a way to try to parsor or cure a source file (does not include the following, no compilation Do not linking, etc.) to tell us whether they are syntactical / valid file syntax for at least the FORTRAN version (77, 90, 95, ...) or at least valid? I'm working on a part of the software that will pars and analyze Fortran source files, change their meaning on the representation and as a result the new Fortran source code will generate the files. You can parse the files if Everport and Gafran reject it (That is why I called it with certainty, forgiveness, etc. Hehe ^ __ ^ ") This is the reason why I would like to know whether the initial steps of the project, For strict syntax verification, you can use the representative. / P> Do you try to look at the man page should support gfortran -syntax-only / check the code for syntax errors, but do not do anything with that. should support for ifortran -fysyntax-only / -syntax-only / -y

esri - Guidelines for GIS application development -

The I want to create a GIS application for the MSc, and I was thinking that the best free and (preferably) Development Open source technologies for? The known options are as follows: Database: PostGreySQL (PostGIS) (Other suggestions) Programming Language: PHP, Python, Java, ... (Suggestions Other) framework: Jiodenjo (if Python or Jiathan is used), (other suggestions) client UI: JavaScript (Open layers), flex (other suggestions Server: Mapper, Geosource, Mapfish, (Other suggestions) Other things: Being in Spectral Hibernation, Mobile Support for GIS (other suggestions) afaik: the best choice for Web applications Jivisaiji () is to create your data, show using the published WMS / WFS service with hosting your data in Postgrescl / Postjijh (), MapServer () and then Opanleers your data (). the solution to my experiences Fully working mapfish () Using a webpage framework Is a good way that internally use extjs and openlayers, but make it easy to develop.

Ruby on rails scaffolding in Netbeans 6.5 -

I am playing with Rail Scramble facility in Netbeans 6.5. Right click-> Generate gives me a menu that allows me to create scaffolds but asks for "attribute quiz" I have some tables with some columns, and in their scrawled pages, each person is individually All will be included instead of specifying Does anyone know how to do it within Netbeans? Do you mean that you want to compile all the tables? I think the script does not do this But you can actually create a table with all the necessary columns by specifying all attribute pairs. I do not use Netbeans, sorry, but you can specify them on the command line like this. Each attribute added is a column in your table, for example, this command line ./ script / generating scaffold blogpost title: string body: text Creates a controller, a model, and some scenes The name of the blog post Blogpost will be your table name, and the title: string is an attribute pair is the same For more attribute pairs within t

is it possible to edit/modify the firefox addons after installing? -

Is it possible to modify / edit already installed Firefox ads? Where are the adsense in the computer ... I mean which folder etc ... adsense / Extensions are stored under Linux: $ HOME / .mozilla / firefox / profile.default / extensions . Part of the path to profile will be different.

Problem in Datetime conversion in c# -

เคฎुเคे เคเค• เคธ्เคŸ्เคฐिंเค— เคชเคฐिเคตเคฐ्เคคिเคค เค•เคฐเคคे เคธเคฎเคฏ เคเค• เคธเคฎเคธ्เคฏा เคนै เคœिเคธเค•ा เคฎाเคจ เคนै dd.mm.yyyy to เคฆिเคจांเค• เคธเคฎเคฏ เคธी # เคธ्เคŸ्เคฐिंเค— เคฎूเคฒ เคกैเคŸเคซ़ॉเคฐ्เคฎैเคŸ = "28.06.2009"; เคกेเคŸเคŸाเค‡เคฎ เคกीเคŸी = เค•เคจ्เคตเคฐ्เคŸ। เคŸॉเค• เคŸाเค‡เคฎ (เคฎूเคฒเคกेเคŸाเคซ़ॉเคฐ्เคฎेเคŸ); เค•ोเคˆ เค…เคชเคตाเคฆ เคซेंเค•เคจा "เคธ्เคŸ्เคฐिंเค— เค•ो เคฎाเคจ्เคฏ เคฆिเคจांเค• เค•ा เคธเคฎเคฏ เคฎाเคจा เคจเคนीं เค—เคฏा เคฅा।" เคฒेเค•िเคจ เค…เค—เคฐ เคฏเคน mm.dd เคฎें เคนै เคซिเคฐ เคธे เคฏเคน เค ीเค• เคšเคฒ เคฐเคนा เคนै। เคฎैं เคฌเคนुเคค เคธाเคฐी เคธाเค‡เคŸें เคšเคฒा เค—เคฏा เคนूं, เคฒेเค•िเคจ เคธเคญी เคต्เคฏเคฐ्เคฅ เคฎें เค•ोเคˆ เคญी เคตिเคšाเคฐ? เคงเคจ्เคฏเคตाเคฆ । เค‰เคชเคฏोเค— เค•เคฐें DateTime.ParseExact เค”เคฐ เคธเคŸीเค• เคธ्เคตเคฐूเคช เคธ्เคŸ्เคฐिंเค— เคจिเคฐ्เคฆिเคท्เคŸ เค•เคฐें: เคฆिเคจांเค•เคŸाเค‡เคฎ เคกीเคŸी = เคฆिเคจांเค•เคŸाเค‡เคฎ। เคชเคฐ्เคธ เคเคเค•्เคธเคเค•्เคŸ ("28.06.2009", "เคกीเคกी '।' เคเคฎเคเคฎ '।' เคฏ्เคฏाเคฏ ', เค•เคฒ्เคšเคฐ เค‡เคจ्เคซो। เค‡เคจ्เคตिเคฐिเคฏเคจเคŸीเค•เคฒ्เคšเคฐ); เคฏเคฆि เคฏเคน เคฎाเคจ เคนै เค‰เคชเคฏोเค—เค•เคฐ्เคคा เค‡เคจเคชुเคŸ เคธे, เคคो เค†เคช เคถाเคฏเคฆ DateTime.TryParseExact เค•ा เค‰เคชเคฏोเค— เค•เคฐเคจा เคšाเคนเคคे เคนैं เคคाเค•ि เค†เคช เค…เคธเคซเคฒเคคाเคชूเคฐ्เคตเค• เคธंเคญाเคฒ เคธเค•ें: DateTime dt; เคฏเคฆि (เคกेเคŸเคŸाเค‡เคฎ। เคŸ्เคฐाเคˆเคชेเคฐ्เคธเคเค•्เคธैเค•्เคŸ ("28.06.2009", "เคกीเคกी '।' เคเคฎเคเคฎ '।' เคฏ्เคฏाเคฏ ', เค•เคฒ्เคšเคฐ เค‡เคจ्เคซो। เค‡เคจ्เคตिเคฐिเคฏเคจเคŸीเค•เคฒ्เคšเคฐ, เคกेเคŸเคŸाเค‡เคฎ เคธ्เคŸाเค‡เคฒ เคจॉเคจ, // เคกीเคŸी เค•े เคกिเคซ़ॉเคฒ्เคŸ เคธ्เคตเคฐूเคช

C# Creating generic Vector4 class? -

Is anyone good the way to create a normal vector 4 square in C #? I have some units (force, distance, moment, rotation, acceleration, velocity etc), which all require 3D representation and they all behave equally and hence supporting basic tasks for adding, multiplying etc. should do. Each category includes some special cases, for example force_distance = moment so I Vector4 want to be able to create a Force 3D legacy, so I do not have to write all those arrows all the time and these forces should be able to add special tasks to Struct I am using this legacy-based approach, where every unit was found with vector 4, so far, but it creates some problems because when I add for example (force 1, force) 2), I get a base class, vector 4, instead of a force 3d, so I'm either casting or copying the add-function for each unit. I have a Vector4 < Double & gt; and vector 4 & lt; Force & gt; Without redefining all basic tasks for adding, multiplying, etc. (prima

php - preg_replace Filter for Passwords -

With PHP, I want to use a preg_replace () filter for the password, such as the only letters available for password US Is ASCII Typeable, Minus Control Code and Tap Can I plug in preg_replace ()? What is RegEx to get? Edit: I have been advised to edit this question because I get it "now" and it will not be very popular And also will not allow any specific character, which can not be on my keyboard, just as long as they are not controlled by the code. As others have said, do not restrict the set of characters only because the password is allowed only That does not have A, O, or รถ in your keyboard, so there is no reason to stop those people (or how they are typed) using those letters. Are you going to store passwords (or at least as an encrypted string) in the form of cryptographic hash, are not you? If so, it does not matter that your database can safely store / safely store the actual characters in the password in any way, only the character output by your crypt

iphone - Why doesn't initWithRootViewController retain the viewController Class that is passed into it? -

I have a custom view controller called the source list ViUI controller, and I am adding it to a UI navigation controller After I have added the sourceListViewController to the window of the iPhone app window, the sourceListViewController, I have released the sourceListViewController. I Bundle: zero]; UINavigationController * Navigation Controller = [[[UINavigationController alloc] initWithRootViewController: sourceListVC] AutoCare]; [SourceListVC Release]; When I do this, the app will crash after the view loads on the phone. When I commented on the last line, then the app did the right thing to keep the copy of the InitWithRootViewController source listView? You are autoreleasing navigation controllers, so if the navigation controller is autoreled (which may be in the next ringalp Will be) then the source list will be the VC.

winforms - C# Set the visibility of a label using the result of String.IsNullOrEmpty -

Hi I'm trying to set the visibility of a label based on a text box string empty. I have the following code: MyLabel.Visible = String.IsNullOrEmpty (MyTextBox.Text); When the text box is left blank, then why not? Update I have tried to put this code in an event with a text tag in the text box and it still does not work. This was an updated issue, it works on the Text_Changed event, though the problem is that it does not work when the form is triggered on processing. The code starting with my controller class is what is happening to give better information to everyone: using (var frm = new frmAdd ( PersonType.Carer)) {var res = frm.ShowDialog (); If (res == System.Windows.Forms.DialogResult.OK) {if (frm.ValidateInformation ()) // The above code is called here {// Process Here information ...}}} < / Pre> In addition to this, I also forgot that this form is in the Class Library Project (DLL). I will add a trim to make the user more consistent in term