Posts

Showing posts from June, 2015

c# - Which one is more efficient : List<int> or int[] -

Can anyone tell me which list & lt; Int & gt; Better between and int [] . Because I am working on a project and as you know that efficiency is now a matter of so much important concern. If you've added some introductory notes to your post, then it would be great :) (should the list be resizable)? & Lt; Integer & gt; : Int [] List int [] that resizes as needed, with JIT inlining, they should execute almost equally, but JIT will be Int [] will be an easy time to exclude extra performance because it is a CLI old, with dedicated il instructions.

java - Maven for other languages? -

I'm relatively new to the world of Java and Maven, but I'm not imagining a new Java project without using Maven can do . The idea of ​​providing a human-readable project model is something that I imagine is universally desirable in many languages. This is particularly true when your application relies on many external libraries. Does any other project manage tools or tools for languages ​​other than Java which is similar to Maven like nature; Is that, which provides a mechanism for specifying the dependency and construction order for project maintenance? Here's something to know about someone. As they are the most suitable tools for a given language, they make their opinions. Net: and Aspect: (still Java I know but worth mentioning) C / C ++: compile with compilers like GCC, MSVC, etc. PHP: Ruby: Slam: Flex and Air: / Li> Uncontrolled "integration" can be controlled by using the contextual compiler to open the execution is compul...

javascript - jquery-how to detect child id? -

& lt; div id = "पहले" & gt; & Lt; div id = "यहां" & gt; ... & lt; / div & gt; & Lt; / div & gt; & Lt; div id = "second" & gt; & Lt; div id = "यहां" & gt; ... & lt; / div & gt; & Lt; / div & gt; jquery: $ ("# सेकंड #here")। क्लिक करें (फ़ंक्शन () {}); कैसे मैं दूसरी पर क्लिक करने के लिए jquery लिखने के लिए? यह पूछने का गलत प्रश्न है, क्योंकि आपके पास किसी दस्तावेज़ में डुप्लिकेट आईडी नहीं हैं। एक आईडी एक तत्व की सामाजिक सुरक्षा संख्या की तरह है। आप एक से अधिक तत्व नहीं दे सकते हैं, क्योंकि तब जब आप आईडी से एक तत्व खोजने के लिए जावास्क्रिप्ट कहेंगे, तो यह वास्तव में एक से अधिक है और आपको अप्रत्याशित परिणाम देगा। कारण आईडी लुकअप उतना ही तेज़ हैं जितना वे हैं क्योंकि ब्राउज़र में आईडी-> एलीमेंट की एक हैश तालिका हो सकती है - कम से कम कहने के लिए उस समझ का एक बुरा व्यवहार है। जब आपके पास कई तत्व हैं जो सभी समान "प्रकार" हैं, उचित अभ्यास उन वर्गों...

python - Rearrange equations for solver -

I'm looking to find a normal python method, to manipulate the way to solve questions in the equations . For example: There may be some constants to get started e1, e2 = 0.58,0.62 ma1, ma2 = 0.85, 1.15 mw = 0.8 CPA, CPW = 1.023,4.193 DBA, DBR = 0.0,25.0 and a group of equations (read here for readability instead of solver) Q = e1 * ma1 * CPA * (tw1-dba) Q = MA1 * CPA * (DBS-DBA) Q = MW * CPW * (BB-2-B2) QE = E2 * M2 * CPA * (DBR-B2) Q = MA2 * CPA * (DBR-DBO) This leaves 5 unknown, so the system can probably be sorted out. Q, dbo, dBR, tw1, tw2 The actual systems are non-linear and more complex. I have already solved this simple example, delphi, sage ... so I am not looking for a solution. The equations are typed directly into the text editor and I want a dragon program that gives me an array of unknown and protection functions. y = Mysolver.fsolve (f, x) So, for example above x = [Q, dbo, dbr, tw1, tw2] f = [q-e1 * m1 * cpa * (b1-dba), q-m1 * cpa...

c++ - How to mark a list control item as selected? -

In a Win32 application I have a dialog with a list control that is defined as the dialog template: controls "", IDC_LIST_Attributes, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP, 7,36,246,110 At the runtime I retrieve the handle in that control and take various actions with it - remove all items, add items, etc. It works fine. The problem is that I can not programmatically mark a program as selected, I use the following code for it: LVITEM lvItem; LvItem.stateMask = StateMask; LvItem.state = State; SendMessage (windowhandle, LVM_SETMTT, inductatectalect, (LARAPAM) and LVIT); This code runs and there is no change in the list control. When I clice on items with a mouse, their selection is fine. What am I missing? Have you tried? From the MSDN link: The items will only be shown as selected if the list-view control is Focus or LVS_SHOWSELALWAYS style is used. My help.

has and belongs to many - CakePHP HABTM question -

There may be a newbie question because I'm trying to see all these "PHP frameworks" on my free time Are there. / P> For starters, I want to add multiple tags to multiple tags. I have a tag model and mot model (photo). Entity ('classname' = & gt; 'Tag', 'joinTable' = & gt; 'mott_tags', 'foreign key' = & gt; 'mot_id', 'associationforeignkey' = & gt; 'tag_id', 'unique' = & Gt; wrong)); I have () in my Tag Controller in the ad: $ this-> Tag- & gt; Save ($ this-> Data); When I see this - $ data- array ([Mot] => array ( [Title] => 21e21e) ) [tag] => Tag> tag tags, but nothing is mixed (mutes and underscores between tags) but when I write it instead of being an underscore, the table My mots_tags db schema: (sqlite) to create table mots_tags (id INTEGER primary key, mot_id INTEGER, tag_id INTEGER) No clue why the cake Only writes tag ...

data structures - lists in structs in F#? -

I'm very new to F # and I'm trying to create a straightforward stack of polygons, and In this list of coordinates: type polygon = struct val cord: list new (list_of_Coords) = {end = list_of_Coords} termination but say visual studio "Type 'Microsoft. FSHRP Colections.List.LT; _>' 1 kind of argument (rationality) is expected In which 0 " has been I do not think like that I have no intention of starting the list structure just announced it. see for answers. (Repeat here: You need to specify the list type, such as list & lt; float>. type polygon = Struct val COORDS: LIST & lt; float & gt; new (list_of_Coords) = {Coords = list_of_Coords} end )

