Posts

How is the best method to generate a url with ASP.NET? -

मैं इस विषय में आपकी help को सराहना करूंगा। मुझे एसईओ पोजिशनिंग में सुधार के लिए url rewriting का उपयोग करके मैत्रीपूर्ण यूआरएल के साथ एक साइट बनाने की आवश्यकता है। मैंने Torought वेब खोज रहा है और अंत में इस दो मुख्य विकल्पों की ओर इशारा कर रहा है: आईएसपीआई एक्सटेंशन के साथ एएसपी। नेट एएसपी .नेट एमवीसी हालांकि, मुझे दोनों मदों पर कोई अनुभव नहीं मिला है, इसलिए मुझे इस दो तकनीकों के बारे में और आगे बढ़ने के लिए मेरी जरूरतों के लिए सही निर्णय लेने के लिए आपकी सहायता करने की आवश्यकता है। धन्यवाद मान लें कि आपके पास मेजबान / सर्वर जो कि asp.net MVC (यानी एक है जिस पर .NET Framework 3.5 सर्विस पैक 1 स्थापित है) चला सकते हैं, आप एक वेब प्रपत्र वातावरण में ASP.NET MVC से रूटिंग इंजिन (System.Web.Routing) का उपयोग कर सकते हैं, फिल हैक के पास एक अच्छा अद्यतन walkthough है। एमएसडीएन पर भी है। एक आईएसएपीआई फिल्टर के विपरीत, यह आपको रूटिंग इंजन का उपयोग करने के लिए अपने आंतरिक लिंक के साथ-साथ जवाब देने में भी सक्षम बनाता है बाहर से अच्छी तरह से बनाई गई लिंक्स...

css - Two separate background images -

I have to create images with two backgrounds of my page: one on the other side at the top. I do not want them static, though. How do I do this? It really depends on what you need for a page and what's background images If you want to Solution , then you have to post in more detail with a composite image which should be visible to the page and an example of its own pictures. said that there are only one way: html {backgoround: trasnparent url (/ path / to / image) scroll no-top head center;} body {backgoround} : Trasnparent url (/ path / to / other-image) scroll no-noct Thomas Center;}

flash - How do I reverse my sound volume math for my volume slider? -

I am creating a video player and I have stopped a bit in the volume slider section. If the slider should be 100% in the volume of the top spot and if the slider is dragged to sound down position should be 0. Currently it is the opposite of what I want it to have a YouTube-style vertical slider, which means: ( , will sound louder drag the slider down, while pulling up it lowers. the volume is my code below dealing with the slider. // sound controller set NGC ······························ soundController = new soundController (); soundContrColor = soundController.colorChip; soundContrGray = soundController. GrayCover; soundContrGray.visible = false; soundController.visible = true soundController.buttonMode = true soundController.soundSlider.addEventListener (MouseEvent.MOUSE_DOWN, sliderDown); // SoundController button mouse events ··········· public function Slaiderdaun ( event: Mausivent): void {soundController.sound Slaiderktartdrag (false, Dragbond); sound controller. Soun...

c - malloc behaves differently on different machines -

I see completely different behaviors while running a part of the program that tries to cross the RSS on different machines. The code is something like this: ... char ** s = (char **) malloc (10000 * size (four *)); For (i = 0; i & lt; 10000; i ++) {s [i] = (four *) molk (1000 * 1000 * size (four)); If (S [i] == NULL) {printf ("s [% d] can not allocate memory"), i); Exit (1); }} Int j = 0; While (1) {for (i = 0; i & lt; 10000; i ++) {for (j = 0; j & lt; 1000 * 1000; j ++) {s [i] [j] = 1 ; } If ((i% 100) == 0) printf ("i =% d \ n", i); }} For (i = 0; i & lt; 10000; i ++) free (s [i]); Free (s); ... The above code attempts to allocate approximately 10GB of memory using malloc. The first two machines tried to run this code on Linux kernel 2.6 and the previous one ran the Linux kernel 2.4. Here are the behaviors I see on these machines: Machine1: Memory is allocated using the memory of redundancy, but when assigning a value to memory locations...

c# - Best way to take all querystring pairs and init a dictionary -

I want to store all key / value pairs in my query string: Www in a dictionary example.com/?a=2&b=3&c=34 is there a quick way to do this that to take a ride manually through all the objects is? Try HttpUtility.ParseQueryString () . This returns you the NameValueCollection of your keys and values.

R from within Java -

What is the best way to call R functionality from Java? I am exploring a quick, easy and reliable way to create standard 2D scatter plots and histogram using my Java applications. I was thinking that it would be most convenient to use the packages / interfaces in the quick Google search. I look forward to your suggestions! Use JRI :. It comes bundled with RJVA, which includes some examples of usage. A very simple example would be: import java.io. *; Import java.awt.Frame; Import java.util.Enumeration; Import org.rosuda.JRI.Rengine; Import org.rosuda.JRI.REXP; Import org.rosuda.JRI.RVector; Import org.rosuda.JRI.RMainLoopCallbacks; Public class rJavaTest {public static zero main (string [] args) {roengin ray = new regin (args, false, new text console ()); REXP x; Re.eval ("print (1: 10/3)"); Println (x = re.eval ("iris")); RV Actor V = X.Asactor (); If (v.getNames ()! = Null) {System.out.println ("names are:"); (Mathematics E = V.Getnam ()...

wcf - ReadAsDataContract exception while reading namespace -

I'm trying to use Twitter's Rest API using the WCF Rest Starter Kit. I am using the same object in the data content described in the article. [Collection Data Contract (name = " Status list, "Item name =" status ")) Public category status list: list & lt; condition & gt; {} public class user {public string id; public string name; public string screen_name;} public class status {public String id ; Public string text; public user user;} I am reading XML content using the RedAs Data Contract () method. HTTP client http = New HTTP client ("http://twitter.com/costs/"); Http.TransportSettings.Credentials = New network credentials ("{user name}", "{password}"); HttpResponseMessage resp = http.Get (" Friends_timeline.xml "); resp.EnsureStatusIsSuccessful (); Status list sList = resp.Content.ReadAsDataContract & lt; positioning & gt; (); I get the argument that I have not defined the following names...