Posts

Showing posts from March, 2010

iphone - question regarding global variable -

I need to use all other files to access 1 variable in all the files in NSString's 1 I can use the object This is a vague question. If I understand correctly, in that case, you have a global NSString * shared by multiple files, in one of the source files ( .m ), NSString * my_global_string = @ "..."; and all other source files (or a common .h ), insert extern NSString * my_global_string;

Display Table Titles with a Table Model in Java Swing -

मैं निर्माता विधि JTable (TableModel) के साथ एक तालिका बनाना चाहूंगा टेबलमोडेल में प्रत्येक कॉलम के शीर्षकों को प्रदर्शित करने की क्या आवश्यकता है? आपको एम्बेड करने की आवश्यकता है आपका JTable एक JScrollPane के भीतर और कॉलम शीर्षकों को स्वचालित रूप से दिखाया जाएगा: JScrollPane sp = new JScrollPane (नया JTable ());

linux - SVN Error: Can't convert string from native encoding to 'UTF-8' -

I have a post-cut hook script that displays the SVN update of a work copy when used in the repository is . When users comment on the repository using TortisSVN from their Windows machines, they receive the following error: Post-commit hook failed (exit code 1 ) Output with: svn: '/ Home / websites / devel / website / guides / images' Error in entering directory for UTF-8 SVN: string encoding in 'UTF-8' from native encoding Could: svn: Teneriffa-S? \ 195? \ 188d.jpg The above question is a file: Teneriffa-Süd.jpg Notified U Notice The reason is that the site is German and the files are spelled in German Have gone There is no error when performing an update on the copy of the work on the Linux Command Line. The above error occurs only when the post-limit hook is executed by a Windows SVN client by committing. Question: Why did SVN try to change the encoding of a file? Do the characters in the file names that are outside of Windows Standard ASCII, al

iphone - NSOperation for drawing UI while parsing data? -

Hope you guys can help me :) In the main thread, I have a NS operation I am in a queue that this operation connects to the data server with the NSRR connection, saves the data received and parses it. Operation.M - (zero) start {NSLog (@ "operaion for and left;% @ activation"), [CMD Description]); [Will Will Changewellfall: @ "Exerting"]; _isExecuting = yes; [AUTO KEYCHENGEVALFORICI: @ "Expreting"]; NSMutableURLRequest * Request = [NSMutableURL request url with url: _url]; [Set http system: @ "post"]; [Request Set Value: [NSString stringWithFormat: @ "Multipart / Form-Data; limit =% @", MBO and more] forHTTPHeaderField: @ "Content-Type"]; [Request set http: bb: _page]; _connection = [[NSUK connection alloc] InitvuthRequest: Request Rep: Auto]; If (_connection == zero) [self finishes]; } Then in this NSURL delegation method I parse the data I just received from the server. Operation.m - (zero) connectionDi

filepath - how to check a file path is an image or not in php? -

I have a table that stores file path of images.documents, pdf etc. ... my query select File_Paths from the upload Now how can I check that the file path is image or is not using PHP ... if it is an image So I want to see it or otherwise download it ....... Use the function .

c++ - Reading response data from TCppWebBrowser in Borland C++Builder -

How to access data provided in the Web page using the TCppWebBrowser component in Borland C ++ Builder 6.0? I have been able to post data using the sample: You're looking for something like this: The C ++ version should not be different.

GPS programing: I'm getting a callback every second or so with latitude and longitude. What's a good rule of thumb for calculating "current speed", and other derived values? -

(I think this question is platform independent, but I have to be coding for the Nexus One). About "current speed": I am getting every other callback or telling me how much my current latitude and longitude is, I can call the distance between the current location and the previous location I am, therefore, I can keep track of cumulative distance and cumulative. With this I can say what is the average speed for the entire journey, but how can I do the current pace? I suspect that I need to use recent N samples, right? Am I thinking about this right? What is a good rule of thumb for N? (How many samples, or how many seconds back?) "Time to shut down": If I am still standing, then I can be a little different latitude and underline, okay? So, to decide that I'm not really saying anything like "x x locks are all within one meter of each other", right? Am I thinking about this right? What is a good rule of thumb for X and Y? Even about "distance

vb.net - Reading values from an Excel File -

I want to get a value from 12 Excel sheets. Is there any way that I get the price without opening the Excel sheet? I am using vb.net to post the example code, if there is any way of reading values ​​without opening the excel file. Thank you You can not read values ​​without opening Excel files at all. But you can read the value without opening Excel. If the file is saved in XML format it will be easy. If not, the easiest way is to still use Excel, but use Office Automation to do this. The hard way to create hard Excel file parsers is - difficult but still possible - on non-open XML Excel format (former Office 2003). However, it is quite impossible to read from an Excel without opening a spreadsheet file .. This is the snippet of code that you can get from VB. Can use a spreadsheet from the net to open, which takes advantage of Office Automation (it still opens the file, Excel Automation is dependent on DLL, but does not need to open Excel): Disclaimer is not inten

java - How to redirect javax.mail.Session setDebugOut to log4j logger? -

To redirect to javax.mail. Session setDebugOut for log4j logger? Is it possible to only redirect the mailsion logger it is possible to redirect? I mean, there are solutions like which re-all standard output to go to log4j - Library is a useful category that you can use for this precise purpose: LogOnput stream LaosOutOut = new logoutputstream () {@ Override protected zero process line (string line, int level } {Cat.debug (line); }}; Session session = session .get default instant (new property (empty)); Session.setDebugOut (new printstream (Los SeAntAut)); Cat obviously log4j category / appenders

c# - How should I use HTMLAgilityPack AppendNode? -

