Posts

Showing posts from May, 2015

Permanent redirect of subdomains to www. in lighttpd? -

मैं cdn.domainxyz.com और ad को छोड़कर www.domainxyz.com पर domainxyz.com पर सभी उपडोमेन पथ पुनर्निर्देशित करना चाहता हूं। .domainxyz.com। स्पष्ट करने के लिए: मैं उदाहरण के लिए abc.domainxyz.com/cat.php?id=23 पर पुनर्निर्देशित करना चाहता हूं www.domainxyz.com/cat.php?id=23। मैं इसे lighttpd में कैसे कर सकता हूं # लोड mod_redirect server.modules + = (" Mod_redirect ") # सभी को www के लिए रीडायरेक्ट करें (अपवादों के साथ) $ HTTP ["होस्ट"] = ~ "^ (। *।। * * डोमेन xyz \ .com $" {$ HTTP ["होस्ट"]! ~ "^ (विज्ञापन | सीडीएन | www) \। डोमेन xyz \ .com $ "{url.redirect = (" ^ / (। *) "= & Gt;" http://www.domainxyz.com/$1 "}}} # मुख्य vhost प्रविष्टि $ HTTP [" host "] = = "Www.domainxyz.com" {server.document-root = "/var/www/domainxyz.com/"} आधिकारिक विकी के बारे में अधिक जानकारी:

events - millisecond timing in java -

In my Java application, at the beginning of the various transaction transactions of the time, let me start the calendar and then wait for hours, minutes, Getting seconds, and milliseconds gives start time. I complete the transaction, start a new calendar and receive a new hour, minute, seconds and milliseconds. My argument is that the difference between start time and end time is the time of transaction. It works most of the time, but a small fraction of time, the end time is before the start time. Why does this happen and how can I stop it? Well, one simple way of computing for one thing is the difference System.currentTimeMillis () or System.nanoTime () - This way you do not need to do anything other than just a simple subtraction, number of milliseconds between initial and end or To get the number of nanoseconds However, if your system clock is being updated with NTP or something similar, then the timing can sometimes go backwards - how the clock is handled diagonall...

dataviewwebpart - Dataview webpart to display data from multiple list across site collection in Sharepoint -

I have two site collections called SiteColl1 and SiteColl2. SiteColl1 has 1 list. List 2 is in cyclical 2. Now I want to display data from both the lists [List 1 and List 2] in the Dataweep Webpart. My DataView webpage is placed in Sitcall 1. Is it possible to do this? If so, please suggest !!!! Cheers! You can not display data from different lists in the site collection. ^^ Wrong Learn SharePoint Datatify WebPrint, or Content Query Webpursets will pull data from many lists in many places in the site collection.

svn - Changing a file tree in tortoisesvn -

We have a subversion repository that was set without the use of standard \ trunk \ tags \ branch layout and now some After years we are looking to improve this. We use turtle SVN. Our current system is that we have different subdirectories containing "Dev" folder for UI, Business Logic, etc. Ideally, we want to be a god with folders, trunk, branches and tags, then our subdirectory within the trunk folder. My plan was to create new trunks, branches and tag folders under dev folder and at the same level as our subdirectory, add and commit new folders, and then svnmove the sub-directories in the trunk folder. I can do this on an up-to-date work copy; However, we all have many local changes, and I'm afraid that when we make updates, we will get hundreds of trees conflict indefinitely. Can anyone see a better way of doing this? The only option I can see is to copy all the locally changed files from our current work copies to the new checkout of the repository and...

android - How to code ContactsContract so that it runs in 2.2 and doesn't crash 1.5? -