Two questions - How to position with CSS & can divs,tables etc. overlap? -

I'm trying to move the table to 6px. A table is right above it, so it means that they have to overlap. Is this possible? I have tried .subNavBar {Location: Relative; Top: -6px; } and .subNavBar {status: absolute; Top: -6px; } .ubnavbar {status: full / relative; Margin-top: -6px; } BTW: You can overlap anything with IMHO anything. Status: Full and z-index are your friends; -)

filestream - c# - reading from binary log file that is updated every 6 seconds with 12k of data -

I have a binary log file with streaming data from a sensor (int16). Every 6 seconds, until the 6000 sample sensor is not cut, the int 16 type is added. I need to vote on this file at regular intervals, which continues from reading the previous state. Is it better to have a filestream and binary reader open between the readings and keep the institute better? I) Every time I need to read (and to read the previous position to read the external variable) P> Edit: Need to add some great tips so far that the "server" app is provided by an external source vendor and can not be modified. If it always adds the same amount of data, then it may mean reopening. You want to find out the length before opening it, and then the whole number of "sample set" can be round, just when you hold it, it is still writing data, this could mean that you read less (if you write that ends between reading length and checking), but you will catch next time. You need to make sur...

sql server - Storing the url in SQLSERVER 2005 using C# code(data sets) -