There was a real headache on this level on Friday! I'm trying to insert a HtmlNode to insert the second (). I can see the refChild node with the breadcrumb ID when I get it rpint for the console but the following error keeps getting the following error: System.ArgumentOutOfRangeException: node " My code is: HtmlWrapper.InsertAfter (ContentNode, HTML.selectsection node ("// divi [@ id = 'breadcrumbs']")); And like I have mentioned, I've printed both the HtmlWrapper and HtmlWrapper.selectSingleNode ("// div [@ id = 'breadcrumb']" for the console and can see the node on the screen From a very simple examination of the source, it seems that the InsertAfter wants refChild the direct child of the node that you have on your div node on InsertAfter , It is that the actual node can be passed in the form of refChild isn Since searching (with // ), the entire scion axis will be direct child of HtmlWrapper . &l

Getting the type (x64 or x86) of a running process in vb.net macro code -

To automate the process of enclosing the IIS worker process (w3wp.exe, Windows Server 2k8) The problem with Visual Studio is that I often have two app pools running in one mode and one in 86 mode at any time in x64 mode. This means there are two processes running W3wp.exe at any time, and the only way to distinguish between them is the mode in which they are running. When I use the "Attach in Process" dialog, a "type" column shows that the information that I know is attached to W3wp.exe, but I do not understand how in my macro To get that information. Based on the information here, I was able to come up with the following: Function AttachToProcess (ByVal processName as string) Boolean dim proc EnvDTE.Process dim As in the form of boolean for each proc attached in DTE.Debugger.LocalProcesses then proc.Name = "w3wp as .exe" then add proc.Attach () enclosed = true termination next return enclosed end function But in the mean time it just grabs the

.net 3.5 - Lambda expression example with System.Action<T> for a MEF case? -

I'm new to the system. Action & lt; T & gt; And Lambda Expression is a matter here that I want to use. using the system; Using System.ComponentModel.Composition; Public Class Micalos {Public Stabilizing Container Container = New Composite Container (); Private Zero Start (Action & lt; CompositonBatch & gt; Action) {} Public MyClass () {CompositionBatch Batch = Faucet; Inititialize (x = & gt; {// Create catalog instance: Examples like Example 1 and Example 2 ... ... X. Advert (Example 1); X. Advert (Example 2); Batch = X;}); // At this point will be batch, no-zero-value parts will be added? // The following code is making the batch for the container container. Processed (batch); Basically, method start (Action & lt; CompositionBatch & gt; action) is used to start an emof catalog parts with a compositionbatch example, which adds all the import and export parts. After that, the batch is made to fix all the d mapping from the container. I'm not

Django templates: how do I save an item inside a {% for %} loop? -

. When a user searches only for the first name and I leave the query in the query and asks for the last name to enter it but I thought it would be good if the user only clicks on a name And the search results are returned directly (the link takes you back to search the form at this point.) The query in the template and the last name that I need {in the lawyer lawyer Sector% inside} for loop is characterized as: lawyer. First and lawyer. I did not know how to save them to create a query. Can you help me with solving this problem? Note: The template is below but I put it in pastebin.com. It's 60 lines long, I was not sure I should post it here. Thank you. & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Search results & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; P & gt; You & lt; Strong & gt; {{First || Capfirst}} & lt; / Strong>. & Lt; / P & gt; Is searched for. &

sockets - Can someone help me figure out this class from documentation? -

I have no experience with sockets and I need to implement a process that has a user interface of input What does the value from Stdin indicate in the other process, what the socket parameter should be? It's just an int, is it a handle? I was told that it does not play well with promoting. Axiom Can you write a command prompt program that accepts int from studin and sends it to my UI? I just need to send / receive codes. It looks like it wants to get socket handle (int). I recommend that you know Winsock. In addition to this, googling for the above category + some good results are produced.

mono - MonoDevelop: error VBNC99999 -

Hopefully no mono end Monodevelop ... I am receiving the following error when I try to compile ASP.NET apps from vs.net 2008 Error VBNC99999: Unexpected error: Class can not be loaded in module (VBNC99999) This is the only error I get I am using 4 external assembly / dll AjaxControlToolkit.dll FusionCharts.dll MySql.Data.dll PostBackRitalin.dll < / P> I've added dll to bin directory, so I 're referred to it as I I I am using the micro, because my "old" computer (Acer went to T-2300 Shopping in 2007) runs with Linux and Embedded; With monodevelop very well with windows, the visual studio is slow slow again .. So I decide to cross the mono .. Do anyone know anything about this error? ? Thank you very much. Regards! I can be guessed for some possible reasons, although without much information it is hard to ascertain . / P> Mono VB.NET compiler is only a VB8 compiler (VS 2005), so if you are using VB9 features that can explain the problem.

How do you set a cookie under a different sub-domain in JSP? -

कुकीज एक डोमेन नाम के तहत जमा किए जाते हैं उदाहरण के लिए, sub1.example.com/login.jsp द्वारा जेनरेट की जाने वाली कुकी को sub1.example.com में संग्रहीत किया जा सकता है, या example.com । क्या मैं कुकी को sub2.example.com में संग्रहीत कर सकता / सकती हूं? कुकी का एक डोमेन नाम .example.com दें (प्रमुख बिंदु पर ध्यान दें)। इस तरह से कुकी किसी भी उपडोमेन द्वारा पहुंच योग्य है यदि आप सबडोमेन के बीच HttpSession साझा करने का इरादा रखते हैं, तो आप यह भी कर सकते हैं कि ऐसा करने के लिए ऐप्सर्स को भी कॉन्फ़िगर कर सकें। सर्वश्रेष्ठ विवरण के लिए अपने दस्तावेज का उल्लेख करना है। उदाहरण के लिए टोमकैट के मामले में, बस emptySessionPath को true की विशेषता सेट करें: & lt; कनेक्टर खाली सत्रपथा = "सच" & gt; ;

debugging - Creating a Memory Dump of a Process in Windows Server 2003? -

Since Windows Vista, we have a good alternative to creating a memory dump directly from the task manager. Sadly, this option is not yet in Windows Server 2003 :( I found ways to dump a full system-speed memory, but it's a bit more. Is there a single process to dump? Is there a way to do this? As it is a production server, I do not want to install any heavy-weight tools and or service running in the background, as I actually want to dump the process, dump my machine Copy and debug it there. Yes, look at userdump.exe.View it. < / P>

process - How to safely link to data processing pages in PHP -

Explain the title: For example, link the flag to any YouTube video as "Inappropriate". It is basically a link on a page that processes the request (i.e., the person who clicked a logged-in user, what is the ID of the flagged video) etc. If everything goes well then the video is flagged and the user is given the correct output. My question is, what prevents the user from accessing that processing file with the URL, and flagging, say, all videos on YouTube automatically? You can not create a session with PHP if the user clicks on a link and does not want to include JS, then I'm only looking for a good PP-solution solution, to implement the data Someone found the correct page on the process page. Can you recommend a way to do this, maybe another GET variable may be passing. If you want you can use a YouTube example. Thanks If you want to do something, make sure they are expected Coming from the page, you might have an additional GET variable (beyond the video

How to surpress strange stdout message when using Ruby and SOAP -

STDOUT कुछ अजीब आउटपुट प्राप्त कर रहा है: उपेक्षित attr: {} abstract मेरे सभी SOAP कॉल ठीक काम कर रहे हैं, पोस्ट-पाठ "itemprop =" text "> आप इसे / dev / null पर पुनर्निर्देशित करके stdout को बन्द कर सकते हैं: कमांडname> / dev / null आप इसे / dev / null में रीडायरेक्ट करके stderr को बंद कर सकते हैं: कमांडname 2> / dev / null आप दोनों stdout और sderr को / dev / null दोनों में रीडायरेक्ट करके: कमांडname & amp; & gt; / dev / null हालांकि तरीकों से आपके स्क्रिप्ट में कोई भी वास्तविक त्रुटियां खड़ी हो सकती हैं। कुछ हद तक एक बेहतर विकल्प है कि नोहअप को आपकी स्क्रिप्ट चलाने दें और आउटपुट (दोनों stdout और stderr) को nohup.out पर रीडायरेक्ट करें: नोआहुप कमांडनाम ... इस तरह से आपका क्रॉन एक प्राप्त नहीं करेगा Ny त्रुटियां (और आपको एक त्रुटि ईमेल नहीं भेजेंगे), लेकिन आप अभी भी समय समय पर nohup.out की सामग्री की जांच कर सकते हैं, बस यह सुनिश्चित करें कि यह उचित निर्देशिका में बनाई गई हो (हो सकता है कि nohup के लिए विकल्प हैं,

c# - SL3 Transparent/Glass Child Window? -

Any examples to style childwindow in Silverlight 3.0, look like Windows 7 Arrow Glass windows? I have tried to change background etc, overlaybrush, and overhaopacity properties, including enabling rootvijual because it shows a child window, but no luck yet. Any examples or suggestions I have Windows 7 Aero is not a glass style for you, but you want to change the default control template for the hairwindow and style, so instead of changing the only changing properties (background, overlaybrush, overlayopicity) on the control. Child goes to parts and state models for Windows and also includes XAM for default control templates. I think this will be the best place for you, and then you have to do more to modify the modified version of a template in Blend the way you want it. I do not believe unless there is still a standard Modeal-type behavior of ChildWindow, there is no need to re-enable the rootvijule of the application.

Using sudo commands in Cocoa and Objective-C? -

$ sudo touch folder_name या $ sudo जैसे कुछ को चलाने का सही तरीका क्या है आरएम उद्देश्य-सी / कोको के भीतर से? मैं कुछ फाइलों में बदल रहा हूं और घूम रहा हूं और उच्च विशेषाधिकारों की आवश्यकता है। कोई भी कोड नमूना बहुत सराहना की जाएगी। धन्यवाद। यह करने का एक तरीका है प्राधिकरण ExecuteWithPrivileges () , लेकिन यह सामान्य बातों के लिए निराश मुख्य रूप से यह इंस्टॉलरों के लिए है, मैं इकट्ठा करता हूं। ऐसा कुछ: प्राधिकरण रीफ AUTH = NULL; OSStatus err = प्राधिकरण बनाएँ (शून्य, के प्राधिकरण, खाली पर्यावरण, kAuthorizationFlagInteractionAllowed, & amp; auth); Err = authorizationExecuteWithPrivileges (auth, command, kAuthorizationFlagDefaults, args, NULL); और आप गलती ... दस्तावेज़ीकरण देखें।

android - Weird Home button behavior -

After pressing the hard home button, I am facing strange behavior of my application type. When you press Home, it's all right - My app goes to the background, shows the Home screen. But if you try to select your app in the main menu or it works in the list of final tasks as if it had not already started and you did not show past activity - it just starts with scratch , That is, displays the splash screen and initiates the next related activities. In addition, the older activities of this app remain on the stack of activities, and the app's The LA example is not eliminated - so if you press back for some time you will run in those activities which were undoubtedly started during the last session with the splash screen activity with my app "android.intent.action. MAIN "filter and" android.intent.category.LAUNCHER "category. The strange thing is that all this is the fact that I do not have to stop any back key hit, or there is no override but I do not have

webkit - iPhone sideways scrolling of a div -

I'm coding a website for iPhone. Some content (images and strings I do not have is too much control to fit in 320px viewport) When I first encountered it, the whole page was shortened to web page view (small text) ) Had to be back in Therefore, I have CSS style = "width: 320px; overflow: scroll;" It stopped page scaling, but I think I will be horizontally alley to scroll that paper horizontally to see the rest of the image (like the app stores with the screen). However, scrolling does not work on iPod only. (This works in the default Mac mode on Safari but iPhone does not work as a user agent in Safari.) Still, how can I scroll sideways on the iPod?

flash - FDT:Flex and cannot access local file -

I am using FDT for flex development and when I compile it, and to access an FLV file If it tries, I can not "access the local file" This is clearly a security sandbox thing. Now I tried to add crossdomain.xml to the root and it still creates the same error. I know that I need to use in my project - Network = false, but for my life I can not speak where Flex compiler is an additional logic field I know in eclipse how to do it, but slightly modified With FDT, I have found a clue. Googling 'FDT Security' throws a similar discussion. .. what is your problem related to The power?

osx - Where is sdl-config installed on MacOS 10.6 (Snow Leopard) -

In the installation and Macod X10.6 (Snow Leopard), trying to configure some source code for which SDL Requires harvesting: Checking for SDL-config ... no check for SDL - Version & gt; = 1.2.0 ... No *** SDL-config script installed by SDL could not be found *** SDL was installed in PREFIX, make sure that PREFIX / bin *** is your path, or the SDL_CONFIG environment Set the variable to the full path of the SDL-config. Configure: Error: *** SDL Version 1.2.0 Not Found! Does anyone know SDL-config? I think I can build SDL from source, but why should I be in pre-built packages? I had the exact same problem. I found that SDL-config was installed in two places: / sw / bin / sdl-config < Located in / sw / bin located in / p / / opt / local / bin / sdl-config I have prefix / opt / local Turned into - then it worked.

iphone - Not Receiving Push Notifications -

Earlier I had configured my app ID for development push notification, it was working fine. But now I have changed my epidemic and I have followed the same procedure as explained in Apple Docs and I used to get the new PP generated from the server. File is created, but now I can not find a push on my device. i for an apple id i suspect that i both develop and produce SSL certificates and the program creates both environments in the portal, shows the green balls. I have created a development provision profile according to the above version The text "itemprop =" text "> It depends on which server you are contacting. If you are developing Side by side using the appropriate SSL certificate and the regulated device token. If you are using the output / release mode If you are, you will have to use correspondent information. Another thing is that you should keep in mind that for each certificate, you will have to register your device for push notificati

multithreading - python threading/fork? -

I am creating a dragon script which needs to do 3 things at once, what is a good way to get it, As I have heard of GIL, I am not so lean to use the thread. Two items of things that are very important, they will be very active to do a lot of work and then when I ask that the user needs to report on the third thing socket (hence it is a small server Will be like) about the status of the other 2 processes. Now my question will be a good way to achieve this? I do not want to do three separate scripts, and even using the thread due to GIL, I think I will not get much performance and I will make things worse. My script is a fork 2 process that will report to the user through his job and main process? And what kind of processes can I communicate with the main process? LE: : To be more accurate 1 thread, they should receive email from an IPAP server and store them in the database, get another thread from DB messages The one who needs to send and send them and the main thread should be

parsing - I'm interested in Programming Languages. What areas of programming are good for me? -

I have always been interested in writing and designing programming languages. Of course, finding an employer is very difficult, Let's write a programming language as part of. That's why I am looking for "best thing". In what areas of programming do I have the experience of solving some related problems? Or what is the likelihood of seeing my smallest interpreters of all types of my employer as a relevant type? i have worked as an embedded programmer for the past 10 years before I have compiled for 20 years (And consolidators, linkers, debuggers, etc.). My colleagues joke that I turn every problem into a parsing problem. And they are right I have used techniques which are appropriate for language design at times during my career. Today, I play compiler accessories together: It helps to scratch my tongue's scabies.

obfuscation - How to obfuscate Java code quickly? -

How to quickly blur the code I have a very small Java app and I want to remove my clients I want to distribute the obscure code. I've heard a lot about obscuring the code and downloaded it but I do not have a way to obscure the "abc.jar" file. I checked its website but there is a lot of content to read in it. I do not need heavy ambiguity. I just need an ambiguity that changes the names of variables, methods and classes to some unreadable people. I know that ProGuard offers all of this with another task of another ton. Q1. Can anyone tell me that please use a few easy steps or a few easy steps so that I can use the projector only to input "abc.jar" and this can be called "obfuscate_abc.jar" or similar Something simplifies Q2. One more thing, because my Java program uses external libraries, Q3 Is there an Eclipse or NetBusiness Plugin for this obfuscation? I have also heard that we should keep the mapping table file with us so that

php - Basic CMS for bookmarks (Delicious clone) -

I'm looking for a basic open source CMS like creating a social bookmark site. I just need basic functionality: Users should have site / usernames, where titles and links will be displayed for bookmarked sites. RSS for bookmarks I do not need tags, comments, ratings and other complex tasks. I am looking for a solution for three days in a row, but many projects are closed or not maintained for a long time. I am not a programmer, but I can change PHP code, HTML and CSS. So it would be better if CMS was written in PHP but other languages ​​and frameworks (such as) would be fine if CMS is simple. I recommend you visit this page: List of popular bookmark clones. Free Content Management Specifically the pligg that was named for the best last year

Besides F1, F2, F3, (Ctrl + Fs and so on), which are good (available) keys to create custom commands on Vim? -

इसके अलावा F1 , F2 , F3 कुछ प्लगइन्स < Kbd>, और \ । उदाहरण के लिए, \ s और , cc । विम पर कस्टम कमांड बनाने के लिए कौन सी अच्छी उपलब्ध कुंजी हैं? मैं उपयोग करने के एक प्रशंसक हूं < कोड> & lt; नेता & gt; मेरे सभी कस्टम नक्शे में इस तरह मैं आसानी से डिफ़ॉल्ट मैपिंग पर stomping से बच सकते हैं, और मैं जल्दी से अपने मैप्लेडर जब भी मैं चाहता / चाहती बदल सकते हैं।

Django: How to dynamically load different urlconfs? -

What am I trying to do: # urls.py urlpatterns = Pattern ('', ('R' ^ info / (? P & lt; user & gt; [- \ w +]) / (? P & lt; app & gt; [- \ w +]) / ', (% App% .urls)),) should display specific information that the user had entered for the app. And I want to keep url scheme in such a way. Is this possible? I think the namespace would be the trick but the official document is very rare and there is a lack of good examples. Can anyone put some light on this issue? If I understand correctly, then depending on the value of the 'app' element in your url Trying to dynamically include different urlconfs. I see what to do with namespaces. Quite simply, there is no way to do this Urlconfs is compiled at startup, so dynamically can not contain different things. The only way you can access whatever you want is to keep the specific URL for each value of the app, each contains the relevant URL configured.

How do you make a multiple-choice list from the sqlite database in Android? -

I am new to Android programming, and I choose the user wanted to draw a list option from a column of SQLite database. . How would I go about doing this? As such, it is to say that the database table is to be read which is called the country, and the column ID, country and capital was. How do I let the user choose from the list of capitals and return the information in that row to the application? It seems as if you want to present the user as one of the choices. I ask your database and take the cursor, wrap the cursor in one, and call on the example of a spinner, by giving it a simple curriculum adapter example. Register to get an event from your spinner. Then when onImemelected () is called, then you should be able to call (position) your simple cursor adapter to get the data for the line selected. GetItem () returns an object, I do not completely believe how you will get back there, but I'm guessing that it will actually be one. I will take action in the debugger to

php - htaccess Redirect to same file, but display different URL without having to change internal links? -

मेरे पास वर्तमान में मेरी वेबसाइट पर लिंक हैं: - http://example.com/products Php? Cat = X मुझे लगता है कि एक बार लिंक के गंतव्य पर ले जाया जाता है, url कुछ ऐसा दिखाता है: - http://example.com/new । मेरे सर्वर पर फाइल एक ही फाइल है, लेकिन मुझे किसी भी लिंक को बदलने के बिना केवल यूआरएल को दिखाना चाहिए। मैंने निम्नलिखित की कोशिश की, लेकिन इसे केवल उपयोगी यदि मैंने आंतरिक लिंक को स्पष्ट रूप से बदल दिया है: - RewriteRule ^ new $ products.php? Cat = 10 रीवाइटकॉन्ड% {QUERY_STRING} = बिल्ली = 10 पुनर्लेखन नियम ^ products.php $ new [R, L] RewriteRule ^ new $ products.php? Cat = 10 [ एल]

language agnostic - Do editors allowing you to view source code in different indent style exist? -

This is not subjective nor is there a disputed question but a question that needs a yes / no answer and if the answer Positive, the editor's name (s) said. Company Guidelines Mandate K & amp; Code is committed to using R style and I like Allman (for example). Whether the editors (either part of standalone or IDE) that allow you to "view" your source code using ALMAN style, still always have K & amp; Save the file using R style? It seems that is not visionary nor complex: the source code / text file will always be saved using the "official" style, but what editor will show you on the screen, it is not actually your text file Would rather be a "view" of your text file using the Indent Style of your choice? Is any editor (either integrated with standalone or IDE) that exists? Note that I'm actually asking that the editors present there (A), do not do allow anyone to do something in the workflow (for example hg commit not ) to

c# - Why the Difference in Nomenclature? -

Why is it that all events in .aspx pages are "before on " OnClick "," on command "and code-in the file behind them, click" "," command "? Is Just Naming Convention Or Is There Any Logical Explanation? Name the events to manually click, change, etc. ... to fire those incidents Internal methods are prefixed with the "On" naming convention as ASP.NET markup, you use the feature OnClick but actually you have a method wiring for the "click" event, therefore, VS . The method that is automatically inspired by you is a button name link. This method has been internally passed internally as a representative of the incident.

cocoa - string/number from TextField to be used for calculation? -

Sorry for my question and for a long explanation given here, possibly a simple solution for that person I have been experienced in the purpose and, but I am starting just a few weeks ago and I can not understand how it is working, Grrrrrrr !! OK, keep it like this, in my window, I have the following text: 2 TextField (NSTextField): BlockOffest BlockOntest 1 label (NSTextField)): flightTimeText 1 button (NSButton): updateButton What do I want to do, I think about the timetable, "start-time" in one textfield and the second "end-time" "Receive one is considered" takeoff-time "and the second" landing-time " Or for example "Duty-Start Time" and "Duty-Endime" ... this is the same! Then I want to calculate "flight-time" or "duty time" and show it in the label. In the end I have to store the value or time in the database, the integer must be presented by all the minutes in relation

php - how to send data in url in a different way then by using get method -

I want to see my address like this: www.example.com/112112/example 112112 is a data, I want to work in a php script. how to do this? For some reasons, I www.example.com?id=112112 You can use URL rewrite to obtain binding on www.example.com/112112/example at www.example.com?id=112112. For Apache webserver, you will find a guide here:

iphone - Synthesize a BOOL to set value in Objective C -

I have created a BOOL feature called "useSystem" in my core data unit, except for me to get / set up data I have created an object for that, even then whenever I try to set synthesized BOOL I just get an error. This is my code: @property (nonatomic) const bool usage system; So I'm [Object set US system: Yes]; And immediately I just get an error, can anyone help? Use [NSNumber numberWithBool: Yes]

java: how can i do dynamic casting of a variable from one type to another? -

I want to do dynamic casting for Java variables, the casting type is stored in a different variable. This is a regular casting: string A = (string) 5; This is what I need: string theType = 'string'; String A = (TheType) 5; Is this possible? And if so how? Thanks! Update I'm trying to populate a square with a hash map. This is the manufacturer: Public connect (hashmap> string, object & gt; obj) {for (entry) string, object & gt; ; Entry: obj.entrySet ()) {try {field f = this.getClass (). GetField (entry keying ()); F.set (this, entry .getValue ()); / * And lieutenant; = Casting Problem * Hold (Noch Fielded Experience Pre) {Log. Terror ("field not found" "+ + entry.getKey () + '' '');} Hold (illegal entry) {Log. Panic (Here's the problem that some square variables are double types, and if Number 3 is received, then it looks as an integer and I have type problem. About your update, the only way to s

winapi - Why HBITMAP use so little memory? -

मुझे एक दिलचस्प सवाल मिला: स्मृति में एक बड़ा (4500x6000) jpeg लोड करें ( डेटा से एचबीआईटीएमएपी बनाने के लिए CreateDIBitmap () बनाएँ अब मुझे पता चला कि प्रक्रिया केवल 5 एम मेमोरी का उपयोग करती है। मुझे आश्चर्य है कि जहां एचबीआईटीएमएपी का आंकड़ा है (मैं पेजफ़ाइल को अक्षम करता हूं) अपडेट: मैं परीक्षण के लिए इस तरह के कोड लिखता हूं: // बिटमैप बिटमैप को अक्रिय करना; बिटमैपिनफ़ो जानकारी; // .... शून्य * डेटा = शून्य; एचडीसी एचडीसी = :: GetDC (NULL); एचबीआईटीएमएपी एचबिटमैप = :: ईडीआईबीसीएशन (एचडीसी, एंड इंफॉर्मेशन, डीआईबी_आरजीबीआरएजीएसीएलओआरएसएंड, डाटा, एनएलएल, 0); :: रिलीजडीसी (शून्य, एचडीसी); If (hBitmap) {:: GetObject (m_hBitmap, sizeof (बिटमैप), और बिटमैप); } फिर डेटा 0x2d0000 है (निश्चित रूप से उपयोगकर्ता स्थान में), बिटमैप.बीएमबीट भी 0x2d0000 है। इसलिए मुझे यकीन है कि CreateDIBSection को बिटमैप के लिए यूजर स्पेस मेमोरी का इस्तेमाल किया जाता है। कैसे एक परीक्षण के लिए इस बारे में एक लूप में एचबीआईटीएमएपी बनाएँ सैद्धांतिक रूप से उपयोग किए गए बाइट्स की सं

actionscript 3 - As3 reading xml, creating objects and storing them in an array -

मेरे पास निम्न संरचना के साथ एक XML है: & lt; nodes & gt; & Lt; NODE & gt; & lt; NAME & gt; & Lt; / NAME & gt; & lt; आईएमजी & gt; & Lt; / IMG & gt; और & lt; / NODE & gt; & lt; NODE & gt; & lt; NAME & gt; & Lt; / NAME & gt; & lt; आईएमजी & gt; & Lt; / IMG & gt; & lt; / NODE & gt; & lt; / nodes & gt; और इसे इधर-उधर में फ्लैश में प्राप्त करें: विविध लोडर: URL लोडर = नया URL लोडर (); Loader.addEventListener (इवेंट। कॉम्प्ले, लोड नोड्स); Loader.load (नया URLRequest ("../ संसाधन / xml / nodes.xml")); फंक्शन लोड नोड्स (ई: इवेंट): शून्य {var NodesXml: XML = नया XML (e.target.data); ट्रेस (NodesXml); // path: resources \ xml \ nodes.xml} मुझे प्रत्येक नोड्स "कुछ" में प्राप्त करना है, और मुझे मदद की ज़रूरत है मुझे मंच पर प्रत्येक "NODE" प्राप्त करना है, इसलिए मुझे सभी गुणों जैसे नाम और छवि यूआरएल को कहीं न कहीं स्टोर करना होगा क्या यह वस्त

ruby on rails - Add a form helper method -

Ive made a nice editor in jQuery and I want to add it as a form auxiliary method Ideally ID: f.nice_editor: field item form_for is generated for ActionView :: Helpers :: FormBuilder . So all you have to do is to add examples of examples. Ex: Category ActionView :: Helpers :: Form Builder DF Custom_field (...) ... End End

Sql Server Mgmt Studio: is there a way to get it to reuse windows? -

This is more annoyance than a real problem, but it would be good if someone has a trick to work . Let's say I have a SQL file, MyScript.Sql if I go to the file location in Windows Explorer and double click it, then it opens the SSMS well, that's what I want. However, if I click on that file twice (or a different .SQL file), I get a new example of SSMS. So if the file is already open, I get a new example of SSMS. If I open a separate file, then it does not reuse the first instance of SSMS, it opens a new one basically any The SQL file will open an entirely new example of SSMS. It seems pretty dumb. Is it broken and has to live like this? Is there a solution? I have tried to solve but it is not working. Actually it seems that I can get access again, but only if I use VS to open the file. Which is not great because there are so many reasons why I like to edit SQL in SSMS. I will be open to write some small intermediate app, which takes the name of the file, finds an exis

serialization - When does it make sense for a Java object to be Serializable but not Cloneable? -

If a Java class applies the serialjob interface but does not have a public clone in it () Method, it is usually possible to create a deep copy like this: class clonehalper {@SuppressWarnings ("uncheck") public static & lt; T extended serialized & gt; T clone (t oboj) {try {bytereutputstream baoos = new byteOnoutstream (); ObjectOutputStream OOS = New ObjectOutputStream (Baoos); Oos.writeObject (obj); Oos.close (); Byte [] Bytes = Baos Byteere (); Bytereinputstream bank = new bytereinputstream (bytes); ObjectInputStream OIS = new object intestust (bass); T copy = (t) ois.readObject (); Ois.close (); Return copy; } Hold (pre-Klassnotfound exception pre) {// should throw new error (ex); } Hold (IOException ex) {// Probably a bug in T's custom serialization methods throw new runtime exposition (ex); }}} I often face third-party library classes in this way and take up the hacks as above. I have ever expanded the object output speed so that this is not t

html - Formatting for displaying source code on a web page -

I am working on a markdown command line program, and I want to format the source code block in HTML output Better than ordinary & lt; Pre & gt; & Lt; Code & gt; .... & lt; / Code & gt; & Lt; / Pre & gt; My criteria are:. I have to show the line number in front of every line I have to choose the code myself so that I can only copy the code (and line numbers) to the clipboard I have tried to use the DIV, because the tables begin to form badly, but I am opening anything. I tried that: The table with one line, cell 1 was a pre / code formatted line number block, and the cell2 was the source code. Problem: The first column, with line number, invariably picked up a lot of space (auto adjusting width is confusing) with multiple rows, 1 row with the same problem as the one Table with div, I just can not get to the path of div I want to lay them out How do I make me Can you give an indicator on what to get? Here's a sample (with

java - How to make sh script the application for Mac OS -

I wrote a Java application and I need to make it standalone for Mac. Earlier I used Jar Builder, but now I need to execute some shell scripts before the Java application starts. How can I do this? If you want a double-clickable application, you can use AppleScript to execute The shell script and then application applescript editor allows you to save a script as an .app application. The simple task that will work: The application "terminal" with "cd / user / justin / desktop; / ap.sh; java myApp" "script" / pre> file -> Save as, and under "File" select "Apps". Edit: Even simple, you can execute the Java Script from within the Java app ... though you are trying to complete.

What runs in PowerShell when I type "alias"? -

What's going on in PowerShell when I run the "alias" command? Is this nickname? A function? It appears that the "alias" is a nickname for the gate alias command, yet aka himself does not appear in the list returned by alias - is it being snatched out? (It's out of curiosity, I'm planning on aliasing "nickname" or nothing crazy again.) In PowerShell, if anything does not match a command in the search path, prepaid it with" received "and try again. So when you type "nickname", then powerfully try again with "mill aliases", if one does not match against the command. -Oisin

How can I find the dimensions of a font drawn on a Graphics object in Java? -

I have a font and a fontmatrix object in my code and I am portraying a graph on a graphics object but I Not sure how to know the dimensions of the photo when it is drawn (in pixels) Does anyone know how I can count? You should only have the font matrix object that you want to use to create fontmetrics objects The height of the text for the shape will be given, and you will be told the width of any text that you are trying to render. Note that you might want to include and get the full picture of what the height of the text will be with height.

.net - Log4Net Logging Exceptions -

I know that I can log exceptions to the database using Log4Net, but I break up one exception Does anyone know that it is available, if someone has done it or manually databases Exceptions are easy to log in? Cheers Anthony UPDATE: If it possibly helps to use the following: Does anyone Know that it is available? I'm following this description: Exception type Exception message Exceptionsource Targeted exceptions If anyone has done this? Is it easy to log exceptions to the database manually? Perhaps the format changes will help. As requested, you can use the approach outlined here: possibly log4net To use additional custom information about certain exceptions to use custom properties in thread context public zero log-date exception (log level level) , String message, exception exception) {log4net.ThreadContext.Properties ["exceptionType"] = exception.GetType () AssemblyQualifiedName; // log4net.ThreadContent.Properties.Remove th

How Microsoft makes money out of silverlight? How Adobe makes money out of Flash? c# -

I am thinking that companies get money through the free RIA application development platform offer. They have invested a lot of money; To Create Human Resources & amp; Improvements in those platforms, of course, no commercial company does this independently, there will be some type of strategy, but how does Microsoft earn money from silver money? How does Adobe earn money from Flash? Is it giving tools to develop applications? Or is it by licensing any software technology? or something else? Microsoft sells a number of copies of Visual Studio, and Adobe has sold quite a few copies of CS4. In addition, Silverlight helps developers to keep the Microsoft ecosystem, and therefore helps them make more money than products like Windows, Office, and SQL Server. Acrobat, Dreamweaver, Photoshop, and ColdFusion have a similar synergy similar to Adobe Flash and Reader.

c++ - String hashing with linear probing -

I am trying to figure out how to do string hashing with linear probes. Actually, I have done this: A hash table has been created: One Every string has to be from the dictionary (90000 words), and to retrieve the anagrams of the selected words. 2 * 90000 in size Using a simple hash function, I get the word from each word, get a value If that hash table index is empty, check if the value is, otherwise, create a new hash value. Each word is in the hash table, and I execute a search After the hash function, The hash value will be received, and it will be checked whether the value exists in the hash table. If it exists, then it will compare permutations compared to struts. If the match is true, then it will output. If not, then it is using a new hash value. The problem is that the whole process is very slow ... it's fine, but the search takes a long time. How I am out of ideas about how to make it fast .. Thank you for your reading. Put all

windows - Compiling same project with two different settings in Visual studio -

I have Visual C ++ solution One project needs to be compiled targeting x86 and x64 with default settings The solution can be compiled once in the file. Is it possible to prepare the solution once, but to build the same project with two different settings? Thank you in advance for any help. Visual Studio uses Configuration Manager for this problem in your project Right click on, press "Properties" and you will see the Configuration Manager button at the top of the window that is popped up. Add a new solution platform (x64) and you'll love to go I usually use to define some things for project compilation (define _X64 in 64-bit compilation), output directory to $ ( SolutionDir) ../../bin/ $ (Configuration) / $ (PlatformName) / $ (ProjectName) / ).

mysql - Adding new field to pre-existing table and modifying previously created data in Rails -

Then I have a user model with field and related table (user): User_id, username, password etc. But then I added users_imit_imit to the user table. Newly created users are invite_limit, although the user created before the invitation_token migration did not have an invitation_mit field. How can I update previously created users to include the invitation_token field? Note that I am not talking about adding the invitation_limit field for the users table (i.e. migration), but updating users already created. Thanks, Seed data should not be kept in migration. The migration structure is for creating, not adding data, and if you ever move to the database, you will participate in problems. You can write a rake task if you create an example method called something like "gener_invitation_token", then you can write a rack function like this: # Lib / tasks / invitation_tokens.rake Namespace: Seed "Generate an invitation token for users who are not already" fu

ihtmldocument2 - Add onmouseover event in links rendered in C#.net webbrowser control -

My job is to highlight the selected words in html in C # .net's webbrowser control. I complete it using IHtmldocument2 (ref :). Now, my next task is when I mousew the text highlighted, a custom popup will show some information about the highlighted text. It works like a tooltip, how can I do it? Can you give me some sample code? Please help thanks I recommend Here are some tutorials for popups: The words that highlight in the control / function, you should be able to set the required properties to show popups.

Order of evaluation of conditionals in actionscript 3.0 (Flex) -

var बीटीएन: बटन; अगर (बीटीएन! = नल & amp; amp; बीटीएन.लैबेल! = '') {Mx.controls.Alert.show ("d"); } उपरोक्त में अगर खंड, यह गारंटी है कि पहली शर्त (बीटीएन! = नल) दूसरी स्थिति से पहले मूल्यांकन की जाएगी? हां - एक्शन स्क्रिप्ट और amp; amp; ऑपरेटर के लिए उपयुक्त शॉर्ट सर्किट करता है: तो न केवल आपके द्वारा वर्णित क्रम में अभिव्यक्तियों का मूल्यांकन करेगा, यह दूसरी अभिव्यक्ति का मूल्यांकन करने में परेशान नहीं करेगा अगर पहले एक false (जो मूल्यांकन के क्रम के रूप में महत्वपूर्ण है)। एक नोट के रूप में, एक्शन स्क्रिप्ट भी इसका समर्थन करता है।

javascript - Can anyone explain the difference between closure and anonymous functions? -

I am relatively new to javascript. I understand the concept of anonymous tasks - but the closure is less clear, the similitude between both of them (at least in my mind) is misleading. Can anyone explain the difference? (Specifically, with some code snippets, to illustrate the points). Have you seen this article? It may also be good as a starting point:

Extracting UTF-16 encoded file from ZIP archive in Java -

What does the reader give me in the last section of the code but its just fake, where was I wrong? public static zero read EMPLE (file file, string targetfile) {// create zipfile input stream FileInputStream stream = new FileInputStream (file); Zip Intstream ZipFile = New ZIP Intestream (New Buffed InputTream (Stream)); // I is looking for a specific file / entry while (! ZipFile.getNextEntry (.) GetName () .multiple (targetfile)) {zipFile.getNextEntry (); } // The next API requires a reader / target file is a UTF-16 encoded text file InputStreamReader Reader = new inputstream reader (zip file, charset. Name ("UTF-16")); // I can not mean four buf [] = new char [1] of this printing; While (Reader. Read (Buffet, 0, 1)! = -1) {System.out.print (buf); }} I thought that where you were wrong, it was believed that the file was UTF-16 Encoded Can you show some initial byte values ​​if you do not decode them?

java - how to use JUNG to color & shape vertices and edges -

I am facing a problem using the corrosion I want to draw a network diagram where the meridian has different shapes And will be colored and edges will be dashed or in full line in different colors. As I am a newbie in Java, I am unable to understand the real architecture of the war when I use Settextax FillPint Transistor, it colors all corners with the same color. The corners are stored in an integer array. I am peating my head for the last one week. PLJ If you can help me or ask some counter questions, please ask me method < Strong> setVertexFillPaintTransformer moves into a transformer that changes to a vertical color. So there are different colors for different corners, you should consider it at the top. The parameter is i in the public paint transform (integer I) , so you can provide a Colors which are based on the corner (or i ). For example, if I had a graph where the vertical was a integer , then I made the following transformer setVertexFillPain

sql server - Performace and Sizes of Non-Clustered Indexes drops as size of clustering key increases? -

Excerpt from The width of the clustering is not required, however, only the affected package index Clustering keys, being aware of rows, are located in each non-clustered index. Therefore, a detailed clustering key increases the size of all non-clustered indexes, and also reduces their efficiency. Why should the databases increase in the non-clustered index size of the pointer if sizeof ( Int *) is the same as the size (four *) or is there any other addressing mechanism I do not know about? Pointer does not point to data Page: This indicates the index index. Micro, but there is no clustering index in which each NC index indicates Row ID (RID) in entry data pages. So if you have char (10) as your key, every NC indicator entry has 10 byte pointer if you have an integer, then this is 4 bytes. For four vs. int, there are other ideas: at least matching (which determines the sensitivity of case, pronunciation, kana and width). And you apply the string of 4 bytes only t

asp.net app still using old data after SSIS Package updates it -

I have an SSIS package running every 2 hours. It collects data from different DBs and stores my ASP.NET application Updates the DB. Everything is easy, but asp.net application is still using the old data, there is some kind of cached data in it. If I just open web.config, it emits the cache and uses up-to-date new data. How can I ensure that the app caps empty after the SSIS package is successfully completed? If this is your code then you should use it. If not, you can add a special ASPX page and call it with SSIS. This page can refresh the cached data.

asp.net - Tool to merge 3 CSS files -

Huge CSS files is a huge pain to merge, Hello, I have a few questions Asked the same line I tried some tools but they merge the line according to line instead of base or CSS rules. I now I thought I would right a good program to do the following: 1. Change the CSS file read XML 2. sort it based on CSS rules Now To use 3 XML files, write another program, find different sections and merge files well on the basis of CSS rules. Any time the work went out in good quantity and I hope that there should be someone who has to face this problem in front of me and it has to be resolved in a fair way. Please add your idea and suggestion, I would love to know this tool but how would I like to know / design code for such a device? Am I thinking on the right path? Thanks to all, Have you tried it?

assembly - Question about "push" and the stack -

If you push the stack several times (in a loop, for example), whether the stack grows or is past Price changed? For example, pushing EDI 5 times Is there 5 EDI in the stack? The stack keeps increasing until some OS reaches the defined limit. Then an exception is thrown. This limit is usually 256kg or even megabytes on a PC, which allows for recurrence. The EDI is not a 32-bit register, hence 5 push-EDI after 5 32-Bt value is equal to the value in EDI

Javascript: access to an object's member by name -

मेरे पास themesData नामक ऑब्जेक्ट है: var themesData = {} ThemesData.a = {कुंजी: "मान"}; ThemesData.b = {कुंजी: "अन्य मान"}; ... और मैं अपने नाम से सदस्यों में से एक का उपयोग करना चाहता हूं। मुझे एक स्ट्रिंग मिलती है जिसमें "a" या "b" होता है और मैं उचित सदस्य का मान प्राप्त करना चाहता हूं। मुझे उस पर कुछ मदद करने में खुशी होगी। themesData ["a"]। कुंजी आपकी आवश्यकता है और यह themesData के बराबर है A.key , फिर भी "सरणी अनुक्रमणिका शैली" नोटेशन आपको डायनामिक रूप से सूचकांक नामों को बनाने की अनुमति देता है।

json - Access MongoDB directly via JavaScript -

Is there a possibility to use and retrieve data from MongoDB directly on the JavaFormat browser without backend processing? Mongo DB is not basically a completely usable comfort interface, Sleepy Mongoos or Node JS based Mongo DB rest will be required Please see for more information. Mongo's inbuilt race interface is very basic & amp; read only.

sql server 2008 - have truncate and drop index better performance than drop table, create tale and create index? -

मेरे पास एक साधारण प्रश्न है: परिदृश्य: किसका प्रभाव बेहतर है ? 1) ड्रॉप इंडैक्स - & gt; ट्रंककेट टेबल - & gt; और फिर फ़िलअप डेटा - & gt; और फिर सूचकांक बनाएं 2) ड्रॉप तालिका - & gt; तालिका बनाएं - & gt; फ़िलअप डेटा - & gt; इंडेक्स बनायें मैं एक मेगनेट्स के मिलोस के साथ तालिका का उपयोग कर रहा हूं। इनमें से कौन सी प्रश्न मेरी जरूरतों के अनुरूप होंगे? दो विधियों के बीच, डेटा को लोकप्रिय बनाने और फिर यह सूचकांक 99% का समय होता है, जो ऑपरेशन करने में लग जाता है I

php - SimpleXML node attribute loop -

I'm having a problem that how do I change the following time in a while, I know how to make it a little longer But I'm working with simple XML code to throw me at all. My code receives the first or the last attribute but I need all of them. Can anyone help Lt; Php foreach (current ($ xml- & gt; xpath ('/ * / gig [last])')) - & gt; Features () as $ $} {}? & Gt; I do not know what your real code looks like, but it works: $ xml = simplexml_load_string (' gt; & lt; / gigs & gt; ); In the form of {var_dump ($ k, the current ($ xml- & gt; xpath ('/ * / gig [last ()]')) - & gt; Properties ($$ k = & gt; $ v) $ V);} Each attribute is listed, its two names ($ k) and its value ($ v)

c++ - Can a class method be both inline and static? -

क्या यह भी समझ में आता है? स्थिर का अर्थ है कि विधि किसी वर्ग के उदाहरण से संबद्ध नहीं है। (यानी इसमें "यह" सूचक नहीं है)। इनलाइन एक कंपाइलर संकेत है कि विधि के लिए कोड को इनलाइन कहला जाना चाहिए, जिसे कॉल किया जाना चाहिए एक सामान्य शाखा के माध्यम से (ध्यान रखें कि कई कंपाइलर्स इस कीवर्ड की उपेक्षा करते हैं, और इनलाइन को तय करने के लिए अपनी खुद की मेट्रिक्स का उपयोग करते हैं)। ये ऑर्थोगोनल (असंबंधित) अवधारणाएं हैं, इसलिए कोई खास कारण नहीं है कि उन्हें जोड़ा जा सके। / P>

path - C# using static variable as parameter to DeploymentItem -

I want to use a fixed variable as a parameter on an MSTEST unit test on DeploymentItem I do not think I am able to do this. An XSL file that should be copied with the DLL file, when the unit test runs, and I private static string _xslPath = Path.Combine ("MyProjectDir", "transform.xsl" ); However, when I do the following: [TestMethod] [Deployment Unit (DLL)] [Deployment Unit (_xslpath)] Public Zero XmlToResultsTest () {} I get this build error: An attribute argument can be an expression of type expression, type expression or an array of parameter type expression OK, okay, but it's so dirty to collect the path yourself Is: [DeploymentItem (@ "MyProjectDir \ transform.xsl")] Do I type Path.Combine Want to use as much as I want? Am I getting another option? I think I could simply put an XML file in the root solution directory so I did not have to pass in the project directory as part of the path. attributes can only use c

css - What is the best method to code a logo with slogan in a header? -

किस विधि का सबसे अच्छा है? & lt; div id = "header" & gt; & Lt; एक आईडी = "लोगो" href = "#" & gt; & lt; img width = "172" height = "80" src = "logo.jpg" alt = "क्लेक्क्स लोगो" & gt; & lt; / a & gt; & Lt; h1 & gt; कंपनी का नारा & lt; / h1 & gt; & Lt; / div & gt; & Lt; div id = "header" & gt; & Lt; एक आईडी = "लोगो" href = "#" & gt; & lt; img width = "172" height = "80" src = "logo.jpg" alt = "क्लेक्क्स लोगो" & gt; & lt; / a & gt; & Lt; p & gt; कंपनी का नारा & lt; / p & gt; & Lt; / div & gt; & Lt; div id = "header" & gt; & Lt; एक आईडी = "लोगो" href = "#" & gt; & lt; img width = "172" height = "80" src = "logo.jpg" alt = "क्लेक्क्स लोगो" & gt;

database - How to Add a command/SQL statement to a strongly typed TableAdapter's Update/Insert command? -

I have the following code that executes against a SQLIte database using a drastic typed dataset. messagesAdapter.Update (messages); // message a datatable var connection = messageadapter.cnation; Var Recovery Index Commands = connection.CreateCommand (); RetrieveIndexCommand.CommandText = "Choose Last_insert_rowid ()"; Connection.Open (); Var index = retrieveIndexCommand.ExecuteScalar (); Connection.Close (); This does not work as the Last_Innsor_Orid () always returns zero. This is due to the fact that it should be called during the same connection which is used by the update command of TableAdapter. How do I insert TableAdapter or update the update so that it returns the pointer? If you insert a line, you can use it: // if necessary (using var insert = (SQLiteCommand) Adapter.InsertCommand.Clone ()) {insert.CommandText + = "; SELECT last_insert_rowid ()"; Foreach (SQLiteParameter parameter in insert.Parameters) {parameter.Value = Line [parameter.

iphone - Is there a way to change the height of a UIToolbar? -

I found UIToolbar in an interface builder and I found that it is closed 44px long Of course I want to make this big Does the applet allow to resize this control? If so, how do I go about it? Sure, just set your frame differently: [MyToolbar setFrame: CGRactam (0, 50, 320, 35)]; This will make your toolbar 35 pixels tall. Of course this requires an IBOutlet or UIToolbar program, but it is very easy to do.

iframe - Javascript Execute After Page Render IE6 -

Page 6 Completely in IE 6 , But just for IE 6 testing now. Firefox looks OK). I can get around this by calling JS at window.onload : window.onload = function () {doIt ();} However, my concern is that I can overwrite anything else which may already be in window.onload . The code will be used as part of the library so that I can not guarantee that window.onload will not be set elsewhere by any other person. I will add the onload event to my function like this: window.onload + = function () {doIt1 ();} window.onload + = function } {DoIt2 ();} But when I do this, then only called doit2 () when the page is sung completely, then Is there a way to register an event handler? My second thought was to just put my code in a loop check to ensure that all the items are present before running. But I am scared that it might possibly lock the browser. For just some background information, my code is showing / showing IFrame / I know that I can use the IFrame's Ols attri