Posts

Showing posts from May, 2015

orm - SharePoint List like Data Access Interface -

The way I am affected by using the list of programs in SharePoint, I get it as Data Access Layer While modeling the database, the column in the list is not that easy to define. I'm looking for a device or an application that will give me the same interface as the database. Actually, for some reason I can not use SharePoint and I do not want to take responsibility for the modeling, deployment and maintenance of the database. I find SharePoint method of perception management acceptable and exciting. Can anyone give me some suggestions about this too? BTW, my application is on ASP.net and my preferred RDBMS MS SQL Server. If you do not want overhead and expense of a Sharepoint installation, 90% when you actually need it , Then WSS 3.0 (free from Windows Server License).

asp.net - How to force ASMX web service to send JSON data to client on HTTP GET request? -

I am trying to use official with ASMX web service in ASPNT 3.5 web form application. If I understand it correctly, then the auto-complete plugin can use HTTP GET to call only one service (with two query string parameters: q and range ). I came to know how the Web service responds to the HTTP GET call, but I did not know how this can return JSON data (even if the service calls it using JS $ $ data.), When calling from the complete plugin, it always gives XML). Here are some code snippets: Web service: [ScriptService] [WebServices (namespace = "http://tempuri.org/")] Public class UserWS: WebService {[WebMethod] [ScriptMethod (Use HTTPPat = true, response format = response format. Jason)] Public list & amp; YouTube Dislike Menu & gt; GetUnivers (string q, int limit) {list & lt; UserDisplayInfo & gt; User = GetUsers (Q, Border); Return users. }} Web page: $ ("# test"). Autocomplete ("./services/UserWS.asmx/GetUsers", {dataType...

build vs2005 solution with msbuild from .net 3.5 -

itemprop = "text"> I have an msbuild proj file that should be a solution built on Visual Studio 2005 and both C ++ and C # projects If I have a solution with MSBILD that comes with .NET 3.5, what should be added in the project file? In advance thank you If you are trying to create a solution file in which You should use devenv.exe to create C ++ projects. To do this you can use the task. Saeed Ibrahim Hashimi My Book:

barcode - Is the bar code dead thanks to Microsoft's Tag technology? -

Not sure how many people work with bar codes in their applications there I am on some of the projects for which the expected time Code programs will be prepared. Looking at this new I am surprised that someone has worked with MS tags? Do you have some examples of programming against MS tags? I seriously doubt that the bar code will die any time soon it is cheap, and good Explained in kind. The only advantage of MS Technology is that it allows more data in one place. Most of the time code users do not need more data. You have many rooms for item IDs and your ISB and your package reference number etc. In addition to this, users of the bar code are often very conservative WRT new technology. They do not want to spend money if they do not have to, and they have already received bar code readers ...

How can I check Spring Security for user authentication and get roles from Flex? -

I am using Spring, Spring Security, Blaze's, Flex and Spring Flex. I know that I can hook up to channelSet.login () and channelSet.logout () in the Spring Protection for authentication. channelSet.authenticated apparently only knows about the current Flex session, because it always closes as false , as long as you channelSet. Login () do not call. What do I want to do: Check with Flex to know if a user is already in one session. If so, I want the user names and roles. UPDATE I thought I would add a description of the solution used with the answer given below so that it would be easy for someone else to I used the stack overflow response to make the security console injectable. I will not rewrite the code from that reply in this answer, so look for it for SecurityContextFacade . securityServiceImpl.java Public class protection service applies the original security service {Private SecurityContactFacade SecurityContaxFacade; @ Secure ({"ROLE...

Visual Studio 2008 - speed up Add Reference -

Add any method to speed up the reference dialog? For example, did anyone find a way to open it in the Recent or Browse Tabs by default (which I use 90% of the time), to avoid slowing down on other tabs? It is found that where many people complain about this issue, but there is no solution ... Note that this is not a duplicate because it is a normal There is no question. No, I do not believe it is a good way to speed up. Li>

Is there any special category for external files in project file of Qt Creator? -

I would like to put some external files in my project, we say .txt ones what QT creator Is there a special category for external files in Project File (.pro)? The Qt creator, at least, uses an OTHER_FILES variable for .txt files and some Similar: OTHER_FILES + = test.txt "test.txt" adds "project files" pane to Qt Creator. If you want to make your files a little group, then you want to add a separate .pri file such as "External.pri", which contains your external files from there and then the .prri file Your .Pro includes: Project.pro HEADERS + = someclass H sources + = main.cpp someclass.cpp. External.pri External.pri Code> The effect of creating a folder in the Qt Creator (called "external"). If you have a bunch of external files then it will help keep things organized.

coding style - Deciding whether or not a run a function, which way is better? -

I have some data loaded from the server, but there is no guarantee that when the UI starts, Display is the tick function in every frame when the new data is received, the flag is set, so I know that it is time to load it in my data structure. Which of the following is a more sensible way of deciding to actually run the function? AddNewStuffToList () {// clear the list and reload it with new data} Foo_Tick () {if (Updated) AddNewStuffToList (); // tick function} versus: AddNewStuffToList () {if (updated) {// clear the list and return it with new data Load}} Foo_Tick () {AddNewStuffToList (); // ticker function} I have left the irrelevant details for example. IMHO first separates this version: Data updates To (Foo_Tick) FROM How to Load Data (AddNewStuffToList) The second option is simply shaking all things together.

regex - Regular Expression for nested tags (Wikimedia content) -

has not regex in a while, and will rust slightly. I am trying to extract categories from Wikipedia entry. What I need is a personal string contained in a pattern that starts with two open brackets and ends with two closed parentheses. is. This query works most of the time - (? [? & Lt; grade & gt; * [^ \] #]) ( [\]] But there are problems when they have a comma (',') in the closing brackets. Its unfortunate result is that when the following text is parse lower = = [[Seattle, Washington]], [[United States | United States]] | This category " "Removes the following for Seattle, Washington]], [[Joint United States | USA] Clearly, the comma is blocking it and it is getting the next set. The best way to capture each value between open and closed double brackets. What is the problem? The problem is not a comma, the problem is that . * Match will be "]] [[" Just with something else * is greedy - it will be as matchable a...

html - Simple CSS layout - how can I achieve this layout, and make it scale easily? -

O people, how can I get this simple layout? I hope the answer will help me understand CSS layouts and floats. & lt; Div id = "verticalElement1" & gt; & Lt; Div id = "horizontal element 1" & gt; Some content & lt; / Div & gt; & Lt; Div id = "horizontal element 2" & gt; Some content & lt; / Div & gt; & Lt; Div & gt; & Lt; Div id = "vertical alignment 2" & gt; & Lt; Div id = "vertical alignment 3" & gt; Some content & lt; / Div & gt; & Lt; Div id = "vertical alignment 4" & gt; Some content & lt; / Div & gt; & Lt; Div & gt; OK, therefore, as a suggestion of "ID", I want to put vertical elements on each other's head . Inside the top element, I want to place 2 horizontal elements next to each other. I do not want to use the full position, except that without any . I would like to get it all very clean and...

java - TreeViewer#update(Object element, String[] properties); what do properties refer to? -

मैं पद्धति TreeViewer # update (Object) में पैरामीटर properties के बारे में सोच रहा हूं तत्व, स्ट्रिंग [] गुण) । वे क्या हैं? वह किसका उल्लेख करते है? मुझे यकीन नहीं है कि क्या स्ट्रिंग [] में जाता है - क्या उपयोग करने के लिए पूर्वनिर्धारित स्थिरांक हैं? या ये मेरे कॉलम हेडर के नाम हैं? कुछ और? मुझे update () के उपयोग का कोई भी उदाहरण नहीं मिल सका है, जिस पर null पास नहीं है गुणों के लिए मान Javadoc मेरे लिए वास्तव में उपयोगी नहीं है। धन्यवाद! यह बताता है अध्याय 'बदलने के लिए जवाब' में उन गुणों के लिए किस प्रकार उपयोग किया जाता है: यदि आप वृक्षारोपण के लेबल या सिर्फ लेबल के पाठ या लेबल की छवि का पूरा अद्यतन करना चाहते हैं तो आप ठीक कर सकते हैं। गुणों को कैसा दिखना चाहिए इसके बारे में विस्तार में नहीं जाना है। उसे, मुझे लगता है, आपको सीधे स्रोत कोड का अध्ययन करना होगा, अगर जवाडॉक्स पर्याप्त नहीं हैं।

iphone - How do I recreate a "settings application"-like tableview inside my application? -

I want to add a view to my application allowing the user to change many (many) settings. It should appear in the "Settings app" (), but it must be within your app. At the moment I have just one tableview and manually add different cell objects (with switches, sliders, etc.). Is there a clever in doing this? I think I am changing the wheel again. No, this is the way, returning to individual cells in the tableView: cellForRowAtIndexPath: / Code> Method Just remember that there is useful properties in a UITableViewCell such as a secondary mark (a description dissonant button, a disclosure indicator or check mark) and an image on the left.

Using Eclipse C++ CDT in Linux -

I want to use Eclipse to develop C ++ projects on Linux. In particular, I want to modify the open source projects that are stable and widely used while using Eclipse CDT. One of these is Intel OPECU There are tutorials for creating simple C ++ projects: However, to make changes in the OpenCiv forum I want to use Eclipse and compile it from there. I really like many features of Eclipse: Syntax highlighting Outline Code help Code template code history etc. Can anyone write a short tutorial how to create a project in OpenSSL from Open CV Turbal? I would use Eclipse CDT on Linux. Does the CDT recognize the makefile because it can do for an ant script? I have experienced that to use OpenCV path to use, you can open the source code And can use cmake to compile it. There are some tools to integrate the sensor in the eclipse even after your changes, but I did not find them unstable or too mature, so I want to compile and capture to edit source fil...

What are the major differences between the R and S programming languages? -

आर एंड एस के बीच क्या अंतर हैं हम इस बात का सम्मान कर सकते हैं: एस को तीन मौजूदा क्रियान्वयन या"> [...]

c++ - Push data from local application to browser -

I have a C ++ application for monitoring local computer and HTML5 web pages (offline support) to show statistics Currently my application sends data to the webpage from the server, but it only works online. Now I want to support full offline mode, so I need to push the data directly to the webpage to fire JavaScript events. Yes. Is this possible? And is it possible on cross-platform? If the C ++ application and the HTML5 webpage are on the same machine then the server can be of the same PC There is a well-used, lightweight server that you can embed in your C ++ application and can serve content directly in the browser without going online.

Detecting Changes in an ASP.NET Web Site -

ASP.NET does a great job of detecting the framework when a file changes and compiling that file again e.t.c. I like that to be able to hook into the update process Is this possible? I will try and create web site projects, vs web applications for versions developed in the web site, where the version is easily static Is found in the assemblies deployed. If I am directing my energy wrongly, there are already better versions of the web site , then I still give some indication. I do not know that you can hook that argument - maybe you can add your code Because ASP.NET has resuscitated the applet and restarts the website.

asp.net - cannot change GridView Caption -

Changing this gridview seems impossible. Captions after it is set once. Once I set the caption and then change it to postback, all in the code look ok, page prerenders, gridview prerender and wherever I do not know - Page (And also gridview) Preorder Event while debugging. The caption is fair, but it renders with the old caption also The page appears to be presented once with caption, although I changed it is. I also tried to replace it, to update and update the panels, but did not get help from this. Can someone suggest? Thanks in advance. In this example, it seems to work here, can you post your code? & lt;% @ Page language = "C #"%> & Lt ;; DOCTYPE HTML PUBLIC "- // W3C // DTT XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; Script runat = "server" & gt; Protected Zero Page_load (object sender, event events e) {if (IsPostBack) {System.Collections.Generic....

javascript - Run a method everytime value changes -

I wonder if any of you can help me, which I think is seeing the problem. I is an element (SVG to be more specific) that I want to change a value every time. I have the variable: GetThreadTree (). TreeBoxObject.getFirstVisibleRow () that is initially 0. I will run a function updateCanvas () every time the value of GetThreadTree () TreeBoxObject.getFirstVisibleRow () changes. What do I have: canvas.observe (GetThreadTree) treebox object.trust swivel (), "scroll", update converts ()); but it only calls updateCanvas () once, when it is called for the first time, and for any reason the code executed after it Is not done. I checked the error console and there was nothing. Any thoughts? You argue all in the wrong place when you update your value, it would ever be That's the function, such as a place like a treebox object, in one place. Incrementarva () or similar. Then you can fire that function to an event, such as the Trabexscrolled. The event ...

switching jquery tabs in code behind(C#) -

I have five div tags in the aspx page ... inside the other div button. The second click on that button should be turned on. Its first tab is coming. How can I reverse the tab in the tab (click on the side button) ... You can do this in the code instead of the code in the code, but if you actually have to do this on the back code, you must have an integer number (i.e.: when you have to show the first tab, the int value should be 0). Then with a script you can show the tab to: eq (@number @). Good luck!

sql - When should I use stored procedures? -

When should I use organized procedures instead of writing arguments directly in my application? I want to cut the benefits of stored procedures, but I also do not want to spread my application on the database database and application. Is there any rule of thumb that you can think in this context? Wow ... I'm going to swim directly against here and say, "almost always" There is a list of reasons for washing - some of which I / I believe that others will argue but I have developed both apps with both the use of stored procs in the form of a data access layer and without it, and this is my experience It's been easy to write your application written well enough written processes. Make up Then there are well documented performance and security benefits.

ruby on rails - How not to repeat this code in my models -

I have a piece of code in a model that sets the start date and end date according to the time of day The law is run. We jump straight in the example of code: #MODEL now = time.Now if now HHOW: = 17 & amp; Amp; Now.hour & lt; = 23 # night n = now + 1.day startd = time.local (now.yure, now.mmth, nowdays, date, 17, 00, 00) endd = time.local (n.yure, n.month, n .day, 8, 00, 00) Alicef Now Hor & gt; = 0 & amp; Amp; Now.hour & lt; = 7 # Morning N = now 1 9 Dedged startd = time.local (n.yure, nmn, n.ed., 8, 00, 00) ended = time.local (now.year, within a model (one or the other), i Trying to run the function inside a search. > #MODEL (Similar or Other) Model.find (: All, Conditions = & Gt; ['created_at> =? And created_at & lt; =?', Startd, endd]) The problem is that I start using that function and end dates I'm doing a lot to set up, and I do not know that Where to keep it for yourself. You can call it the lib directory All r...

c# - move nodes on a treeview control -

I am using standard asp.net treeview control to display a menu structure to which the database is bound Anyway, this is not an issue, I'm looking for a tree control that will allow the user to rearrange the nodes in a new position within the tree, whether someone in the right direction Can you also say in the form of control that can do this? There are node events in windows form control. Is there anything like this for web form? Any indicators greatly appreciate. You can view Exgese's Trippanel.

database - Adapter not loading anything with SQLite C# -

I use this code and say SQLite "Data source can not be empty. Usage: Memory: In-memory To open the database " This is my code string dbfile = new system.IO.FileInfo (System.Reflection.Assembly.GetExecutingAssembly (.pace location). Name of the directory + "\\ m23 .db"; String sql; Date time DT = Date time.Now; SQLiteConnection connection = New SQLiteConnection ("Data Source =" + dbfile); SQLiteDataAdapter adapter = New SQLiteDataAdapter ("Select from p_posts", connection); Dataset data = new dataset (); Adapter.fill (data); // & lt; & Lt; & Lt; Here I get the error SQLiteCommand CMD = New SQLiteCommand (); Cmd.CommandType = CommandType.TableDirect; CMD. Connection = connection; Connection.Open (); Any help is apreciated, cheers! Try to use SQLiteConnection connection = New SQLiteConnection ("Data Source =" + Dbfile); I have seen the use of "data source" instead of "data source". ...

c# - Open a VS 2005 Solution File (.sln) into memory -

मैं एक मौजूदा .sln फाइल मेमोरी में खोलना चाहूंगा। एक गैर- विधि: निजी समाधान 2 OpenSolution (स्ट्रिंग फ़ाइलपथ) {Solution2 sln; sln.Open (filepath); वापसी एसएलएन; } अगर मेरे पास समाधान 2 का एक उदाहरण है तो मैं विधि को ओपन कॉल कर सकता हूं; लेकिन मुझे समाधान 2 का उदाहरण कैसे मिल सकता है ? मेरा लक्ष्य तो पर्याप्त प्रोजेक्ट प्राप्त करना और इसकी कुछ सेटिंग्स को पढ़ना है ... लेकिन समाधान का उपयोग करना आसान है । पहले से धन्यवाद, लुइस आप प्रोग्राम की एक छिपी हुई आवृत्ति का निर्माण कर सकते हैं दृश्य स्टूडियो, और उसके बाद अपने समाधान को हेरफेर करने के लिए इसका उपयोग करें। यह उदाहरण दिए गए समाधान में रहने वाली सभी परियोजनाओं को सूचीबद्ध करेगा। सिस्टम का उपयोग करना; System.Runtime.InteropServices का उपयोग कर; EnvDTE का उपयोग कर; EnvDTE80 का उपयोग कर; नाम स्थान SO_sln {class प्रोग्राम {[STAThread] स्थिर शून्य मुख्य (स्ट्रिंग [] एआरजी) {System.Type टी = System.Type.GetTypeFromProgID ("VisualStudio.DTE.8.0", सच है); डीटीई 2 डीटीई = (एन्वीडी 80। डीटीई 2) सिस्टम। एक्टिव...

c# - What software do i need to install to use WPF in VS2005 -

VS 2005 and Net 3.5 are installed on my machine. I have heard of WPF and want to practice WPF solution which other software should I want to install to write WPF programs in VS 2005 because it is by default No option shows. Any link for some good things for beginners on WPF would be very useful. Please You can get them here: This was the last version released to Microsoft before telling everyone to go with VS 2008 if you can not VS2008, this is a fine solution. We used it for one and a half years and there are the production units running on its basis. I have problems that the designers are basically non-existent (so be prepared to hand over the code XAML), it can be a bit slow, and There are some bugs. Re: 3.5, VS 2005 is unable to deal with 3.5 projects, lincs, etc. If you really want, you can work outside the VS and just use MSbilt 3.5. An interesting fact: Net 3.5 takes place in some libraries, Presentation Framework Assemblies. The new version of this assembly contains ...

Storing polymorphic objects in SQL database -

[noob warning!] I need to store some data in some tables where it is similar Is equal to the array of pointers for the polymeric object such as (pseudo C ++) struct MyData {string name; } Struct MyDataA: MyData {int a, b, c; } Struct MyDataB: MyData {string s; } Maida * Data [100]; I really do not know what to enter Google Search! How will such information be stored in the SQL database? My random thoughts: I have a table that is with a column that is the composition identifier and then it is unnecessary, but it seems useless . I can have a table for each structure type. In it there will be a foreign key back in the master array table, but how can I indicate the structure table? This is a complex subject to get an idea of ​​the strategies involved in it. I suggest reading Hibernate Docs on this topic: Even if you are not using hibernate, then the relational mapping concept is still relevant. That hibernation does not control any single strategy because no one ...

cruisecontrol.net - Multiple checkout locations from Perforce with CruiseControl [.Net] -

I am a production-test server, which is using a test server in the production environment, which is only available from It is my company's network before actually deploying the project on the project (project is a web site): This is to create smoke testing and regression testing (for example, our third party web services are accessible). We use a Performance Source Control Server and Cruise Control. Net, and I want to configure Cruise Control to view my production code in two separate file system locations (on our build server), so that it can be created twice with different build configurations, i.e. for a single output Creating a configuration, one for production-testing So I'm RoboPopi- Producing test-testing on the production-test server. How do I specify multiple checkout directories for "production-testing" and "production", without two separate branches for it? Create two different projects to remove all the normal parts in a template an...

java - Should I use PHP or JSP for a chat website? -

The only difference I want to develop a web web application like Yahoo is that I do not make this web based desktop Want to I am implementing it with Ajax in jsp / php. I want to know whether jsp or php would be better for this. What are the advantages or disadvantages of both? Which of the two will you like and why? What if the JSP application will be slow then php? I'm thinking of using strings with jsp and ajax will reduce the speed of using the strokes? I know that jsp, java and struts are not php but what php is more difficult then JSP? Use whatever you are a good programmer, use it. The work can be completed in either language. You can argue without language characteristics, the row below which works best for you.

replication - Sql Server 2008 Replicate Synonym? -

I am planning to update the names of some table by creating synonyms of the old tables and changing the name of the table . Replication can properly refer to synonyms? Apart from this, as a side question, is there an easy way to see if a particular table is really being repeated or not? (Probably through a question) I do not think so. The replication works by reading the log and there is no log record for any synonyms. Which tables have been replicated, to know about a query on sysarticles in the table, where do you go to HTH?

XML query against SQL Server SSIS DataProfiler xml file in Powershell does not work. -

I am trying to figure out the attribute values ​​from the XML file attached below. Specifically, I use the " name , SqlDbType and so on. Columns "" Colmnolratioprofail "node XML output file element code comes as a part of SQL Server 2008 SSIS DataProfiler work. However, I have many ways Have tried (some of them have tried to see method 1 and below method 2. I can not work it. Any suggestions? # on TMM Save as: \ # ------------- ---------- & lt ;? Xml version = "1.0"? & Gt; Dataprofile xmlns: xsi = "Http://www.w3.org/2001/XMLSchema-instance" xmlns: xsd = "http://www.w3.org/2001/XMLSchema" xmlns = " http://schemas.microsoft.com/sqlserver/2008/DataDebugger/ "& gt; & lt; data sources & gt; & lt; DtsDataSource id =" {45277997- 59B4-4A95-909E-7804F0761FA1} "Name =" Detabeskon "& gt; Ditisikakshn Manejraidi & gt; Databeskon & lt; / DtsConnectionManagerID & gt;...

excel - VBA global variables -

itemprop = "text"> The following code to deal with UserForms on my spreadsheet VBA macro: Public saved_vocab string public saved_num string public_type saved_def as public form string public private string Save_Click () Low dim integer dim integer dim as high as selected as integer low = 1 high = cells (1, 1) Saved_ex as .End (xlDown) Find the line range (cells (lower, 1), cell (high, 1)) (after: = vocab.Text, after: = ActiveCell, see: = xlFormulas, _ lookAt: = xlPart, SearchOrder: = XlByRows, SearchDirection: = xlNext, _ MatchCase: = false, SearchFormat: = false) .Activate selected = ActiveCell.Row saved_vocb = cells (selected, 1) .text saved_num = cells (selected, 2) .text saved_def = cells , 3). Text saved_ex = cells (selected, 4) .text cells (selected, 1) = vocab.Text cells (selected, 2) = num.Text cells (selected, 3) = definition.Text cells (selected, 4) = exampl e .Text End Sub Personal sub-undo_Click () cells (selected, 1) = saved_vocab cells (selected, 2) = ...

image - Does anyone have a script to create a horizontal gradient (left to right) using PHP? -

मैं वर्तमान कोड का उपयोग कर रहा हूं। & lt ;? शीर्ष लेख ("सामग्री-प्रकार: छवि / पीएनजी"); // उदाहरण: & lt; img src = "gradient.php? ऊंचाई = 600 और चौड़ाई = 100 और = प्रारंभ करें = 00FF00 और अंत = एफएफ 20000" / & gt; $ ऊंचाई = 100; $ चौड़ाई = 1; $ शुरू = '000000'; $ = 'FFFFFF' खत्म हो; निकालने ($ _ अनुरोध); // यूआरएल से वार्स का उपयोग करके अधिलेखित करें $ start_r = हेक्सडैक (उपस्ट्रस्ट ($ स्टार्ट, 0,2)); $ Start_g = hexdec (substr ($ शुरू, 2,2)); $ Start_b = hexdec (substr ($ शुरू, 4,2)); $ End_r = hexdec (substr ($ end, 0,2)); $ End_g = hexdec (substr ($ end, 2,2)); $ End_b = hexdec (substr ($ end, 4,2)); $ Image = @imagecreate ($ चौड़ाई, $ ऊँचाई); ($ Y = 0; $ y & lt; $ height; $ y ++) {के लिए ($ x = 0; $ x & lt; $ width; $ x ++) {यदि ($ start_r == $ end_r) $ new_r = $ start_r; $ अंतर = $ start_r- $ end_r; $ New_r = $ start_r-intval (($ अंतर / $ ऊंचाई) * $ y); अगर ($ start_g == $ end_g) $ new_g = $ start_g; $ अंतर = $ start_...

tsql - Best T/SQL Formatting Add-In for SQL Server Management Studio -

Does anybody know about the real SSMSMS add-in that beautifies T / SQL, it is not very expensive Is it also works best for T / SQL formatting around? I have a good knowledge of the equipment of the Red Gate, but $ 300 is enough killer amount. I have seen this add-in, but it is clearly about the indentation. Neither the solution addresses the comments and header best practices. I came to this tool: Very good for free product. Although Lal Gate does not kill anything in the device.

size - jvm - what is the optimal freeheap to totalheap ratio? -

What is the optimal freehepse for the total up ratio? Should I consider reducing the size of the heap size / size of the pile on the values ​​of this ratio? There is no easy answer, let me give you two examples: Example 1 - Your program allocates 100M light memory at startup, and then does not allocate any memory that is ever for the rest of the part. In this case, you explicitly Example 2 - Allocates your program i 100% (100, 99 or something else, but You want to keep a pile size). Memory 10m Anytime no data is no longer than 1 second. (For example, you are calculating a lot for which many temporary data is required, and when you are done you will return an integer ...) It may be possible to know the exact numbers Not realistic, but this is an example, so bare with me ... Since you have 10m "live" data, you have to be at least 10m heap. In addition, you will need to see how your garbage collector works. Simplified, the time to complete a GC is O (Live Se...

performance - what are my options as my mysql DB grows -

How can I improve this question? Please let me choose to tell all my options here as my social network DB is only getting bigger This query 2.1231 seconds friend_friend.friendid, friend_reg_user. disp_name, friend_reg_user.pic_url taken Join joy Friend_reg_user.online friend_friend friend_friend.friendid = on friend_reg_user friend_reg_user.auto_id where userid = 1 and Friend_friendkstatus = 1 Ordide Diissi LIMIT 59535, 15 ######## ################################################# ################################################# ######################### # Id # SELECT_TYPE # Table # Type # possible_keys #s Capital # Key_len # Ref # rows # extra # ########### ############################# ################################################## ########################################### # 1 # Simple #friend_friend # Ref # userid # userid # 5 # constant # 59843 where # 1 # # simple use Friend_reg_user # Eq _ref # primary # primary # 4 # Friend_friendkfriendid # 1 # ########### #####...

php - hide javascript from showing up in browser -

I have some javascript which I am using in my files but when we look at the source code it is our javascript Because it is. Is there any way by which we can show our javascript in the browser using PHP? There is an independent JavaScript obfuscator, it will not prevent dedicated people from "stealing" your code, But normal copy and paste will not be easy. See also this question: There are some very good answers in it and it also explains how it is safe through ambiguity.

json - How to get around SerializeJSON in CF8 encoding non printable characters? -

सीरियलइजजसन गैर मुद्रण योग्य वर्णों के साथ JSON बनाता है (यानी एएससीआईआई 21) यह अमान्य JSON है क्या गैर प्रिंट करने योग्य पात्रों को निकालकर एक रीजेक्स काम करेगा? क्या रीजेक्स गैर प्रिंट करने योग्य वर्णों को निकाल देगा? खैर, यह आसान समाधान सीएफएफड के लिए बनाया गया था, लेकिन आपकी समस्या बहुत समान है। पहले मैंने जावा का उपयोग करने की कोशिश की है पुस्तकालय StringEscapeUtils (कॉमन्स लैंग एपीआई), लेकिन यह मेरी सामग्रियों को ठीक से नहीं बचा था। हालांकि एक्सएमएल के लिए इसकी सिफारिश की गई है। इसलिए, यह सीएफसी पद्धति मेरे लिए काम करती है शायद आपकी भी मदद करेगा। & lt; cffunction name = "cleanXmlString" access = "public" returntype = "any" output = "false" हिट = "गैर वैध XML वर्णों को बदलें" ; & Lt; cfargument name = "dirty" type = "string" आवश्यक = "true" hint = "इनपुट स्ट्रिंग" & gt; & Lt; cfset var साफ़ = "" / & gt; & Lt; cfset var पैटर्न = "...

Delphi 2006 always stops working when closed on Vista -

Whenever I block the Galileo IDE under Vista from Delphi 2006, me Microsoft Windows Borland® developer studio has stopped working for Windows Due to a problem, the program stopped working correctly. Given, please close the program. [Close the program] After some dialogue prevention of data execution. Response to the answer : Changing to another version of Delphi. Excluding the program from the DP does not help. How do I stop it? is not an option, as we develop the framework for our customers, which must be run on Delphi 7 - 2007. Our main customers use Delphi 2006. Delphi 2009 has not yet been decided, because we have a lot of code to be ported. For Unicode, we have to do extensive testing under Delphi 2006, there is no way around it. 99.954% of all shutdown errors are due to a poor written component or expert in Delphi Do you have Are the components that you think might be the problem? You can try to delete component sets and other plugins at a time and ...

asp.net - Problem Converting Web To Web Project In VS2008 -

I changed my old VS2008 website to a web application, now before I was trying to change it , Everything was working But now I do not feel able to refer to my classes? For example, I have a BasePage class that meets every .aspx page like public partial class SomePageName: BasePage {} But now I get this message? And this is the same for all other sections? Type or namespace name 'basepage' was not found (Do not you remember use directory or assembly reference?) How do I know Imagine who I am missing 'directive' and what is an assembly reference? Conversions placed your classes. Maybe it should be a new edged namespace. The bases?

servercontrols - asp.net custom server control - how to tell if postback ocurred because of this control -

मेरे पास एक कस्टम asp.net सर्वर नियंत्रण (वास्तव में एक चेकबॉक्स का विशेष संस्करण है)। मैं एक पोस्टबैक पर कुछ प्रोसेसिंग करना चाहता हूं, लेकिन केवल अगर पोस्टबैक इस नियंत्रण के परिणामस्वरूप क्लिक किया गया था (autopostback को सही पर सेट किया गया था)। यह निर्धारित करने का सबसे अच्छा तरीका क्या है कि क्या पोस्टबैक इस नियंत्रण का परिणाम है या कुछ और? आपकी मदद के लिए धन्यवाद। आप इसे काम करने में सक्षम हो सकते हैं: तर्क बनाएं जो आपको बताता है कि किस कंट्रोल को पोस्ट किया गया है: कॉरी लार्सन टिप्पणी भी एक अच्छा ... ...) है

jQuery/CSS - need help in selection -

जैसे मार्कअप के साथ: & lt; ul & gt; & Lt; li & gt; & lt; a href = & quot; # & quot; & gt; लिंक 1 & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & Lt; a href = & quot; # & quot; & gt; लिंक 2 & lt; / a & gt; & LT; ul & gt; & Lt; li & gt; & lt; a href = & quot; # & quot; वर्ग = & quot; सक्रिय & quot; & gt; लिंक 2.1 & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = & quot; # & quot; & gt; लिंक 2.2 & lt; / a & gt; & lt; / li & gt; & Lt; / ul & gt; & Lt; / li & gt; & Lt; / ul & gt; मैं एक वर्ग को "सक्रिय" जोड़ना चाहता हूं, लिंक 2 (पंक्ति 4), या लिंक जो कि आंतरिक a.active लिंक हैं मैं jquery या शुद्ध सीएसएस के साथ कैसे कर सकते हैं? "ऑपरेटर" का प्रयोग कर आप इसे बहुत सरल बना सकते हैं। यह पंक्ति एक सक्रिय लिंक के साथ "ली" युक्त कोई "ली...

.net - To SharePoint Or Not (as a foundation for application development)(vs ASP.NET) -

I have a POV that you should use SharePoint only for application development under these conditions. 1) Application uses documents and these documents require some type of functionality which is very well (coordination with search / indexing, outlook, etc ... etc) if SharePoint If you want a document bucket and a list then ASP.NET or ASP.NET MVC. 2) Applications should use workflow or custom workflow. No workflow, then I will look at ASP.NET or ASP.NET MVC. 3) The company must dedicate at least 1 full time developer to SharePoint. Developer's 1/2 or 1/3 Not To SharePoint Development Properly You Need Commitment And Focus You Should Drink Qualified Support If you are not ready for expertise in SharePoint, but are only willing to tamper with, the resultant solution Horrible (IMHO) are better than you can dedicate to two developers or team (Aidability / Maintenance / Specialization / Expertise). So what do you think? Note: I think all Microsoft stores should use ShareP...

ruby - Where to place Rails code that is not a model, view, controller or helper? -

I want to share code not related to ideas among many controllers in my Rail app where I put it in the directory structure needed? Edit: code in question if how they present the model data Post-text "itemprop =" text "> If the code is similar to the modules in which utility methods can be placed in the lib folder, alternatively you have a general rule for some of your controllers. Make superclasses if they share behavior Please post an example of that kind of code What are you thinking

javascript - How does one post nested JSON using JQuery? -

I have an admin page for such a store where the user can modify item data. I'm trying to implement something for the administrator so that the images can be dragged by dragging and dragging them one by one. Click $ ("# saveButton"). ("Form", "true" (); FormData ["item": "(selected)"). Val (); form data ["action"] = "save"; form data ["images"] = {}; $ ("#other image image") (Function (i) {formData ["images"] [I] = $ (this) .attr ("src");}); $ .aex ({type: "post", url: "adminajax.php ", Data: formData});}); Here, the "picture" value is submitted as "[object object]" here. I have to be an associative array on the "picture" server. There are just several image keys in one functioning: "image1: source", "image2: source" etc. However, it would be really good if it could be an object so that I can fil...

ultraedit - Newline Madness in Bash Script -

I have a Bash script which I edit on windows using UltraEdit and as UTF-8 no BOM Save, using the Unix line terminator style, as specified in the "save as" dialog box in the UI. Then I'm uploading it to the VertuZozo proportional to the Sentix 5 X 86 machine, and every time, whether I upload it (via FTP binary file, or via parallel management console) ), The script does not work. When I look through the script through parallel management console, I think that there is a strange character in the last and only last line in it, if I line up from the last line Give Minetr out to the end of the script (last printable character) does everything works fine. My question: A) Why is only the last line can cause Terminator problems? B) How will I avoid this in the future? Thank you! Firstly, I advise you to move in the form of a binary. Because you think that. You know exactly the same. ASCII / Text FTP is known for line-ending conversion when you do not even want it....

Expat parsing in python 3 -

आयात करें xml.parsers.expat def start_element (नाम, attrs): प्रिंट ('प्रारंभ तत्व:', नाम , Attrs) def end_element (name): print ('end element:', name) def चरित्र_डेटा (डेटा): प्रिंट ('चरित्र डेटा:% s'% डेटा) पार्सर = xml.parsers.expat.ParserCreate () पार्सर StartElementHandler = start_element parser.EndElementHandler = end_element parser.CharacterDataHandler = character_data parser.ParseFile (खुला ('sample.xml')) ऊपर अजगर 2.6 में काम करता है, लेकिन पायथन 3.0 में नहीं - कोई भी विचारों को अजगर 3 में काम करने के लिए बहुत सराहना की गई मुझे पार्सफ़ाइल लाइन पर त्रुटि मिलती है TypeError: read () एक बाइट ऑब्जेक्ट (प्रकार = str) नहीं लौटा आपको उस फाइल को द्विआधारी के रूप में खोलना होगा: पार्सर। पैरासेफ़ाइल (खुला ('sample.xml', ' आरबी '))

c# - How can I access the ItemsPanel of a ListBox at runtime in silverlight? -

How do I use the items panel in a list box at runtime in Silverlight? There are two ways to achieve this, the simplest is the Silverlight Toolkit: using System.Windows.Controls.Primitives; Private Zero LB_loaded () {var itemsPanel = LB.GetVisualChildren (.) OfType & lt; Panel & gt; (). FirstOrDefault (); } Or you can use VisualTreeHelper and type the following recursive method: T GetFirstChildOfType (Dependent Object Scene) where T: dependency object {v Ar ItemCount = VisualTryHelper.GetChildNcount (view); if (item count and get results in a similar way: zero item page Nmuna_loded (object sender, routing Aventarj e) {var item = Table = GetFirstChildOfType & lt; Panel & gt; (LB); }

javascript - jquery dialog box -

I have been having a hard time trying to find some answers with this special dialog box action. The problem occurs when the user clicks the "Enter" (keycode = 13) button, the dialog stops ... like 'esc' key was pressed. I want to open the dialog box even when "Enter" is pressed. Simple simple code, jquery (1.2.6) simple dialog box. I have an AJAX request that creates a dialog box var div = $ ("` gt; `test` & lt; / Div> `'); $ .ajax ({type:" GET ", data type:" html ", cache: wrong, async: false, url: WorldWideInventory.baseURL +" / templates / invoice_invoicenumber_confirm.tpl.html "Error: function () {warning (" failed to connect to the server, please try again ");}, success: function (feedback) {div.html (response);}}); Div.appendTo (" # APO_Wrapper "). Dialog ({width: 662, height: 407, close openSpace: true, BG Closing: function () {return false;}}); / Pre> It is ... it...

wolfram mathematica - Why won't this work? Dynamic in a Select -

ठीक है, मैं यह करता हूं: चुनें [श्रेणी [1, 20], # & gt; डायनामिक [q] & amp; और फिर मैं स्लाइडर बनाऊँगा: स्लाइडर [डायनेमिक [q], {1, 20}] और यह हमेशा एक खाली सेट लौटा लेगा! क्यों! अपडेट इस लक्ष्य का सेट सेट बदलना है जैसा कि मैं स्लाइडर को ले जाता हूं। कुंजी को याद रखना है कि डायनामिक कुछ सीधे मूल्यांकन के बारे में नियंत्रण नहीं करता है स्क्रीन पर जिस जगह पर मूल्यांकन गुण हैं, उसे बनाने के लिए यह क्या करता है। उदाहरण के लिए, यदि आप एक नए गणितिका सत्र में निम्नलिखित का मूल्यांकन करना चाहते हैं ... ख = 5; गतिशील [a = b]; ख = 6; प्रिंट [एक]; ... तो क्या मुद्रित किया जाएगा? इसे तुरंत मूल्यांकन करने के बजाय, इसके बारे में प्रयास करने से पहले इसके बारे में सोचें। संकेत ... यह एक चाल सवाल है, लेकिन चाल को समझने से आपके दिमाग को सही ढंग से खोला जायेगा जो गतिशील कर रहा है। जवाब, जो मैं यहां प्रकट नहीं करेगा (क्योंकि आप वास्तव में इसे अपने लिए प्रयास करना चाहिए! ) को इस तथ्य से समझाया जा सकता है कि डायनेमिक ने कभी कुछ नहीं किया क्योंकि यह कभी भी ऑन-स्क्रीन...

php - how to pick a country dropdown selection form item without using database? -

"postprint" itemprop = "text"> I have used this PHP code that I have used to select a dropdown form of the country, although I have to query this additional mysql I want to finish and just page however I do not use the query if I choose those countries, then please get advice on getting the data to be lost To store in-house production like; Choose name = "country" style = "width: 180 pixels;" Onchange = "do_get_rest_popup (this.value)" o & gt; & Lt ;? PHP $ sql = "Select * Url from country countries ORDER"; $ Result_country = Execution ($ sql); While ($ line_country = mysql_fetch_array ($ result_country)) {$ db_country_id = $ line_country ['id']; $ Country_name = $ line_country ['country']; ? & Gt; & Lt; Option value = "& lt;? = $ Db_country_id?" & Lt;? If ($ line_member ['country'] == $ db_country_id) {echo "selected";} & gt; & Gt; & Lt ...

Use debug dcus option in Delphi 2009? -

To use the "Use the debug.dcus" option in the project options, the method call in my app is relatively similar For example, I call a method func (a, b, c); In the definition of "func", the value of c is assigned to "a" and the value of A is assigned to "c" and everything goes crazy. I tried to make it in the sample app, but with no luck, this is happening in my live project. Anyone experiencing the same problem? From Delphi Docs I see that Debug Decks option creates information using Stack frames. If you have a sample application, then this clearly should be something in your live project that you do Can not expect. I can only suggest that you can solve this problem by making a copy of your live project, and then systematically remove one. At one point, this problem, which removes the problem, You will help in reducing the problem.

vba - Data extraction with Excel -

I get 100+ Excel spreadsheets from the monthly, so that I get a certain category and in another spreadsheet to create a report I can paste. I am trying to write a VBA script to iterate my Excel files and copy the range in a spreadsheet, but I am able to do this. Is there an easy way to do this? I wrote this year ago, but it may be helpful to you. I have added the extension for the latest version of Excel (xlsx) seems to work. Sub MergexLedox () as the final framework, the integer dim docpath string in the form of slow base as the Excel.range version as the sysObj, as the folder oz variable, the file object Version as application ScreenUpdating = False docPath = Application.GetOpenFilename (FileFilter: = "Text files (* .txt), * .txt, Excel files (* .xls), * .xls, Excel 2007 files (* .xlsx), * .xlsx" , FilterIndex: = 2, Title: = "Select any file") Workbooks. Set Base = Set Category ("A1") set sysObj = CreateObject ("scripting.filesystemo...

REST Client Implementation Embracing HATEOAS Constraint? -

Is anyone aware of the implementation of the rest of the client who embraces the hazard of haytes? It seems that this is a good candidate, the way it has been documented and the Ruby, Java and Python implementations are in the works but I have not found any code code yet. I see anything - even a partial implementation will be useful. The first thing you should look like is a common web browser. This is the standard for the client who embraces the hethes (at least to some extent). Hypermedia works It's so easy that it's almost painful: You can change your browser to http://pigs-are-cool.org/ Enter Browser loads HTML pages, images, CSS and so on. At this point, the app (your browsing experience) is on a specific URI. The browser is showing the content of that URI You see a link in the app You click the link The browser follows this link At this point, the application is different URI The browser is showing the contents of the new UI Web br...

ruby on rails - View javascript generated by rjs file -

The question is simple, yet I have not received any response yet: How are you? Can I see the Javascript code generated by a RJS file? In many useful features the plugin can show you AJAX generated requests and responses.

php - How do I protect the database server? -

Currently, my database user and its password are quite easy to guess, e.g. Database Users: dbadmin Database PWD: Super + Company Name What and how to generate a secure database password secure? Using MD5 or SHA ?? What should I pay attention to securing my database? I am using PHP, thank you if you are looking for There is a safe password generator, there are many tools to make the password strong. Keepass is the one I use, but you can also look in pwgen, apg, passgen or other. To keep the database safe, you need to consider using the username / password combination in your scripts. One technique I have seen is often to insert credentials into a separate file and import all those places that they are required in such a way that you can have strict access rules on that file through your webserver and file system security settings. Are there. Security is a layered approach, and more precautions that you take more resistant will be malicious activity.

mysql - SQL Query to Select Everything Except the Max Value -

I have a complex query that captures data from three tables, and now I want to make it even more complicated (Oh dear )! I want to display the feature of the previous post in my own section of the page, and this is very easy by choosing the last entry in the table. However, for complex queries (the main page of the site), I am unable to display this feature. I want to union after querying my previous query, but it is not returning the correct result: SELECT features.featureTitle AS Title, features.featureSummary AS body, features.postedOn AS Dummy, DATE_FORMAT (Features Posted, '% M% d,% Y') AS Post, Zero, Zero, Employee. Staff name, FEATURES FEATURES FEATURES FEATURED FEATURED FEATURES = staff.staffid where features Posted on! = Dummy DESC LIMIT by the MAX (features.postedOn) command LIMIT 0,15 This query returns the following error: MySQL error: # 1111 - Groups Invalid use of the function Is there a way around this? maximum query should be in its ...

.net - How do I detect if both left and right buttons are pushed? -

I have three mouse actions on one control: left, right, and both. I am left and right and currently using the middle button for the third, but I am curious how the left and right buttons can be pressed together, for those situations where the user Near the mouse without a middle button it will be controlled in the OnMouseDown method of custom control. UPDATE After reviewing the suggested answers, I need to clarify what I was trying to do to click the mouse in the mouseDown event (actually OnMouseDown method of a control) Because it appears that .NET will always raise two mouse down events when both the left and right buttons are clicked on the mouse (one for each button), I guess the only way to do this To implement a delayed execution of some type of action after some low-level window messaging or mouse mode, either. Finally, this is the simplest way to use the middle mouse button. Now, if action takes place on mouseup, suggestions of gary or node will work well. Any oth...

.net - Do I need to EnterWriteLock when using AddHandler? -

Using a ReadWriteLockSlim for multi-threading support, I need EnterWriteLock when using AddHandler? Here explain my point to two examples to help you: AddHandler ClassInstance.Event, New eventhandler (AddressOf Me.Method) -or- Me.ReaderWriterLockSlimInstance.EnterWriteLock () AddHandler ClassInstance.Event, New eventhandler (AddressOf Me.Method) Me.ReaderWriterLockSlimInstance.ExitWriteLock ( ) This may depend on the incident; For example, if you are using an event from a DLL, written in C #, through a "field-like event", i.e. public events event; something avant; // synchronized (Yes, I know you asked about VB, I explain it below ...) And it (C. # language copy) automatically synchronized, so no multi-threading issues are not (and it helps that representatives irreversible here) However, even in the same library, events such as a non-field No can be synchronized - ie. private event handler myField; Public event eventholder SomeEvent {// no...

algorithm - How can I tail a zipped file without reading its entire contents? -

I want to emulate gzcat's functionality. Tail-n This will be useful sometimes when there are large files (some GB or so). Can I tail the last few lines of this type of file / o I am reading from reading this? I suspect that this will not be possible because I guess for gauges, the encoding will depend on all the previous lessons. But still I want to hear that someone has tried to do something like this - perhaps a compression can be checked on algorithm which can provide such a facility. No, you can not work on currents and its internal codes should be assigned to their high compression ratio What to include in the stream. Without knowing what is before a certain point in the stream, it is impossible to know how to go from that point to D-compression. Any algorithm that allows you to two-second its uncontrolled parts, will need several passes to compress the data.

iphone - Help with Points between rounds in objective-c -

I am new to objective-c and there is a problem finding a way to score points for many players in my game Has been there. I have 4 characters in my game which are all objects from the same class. 1 is controlled by the user and the other is controlled by 3 computers. In my game there are 3 races in each level. To finish each character for each round I need a way of keeping track so that at the end of the 3rd race, I can give the user points based on the place they came in. Can anyone provide some suggestions? Will an NSDictionary accomplish this? I have a very rigorous understanding of the diagnosis of NSDictionary, but I was sure that if I could just filter my data of each player to get my data. In my mind, I think I need somewhere to store this data so that I can get the average of my last compared to other players. Why do not you define only an array which is the example variable of the players Players keep a score for the level? So for example: @ interface player: NSOBK ...

reporting services - What is the best way to use a SSRS report viewer in a WPF application using MVVM -

I have a WPF application using MVVM. I have some user controls that show some SSRS reports in a report weaver control, hosted in host control of a windows format. User control is a simple combobox where the user selects a criterion and therefore a report satisfying the criteria will be loaded, its data will be retrieved from the database and then the report will appear to the user. Will go. What is the best way to implement such a scenario in WPF using MVVM? Any sample is appreciated look that WindowsFormsHost and ReportViewer in ViewModel WindowsFormsHost windowsFormsHost = new WindowsFormsHost (); ReportViewer = New ReportViewer (); WindowsFormsHost.Child = reportViewer; this. Viewer = windowsFormsHost and then use a ContentPresenter to display it & lt; ContentPresenter Content = "{Binding Viewer}" />

Is there something like Python's 'with' in C#? -

Python has a good keyword, because 2.6 is called with . What is the same in C #? using the same statement one example Will be using (var reader = new streamrider (path)) {DoSomethingWith (reader); } The restriction is that the type of variable scaled by the segment used should be IDisposable and its Dispose () The method is called upon to exit the affiliate code block.

java - "eval" in Scala -

Can Java applications be used in scripts? I need to load a piece of skala code from Java, setting it to an executable scope (highlighted data by the host application), evaluate it and retrieve the resulting object. The Scala document shows how easy it is to call the compiled scala code from Java (since it has changed to a regular JVM videocode). But how do I evaluate the Scala Expression fly (from Java or if it's easy, from within Scala)? For many other languages, javax.scripting is the interface. Scala does not support it, and I can not find anything in the Java / Scala Interoperability DOC, which does not rely on forward-time compilation. Scala is not scripting language; it can see some like a scripting language , And people can advocate for that purpose, but it is not exactly right within the JSR 223 scripting framework (which is oriented towards dynamically typed languages). To answer your basic question, there is no eval function in Scala like Java does not...

asp.net - Crystal Reports Summation Error: "The ) is missing" -

itemprop = "text"> The following line is returning the error in my crystal report formula: NumberVar sales0405: = Error: "the is unavailable" The report was created using crystal report 11 When I run inside Crystal Reports, the report runs fine. However, when I use Visual Studio for crystal report Basic from ASP.NET web app, NET 2008 (Updated May 2008) (provided), when I get an error I think there are some changes with new versions of Crystal Reports, but I have been unable to find any documents on this specific issue. I have verified that there are no zero values ​​coming in the case of my test which generates an error The line generating the error is the first line of the formula Thank you in advance for your time Edit: Here's the full formula * NumberVar sales0405: = add ({sp_YES_AccountSnapshot; 1.ST0405_Ext} {sp_YES_AccountSnapshot; 1.Cust}) + sum ({sp_YES_AccountSnapshot; 1.DR0405_Ext} {sp_YES_AccountSnapshot; 1.Cust})...

php - how to insert row-by-row of content in a textfile into a mysql database? -

मेरे पास एक टेक्स्टफ़ाइल है जिसमें इस तरह की सामग्री है बॉब जमेस दिवा गेम लाइब्रेरी जानकारी और मैं सोच रहा था कि मैं एक PHP स्क्रिप्ट कैसे लिख सकता हूँ जो लाइन द्वारा फ़ाइल लाइन को पढ़ा और डाटा लाइन में डेटा लाइन में प्रत्येक पंक्ति के लिए एक नई पंक्ति के रूप में डालें? धन्यवाद फ़ाइल का कितना बड़ा है इसके आधार पर आप कुछ तरीकों का उपयोग कर सकते हैं MySQL का उपयोग करें - mysql सीएसवी फ़ाइलों को सीधा उपयोग कर आयात कर सकता है PHP (छोटी फ़ाइल): फाइल को एक में लोड करने के लिए उपयोग करें सरणी। सरणी के ऊपर लूप और प्रत्येक पंक्ति को INSERT करें PHP (बड़ी फ़ाइल): एक समय में फाइल पर लूप का उपयोग करें। इसका उपयोग थोक कन्टैंट क्वेरी ( INSERT INVO ... VALUES (1), (2), (3) )

Event Handling For Toolbar Using Haxe Targeting Flash -

I am creating a simple UI toolbar component in hacks for use in a flash game. Toolbar is your normal UI style toolbar, its background and many buttons when buttons are clicked when there are some game actions. I'm the best way to implement an event for toolbar buttons. A parent class will create a toolbar and then click the button on the click event, any action will sign up. My current solution looks like this: Toolbar There is a child phantom for each button in the toolbar classroom. Each button has an event listener for the mouse event. Click Event A function on the MouseEvent toolbar is focused on examining a dynamic typed array of clicks and execution of each function contained in the array. Dynamic type arrays are made public so that any classes that you want to sign up on the Toolbar button, click the event can add your callback function to the array. The code snippet for a device that contains the toolbar this.toolbar = new ToolBar (); This.toolbar.O...

performance - EJB3 - Session Bean calling method of another bean interface -

I have a little question ... I find a difference in local reach between access to a method which is only remote Is declared in a Bean's interface and not in the local interface ... Does the Interface Declaration (Remote or Local) method determine the Access Protocol? Or does the Eugene Container understand that both beans are running the same JVM? What is a big performance difference? Do you have any source about it? BR Laurent I make sure I would suggest testing it on your EJB container. It has been said that, according to the spec, (Section 3.2.3) @ Remote Interface should use the pass-value parameter, whereas @ locally-context parameter passes This means that if both clients and @Remote Bean are on the same JVM, then the parameter is an overhead of the copy. It also means that all @mammot parameters must be serial jub.