I was trying to click the URL button using the following code. There was no error but the required url is not sroeing in my column field (I used ntext data tap for it). Help me if there was some mistake in my code public partial square _Default: System.Web.UI.Page {protected sender page_load (object sender, EventErgus E) {} database string connection = "data source =. \\ scllexpress2005; initial catalog = PtsKuratlas; integrated security = true"; Public Zero Startext (String TSTT) SqlConnection conn = New SqlConnection (connection); To store data data and manipulate data, // dataset object DataSet myDataSet = new DataSet (); SQL SqlDataAdapter myDataAdapter = // data adapter to execute new SqlDataAdapter ("SELECT * FROM gti_analytics", conn); MyDataAdapter.Fill (myDataSet, "gti_analytics"); MyDataAdapter.InsertCommand = new SqlCommand ("gti_analytics [links] include values ​​[txt]"); } Secure Zero Button 1_Click (Object Sender, EventArgs E...

Spring Security: Authentication returns null -

I have configured a spring bean so that the security content can be returned: & Lt; Bean id = "security context" class = "org.springframework.security.context.SecurityContextHolder" factory-method = "getContext" & gt; & Lt; / Bean & gt; When I use this bean, the authentication object taps. Authentication Authentication = SecurityContax. Getitization (); Valid authority [] Authorities = Authentication Constituted authority (); The second line above causes a NPE. That sounds strange to me, because the following code returns to the authorities as expected: valid authority [] officers = SecurityContextHolder.getContext (). GetAuthentication (). GetAuthorification (); Actually I am trying to eliminate the static call to SecurityContextHolder.getContext () to make my code more qualified. Any ideas on how this remedy is? Why are not security contractors given by Spring back to be able to return, while I can make a steady ca...

http - Shared Secret Key Length -

I am trying to create an authenticated HTTP service endpoint using shared secrets. Is a good example. I want to know what is the best public key and secret key length ? I'm pretty sure people will say arbitrary, but want to know what the general opinion is and why. Another question, Flickr uses MD5 to generate "signature". I have read that MD5 is no longer safe, are MD5 options ? And as the service users will need to make this signature, bonus points and multi-platform library support for ease of use. How secure is your service? What if someone would force the death of the father? And if you are really worried, why are not you using SSL with client-side certificates? These are common questions that you need to answer for your particular project, before you can decide the best way to encrypt. Case study: In the application I am developing, I must encrypt (not hash) key data using the DES (Yes, plain DES), and all the URLs decrypted by the service must be...

uitableview - iPhone Development - UITableViewCellStyleValue2 -

Note: I am using the iPhone SDK 3.0 final version for Leopard. I need to prepare a table list similar to the table used by the photo album application of iPhone. There are two new styles for i UITableViewCell: UITableViewCellStyleValue1 UITableViewCellStyleValue2 I thought I could use these instead of creating a custom cell class I do, but it seems that they do not work properly. I am facing the following issues with UITableViewCellStyleValue2 : I am unable to show an image. If I do not align the value to text labels and detailTextLabel Here is the sample code: / / Customize the appearance of table view cells - (UITableViewCell *) Table View: (UITableView *) Table View CellForOutPand : (NSIndexPath *) Index path {static NSString * CellIdentifier = @ "cell"; UITableViewCell * cell = [tableview] dequeueReusableCellWithIdentifier: CellIdentifier]; If (cell == blue) {cell = [[[UTTEWews alloc] initWithStyle: UITableViewCellStyleValue2 again: user: ...

Unbelievable PHP script won't echo out string -

मेरे पास एक test.php स्क्रिप्ट है जिसमें यह शामिल है: & lt; php echo 'परीक्षण'; ? & Gt; जब मैं अपने ब्राउज़र के माध्यम से इसे इंगित करता हूँ, यह काम करता है और अपेक्षित रूप से "टेस्ट" प्रिंट करता है। मेरे पास एक और स्क्रिप्ट है जो मैं परीक्षण करने की कोशिश कर रहा हूं, लेकिन फिर भी , यह मेरे सभी echos की अनदेखी कर रहा है! मैंने सोचा कि मैं शीर्ष पर एक गूंज डालूंगा क्योंकि यह निश्चित रूप से काम करेगा, लेकिन जब मैं इस स्क्रिप्ट पर एक पोस्ट से अनुरोध करता हूँ यह लाइन के ऊपर जो भी है उसे भी एको नहीं करता: & lt;? Php echo 'START START START'; error_reporting (E_ALL); मैं भी अपने ब्राउज़र से इंगित करता हूं और अभी भी कोई आउटपुट नहीं? क्या हो रहा है? अपडेट त्रुटि लॉग यह दिखाता है: PHP पार्स त्रुटि: सिंटैक्स त्रुटि, अप्रत्याशित T_ECHO /var/www/tester/convertor.php लेकिन इको शीर्ष पर है रेखा। मैं डायप्ले त्रुटियों को सेट करने जा रहा हूं। आपके पास पार्स त्रुटि है, इसलिए स्क्रिप्ट भी नहीं है मार डाला। इसलिए यह आशा करता है कि यह ...

Deployment of asp.net 3.5 website: Requirements -

If I create a website in asp.net 3.5 then does it require AP 2.0 2.0 Framework for deployment? The website deployment project automatically includes a pre-requisite for deployment or we must first establish the website on the deployment envelopment as per the requirement before installing the website. You have to install an ASP.NET 3.5 website on your webserver. Doing not a website deployment project is for you - you have to install the webserver before your deployment.

Best way to use and secure WCF on the Compact Framework? -

I am working on an app that has many clients- desktop, mobile device, web portal, we have an SOA type architecture Going into and using WCF. When NetTech + Transportation / Message Security + Windows authentication (or even userNameToken and a custom usernameside provider) in favor of desktop and web portal. Where it breaks completely is in favor of the compact framework ... This support is so limited the subset of WCF. I was resigned from using just the basic Http + username / password in all the headers on SSL, but it seems that when you can not add the header to the compact framework stack - The password must be included as a parameter every time. Please tell me that I am wrong and there is a better way.

html - leaking margin: unexpected offset due to nested DIVs -

I have some unexplained strangeity with the margin of nested divis, which is "leak" from the original container. The outer shell (red) does not start from very high - Unless there is a text node or overflow: auto; On that element (tested on Firefox and Safari.) However overflow allows me to work on this issue, I would love to know why this is happening in the first place . No insights will be appreciated! & nbsp; * This is the least test case, except the script below, which only shows the workaround Why this is not working is that your vertical margin is being covered in CSS, which is the expected behavior. Remove the margin from # to get the desired result , and instead padding: 50px; Specify your #outer : * {margin: 0; Padding: 0; } Body {color: white; Background color: blue; } #outer {padding: 50px; Background color: red; } #inner {background color: green; } For more information about collapsing vertical margins, I recommend you read th...

c - Linux mmap() error -

I have a memory map file, out of which I want to parse the content of the buffer. MMAP () achieves success, and I can successfully use fprintf to print the buffer content in the file. However, when I try to access Buffer as an array in my program directly, I get a partition error. Why is this happening? Here's the code: #define PTT_DUMP "/ home / druru / somefile". . Int fd_ptt_dump = Open (PTT_DUMP, O_RDONLY); Structure state struct_ptt_dump; Fstat (fd_ptt_dump, & amp; struct_ptt_dump); Printf ("\ n \ n \ t \ t \ t --- Size of dump =% d ----- \ n \ n", struct_ptt_dump.st_size); Four * membuffer; Four pid_num [100]; Four cycles [100], examples [100], CPI [100]; Int pid_index = 0; Int cycles_index = 0; Int instr_index = 0; Int cpi_index = 0; Int len ​​= (int) struct_ptt_dump.st_size; Int newline_count = 0; Int n = 0; If ((membuffer = mmap (0, struct_ptt_dump.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd_ptt_dump, 0)) == (caddr_t) -1) err_sys ("mm...

Batch code to re-name set of template files by changing part of the name of one file (all files to copy changes to the same text) -

I have created a filing system that contains templates containing folders such as the information that we used to accept when booking the booking : A batch command is required to rename all files in one directory, but in order to be more accurate in the directory: a file is an invoice template (PDF form) and Usra job description template (Msdblud) and an additional template for a specific purpose (Also Msdbludblu). There are some more files but I think I do not have to give them names. Every time I work on a booking, copy the template directory (insert all of these file templates) and then name it according to the job number and then I call it "booking" directory And leave it in the folder that represents the month of the year for which jobs are booked. In the very first step, how could I get all the files automatically to rename the suit within the directory? Every file is named differently in the same directory, but when I manually change the name of each file, then...

c# - Writing to Notepad wraps at arbitrary point? -

I am writing a file as shown below. I am sure to have a handset that does not have any line breaks in the variable written in the file. However, on each arbitrary character number printed on the notepad of the applied length, a line break is made. However, to get rid of any non-printing character at the end of the file by pressing (even to be removed) as if the line breaks have no effect. By pressing backspace before the first character of any of the lines affected by it, the last character is removed from the last line, but the line breaks get rid of it. After the last letter, the writing is immediately taken to the next line I have tested on a new line, to see that I can get past the point where the word sheet starts. I can, but not where C # is written. I have tried typed keywords. OLG in command, and this line does not print the brake, so I do not think () that it will affect the file reading later in the line. But is it a mess in Notepad ? In C # In IO.StreamWriter? In my code...

Compiling Flex Projects with Remote Ant -

I'm having trouble compiling applications with remote ant, something similar. Although this problem seems to be with the flex compiler when I compile a single script on my local file without any problems, but when I try the remote ant, it fails without giving more information. Things to see on a remote machine: In the build file The existing path is required to be valid (I'm sure the script file that you have created You need to install a Flex SDK You need to install Java JDK You may need to set some environment variables correctly (such as java_homei) ANT binaries on remote machines (but It seems that you already have this, probably with the system you have in use) The sources to be compiled, obviously (I think you already have them, Possibly by your system from a repository) In addition, I find it hard to believe that without any error, You should have at least one log file anywhere you know what's wrong. Received.

internet explorer - Javascript: replace a string in element.src attribute -

Hi, I am currently trying to change a query string value in the source attribute of the A link. This works fine in Firefox but not. Example: & lt; Id = "link" href = "#" src = "http://somedomain.com? Id = 123 & amp; size = 20" & gt; Link & lt; / A & gt; Then it looks like on my JS: var link = document.getElementById ('link'); Link.src.replace ('size = 20', 'size = 45'); That is, it gives something like the source is not an object error; Is lending any kind of hands enough? Also, I do not recommend this as a solution for the need to be on the original javascript. To get it to work in IE, you need to type link.setAttribute ( 'Src', ...) .

sql - combining two queries -

This first query captures all transactions_details for a specific date range, it is difficult, however, Need the amount in the query if it does have any meaning. SELECT td.transaction_id, sum (IF (Sahara (ti.na, -1) = 0 and covalent (ti.special_info_type, -1) = 0 and insert (ti.item_type, ' '=' P 'and organized (ti.comp_id, 0) & lt; = 0, organized (disc_amt, 0), 0)) disc_sum, sum (IF (insert (as ti.na, -1) = 0 and organized (ti.special_info_type, -1) = 0 and organized (ti.item_type, '') = 'P' and organized (ti.comp_id, 0) & gt; 0, organized (comp_amt, 0), 0) ) CSM, as the amount (if (insert (ti.na, -1) = 0 and organized (ti.special_info_type, -1) = 0 and organized (ti.item_type, '') = 'P' and organized ( Ti.comp_id, 0)> 0, (Comp_tax, 0) inserted, 0)) ctx form transaction_details to include td left externally Ti.transaction_id = td.transaction_id on transaction_items ti td.na = 0 and td.entry_TS & gt; =? And td.entry_...

PHP: How do I get the URL a file is in? -

I can not find a super-global for this. Actually, if any PHP file is executed, say, Code> http://www.example.com/services/page.php , I would like to retrieve http://example.com/service/ . How do I get it? You can abuse: & lt; P & gt; & Lt ;? Php echo $ _SERVER ["HTTP_HOST"] Dirname ($ _ SERVER ["REQUEST_URI"])? & Gt; & Lt; / P & gt;

Moving jBpm Tokens from one node to another manually in a processInstance, what issues to consider? -

For a project, I need to move the token between those nodes, there is no change between them. Set the node on the token and indicate it works well on the root token. But what should I consider? What happens when I want to take a token when the children are in the middle of a fork and a fixtures, or moving a token between a branch in a branch between a fixtures and a fixtures? The experiences I have found is that: When you remove your token from your node, you have to eliminate the workstation. But I still have a normal way to move the tokens in the flow without breaking the flow execution. I'm sure this is not an unusual requirement, how did you solve it? But I'm still looking for a common way to move the tokens in the flow without breaking the flow execution I am Unfortunately this will not be possible you can move them, but the internal work of JBPM will be kept in mind. Updating parent tokens eg In the fork / construction construction etc. I...

c# - How do you de-elevate privileges for a child process -

I know how a process can be started with a process with administrator privileges: proc .StartInfo.UseShellExecute = True; Proc.StartInfo.Verb = "runas"; Where proc is a system. Diagnostics Process but how does it contribute? If your process has already advanced, how can you start a new process without administration rights? More precisely, we need to launch the new process with the same permission level as the Windows Explorer, so if no UAC is not inactive, but if UAC is enabled, but our process is getting high, then we have a certain operation There is a need to do that is not immutable because we are building a virtual drive and if it is built with high permissions and Windows A Explorer running unchanged it will not be displayed. Feel free to change the title, I can not come up with a good description. The solution is for you to use the EXPLORER.exe process. The idea of ​​running this process in the UN-elevator mode using the file explorer process of ...

php - How can I get the most popular words in a table via mysql? -

I have a table with a Blob column what I want to do, to select words and order them in order Is able to. For example if it is contained in: Bob Smith likes cheese but loves Charlie likes chocolate milk Charles loves manga, but it also likes cookies Then I'll find likes loves As a result ... is this possible and if so? I want to be able to do this only in mysql, but I can also use php. Thanks in advance, Kenny Do not think that someone to do this Is also built in MySQL functions so you can probably work for yourself using PHP explosion ('', $ myString) or str_word_count ($ myString, 1) To create an array containing each word then loop through each word in the array and count them.

iphone - Detecting Touch on PNGs with Alpha -

I am trying to detect a touch phenomenon on a PNG image loaded in a UIImageView. I have everything working fine except that touch is being checked for boundary rectangle around the image (as expected). What I would like to do is this test if the user has selected the part of the visible PNG, which is contrary to the UIMAZV itself. For example if I have a horseshoe image, I want to see it only to answer the touches when you select the sides and not the center part where nothing is being prepared. I'm like a loss on this, many people with Google's same issue are aware of it, but there is no indication of where to start. itemprop = "text"> two ways: a) for you a pixel data of your image Determine that the touched pixel is a transparent pixel to make it possible for you to make it possible to pull your image into offline buffer. UIImage.CGImage from Polygon explains the basic method to use this pixel data to get access to CGContextDrawImage and CGBitmapCo...

length of column across all tables in a MySQL Database -

How to get the maximum column size of the common column like 'ID' in all tables in MySQL notification_select the TABLE_NAME, COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH, where column_name = 'id' order 3; Use this This will solve this problem

How do I use a ASP.NET Login control without using a MembershipProvider? -

This is a branch If I do not have subscription provider So how do I use this log in control? Am I properly understanding the use model? Do login control without subscription provider ? Just checking the username / password requires the subscription provider ? Is this your own membership provider with the same authentication argument? In my case, I do not need the subscription provider (I think) because my credential status is trivial (a user, a password). I partially "future proof" is partly interested in my page and partly because I'm new and wondering how stuff works (I am full of every corner Learn about things by running the speed :) You can simply drop ASP: Grab the login credentials of login control in your page, in the code behind it, login control. In the authentication event, check the username / password entered by the user. Username / Password login control has properties (login username, login password). If the username...

cocoa touch - iPhone App Crashes on Launch Due to Inconsistencies? -

My source code has something very strange that the application was always created successfully, and I was always able to launch the application Was there. However recently, when I launch it and return the following error to the console: 2009-07-23 20: 30: 06.390 App [15652: 20b] Database successfully opened: ) Failure of failure in the 2009-07-23 20: 30: 06.3 9 3 AP [15652: 20B] *** [App Deligail Initialized TableData], /Users / IM / Desktop / App / Classes / AppDigital.I 2009 -07-23 20: 30: 06.394 App [15652: 20b] *** 'NSININInsistency Expression' expired due to exception of exception The reason: 'Error in making statement' 2009-07-23 20:30 30: 06.394 App [15652: 20b] Stack: ( I do not understand. Always launch successfully with no errors, but now I get this error. I had supported my source code together and now when I get those old versions, I get a single error. How is this possible? Can the code be bad? If I successfully launch an application Was able and ...

Help on language choice -

A short three years ago I wrote an access db to use for my bank accounts and budget. I have used it and have loved it since it has many great things that is not something else out there, I have decided for several reasons to write it in an independent program. I let some family and friends use it, and afterwards, after touching it to some extent, maybe I will try to bring it into the market, I do not expect to realize, but who knows, maybe it's something in Can change Whatever I can gather, that language should probably be decided first. So I'm here to help and to find the right one to use. These are my thoughts: A) I definitely want a lucrative looking GUI. Nothing else is looking at "windows" B) Delivery, and ease of packaging for installation, Of course there are very high priorities only-Windows is OK. C) My training / experience level: Some simple VBAs (which are in Access DB), have recently taken a non-GUI C ++ class, and an identification Java class ...

actionscript httpservice authentication popup -

एक फ्लेक्स mx.rpc.http.HTTPService ऑब्जेक्ट का उपयोग करते समय एक अनुरोध भेजने के लिए जो प्रमाणीकरण की आवश्यकता है I प्रमाणीकरण करो (जो ठीक काम करता है ..) लेकिन, जहां गलत प्रमाणीकरण विवरण भेजा जाता है, एक ऑपरेटिंग सिस्टम स्तर पॉपअप देखा जा रहा है। जाहिरा तौर पर URLRequest ऑब्जेक्ट पर एक संपत्ति है: 'प्रमाणीकरण' जिसे इसे रोकने के लिए गलत पर सेट किया जा सकता है क्या HTTPService ऑब्जेक्ट के लिए कोई समतुल्य है जो इन ऑपरेटिंग सिस्टम स्तर पॉपअप को रोक सकता है? धन्यवाद। ठीक है, इसका उत्तर मूल रूप से है - नहीं। आपको उस विशेष समस्या को प्रबंधित करने के लिए URLRequest का उपयोग करना होगा। कहानी का अंत।

core audio - How do I get the filesystem path for a resource on iPhone? -

On the iPhone, I need to get the path to the resource. I'm fine, it did, but when it comes to the CFURLCreateFromFileSystemRepresentation thing I do not know how to solve it. Why is this error? Any solution or solution will be highly appreciated. Thank you in advance. To run audio using audioquake on iPhone, I have taken a look at the following examples: Speak Hear, Audio Options (from simple SDK directory) and AudioQuestate. I tried to do this and said that, trying to keep the puzzle together. Right now, I've been stuck on the program crashing up from the sndFile above the crash due to the exception. On the actual iPhone device I am using AvAudioPlayer to play every sound on my iPhone games, the sound can be played when it is too short for the sound, so I decided that I AudioQueue must be used. - (id) initWithFile: (NSString *) Argv {if (self = [super init]) {NSString * soundFilePath = [[NSBundle mainBundle] pathForResource: argv ofType: @ "MP3 "]; Int len...

Converting a 32bpp image to a 16bpp image in Java -

How can a 32bpp image (ARGB) be converted using a 16bpp image (ARGB) Java libraries? For my curiosity, at the pixel level, what does this conversion do? If I have a full value that holds the value of a pixel (with all channels), how will the difference be different after conversion? int argb = ((aarrggbb & 0x000000F0)) & Gt; & Gt; 4). ((Arggab and 0x0000F000) & gt; & gt; 8). ((Ergbb & amp; 0x00f00000) & gt; & gt; 12). ((Argbabs and 0xF0000000)> 16); It sticks everything in at least 16 bits and leaves the top 16 bits in the form of 0. For each channel, you lose less 4-bit color information, upper ones are more important, colors will be extended to the nearest 4-bit equivalent value, resulting in visually unpleasant color banding in the image Will affect Incidentally, 16-bit colors are usually not an alpha component (although not always), it is 5 bits for red, 6 bits for green (since our eyes are green Colors are most sensitive to blue) a...

exception handling - C# try-catch-else -

One thing that has bugged me with the exception handling coming from c # from C # is that any of the C # It does not seem to be the way of specifying another section For example, in Python I can write something like this (note, this is just an example.) I am not saying what is the best way to read the file ): try {reader = new streamrider (path); } Hold (exception) {// uh oh something went wrong to open the file for reading} and {string line = reader.ReadLine (); Character = line [30]; } I have seen the people with some C # code, they will write the following: try {reader = new streamReader (path); String line = reader Readline (); Character = line [30]; } Hold (exception) {Uh oh something went wrong, but where? } The problem with this is that I do not want to capture the range exception coming from the fact that the file can not contain more than 30 characters in the first line. I just want to capture the exceptions related to reading the file stream. Is there any simi...

url rewriting - mod rewrite rules -

I want to change this rule: Into (The product name can be taken from my mysql database and "brother 2035"). Need to set up a PHP or ASP redirect page. Mod_Rewrite can not access the database, so you want to set a page, find the product, and redirect the URL, using a header. header ("location: example.com");

.NET equivalent to java.util.Arrays.hashCode() function for arrays of intrinsic types? -

Is there a NIT utility class equivalent such as internal int [], short [], float [], etc.? Obviously I could write my own utility class but was already trying to find available in the .NET framework. .NET 4.0 will support it through the interface in the array, but until that point you will have to do this I am scared.

c# - How to delete network executable files in use during NAnt Build -

संबंधित: मेरे पास एक नपट स्क्रिप्ट है जो पूर्ण बिल्ड बनाता है और हमारे देव पर्यावरण के लिए तैनाती सी # नेट विन EXE और उसके उपयोग किए गए DLLs को तैनात करने से उन्हें एक नेटवर्क स्थान पर ले जाया जाता है, जहां हमारे परीक्षक और अन्य डेवलपर उन्हें चलाते हैं। & copy; todir = "$ {dest.dir} "ओवरराइट =" सच्चे "असफलता =" गलत "& gt; & Lt; fileset basedir = "$ {source.dir}" & gt; & Lt; include name = "** / *" / & gt; & Lt; / फ़ाइलसेट & gt; & Lt; / कॉपी & gt; अभी, स्क्रिप्ट कॉल की कार्य को कॉल करता है, ओवरराइट = "सच्चा" के साथ, लेकिन यह विफल हो जाता है कि कोई भी एप्लिकेशन चला रहा है, रिपोर्टिंग 'source.dll' को 'dest.dll' पर प्रतिलिपि नहीं कर सकता। पथ 'dest.dll' से प्रवेश निषेध है। "dest.dll" मुख्य EXE की निर्भरता में से एक है, इसके साथ प्रतिलिपि बनाई गई है अभी, मुझे दो में से एक आसन है: मैं या तो पता लगाता है कि किसने इसे खोल दिया है और उन्हें छ...

c# - How to allow writing to a file on the server ASP.net -

Then I have the file which is in the folder folder in which the website folder structure is used to log it. This works when the visual stem from the studio. I understand the problem I need to set permission on inetpub. But for which user? I tried to add some IIS user but it still can not write in the file. = Post-text "itemprop =" text "> You need to modify the rights to the network service account, right-click on the folder, select Properties, go to the Security tab and enter the Network Service Account If it is listed, make sure that it was "modified" in.

Does anyone know a JSON, JS Array parser in Java and/or PHP? -

I need JSON, JS array parser in Java and / or PHP. Do you know any parser? Value, One of them is a full list of signs for both languages. Java is here: There is already bundle in it.

workflow foundation - Update EntityKey Reference in Entity Framework -

I have created an application using asp.net, the Entity Framework and the Windows Workflow Foundation, and hopefully everything works My ASP.Net page should start the workflow that executes and updates a unit passed from the workflow to the page. Everything works well: I use the work pattern unit to share the reference between asp.net and WWF and my unit is updated successfully during the workflow ... except for a single unit which That my unit has been prepared as a reference to another entity. Let's assume this case. The main unit is called the item in which the situation is called, which is a foreign key for another entity called status. When I make an item, I make it with the usual syntax like item i = new item (); Then I create the context of the position unit in this way: i.StatusReference.EntityKey = New system. Data Antiquity ("myEntities.StatusSet", "Idestatus", state); Where hardcounted is an integer value in the state workflow phas...

cocoa - Number of days in the current month using iPhone SDK? -

A fairly straight forward question, I am trying to figure out how I can use the number of current days in the current month. Something similar in NSDate or Cocoa touch Thank you. You enter NSDate and NSCalendar classes: NSDT * today = [NSDT date]; // Get date objects for today's date NSCalendar * c = [NSCalendar currentCalendar]; NSRZ Day = [C categoryFUNIT: NSDA calendarUnitINIT: NSMOuthCalendar Date for Permission: Today]; today a NSDate object represents the current date; It can be used to complete the number of days in the current month. An NSCalendar object is immediately used, with the NSDate for the current code, to return the number of days in the current month, range offent: Inuinate: For date: function. Day. The length will be the number of days in the current month. These are links to docs and if you want more information.

How to override vbproj DebugSymbols with msbuild? -

I want to generate .pdb files despite the debug sbimbs settings in my various vbproj files. I have an MSBILD project named FX.proj which looks like this: & Lt; Include in the context of the project = "C: \ product \ core.vbproj" /> & Lt; Include in the context of the project = "C: \ product \ fx.vbproj" /> & Lt; / ItemGroup & gt; & Lt; Target name = "build" & gt; & Lt; MSBuild Projects = "@ (project reference)" target = "build" /> & Lt; / Target & gt; & Lt; / Project & gt; I tell it from the command line like this: MSbild / T: Build / V: Minimal / Enologo "/ P: Output path =% ~ Dp0bin; Configuration = Release "/ fl /flp:LogFile=FX.log;Verbosity=Normal FX.proj I want to override the DebugSymbols property in each vbproj I have tried to add it to the command line like this: MSBild / T: Build / V: Minimal / Nolo / P: Output path =% ~ DPTBin ; Configuratio...

fckeditor - Hide scripts from FCK Editor -

Is there any way to hide the text and the script from appearing in the FCK editor in normal view? What do I mean by "hiding text and scripts", I'm not 100% sure, but I know that you can customize it The project is very well documented. You should be able to know anything on it.

ASP.NET GridView Column - formatting telephone number -

I am adding a column in the code-back to my gridview as follows: field = new boundfield (); Field.HeaderText = "Phone Number"; Field.DataField = "phone number"; Field.HtmlEncode = false; Field.DataFormatString = "{0: ### - ### - ####}"; GridView.Columns.Add (area); However, DataFormatString is not working because the PhoneNumber field is a string, not a numerical DataFormatString in order to keep in mind what is there anyway, or before I get this point Need to change data type before reaching? It's difficult to format 'manually' in the grid's robotabout event.

c# - Public Fields versus Automatic Properties -

We are often told that we have encapsulated rather than making garter and setter methods (properties in C #) in the field of the classroom To protect fields outside the world should be protected. But sometimes a field is just enough to catch a price and no calculation is required to get or set it. We do all this for them: public class book {Private string _ title; Public string title {get {return _title; } Set {_title = value; )}} Well, I have a statement, I can not write all this (in fact, it was not to write it, to see it), so I got scared and Used. Then comes with C # 3.0 and I think they add automatic properties: public square book {public string title {get; Set,}} Which is too much, and I am grateful for it, but in reality, what is different from just creating a public sector? public class book {public string title; } I had some time ago, but there was a link to post on Jeff Blogs, explaining some differences. Image variables work differently on prop...

c# - How to send a WPF window to the back? -

In my application, I have a window to plot the debug data. When I load it, In the background ", would like to open behind all other windows. What is the best way to get it? You can use the following code: [DllImport ("User32.dll")] static extern bool SetWindowPos (IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, uFlags); Constant UInt32 SWP_NOSIZE = 0x0001; Const UInt32 SWP_NOMOVE = 0x0002; Stable readonly contrast hkfbtbtm.o.o. = New Interpet (1); Fixed Zero SendWpfWindowBack (window window) {var hWnd = new windowInternetHelp (window) .handle; Setwindo POS (hwnd, hbbbootm, 0, 0, 0, 0, SWP_NOSIJC | SWP_NOMOVE); } Source:

How to convert a Perl hash-of-hashes to a more flexible data structure? -

In a quick and dirty Perl script, I have such a data structure: Code> $ tax_revenue {YEAR} {STATE} {GOVLEV} {TAX} = Integer The hash key assumes value like this: YEAR: 1 9 00 .. 2000 State: AK, AL, ... WY GOVLEV: State, local tax: type of tax (income, sales, etc.) In addition, hash keys are unique . For example, any other value for the tax parameter falls below the value for other values. I am starting a medium-sized project working with this data and I would like to implement it, in a more flexible way, the data structure should not be available to me yet all data-retrieval functionality, but Here are some examples: # Specify the parameter in any order tax_revie (qw (1902 WY state property)); Tax_rev (QW (state property 1902 WY)); # Use the named parameter. Tax_reve (year => 1902, state => 'WY', govlev = & gt; state ', tax = & gt; property'); Use wildcards to get a list of # values. # For example, state tax revenues for all states in...

c# - How can i find selected node of treeview when click right button -

I am working on the Windows project and using C #. I want to capture tree view selected node which I right click and click on it. I am writing tvlocation. Selected Node Index But this only returns the root index of the node. Thank you for your help ... If you are looking at To recognize that the node was clicked, then handle the nodemouseclick event, as follows: Private Zero Tree View 1_NodemouseClick (Object Sender, Tree NodeMouseClickEventErgages E) {if (e. Button == MouseButtons.Right) {MessageBox.Show (string.Format ("node clicked: {0}", e.Node.Text)); }} You can select the program here node, if you also need it.

ASP.NET - new user control added to control collection get unexpectedly a value -

I have created a user control container (actually a panel) that dynamically add and remove user control objects (like rows ). Here's the problem: When the new user is added to control the control archive, then the previous control gets unexpectedly a value - only on the first post-back. Description in detail: In the initial reaction I fill a user control object. Then I click on the "Add" button, which adds new user control items to the panel, and this new control gets the value from the previous one (all the value to be more confusing new controls Do not see, only disabled text box controls and dropdown list). Why? Then my implementation was with this problem: UcSomeControlItem uci = LoadControl ("UcSomeControlItem .ascx") as UcSomeControlItem; Uci.DataSource = New SomeObject; Uci.DataBind (); Uci.ID = IdPrefix + ControlID; Ph1.Controls.Add (uci); // Finally When I change the panel control collection sequence to add the problem, the UI gets t...

iphone - How much does it matter regarding to memory if I create an CALayer rather than an UIView? -

While a UIView has a memory footprint of at least 4 * width * height pixels, I wonder if I Only a collar will make After experimenting around this in the past, I found that the UIView object was very low.

c# - WebRequest.GetResponse().....What happened to it? -

OK I'm playing with Silverlight and participated in some interesting things, I hope someone interprets it can do. The MSDN document clearly states that there is a WebRequest.GetResponse () method in it. I've created some code to get the latest message from Twitter. This code works fine in the console app, but when this is an error in a Silverlight app, this code is exactly the same, but in my xaml.cs file, the method framework Has disappeared from. Anyone know why? Console app: Silverlight: Silverlight documentation Because the GetResponse () method is not listed, you can only call the BeginGetResponse method in Silverlight. That's because you can block UI threads and browsers that can block. BeginGetResponse is an asynchronous method.

vb6 - Access Visual Studio 2008 server-based database from VB 6 project -

Is the VB-6 application accessible to a Visual Studio 2008-built server-based database? If not, what is the best way to share the database between VB-6 application and a C # application? "post-text" itemprop = "text"> If you are referring to the SQL Server Express database that comes with Visual Studio 2008, you can access it with that Are there. Connection strings to do this may most likely be one of the following: driver = {SQL Native Client}; Server = merserveadder; Database = myadabase; Uid = myUsername; PWD = mypassword; For SQL Server Express (that comes with VS2008), the server name syntax does not remember the Servername \ SQLEXPRESS where you replace the server name with the computer's name, where SQL Server 2005 Express is the home location of the installation. The context for programming against SQL Server databases using ADO is here: The example to connect to the SQL Server database is down (untested) Note that it is a Windows A...

php - Zend_OpenId_Consumer login function hangs - even in the sample code -

I first tried to get a simple OpenId log-in using PHP-openId (Jain) and then using ZendFramework I am in both cases and I run against the same problem, I am using the example Jed Code Phase 38.2.2. I see the login page properly, but when I enter my OpenID, this code executes: if (isset ($ _ POST ['Openid_action']) & $ _POST ['Openid_action'] == "login" & amp; empty ($ _ POST ['openid_identifier'])) { echo "new user"; $ Consumer = New Zend_OpenId_Consumer (); "Gomati" echo; If (! $ Consumer-> Login ($ _ POST ['openid_identifier'])) {$ status = "OpenID login failed."; Echo "failure"; } "Continuous" echo; The code appears to be $ consumer-> login on the function call I see the output from my first two echos, but I never fail or continuous (and when I log in If I try, I get only 500 internal errors in the server) without seeing. If I enter an invalid openId, then I get the ...

c++ - Creating X Number of Nameless Objects -

In many online judge problems, the format for input is as follows: Let's say X is the number of test cases. After that X lines are the conditions for each test case. In the example below, there are two test cases. Each test case specifies the upper and lower bound, for which the output should be shown. Input: 2 1 10 3 5 Output: 2 3 5 7 3 5 Now for my question, my program has a test case Can handle by: int main () {TestCase t; T.setRange (); T.compute (); T.print (); } How can I make X Test Cases without all those 'T' names? X is specified at the ram time. You can std :: vector & lt; Testcase & gt; Allofem; and allofem.push_back (TestCase ()) X bar; #include & lt; Vector & gt; Remember, of course. You can then loop over allofem and count on each item and then print it.

Multiple attachments columns in SharePoint lists -

What do I want to differentiate between enclosures clearly (this is an approval, this is an offer, this is a Po, etc.). Is it possible, or is it just working in bulk (attach all files together)? Thank you, You need to attach an attachment to each item, You can create separate lists, then you can link those lists to the master tables.

Is it possible to add dynamically named properties to JavaScript object? -

जावास्क्रिप्ट में, मैंने ऐसा ऑब्जेक्ट बनाया है: var data = { 'प्रॉपर्टी ए': 1, 'प्रॉपर्टीबी': 2, 'प्रॉपटीसी': 3}; क्या इस नाम पर प्रॉपर्टी का नाम निर्धारित समय तक निर्धारित नहीं किया जाता है? I.e। var propName = 'property' + someUserInput // कुछ यूज़र इनपूट को 'जेड' का अनुमान लगाया गया था, अब मैं कैसे अपनी संपत्ति को एक 'प्रॉपर्टीज' संपत्ति जोड़ सकता हूं? हां। var डेटा = {'प्रॉपर्टीए': 1, 'प्रॉपर्टीबी': 2, 'प्रॉपटीसी': 3}; डेटा ["संपदा"] = 4; // इसमें 4 में चेतावनी के साथ संवाद बॉक्स (data.PropertyD); चेतावनी (डेटा ["संपदा" "]);

eclipse - In Birt - group items in a table according to substring -

A novice question which I could not find the answer. I have a table in which there is a table holding many items which have the "time" column. I want to group items together over time so that all items of the same month are grouped together to be done. To do this I need to remove the month / year of the "time" string (format is "17:22 19/07/09") and use for that group. I know how to do all this in Java and I think BITT has suggested many ways to do this, but I have not been able to find an easy way to do this. If there is a good tutorial on this, I would love to check it out. Thank you! We did this in this way. In our SQL query for the data set, both of us (for example) "char (my_date, iso)" and "left (char (date, iso), 7)" (for 2009-01-05 and 2009-01 respectively), something like this: select left (char (my_date) , IoO), 7) IOEIMM, IV (iiO) as the IRDAT, other field according to value from TAB to my_date T...

java - Why can Haskell handle very large numbers easily? -

हग्ज & gt; 94535 ^ 445 13763208823213770506960538876615156211048901640052821530697264247739998018468419032448277029434879827074549660094560167350418780006041435009085328874649203806051649321126870390595266721098189242349208444482316125325707186571602341772853777338301048340410490766099124882372196084459950728677984306149354032194958838350428628029179808567741347573907820522005129323756608580450035816118631210899796737844847017912103795002186044667212854564873877368251677021271542685338599795296126719250524195138444164935848172681435879556620393278603941412992386130423120358085417352134793944374962155202775263514254825120847594625794948787727870791015138417202020046398434430834543871757009540188252921487766475531225041182299781658516600835765708489830472550501451688028631686131106195846863488696907742330516690812484245842193834772375442098922907994482074623453463360769667752246835162209606181772848443301671428463510910014230338649860429197577953825770323414539713938970733548419...

ActionScript 3.0 stageWidth in custom Class -

मैं कॉस्ट्यूम क्लास में स्टेज क्लास गुणों का उपयोग कैसे करूं? कक्षा: पैकेज {आयात मुख्य; Import flash.events। *; आयात करें flash.display.Sprite; आयात करें flash.display.Stage; पब्लिक क्लास रन स्प्राइट को बढ़ाता है {var obj: a1_spr; सार्वजनिक फ़ंक्शन रन () {runAssets (); } निजी फ़ंक्शन रनसैट्स (): शून्य {obj = new a1_spr () addChild (obj); Obj.x = stage.stageWidth / 2; TypeError: त्रुटि # 1009: किसी रिक्त ऑब्जेक्ट संदर्भ की संपत्ति या विधि तक पहुंच नहीं सकते हैं। । this.addEventListener (इवेंट। ADDED_TO_STAGE, हैंडलएडटॉटेज) निजी फ़ंक्शन हैंडलएडेडटोस्टेज ( घटना: घटना): शून्य {this.runAssets ()} निजी फ़ंक्शन runAssets (): शून्य {obj = new a1_spr (); addChild (obj); Obj.x = this.stage.stageWidth / 2; } आप कन्स्ट्रक्टर में मंच तक पहुंच नहीं पा रहे हैं (जब तक कि आप कक्षा में चरण इंजेक्शन न करें)। स्प्राइट में एक चरण की संपत्ति है।

Java web service, xsd date instead of dateTime -

Using JX-RPC 1.1 in Java EE 1.4, how can I highlight the web service, so there is a complex type of person (WSDL). ) Where is one of the person's assets, which is shown in the WSDL / XSD only as a date (such as a birthday) instead of a datetime (where the time is not needed)? I want to refer XSD to wsdl & lt; Xs: element name = "birthdate" type = "xs: dateTime" /> Instead of java.util.Calendar and java.util.Date both seem to be due to the xsd datatype being periodically when wsdl / Xsd. I know Java EE 1.4 does not have annotations like Java EE5, but is there any way to tell the web service to use Xs: date DATET? I do not think you will be able to get it, JX-RPC does not have just the flexibility ( This is why it was killed in Java 5). In general, I usually find that the WSDL generator does not have the expressive power to generate the exact WSDL, and so I use them to generate WSDL as a starting point I try, and then amend the resul...

javascript - Is an autocomplete text box for entering addresses a good idea? -

Traditionally, entering my address goes crazy to me: Why me Enter my city, state, and zip code when my city and state can be guessed from my zip code? Choosing your state from a dropdown list is a pain in the ass - often you can not tab in it, you have to use the mouse etc. As you type, we try to geocode your address (via Gmail Maps): In the best case, it really is well If your address is "120W 45th St., New York, NY 10036, USA", then you can enter it by typing something "120 w 45th st, nyc". However, I know, we are the only online store using this interface. Rather than wanting myself to be such a talented, I'm curious that the lack of use of it means that this idea is somehow faulty. Some potential issues: Very foreign / unfamiliar customers are used for the old form, and changing things on them is confusing. You have to enter anything in your apartment / floor number / in a different area. this is confusing. When o...