I have my Android app sees the code to the following piece of a contact which is id, I changed the target to 1.5 right now Given is 2.2, but with a minimum SDK of 3 (1.5) so that I can use the contact contractor in 2.2 and URI in 1.5. While running on 1.5 device code leads to the following error: 07-27 15: 02: 53.382: Warne / Delvikm (12656): Vifwai: Landroid Unable to resolve static field 25 (CONTENT_URI) in / provider / contacts; $ Contacts; With Google, I need to use the reflection in this case so that we can get permission to run the application on both versions of Android? How do I use reflection to use methods of multiple / different versions of the examples, but how can I use it in my own use where I want to use ContactsContract Uri? Here is my code: findViewById (R.id.contactimage) .setOnClickListener (new OnClickListener () {public void onClick (View v) {string sdk = android.os.build.VERSION.SDK; Uri contactUri; Log.d ( "CDA", "pressed conta...

c# - How to make a Win Service run Long Term with Threading -

I have some workflows (a WorkflowApplication and WorkflowServiceHost) in a winning service that I need to keep the long running time Is hosting Since OnStart () requires that it is completed and returned to the OS, I have a main method that sets fire on the second thread in Threadpool. My onstart () looks primarily like this protected override zero onstart (string [] arg) {eventLog.WriteEntry ("start service ..."); ThreadPool.QueueUserWorkItem (New WaitCallback (ServiceMainThread)); Thread.Sleep (100); EventLogCms.WriteEntry ("service start."); } ServiceMainThread () is the method where my workflows are executed and the main functionality is implemented. When I start the service on my Windows 7 machine, it goes about 8 minutes later. At Win Server 2008, the thread never executes. So I think I've implemented incorrectly threading and what ServiceMainThread is kinda Seki I'm open to suggestions on what can be improved or any As the direction I am...

variables - Increment a value in XSLT -

I'm quite new to xlst and if there is any way to store a value and change it later, For example, enlarging a variable in a loop I'm a little amazed because I have not been able to change the value of a set after the set, I do not understand, making it more of a constant . For example, I want to do something like this: & lt; Xsl: variable name = "i" = "0" /> & Lt; Xsl: each selection = "data / post / entry" & gt; & Lt; Xsl: variable name = "i" = "$ i + 1" /> & Lt ;! - Do something - & gt; & Lt; / XSL: for-each & gt; If someone can understand about this, is there an alternative way of doing this thanks XSLT is a functional language and among other things it means that are temporary in XSLT and once defined they They can not be of value & lt; Xsl: stylesheet version = "1.0" xmlns: How can the same effect be achieved in XSLT & Lt; Xsl: strip-space...

java - How can I keep columns of a JTable from resizing when I resize the JFrame? -

This code puts JTable in JFrame (the only component of the entire UI): GeFame Frame = New Geoffram ("title"); Frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); Jettbable Table = Appenders. CentTable (); JScrollPane scrollPane = new JScrollPane (table); Table.setFillsViewportHeight (true); Frame.getContentPane () Add (ScrollPan, BorderLayout.CENTER); Frame.pack (); Frame.setVisible (true); I also have some code to set the preferred size of the column. No fancy. When the UI opens, then the table takes the whole scene and I do not have any scroll bar, the combined preferred width of the column requires more horizontal space because the windows are wide. Despite this, there is no horizontal scroll bar and columns are very narrow. What do I have to do? Columns are still resizable by the user Respect the current width? To wit. When I change the width of a column, then the width of the other column should not be changed. table.SetOtO resismode (JT.A.To...

Does Silverlight 4's WriteableBitmap *really* cripple legit cross-domain access in the name of DRM? -

It is explained that it will be blocked to read, when any part of it comes from external domains - : Image Image Server. / P> It further explains that this is for "DRM", I think there is a big risk to writing movie rippers in Silverlight, which includes a movie from another domain and then it is captured again It is ... except that you can only rewrite the bloody xap because it comes under the wire and then it is the same domain! But this is neither here nor there. Anyway, obviously I'm trying to use WritableBitmap to export a screenshot of the user's current setup; But I have been stopped from this cross-domain problem. Is any supported way not in the latest version of Silverlight to do this? Not a cross domain .xml or clientaccesspolicy.xml? This is not crippled for the silverlight - a huge "screw you", do not stop the attackers to put half-bad security barriers in that barrier developers? Edit : This question is similar. Your emoti...

html - jQuery: how to update a div when pasting in form (like facebook) -

I have an input field where the user can paste a link as soon as the user adds the URL to the input field, I I would like to display the devils. So far, I only click on .blur and .onfocus , but only once I paste the URL out of the input field appears. This is on Facebook: As soon as you paste a link, it will load a box without reloading the page. Contrary to .blur Focus - - It starts when the specified field loses focus Note that it will not work - this field loses focus whenever it presses anything

Set list items to grow to the width of the containing ListView - WPF -

I would like to develop the contents of my ListView to get the full width available Place within ListView Currently, I have the width of the item set in this way ( ListView width = "{binding real-world , ElementName = List View, Mode = Wrench) " item ListView However, the vertical scroll bar is not kept in mind. If the scroll bar is present, then it is dragged to the top of the right edge of the item. Is it possible to fix this? I solved the item presentation by referencing it directly. To do this, I have to define a template for the viewbox and give the name of the item presentation. The template looks like this: & lt; ListView.Template & gt; & Lt; ControlTemplate TargetType = "{x: Type list view}" & gt; & Lt; Border X: name = "BD" borderbrush = "{binder buster brush}" bordertyxize = "{without border split}" background = "{templatebading background}" padding = "1" s...

SSIS DTEXEC Package Variable Space Character Not Accepted -

After I am trying to run an SSIS package on SQL 2005 using the following: dtexec / sql "\ MyPackageName" / server mssql1 / MAXCONCURRENT "-1" / checkpointing off / set "\ Package.Variables [FileFolder] .Value", "\\ SomeServer \ Someshare \ output batch \" This yield: The option "batch" is not valid. At the end of the word batch inside quotation marks, the location has given me an indication that it is probably treating the last backslash as an escape character. So I tried it like this: dtexec / sql "\ myPackageName" / server mssql1 / MAXCONCURRENT "-1" / checkpointing off / set "\ Package.Variables [FileFolder] .Value "; "\\\\ SomeServer \\ Someshare \\ Output Batch \\" This package is allowed to run, but this variable is the name of a FlatFile name for the production data When used in, it now returns the following error: WARNING: 2010-07-27 14: 36: 38.23 Code: 0x8007007B ...

Android:how use to my file -

How can I use my raw (html file) for webview? Something was said like a few days. See my answer here: (This property is about HTML files in the block, but I hope this also works for you.)

.net - C# - CryptographicException "Bad Hash" -

मुझे क्रिप्टोग्राफिक एक्सपैशन "Bad Hash। \ R \ n" प्राप्त हो रहा है जब मैं कॉल करता हूं CreateSignature । क्या यह हो सकता है के रूप में किसी भी विचार? RSAPKCS1 साइन-इनफ़ॉर्मर आरएसएफ़ॉर्मर = नया RSAPKCS1 साइन-इनफ़ॉर्मर (नया आरएसएक्र्रीपटोसेवाप्रॉवर्स ()); RSAFormatter.SetHashAlgorithm ( "SHA256"); बाइट [] हस्ताक्षरित हैश = आरएसएफ़ॉर्मर.खेलसाक्षर (मेरेहाश); आपका कोड स्निपेट नहीं दिखाता कि आप कैसे मेरे होश लेते हैं लेकिन मेरा अनुमान यह है कि यह एक 32 बाइट सरणी नहीं से: SHA256 एल्गोरिथ्म के लिए हैश का आकार 256 बिट्स है। इस तरह से अपने myHash को परिभाषित करने का प्रयास करें: (यहां सिर्फ एक बदसूरत नमूना है) // 256 बिट हैश आकार बाइट [] myHash = {59,4,248,102,77,97,142,201, 210,12,224,93,25,41,100,197, 210,12,224,93,25,41,100,197, 213,134,130,135, 213,134,130,135}; जब मैंने किसी भी अन्य आकार के हैश के साथ अपना कोड चलाया तो मुझे एक ही सटीक त्रुटि मिली 256 बिट या 32 बाइट्स से ऊपर परिभाषित सरणी के साथ चल रहा है, यह काम करता है।

iphone - Memory management when doing multitasking in iOS 4 -

According to the apple ... the app "as much as possible" of its memory footprint). I reduce the memory footprint of my app by releasing a bunch of 2D texture in ApplicationDidEnterBackground and reloading the same texture in ApplicationWillEnterForeground. Everything works for the most part Here's my question: Why do I get a SIGABRT or EXEC_BAD_ACCESS when I take my app from the background / fast? Errors occur when the app is back in the foreground (texture is reloaded). When I take the app from the background / faster, I have not received any error, how can I stop it? "Post-text" itemprop = "text"> I know this is an old question, but I should take a knife. You mentioned the issue of 2D texture. Are you using Cocos 2D operation? I had a similar issue at the beginning of this year - this issue was not with my code. It was with Kokosdaddy - it was a bug, where texture was used to load asynchronous new look at the same time Was a...

jquery - select rows in a table except the table header rows -

jquery का उपयोग करते हुए टेबल हेडर पंक्तियों को छोड़कर एक html तालिका में पंक्तियों का चयन कैसे करें & Lt; तालिका id = "mytable" & gt; & LT; thead & gt; & LT; टीआर & gt; & LT; वें & gt; फ़ू & lt; / th & gt; & LT; टीडी & gt; Lorem & lt; / td & gt; & LT; टीडी & gt; इप्सम & lt; / td & gt; & Lt; / टीआर & gt; & Lt; / thead & gt; & LT; टीआर & gt; & LT; वें & gt; बार & lt; / th & gt; & LT; टीडी & gt; डायलर & lt; / td & gt; & LT; टीडी & gt; बैठो & lt; / td & gt; & Lt; / टीआर & gt; & LT; टीआर & gt; & LT; वें & gt; बाज़ & lt; / th & gt; & LT; टीडी & gt; एमेट & lt; / td & gt; & LT; टीडी & gt; कॉन्सटेकेटर & lt; / td & gt; & Lt; / टीआर & gt; & Lt; / तालिका & gt; $ ('tr')। नहीं ('thead tr') .addClass ('चयनित')

c# - Remote desktop connection -

I am developing a remote desktop application that enables users to connect remotely to a machine that is stable IP is not how can I find a machine like this? A site is logmein.com which installs the client on the machine to allow remote desktop. I do not know what this customer does to fix this process! Thank you. I do not know LogMeIn site, but uses a server in the middle. Live Mash and Microsoft Groove use this approach. Both PCs connect to the server in the middle (the server has a fixed IP), and the server sends the signal. This will bypass all (most) firewalls, because only outgoing connections are there.

javascript editing prompt -

I am creating a web application in which I must show the user's edit signal to navigate through the page. I want to show it only when the user edits some values ​​on that page and does not save the change, then the prompt "Do you want to save changes?" Will ask. Otherwise, the prompt does not appear if it is saved. A processing signal similar to Microsoft Word / Excel informs you that you are making changes and you want to proceed. Please solve the solution faster? You can use onbeforeunload : Although support is limited because it is based on some invention of Microsoft and others have copied it. It is not possible to do whatever you want in a browser that does not support this incident.

sql - Inserting a resultset into a Table in Oracle -

Hey, I have to write a procedure that inserts a select group in a selection statement Table One of my co-workers was earlier similar to copying from one table to another, their statement was similar: can be created or process co-worker (INT in PID) Choose Table1_PROCESSED to check in Table1 as * Start ID where the id = replace PID; Delete table id id = pid; And co-workers; / The two tables mentioned here get the same structure (actually the table 1_progress is just a copy of Table 1). So I thought, "Hey! I have got a result from my selection - so I do a bit to not adjust it!" So I created my table like this: Matt: TimeID (number) | NAME (varchar2 - 128) ----------------------------------- VALUE VALUE VALUE | VALUE VALUE | Price and thus my process: can create or reproduce the process at the date myProcedure (pdate, pJobtype number in default 3, the number is in default 4 PTasktype, numeral date pJobstatus 1, default date pTaskstatus 4) as default date; Se...

Objective-C NSUserDefaults: HighScoreManager, why doesn't this work? -

My app will not save data or load data, it just crashes, I wonder what's wrong My high score manager class I am going to post .h and .m file for my class: .h #import & lt; Foundation / Foundation.h & gt; @ Interface score: NSWeb {nssting * name; NSNumber * score; } @ Property (Assign, Non-Metric) NSString * Name; @ Property (Assign, Non-Metric) NSNumber * Score; + (Score *) Score: (NSNumber *) score_name: (NSString *) name_; - (id) initWithScore: (NSNumber *) score_name: (NSString *) name_; @end @interfas highscore manager: NSOJs {NSARRA * AN; NSArray * as_; Hair load; } - (zero) load; - (BOOL) no scaurus; - (NSARRA *) Sorted scoring; - Add (zero): (NSString *) Name Score: (NSN * *) score; @end .m #import "HighScoreManager.h" @ implementation score @ synthesis name, score; + (Score *) Score: (NSNumber *) Score_Name: (NSString *) name_ [Return [[Score light] initWithScore: score_ name: name_] autorelease]; } - (id) initWithScore: (NSNumber *) Score...

jquery - best practice to use action url while calling ajax in cakePHP -

I am using AJAX in my cake PHP application with jQuery. and my javascript function is placed inside the javascript file. Now the files in my local system are placed in the "/ sample" directory, so when I call the function in ajax.js $ Post ({url: "/ sample / controller / action"}) But after hosting it the URL will be created In PHP, we get the $ html-> Url $ .post to generate url ({url: "/mydomain.com/controller/action"}) But since this code is in JS file then I can not use that function I do not want to change all AJAX action URLs manually before hosting What to do in your master template for your cake application Create a global javascript variable during your application Ensure that the goods can be sure to include it in any JS. & lt; Head & gt; ... & lt; Script type = "text / javascript" & gt; Var myBaseUrl = '& lt ;? Php echo $ html- & gt; Url; ? & Gt; '; & Lt; /...

what is the difference for java using in windows and linux. I am new to java. where can i start for programming in java -

Hey is new to Java programming. I want to know the differences between windows and Linux in Java programming. Where can I start for Java programming I appreciate any help! will be a good place to start. For the difference between Windows and Linux, if you use language correctly, then you are unlikely to face too much conflicts. It surely assumes that you can place / or \ as a path divider or a normal file system root instead of handling the file path correctly. There are some things that can not work equally well but in those cases are only relevant in rare and mostly large applications or frameworks.

perl - Redirecting the output of expect to logfile in expect -

I'm using the expectation in Perl I want to redirect all the outputs that appear in a log file on the stdout console So that I can debug it in the future. Currently I'm using $ exp-> log_stdout (0); Can I do this in the log file instead of its redirection? If so how to do it? If you are looking at the documentation, you will see information about the log session in the file Will get $ object-> Log_file ("file name" | $ filehandle | | & amp; coderef | undef) send all letters or files received from the derivative process are written. Usually adds to the logfile, but you can pass an additional mode of "w" to filter the file on the open (): $ object-> Log_file ("filename", "w"); This means use the log_file method instead of log_stdout . Your problem will be solved

html - Table coming on the Top of Div; how to bring the Table down -

I have div in html and after div and I have another div in which HTML table is the table above div How to bring it down & lt; Div id = 'testupdate2' & gt; MINIMAR: ". $ Num." & Lt; / Div & gt; & Lt; Div id = "test" & gt; & Lt; Table cells = 0 cell padding = 0 border = 0 width = "100%" & gt; & Lt; Tbody & gt; & Lt; TR & gt; & Lt; Td id = "header" class = "navUPD" & gt; My number & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td id = "tls" square = "navy" & gt; My description & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td id = "mgmnt" class = "navOFFTDUPD" & gt; ADDR. MGMT & lt; / Td> & Lt; / TR & gt; & Lt; / Tbody & gt; & Lt; / Table & gt; & Lt; / Div & gt; How to bring the table to DIV? "post-text" itempr...

Interpreting MSBuild Performance Summary Output -

I am trying to understand some performance summary output from MSBuild. The result will look like this: Target display summary: 0 MS PrepareForRun 74 calls 0 MS Compiled 74 calls ......... ... 15,173 MS ResolveProjectReferences 74 calls 29607 MS Build 75 Call Task Performance Summary: 2 MS 6 Call 2 MS ResolveKeySource 1 Call ... ... ... 3623 MS 511 Call 7468 MS ResolveAssemblyReference 74 Call 11234 MS Exec 12 Call 48600 MS MSBuild Copy 210 Call Successful Build CreateCSharpManifestResourceName . 0 Warning (s) 0 Error (s) Timeout 00: 00: 29.60 Why is the total time for MSBuild exceeding the total time spent? Actual stopwatch time was actually ~ 29 seconds to run this build. These are the summaries that I tell online that there are any examples of total tasks and target times are the same. Text after " MSBuild and CallTarget tasks include other goals (and thus other tasks) to spend those tasks The time taken is counted along with MSBuild and CAllTarget tasks. A bug,...

Reference third-party DLL in Visual Studio 2010 gives original DLL path? -

I would like to add a third party DLL to 4 from my source control, so that I do not have I have copied the DLL file ( Microsoft.Expression.Interactions.dll ), install the Expression Blend (or maybe just SDK) on my build server. Code>) to C: \ Program Files (x86) \ Microsoft SDK \ Expression \ Blend. NetFramework \ v4.0 \ libraries and the file was checked in TFS at the root of my source. However, if I reference the DLL fill ( C: \ source \ & project> project & gt; Microsoft.ExpressionInteractions.dll, copied through Visual Studio 2010 add context menu The DLL file retains the reference, but if I look at the properties window for reference, the path is the original DLL file path (i.e., C: \ Program Files (x86) \ Microsoft SDKs \ Expression \ Blend \ .NETFramework \ v4.0 \ Libraries \ Microsoft.ExpressionInteractions.dll ). If I remove the DLL, the file works fine from the blend directory, but this is not a good solution, because I have other third party DLL ...

safari - Automatic Reload on Install -

When a script is injected into a Safari extension, then this page runs on load, this means that when an injection Javascript installed will only apply to newly opened pages or pages that are reloaded later. Does anyone know how to make sure JavaScript is run without reloading? Alternatively, the users are forced to load ... it seems a bit dangerous though. I also tried to find a method to attach a script to "execute" or "install" is. Without reloading the page, it is possible in Chrome and Firefox. Unfortunately in Safari, I have not found any way to do this without reloading this page and taking care of injection of scripts to normal addContentScript handlers. To reload all the Safari tabs after the extension: reloads all tabs in / * glabal.js * / // Function reload Does TABs () {var browser: Windows = safari.application.browserWindows; (Var i = 0; i & lt; browser window height; i ++) {var tab = browser window [i] .tabs; For (var j = 0; j &...

c# - How to get data from web page? -

I want to get data from the page and put it in my mssql database. How can I read this data with ASP.NET C #? SehisID is the value of 1 to 81. Edit: My code is below. for (int i = 1; i & lt; = 81; i ++) {HttpWebRequest rqst = (HttpWebRequest) WebRequest.Create ("http://www.milliyet.com .tr / secim2009 / api / belediyelist.ashx? Sehirid = "+ i); Rqst.method = "post"; Rqst.ContentType = "text / xml"; Rqst.ContentLength = 0; Rqst.Timeout = 3000; HttpWebResponse rspns = (HttpWebResponse) rqst.GetResponse (); Form1.InnerHtml + = rspns.ToString () + "& lt; br & gt;"; } Webclient is an easy way to get the string From web page: Webclient client = new webclient (); String downloaded string = client DownloadString ("http://www.milliyet.com.tr/Secim2009/api/belediyelist.ashx?sehirid=81");

osx - triggering kevent by force -

I am using kqueue for socket synchronization in OS X. I can register an incident of interest like: Structure Pest Changes; EV_SET (and replace, connect_set, EVFILT_READ, EV_ADD, 0, NULL, NULL); Kevent (k_queue_, & amp; nbsp; changes, 1, zero, 0, zero); And the question is, is there a way to trigger this incident with force so that the wait-call will return? shutdown (2) Code> The reading side of that socket - You will get the flag (silly) in the EV_EOF , Use the timeout argument and call the same handling Use the need to break when you wait. My question though: Why do you need it? Editing: If I understand your comments correctly, then around the edge-trigger behavior ( EV_CLEAR ) for the events you write Looking for ways I believe that the proper way to do this is with un-register your socket EVFILT_WRITE , when you have nothing in the outgoing queue, then Re-register it When data is sent to send it is a bit more work, but how it works Literac...

in Flex, how to add child as first child? -

I'm adding a child: containerComponent.addChild (newComponent); But, it adds the form of the last child, how can I add new compans as a child before the Container Companent? Use addChildAt instead of addChild with index parameter set 0: Container Component.Adchilate (new editor, 0);

c# - The correct way to retrieve data from a HttpWebRespose Stream then add text -

I'm trying to retrieve a web page, by sending some text at the top of the page, sending the string. Here's an example structure of what I'm trying to do, is it the right method or is I a big number somewhere-no one? HTTP WebBurvey Request = (HTTP WebBarb) WebRequest.Create ("http://www.example.com"); Var responce = (HttpWebResponse) Request. GetResponse (); Var responseflow = responce.getResponseStream (); Streamer reader = new streamreader (responses); String feedback string = reader. Readout (); Stringbilder sb = new stringbilder (response string); Var Index = SB ToString (). Indexoff ("& lt; body"; String Communications, Invariant Culture Ignore Case) + "Body & gt; Body & gt;" Length; Sb.Insert (index, "lots of text goes here."); Console.WriteLine (sb.ToString ()); Do you have any specific reasons for using HTTP WebBrm / Response? You can optionally use the WebClient class to get the same result: WebClie...

Visual Studio 9.0 Beta Program files in C:\ -

I have several Visual Studio 9.0 Beta program files in the C: \ root directory: Eula.1028.txt eula.1031.txt eula.1033.txt eula.1036.txt eula.1040.txt eula.1040.txt eula.1041.txt e.la.1042.txt eula.2052.txt eula.3082. Install txt globdata.ini .exe install.ini install.res.1028.dll install.res.1031.dll install.res.1033.dll install.res.1036.dll install.res.1040.dll install.res. 1041.dll install.res.1042.dll install.res.2052.dll install.res.3082.dll vcredist.bmp VC_RED.MSI VC_RED.cab I VS 2008 Professional and 2010 Professional is installed. Do I need the files outlined above? No, you should be safe from deleting those files (if you are worried about it Take them to the Recycle Bin or to some other folder; then leave them for a few days and see something goes wrong.)

r - Possibly inconsistent behavior in qplot()? -

I try to use qplot () to plot as a simple time series using conspiracy I am doing X variable. POSICXLT and Y are just some continuous measurements. Here is the code with some brief comments, any help would be greatly appreciated on the basis of these figures due to these data. As you can see below, I can work around the problem, but I am curious why I do not work as I expect Some details: Platform: OS X 10.6 4 R Version: R 2.11.0 Disclaimer: I realize that I can slip into the source code and figure it out myself I never used it and thought that this platform Can be a good topic for. Disclaimer (2): I'm new to ggplot2 Library (ggplot2) ws.dat & lt; - read.csv ("~ / path / to / filename.csv", header = f) name (ws.dat) & lt; - c ("s", "t", "w") ws.dat $ new.t & lt; - as.POSIXlt (ws.dat $ t) Ws.dat [1: 5,] ## stw new.t ## 1 29522 2005-07-02 00:00:00 5.00 2005-07-02 00:00: 00 ## 2 29522 2005-07-02 00:10:00 5.29 2005-07-0...

html link in php mail -

I have the following code to send emails to users. $ mes_body = "Click to login .www.website.com/index.php\n\n"; $ Mes_body = "& Lt; a href = 'www.website.com/index.php' & gt; Click to login. & Lt; / a & gt; \ n \ n"; Right now I am looking at email as: Click to log in www.website.com/index.php What does a clickable 'click to login' and is not exactly linked I think I'm using plaintest I can not change it right now because this Can there be any remedy for this? Thank you. See Example # 4, "Sending HTML Email". The issue is that your message needs the MIM header, which marks it as HTML instead of plain text.

flex3 - Loading external .swf (projects) into a flex/flash builder application -

I am doing some research for a project that I am doing soon, and I want to make it in Flex Or Flash Builder, but I have a question. I want to create an administrative section of application for users to sign and view personal data. The remaining apps will be split into separate sections or include "Module" images, text, and quizzes, which can be chosen to fulfill the user. Over time, I will have approximately 20 modules. I am thinking that it is possible to build the main application, so each module has to load its own .swf, so users will be loading only those modules if updating a module in future If needed, I only have to change the module, not the whole application. I think that each module will be made in Flex as separate projects / flash builder, and then loaded in the main application on loading. Is this possible? Anyone have any resources? Yes, it is.

jquery - Iterate through javascript object with generated variable names -

I'm trying to iterate through a javascript object (using jQuery) in a bunch of variables, Every variable name that was returned without JSON is to be specified. I want to loop through the following elements of an object and testing their values: obj.pract_0 obj.pract_1 obj .pract_2 obj. Pract_3 .. obj.pract_100 The method I am trying to do is: for (var i = 0; i & lt ; 10; i ++) {var purse_num = ++ window ['obj.pract_' + i]; If (practice_num == 1) {var parent = '# pect_' + i; $ (Practice) .attr ('check', 'check'); }} I am getting an AN from this, but there is another way to do this? My problem is obviously var pract_num = ++ window [obj.pract_ '+ i]; and I'm not sure I'm doing it correctly. I do not need to modify the code that generates JSON, though I'm pretty sure how do I do it. window ... var obj = window ['myObj Instead of going directly through 'reference obj' ']; // If necessary...

objective c - Invalid operands to binary -

I have a method to check weather or a number is odd: - (BOOL) also number: (unsigned int *) x {if (x and 1) {return TRUE; } And {return false; }} But whenever I compile it, I receive an error: Invalid Operations for Binary% So it is compiling as a modulus function in the assembly and is failing in any way, but if I use a modulus based function (arguably slow) then I get a single error! Help me overgrowth thanks - Oli X is an indicator that the modulo operator will not work on the indicator. Return (* x & 1); This points to the pointer, then returns the result of the module (putting the implication in a bell)

Suggestions for passing large table between Python and C# -

I have a C # application that needs to be run several thousand times currently at the beginning of the run for this reference. A large table precomputes Since these values ​​will be equal to running, I want to calculate independently in a simple dragon script and then c # apps import the file at the beginning of each run. Simple (int x, double y) in the table, I would like to store the ordered 2D array (500-3000 + rows / columns) of Tulips and then the best / simplest way to import this data. I am looking for recommendations. For example, I have the data "" (x1, y1) in a text file. (X2, y2). (X3, y3). ... | (Xn, yn) such as "a very ugly solution for a problem that lends itself to a specific data structure or library. I am currently unaware. Any suggestion will be welcomed. I have to go for a simplified CSV file. Given that all of your values ​​are numbered, you have them in C # P> Read in the file. Read all the text (filename). Spit (',') You c...

Export or save html source including iFrame's html -

The HTML in Firebug displays the full HTML of the page in the HTML view, which includes the HTML of the IFrame. Is it a way to save the same HTML view or use the other FF extension to save the full HTML? That means the saved file will have HTML, body and rest domains for iframe. I know that I can see and save the HTML of the individual IFr्रेम, but I want everything in a file. You can crawl the DOM for all iframes and then from each url in the src attribute of the iframe Can httpRequest to capture dom

php - Numeric order when returning results from MySQL -

I have the following types of titles in my DB table: Topic 1 Blank topic 2 Blah blah theme 3 blah blah ... topic 10 blah blah blah blah blah blah blah ad ... The selected question will always return the result in this way: ... except topic 2, subject 3 etc ... until all the teenagers will get me Topic 2 etc ... How can I get my results? topic1 topic2 topic3 ​​ .. .. all the ways of topic 9 and only after that the subject can be 10? This is your problem Database design topic number should be stored as integer if you are not design , Then try this query instead: Select from the table 1 order from the CASE title (SUBSTRING_INDEX (title, '', 2), '', -1) Unnecessary); Result: 'Topic 1Foo' topic 2 times '' subject 10 buzz '' Test data : drop table table table 1; Create Table Table 1 (title VARCHAR (100)) Faucet; Include table 1 (title) values ​​('theme 1fu'), ('subject 2 times'), ('subject 10...

is it bad convention to call sys.argv from somewhere besides main function in python -

I am writing a script and I have a function, call it f () , Which needs one of the command line arguments (a filename that needs to be opened) However, in the main code f () is not directly called I'm thinking Was it bad coding conference to call sys.argv [1] directly to f () ? If I do not, then I have to give it all the work in the form of an argument which ultimately call f () . It would be a bad practice to always believe that the needs of your function are available on the command-line- What if this code was implemented in any other way? A function should declare the input parameter for the data that it needs. Logic in f () instead of accessing the required sys.argv at the very least, f () Helps make more reusable.

php - Trying to get Product Name and product ID into url with slash at the end and in between without ?p= -

I think the title says almost all. My original URL looks like this: http: //www.something.com/buy/index.php?p=225823 .htaccess I Using the looks like this: Option + follow link rewrite on the rewrite of the engine% {REQUEST_FILENAME}! -f Rewrite Convert% {REQUEST_FILENAME}! -d RectitRule ^ (\ d +) * $ ./index.php?p=$1 resulting in the url: http://www.something.com / Buy / 025823 I would like to end with a URL: http: //www.something.com/buy/Product name / 025823 / Can anyone help? Especially a Gumbau Fellow! If you can control the links on your / buy / > Enter the product name of the URL in the page, url (keeping the URL rules in mind, such as the blank space is not allowed. Generally people use a - option for the spaces Are). Then revise your rewrite regex to ignore the product name part of your URL. Revoirebase / Rev. Raul ^ / buy / (. +) / (\ D +) / $ ./index.php?p = $ 2 If you can not control the link, then things get more complicated because yo...

html parsing - Distingushing features of a blog, i.e deference between a blog and a normal site -

I'm looking at things that can distinguish a blog from a general website. These are things that a website should be able to identify HTML or any special features of a website that supports a site. Pings for example News is the same for websites. I am working on a blog / news monitor program and it will automatically determine index sites to determine whether it is a blog or a news site and then comments on user comments etc. Monitors. Posts from sites that determine a blog or news nature. That is why I am actually in the know how I can use these sites to identify. This is going to be a desktop app written in Java, so if you have a code specification in Java that would be great. Thanks in advance You can search the page for the word "blog" , Because it probably will be present. In particular, you can search it in some parts of the HTML page, or you can skip the parts like links. This will give you a good starting point. Finally, however, it is something ...

session - Maintaining state between browser tabs in PHP -

I am creating a web application that allows users to run a query against one of two databases . They are allowed to submit 1 query to each database only at one time. Currently, I'm setting $ _SESSION ['Running Advanced Quality'] (for example) to tell me whether they are running a query, open another browser tab and kill the resource again It does great work except it ... If I start a query in a tab, then close that tab before it ends, the flag is not unset. So, if I open the page again, then I can not put any questions because it thinks that I still have one running. Is anyone advised to be around this? Do not set this value for example, but for the Unix timestamp, and so far the last query -Tymestamp is investigating, setting some time difference that should go to execute the next query. Reminder to set block-time for secure value - The longest query that can be executed. If the user closes their tab, then it will be "unlocked" shortly afterwards.

c# - How to provide a readonly Collection that implements INotifyCollectionChanged -

क्या एक एन्युमरणीय & lt; SomeType & gt; या संग्रह प्रदान करने का एक प्रभावी तरीका है, जो InotifyCollectionChanged करता है लेकिन कि केवल प्रदान वर्ग के अंदर से ही बदला जा सकता है। निम्न उदाहरण से पता चलता है कि मेरा क्या मतलब है, लेकिन इसका नुकसान यह है कि कॉलर IEnumerable & lt; SomeType & gt; वापस कर सकता है और फिर मेरे आंतरिक संग्रह में हेरफेर कर सकता है, जो वास्तव में नापसंद होता है: सार्वजनिक वर्ग डेमोक्लस {अवलोकनकॉल्क्शन & lt; SomeType & gt; M_collection = नया अवलोकनकॉल्क्शन & lt; SomeType & gt; (); सार्वजनिक IEnumerable & lt; SomeType & gt; SomeTypeInstances {get {return m_collection;}} निजी शून्य Amethod () {// यहां मैं m_collection के साथ काम कर सकता हूँ}} क्या कोई आसान तरीका है, शायद ऑब्सर्वबल कॉलेक्शन के साथ, या यह IEnumerable & lt; SomeType & gt; और INotifyCollectionChanged को लागू करने वाला एक आवरण लिखने के लिए आवश्यक है और फिर गंतव्य के लिए संग्रह- evnets अग्रेषित करना? उपयोग करें।

java - Skipping nodes with sax -

Is it possible to leave nodes when parsing and how, this skippedEntity Does anyone have anything to do with this? Consider this XML: & lt ;? XML version = "1.0"? & Gt; & Lt; Nutrition & gt; & Lt; Daily values ​​& gt; & Lt; Total Fat Units = "G" & gt; 65 & lt; / Total-fat & gt; & Lt; Saturated fat units = "live" & gt; 20 & lt; / Saturated fat> & Lt; Cholesterol Units = "MG" & gt; 300 & lt; / Cholesterol & gt; & Lt; Sodium units = "mg" & gt; 2400 & lt; / Sodium & gt; & Lt; Carb units = "live" & gt; 300 & lt; / Carb & gt; & Lt; Fiber units = "live" & gt; 25 & lt; / Fiber & gt; & Lt; Protein units = "g" & gt; 50 & lt; / Protein> & Lt; / Daily values ​​& gt; & Lt; / Nutrition & gt; I leave the text "itemprop =" text "> after the...

Strange Java HashMap behavior - can't find matching object -

When trying to find a key inside java.util.hashmap , I face some strange behavior , and I think I'm missing something, the code segment is basically: hashmap This is strange for the loop because specific performance causes me to know that data is only one item at this point And it is k1 , and in fact the value of bool2 , bool3 and bool4 evaluate true In that execution, bool1 , however, will be evaluated for false , and v will be zero. Now, this is part of a big program - I could not reproduce the error on a small sample - but even then I think that there is nothing that the rest of the program does That is, this behavior should never happen. Edit: I have manually verified that to mash that object has been changed between that time when the hash code No changes and that time was examined. I will check this site, but is there any other option? This behavior can occur if Example: public square key {int hashCode = 0}; @ Override Public Ent ...

Map a caps lock key that is mapped to ctrl system wide to Escape just in vim -

I map the map of my caps lock to ctrl with the command given below Linux: Setxkbmap -option ctrl: Nocaps I really like this mapping and want to keep it, but I want to map the caps lock key to avoid being in the app. But when I call it : map & lt; C & gt; & Lt; Esc & gt; or does not seem to work like this, possibly because the ctrl key is special and another key is needed to trigger an important event Is there any way that I get the above Can i do No controls on hardware, OS levels, changes and Alt key are handled differently - They do not generate the encoding, but add the modifier to the keycode generated by the other key, that means they can not be mapped within the vim.

c# - Couldn’t attach to manually started Firefox 3.6 browser using WatiN 2.0 RC1 -

When I start Firefox manually and then try to attach to the browser. AttachTo (Find.First ()) method, the exception in this result "no Firefox window could be found ..." But when I start Firefox in the console application before this console: New Firefox (@ "") And then try to attach it to the browser in this second console application. Attach uses the first (search) method, it works! Can anyone explain to me why this happens and how can I start Firefox browser manually? Win XP SP3, Firefox 3.6.8, JSSH-3.6-Wint XP WATIN RC 1 2.0.20 Watan uses Firefox JSSH plugin to communicate with Firefox is. Whenever you launch Firefox manually, JSSH is not activated. To launch firefox manually, to tell you how to start Firefox JSSH, Firefox. Must use xi-jssh. When WATIN launches Firefox, it automatically does it for you, which is why when you launch Watten in Firefox, but when you start the browser manually Does it work.

What is the difference between lists and tuples in Python? -

कौन सा अधिक कुशल है? प्रत्येक के विशिष्ट उपयोग क्या है? सूचियां अस्थायी अनुक्रम हैं, जिसमें बहुत से और कई तरीकों (दोनों उत्परिवर्तित और गैर-उत्परिवर्तन वाले लोगों), जिन्हें अक्सर सामान्य प्रयोजन के कंटेनरों के रूप में उपयोग किया जाता है (उनकी वस्तुएँ किसी भी प्रकार के ऑब्जेक्ट हो सकते हैं, हालांकि कभी-कभी सूचियों के लिए बेहतर शैली माना जाता है ताकि ऐसी वस्तुओं या प्रकार के आइटम हों समतुल्य रूप में प्रयोग किया जाता)। tuples, अपरिवर्तनीय दृश्यों रहे हैं बहुत कुछ तरीकों (सभी गैर-परिवर्तनशील विशेष वाले), कि सबसे अधिक बार उपयोग किया जाता है जब आप एक में एक आइटम के रूप में एक कंटेनर का उपयोग कर के प्रयोजन के लिए अचल स्थिति की जरूरत के साथ सेट या एक डिक्शनरी में एक कुंजी (हालांकि आइटम को अपरिवर्तनीय होना चाहिए - उदाहरण के लिए स्ट्रिंग्स, नंबर या अन्य नेस्टेड ट्यूपल्स, इसके लिए काम करना है)। उनके आइटम किसी भी प्रकार के ऑब्जेक्ट्स हो सकते हैं और ट्यूपल्स के कई अलग-अलग और अलग-अलग प्रकार के मदों के लिए यह पूरी तरह से सामान्य है। कुछ मामलों में या तो एक ट्यूपल या एक सूची बस के रूप में...

javascript - HTML select field updating another -

I am trying to create a webpage to merge vendors in my database and thus with two selected fields One page is: Actually, when you select an option in the first field, it should be disabled or removed from another area, I could just solve this list by recapitalizing it, but it seems That's what I'm trying to achieve. That being said, I have yet to find a way to do this with javascript or jquery. Your other similar & lt; Select & gt; In , I have changed the ID attributes to end with the number 2 . Then you can easily do something like this: Try this: $ ('# vendor_select_from' ). Change (function () {var selected = $ (': (' disabled ',' disabled ') .siblings (). RemoveAttr (' disabled '); var $ select2 = $ (' selected ', this) [0]. Id = 2; $ ('#' # # vendor_select_from2); if (selected: == $ (': selected', $ select2) [0] .id) {$ select2.val ('');}}) Trigger ('change'); H...

php - Multiple Controllers from a single view -

I have recently started with cake php and so far I love it, especially scaffolding and bake . I am creating a webfatch that will manage apps for companies. (I.e., where I have applied, whom I have spoken with, the status of the application, how long before I have received / received in relation to this application). My Close is an ideal application and an action model. An app has multiple verbs When you add a new application, it does not seem to add an action to add the app "bus". Is there any way to add views to connect my applications with two controllers and add actions and applications together? Please tell me whether my problem is understood or if you need more clarification Thank you. Yes, you can see it.

java - PostgreSQL JDBC - can drop but not recreate indexes -

I am looking for an answer, but there is no luck yet ... I want to I am postgrassacl guide: Reading '13 .4 demographic database ', it suggests removal of index and foreign key barriers to speed up coop operations. I am attempting to complete bulk operations on a database, using JDBC statements, I know that I can leave the index without any issues, but the database's After the apprehension, there is a problem of reproducing them. I think I am making a 'syntax error' with 'or' in the name of the index I am making: statement stmt = connection.createStatement (); String Query = "Create unique index type_uk on cell (field 1, field 2, field 3, field 4) WHERE field 3 and field 4 is not NULL TABLESPACE lcindex"; Stmt.executeUpdate (query); Connection.commit (); If I execute this query in psql, then it successfully indexes, so I'm a bit confused ... Any help, insights, Suggestions, etc would be greatly appreciated :) Thanks in advance. ...

pseudocode - pseudcode for minmax algorithm -

I want to receive pseudododode for the Minmax algorithm. I have to make 2 functions, DEF MaxAgeent (gamestate, depth) and minajent. Is there a body that has the right and easy proxy for it? Two players, A and B, change to move. We are given a scoring function that evaluates the position of a given board, p. Large values ​​of F (P) are better for A and better for B (i.e., F) Consider the position of a board P if P is a leaf node (i.e., P. is a winning position or we look forward to as much as we want), then we return f (p) to this node as a score. Otherwise P is not a leaf node and children of C1., CN. We continually calculate the score for children I, S1, ..., Ausan. If there is drama in P, then the score for P is a maximum of {S1, ..., Ausan} because A. always will be maximizing your profits. If BP plays on, then minimum minute {S1, ..., Ausan} for P will be because B will always run to reduce A's profit. > It should be enough to change the code. Once you...

Why sometimes Firebug won't show list of Javascript files to set breakpoint? -

उदाहरण के लिए, अगर मैं पर जाता हूं और फायरबग पर जाएं और स्क्रिप्ट को सक्षम पर सेट करें, और क्रोम स्रोत और स्थिर, eval और event script दिखाएं, अब भी कोई फ़ाइल नहीं है सूची को दिखाया गया है ताकि मैं उन्हें देख सकूं और ब्रेकपॉइंट सेट कर सकूँ। एक और परियोजना में, मैं कर सकता था क्या कोई कारण है? jQuery का AJAX इंजेक्शन स्क्रिप्ट कार्यान्वयन एक तकनीक का उपयोग करता है जो मोज़िला फ़ायरफ़ॉक्स का समर्थन नहीं करता डीबगिंग के लिए फायरबग इंजेक्ट किए गए लिपियों के बारे में कोई सूचना नहीं देता। यदि आप बस eval () का इस्तेमाल करते हैं तो यह काम करेगा।

c - Detecting Cache Misses and Hits Pragmatically in Linux -

I know this is a platform-specific question, however, I want to see some run-time analysis of an application Cash recall and hit I know that Cachegrind, a device of Valgrind, and vtune, and other profiling utilities have a very existent, however, I'm interested in implementing my own version of Cash-Missed Detection I know cachegrind Cash-sim Without serves as Uletr separating the kernel, I can find out how cash-Miss practical? I have a feeling that user-land is almost impossible for application, but I had to ask anyway. How can I detect cash-miss practically [without cash simulation] Am I Cache is managed by hardware - not the kernel, their parameters (cache, size, kick-out policy, list-back / list-through, etc.) all processor implementation-specific Are there. As a programmer, you should not "know that they exist" In this way, it is impossible to measure cash-missed performance without a cash simulation. On the other hand VM page (one lot roughly ...

I want to extract data using jQuery XML parsing tools, but it doesn't work and seems to block when it comes to ".find('...').each(..." -

This is my code: I followed it which I suggested to do on a web site and The script finished with me is not working properly! And even firebug does not show any errors. Data type: "XML", complete: Function (data, position) {var products = data. ResponseXML; $ (product) .frame ('product'). (Function () {var id = $ (this) .attr ('Id'); var name = $ (This) .find ('name'). Text (); var value = $ (this) .find ('value'). Text (); alert ("id:" + id + "; name:" + Name + "; value:" + value);});}});}); Here is the XML file: I have also added the same thing as their example: Every time it reaches "$ (xml)", then everything is being blocked .Fund ('...'). Each (function () {}); "And I can not seem to be able to find a way to solve. Any help will be appreciated. Thanks guys. var products = data.responseXML; jQuery already responds to XML: var ct = xhr .getResponseHeader (...

web.config in asp.net -

I want to give the username, password, and API's value in web.config that is coming from the database. Set username, password, APIkey, which is to be set in web.config Private Zero UpdateConfig (string strkey, string strValue) {configuration objConfig = WebConfigurationManager.OpenWebConfiguration ("~"); AppSettingsSection objAppsettings = (AppSettingsSection) objConfig.GetSection ("appSettings"); If (objAppsettings! = Null) {objAppsettings.Settings [strkey] .Value = strValue; ObjConfig.Save (); }} But every time you update the web.config file, your application will restart the domain, so updating the web is not often configured. View Pls:

how to use Event interface in blackberry -

यह प्रश्न एक सटीक डुप्लिकेट है: 1 उत्तर मैं एक चेतावनी शेड्यूल करना चाहता हूँ यूजर द्वारा गेटिव्युलर तिथि पर निर्दिष्ट उपयोगकर्ता द्वारा, मैं डेटाबेस में तारीख को संग्रहीत करता हूं, कैसे इवेंट इंटरफ़ेस इसका इस्तेमाल करता है .. plz मुझे ब्लैकबेरी में कोड को नया भेजता है .. बहुत बहुत धन्यवाद ... नीचे दिए गए लिंक की जांच करें, हो सकता है कि यह आपके लिए उपयोगी होगा

c++ - File browsing application in vc++ -

I am creating an application in vc ++ I want to browse my file system and select some files. I am Can anyone tell me how to do it? Thank you. Find Firstfile & amp; FindNextFile window APIs are your friends.

asp.net - How to slice paging for every 5 pages -

"postprint" itemprop = "text"> I just want to cut paging of every 5 pages because there are too many pages so paging of the bottom is also crowded Are there. int category = id = convert toint32 (request .jQueryString ["id"]); Using (HEDataContext db = new HEDataContext ()) {var productlist = (p) in p.kategori_02_id == kategoriId select new {id = p.ID, name = p.Name, Bilgi = p.Bilgi , From IMG1 = PIMG1, IMG2 = P. IMG2, Calculation = DB. KTAGORI_03.Count ()} Leave (PG * 9). Take it (take); PagedDataSource page = new PagedDataSource (); Page. Approved custom paging = true; Page. Approved promotion = true; Page.DataSource = productList; Page Page size = 9; DLProductsList.DataSource = productList; DLProductsList.DataBind (); If (! IsPostBack) {CreatePagingControl (); }} Public Zero CreatePagingControl () {int totalPageCount = (CountTable () / 9) + 1; Int id = convert. ToInt32 (Request.JQueryString ["id"]); Int pg = Convert.ToInt32 (Request.J...

What`s the diff between ruby 1.8.7 and 1.9.1 in module require? -

एक मॉड्यूल है 'iconv' मॉड्यूल की आवश्यकता पलायन def escape (string) return_value = Iconv.conv ('ascii // translit // IGNORE', 'utf-8', स्ट्रिंग) .to_s एंड एंड यह 1.8.7 में काम है लेकिन 1.9 में नहीं है 1। त्रुटि संदेश है "NameError (uninitialized निरंतर भागने :: Iconv)" और अनुसरण 1.9.1 में काम है, क्यों ??????? (मेरा रेल उबंटु में 3 रेल है) मॉड्यूल एस्केप डीईएफ़ एस्केप (स्ट्रिंग) की आवश्यकता होती है 'iconv' return_value = Iconv.conv ('ascii // translit // IGNORE', 'utf-8 ', स्ट्रिंग) .to_s एंड एंड रेल के लिए 1.9.1 का उपयोग न करें , इसके बजाय 1.9.2 या 1.8.7 का उपयोग करें। टिप्पणियों में यहां पढ़ें:

SQL Server - Special characters not recognise by PHP (ODBC) -

I am trying to display some information from my PHP site from SQL Server. I am using an ODBC connection for that one My point is: special characters are not being identified and it is displaying "question marks (?)" In my site (this is my second ASP works in the site) What am I missing here? Please help me Thanks in advance I use some special MSSQL query converter and then ICONV in PHP side like this: select cast (comments as text) comments from r_table; And in PHP, this code is in codepage 1255: iconv ('CP1255', 'UTF-8', $ comment); Hope that helps.

c# - Convert char Array/string to bool Array -

This field shows a true / flag flag for every day of the week in our database which looks like this: '1111110 ' I need to change this value into an array of Boolean. For this, I have written the following code: char [] freqs = day of week frequency. Cochrane (); Bull [] = Days of the week enabled = new Bull [] {Convert. Toulion (free purse [0]. Toaster (), convert.Toolian (int. Purse [1] .restring ()), Convert ToBoolean (int.Parse (freqs [2]. Two string () Convert to.ToBoolean (int.Parse (freqs [5]), convert .tooboan (int. Purse [3] .restring ()), convert.Towlian (int. Purse (freeze [4] .tostring () Toast (), convert toBoolean (int.Parse (freqs [6]. ToString ())}}; And I like this because of many conversions in this way I look for a lump . What would be the ideal / clean way to change this fixed length string into a bull's array? I know that you have given it a for-loop But the volume of days in a week will never change and therefore I think it is a more...

sql server 2008 timeing related -

I have to find out what will be the time in India when the clock will be 1 AM at night in any other country. It will know that in any way, it helps me to know that it is to fire the birthright festivals at 1 p.m. of that birthplace ... then I have the following DECLARE @indianTime DATETIME - - = SYSDATETIMEOFFSET () DECLARE @timeZoneOffset NVARCHAR (6) = '+01: 00' SELECT SWITCHOFFSET (SYSDATETIMEOFFSET (), @timeZoneOffset) This gives me the current time of that country But I want that Watt will be the time when the country will have MDRA 1AM time ... using IAM SQL Server 2008 What your code does (at least, this is in my SQL 2008). There is some way to trigger your query in real time (maybe some work is running per hour), or some helpful tables. To add more details to your problem, other codes you already have, and so on, will help us assist you.

Execute a bash function upon entering a directory -

When I enter a new directory, then I want to execute a special Bash function. Something like: alias cd = "cd $ @ & myfunction" $ @ is not working There, and adding a backslash does not help. I'm also a little worried about messing with the CD, and it would be good if it works for another command which can be found in the pushd and The directory like popd was changed. Any better aliases / commands The easiest solution I can come up with I myfunction () {if ["$ PWD"! = "$ MYOLDPWD"]; Then MYOLDPWD = "$ PWD"; #striteyier stuff here .. fi} exportable PROMPT_COMMAND = myfunction should do this. It will work with all commands, and the prompt will trigger before the display is displayed.

c - Flipping sign on packed SSE floats -

I am looking for the most efficient way to flip the sign on all the four floats packed in the SSE register. I have not found any internal input to do this in the Intel Architecture Software Dev manual. Below are the things that I have already tried For each case, I omitted the code 10 billion times and indicated the timing of the wall I am trying at least 4 seconds , It takes my non-SIM approach, which is just using the unique minus operator. [48 seconds] _mm_sub_ps (_mm_setzero_ps) (), Vec); [32 seconds] _mm_mul_ps (_mm_set1_ps (-1.0F), VCC); [9 seconds] Union negative mask {int intRep; Float flip rip; } NGMsk; NegMask.intRep = 0x80000000; _mm_xor_ps (_mm_set1_ps (negmask.fltRep), vec); The compiler is with GCC 4.2-O3. The CPU is an Intel Core 2 Duo. Just about the underlying vectors to complete their answer through the GCC documentation: This type of defined type can be used with a subset of normal operation. At present, GCC will allow the followi...

nhibernate mapping - hibernate generator tag -

Hibernation of the generator tag is the exact purpose of 'original' in the mapping file (I know that using the generator tag, it will be html> Regulate primary key values ​​...) ..................... It uses the generation strategy that is most suitable for the database: Basic - Identification based on the abilities of the underlying database, Selection or halo chooses. The reason is that there is no identity type that is common to all databases. In a case where the database does not support the int / long identity type, the Hi / Lo generation strategy is necessary, which is the hibernate generated id. If you know the specific database with which you are working, you can name a specific identifier generation plan to use. But for cross-DB development, using native means that the app has more chance of being portable in various DBSs.