Posts

Showing posts from February, 2013

Catch browser's "zoom" event in JavaScript -

Is it possible to use JavaScript, when the user changes the zoom in the page? I just want to capture a "zoom" event and want to answer it (similar to window. Theorem event). Thank you. There is no way to actively detect how much zoom is. I got a good entry on how you can try to implement it. I have found two ways to find the zoom level. One way to detect zoom level changes depends on the fact that percentage values ​​are not zoomed. One percent value is relative to the width of the viewport, and thus unaffected by page zoom. If you insert two elements, with one place in one pixel position and one place in another pixel, they will separate the page after zooming. Find the ratio between the positions of both the elements and you get the zoom level. See test case You can also do this by using the above posting tool. The problem is whether you have more or less readings about whether you have been zoomed or not. This will work better in some browsers than the oth

emacs - Org-mode from git, problems with tables -

I recently downloaded the git version of org-mode to use the markdown export It seems to work, as long as I do not have a table when I have a table in the file, I have always found the following message: The function definition of the symbol is zero: org- Table-start I also get that message when I want to use the table, such as the tab key Widget or anything My configuration is very simple: ; ; Insert the load-path into the organization-directory (add-to-list 'load-path' ~ / .emacs.d / elisp / org-mode / lisp ") ;; activate the markdown export mode (eval-after-load "Org" '(required' ox-MD nil t)) Do you have any ideas? I have the latest version of git repository master. A stupid answer to the silly question. I was using the organ-mode repository, I git drag sources, But i generate files Was to forget to run make I just make and solved my problem.

javascript - what's the difference with hasOwnProperty and in? -

जब मेरे पास var user = {name: 'Bob'}; अंतर निम्नलिखित निर्देश का उपयोग करते समय? localuser = user.name; स्थानीय उपयोगकर्ता = 'नाम' में है? User.name: 'bob'; Localuser = user.hasOwnProperty ('नाम')? उपयोगकर्ता नाम: 'बॉब' उदाहरण: < कोड> var o = {'foo': 'बार'}; Console.log (ओ में 'कन्स्ट्रक्टर'); // TRUE console.log (o में 'foo'); // TRUE console.log (o.hasOwnProperty ('कन्स्ट्रक्टर')); // FALSE console.log (o.hasOwnProperty ('foo')); // TRUE हैओवनप्रोपेर्टी ऑब्जेक्ट से उतरने वाला प्रत्येक ऑब्जेक्ट hasOwnProperty विधि को प्राप्त करता है। यह विधि यह निर्धारित करने के लिए इस्तेमाल की जा सकती है कि क्या किसी ऑब्जेक्ट को विशिष्ट ऑब्जेक्ट की प्रत्यक्ष संपत्ति के रूप में संपत्ति है; ऑपरेटर के विपरीत, यह विधि ऑब्जेक्ट की प्रोटोटाइप श्रृंखला को जांच नहीं करता है। इन ऑपरेटर रिटर्न सही है अगर निर्दिष्ट संपत्ति में है निर्दिष्ट ऑब्जेक्ट।

powershell - Zip high volume of folders & files -

I have a big problem with the backup of a stock, with a large volume (10 000 000 +) small files where Until I know that the total megabytes of those files are not so big, but the biggest problem is the number of files. First things first: - The shares are more or less "regular", therefore the root directory containing 30 directories, all those 1 level directories, have a subfolder with a date in the format: yyMMdd. I have created some PowerShell scripts to zip those directories based on their names, so, now, I am running backup only on .zip files, but ... I have noticed that the time of running the script is increasing daily (because this script still needs to check all the folders) and the number of folders is increasing every day My question is : Is there anyone - let's say - marker it Number used as: - When the script to leave before storing folders in moving and add directory archival mark today Folder, "previously stored as" running the next scrip

performance - Unexpected scaling behavior on a canvas in android -

I have a scene in which I am rectangular and within it there are 10 lines. I pinch the view to zoom the pin But I am getting unexpected behavior lines are scaling but not rectangular. Can someone identify my mistake? The on-drawing method of this view is: The method of screen () is method: write R = new text (0, 0, 700, 40) ; Public waste on draw (canvas canvas) {float kk = mscaleFactor; // This variable will be determined by pinch zoom event and how much the SF * = KK scale represents; // This view should be scaled according to the previous scaling canvas. MakeLinesinRangetwo (10, canvas); // This rectangular float will make the L line within the width of cX = canvas.getWidth () / 2.0f; // width 2 horizontal center float cY = canvas.getHeight () / 2.0f; // height / 2 vertical center canvas scale (SF, 1, CX, CY); Paint.setStyle (Paint.Style.FILL); Paint.setColor (Color.BLUE); Canvas Davelect (R, Paint); Canvas.restore (); RequestLayout (); // This will change the width of th

dns - How to apply the different Domain Name into one IP and set the default path on apache -

I have a domain name: abc.net mapping on 11.11.11.11 and it works fine and your domain name is www. Registry is .asiaregistry.com I also use AWS EC2 for my service Q1:? How to install www.abc.net or aaa.abc.net to work with DNS for internet user access Q2: After Q1 is set, can it be possible that my Can Apache server be fixed in the following way? Or does it require another server to handle every IP? aaa.abc .net to 11.11.11.11/mobile www.abc.net 11.11.11.11/PC bbb.abc .net to 11.11.11.11/mgmt Thanks for your time What is your real domain? This can help you answer your question more effectively. You will need to configure the nameserver for your zone, your registrar might provide a set of official name servers, so that you have at least one NS record zone Once you have the name 'abc.net', you can add a record for www.abc.net (your registry probably provides a way to edit this area) . If you have a record for www.abc.net, then it means to incl

php - Facebook re-authentication -

I am using PHP SDK to request authentication and permissions. $ facebook = new Facebook (array ('appId' => '7xxx34 9xx', 'secret' => gt0b360034c9exxxx4f ',' cookie '=> true) ); $ Params = array ('scope' = & gt; 'publish_actions, read_friendlists', 'redirect_uri' = & gt; 'example.com',); $ User = $ facebook-> GetUser (); $ Usertoken = $ facebook- & gt; GetAccessToken (); If ($ user) {try {$ user_profile = $ facebook- & gt; API ('/ m'); } Hold (FacebookApiException $ e) {error_log ($ e); $ User = null; }} If ($ user) {$ logoutUrl = $ facebook- & gt; GetLogoutUrl (); Header ("location: xxx.php"); } If (! $ User) {// $ statusUrl = $ facebook- & gt; GetLoginStatusUrl (); $ LoginUrl = $ facebook- & gt; GetLoginUrl ($ params); } It works well but if the user deletes the app in the privacy setting and tries to log in again then I have errors: The CSRF state

c++ - Able to include cpp.... but not header? Whats going on? -

I think I'm misunderstanding a big concept in c ++ (can not buy any books). I can not find anything else on this, sorry that the hidden things in a vague part of the Internet have been changed. I was trying to work with SDL, when I found a new interesting way of creating an application cover for SDL. But when it is divided into separate CPP and header files ... the stuff happens. C ++: // // AppSdl.cpp // sdlgaim // // Created on 28/4/14 by Home // Copyright ( C) 2014 Hyperm All Rights Reserved. // # "AppSdl.h" app_sdl :: app_sdl (): _running (wrong) {} apisl :: ~ apisl () {include (deleted); } Int app_sedl :: Init (int width, intensity height, const char * title) {// Start SDL library if (SDL_INIT (SDL_IIDIDADADLLINIITMER) & lt; 0} {FPrintf (CDRR, "SDL_ent () failed:% s \ N ", SDL_gatorerror ()); Return APP_FAILED; } Win = SDL_CreateWindow (Title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, width, height, SDL_WINDOW_SHOWN); Renderer = SDL_Creat

Spring security last access time -

I am starting with Spring Security and would like to know whether it is possible to obtain the last access time of the logged-in user . / P> Yes, but you have to track that information. For example: The box provided by Spring Protection does not have any of the features.

javascript - validate dynamic radiobutton div in jquery -

I am creating dynamic table rows with radio buttons and buttons. If I add control buttons then the row will be dynamically created. Radio button ID radiodiv I need to highlight the radio button's device, if the radio button option is not selected. This was working for the first line, the rest of the table was not doing this work. Now I need to, if I press the control button, then each row will have to reveal the division of the radiobutton. How to do it Click $ ("# inputId") (function () {var table = $ ('table # mytable'); var line = "& lt; tr & gt; & lt; & lt; / div & gt; * "+" & lt; td & gt; & lt; Input Type = 'button' id = 'btned' value = 'valid controller' /> gt; var c = = ('& lt; td style = "width: 100px;" align = "Left"> ;); $ ('# Tableview') attached (table.append (line));}); // radio button check or not $ ('# mytable').

c# - To update a row in grid view -

I want to update a line in the grid view below. I tried but I could not do it. Please help me to do this & lt; ASP:. GridView width = "100%" runat = "server" id = "srchgrid" AutoGenerateColumns = "false" CellPadding = "4" ForeColor = "# 333333" ShowFooter = "false" PageSize-mode = "NumericPages" PageSize = "10" PagerStyle Vision = "true" AllowPaging = "true" AllowSorting = "true" OnRowCommand = "srchgrid_RowCommand" RowUpdating = "srchgrid_RowUpdating" CssClass = "MGRID" Pager Style-CSS Class = "PGR" AlternatingRO Style-CSS Class = "Alt" Gt; & Lt; Asp: TemplateField HeaderText = "Edit" item style-width = "150px" & gt; & Lt; ItemTemplate & gt; & Lt; ASP: LinkButton id = "btnEdit" runat = "server" RowIndex = "edit" text = "edit" Ca

response - elasticsearch randomly not responding to query -

We use elastic search since a few weeks, and in some indexes separated by month, more than 160 million There are entries (like index_2014_01, index_2014_02, ....). Occasionally if we send a bulk query request for elastic search nodes for some requests, then there is no response and there is no timeout. There is no chance to reproduce this problem because it is random And at least the reaction time is also done on questions that work in seconds before. We have successfully started debugging without elastic search transport customer. We found that no response was requested (breakpoint was included in the feedback-listener, request-listener, and failure-listener) - There was no response after the long wait or there was no failure. There is no exception or logout in it, which indicates the problem that there is a message "Disconnected from the node" at a later time. There is no error in the logs from the cluster-node, there is not much load on the elasticships cluster And o

php - Avoid replacing of space in filename with underscore while uploading -

I have a form in Codeigniter that I am uploading a file. If the file has a location in the name: Image (1) .jpg Then, uploading it to the secure folder as images_ (1) .jpg . How to avoid it? I want to upload it with the same name as Image eg: Picture (1) .jpg . $ config1 ['upload_path'] = './secure/'. $ Lastid; $ Ext = end (Explosion (".", $ _FILES ['thumb_image'] ['name'])); $ Config1 ['file_name'] = Trim ($ _ files ['thumb_is'] ['name']); $ Config1 ['permission_type'] = 'jpg | Png | Jpeg | Gif | Bmp | Jpe | Tiff | Tif '; $ This- & gt; Load-> Library ('upload', $ config1); Can anyone help me solve this problem? Thanks in advance. Try $ config ['remove_spaces'] = FALSE; Otherwise, look in the original upload library, where you have the $ this-> file_name = preg_replace ("/ \ s + /", "_", $ this-> File_name); In the do_upload me

optimization - How to optimize the following smarty code so that the iterations performed for comparing array values get reduce? -

I am a newbie for a smart template engine. I am comparing two arrays to my template with a smart template: = all all_states item = state key = key} {assigned var = "flag" value = false} { $ = Data from foreach.applicable_states Item = pre key = 'index'} {if $ state.id == $ pre} {assign var = "flag" value = true} {$ break} {/ if} {/ foreach } & Lt; Option value = "{$ State.id}" {if $ flag == true} is selected then "selected" {/ if} & gt; {$ State.state_name} & lt; / Options & gt; {/ Foreach} The above code is working fine for me but if you are not close There is a large number in the number of iterations done in comparison to array values. Therefore, to reduce the number of iterations, I want to customize the above code. Can someone who can keep a good command on Smerty can provide a way to optimize the above code? Maybe you are {foreach = $ all_states item = state Key = key}. & Lt; Option value = &qu

css - Last-child selector -

I'm a little confused about its use: Last-Hair Selector I have different buttons with such markup: / P> & lt; Div class = "people" & gt; & Lt; A href = "pd.html" title = "Post Doctorate" & gt; & Lt; Div class = "people-button" & gt; Post Doctorate & lt; / Div & gt; & Lt; / A & gt; & Lt; A href = "staff.html" title = "employee" & gt; & Lt; Div class = "people-button" & gt; Staff & lt; / Div & gt; & Lt; / A & gt; & Lt; A href = "phdstudents.html" title = "PhD student" & gt; & Lt; Div class = "people-button" & gt; PhD student & lt; / Div & gt; & Lt; / A & gt; & Lt; / Div & gt; Now I want to give the last button a different margin below, so I tried to use it: . People One: The Last Child People-Button {margin-down: 5px; } But it seems that this is not the right

Convert a string of binary into an ASCII string (C++) -

I have a string variable in which 32 bit is binary. What will be the best way to convert these 4 characters (8 bits is one letter) that will return binary to their ASCII characters? For example, a variable "01110100011001010111001101110100" should be transformed back to the string "test". If you are using C ++ 11, then an alternative: #include & lt; Iostream & gt; #include & lt; String & gt; # Include & lt; Sstream & gt; # Include & lt; Bitset & gt; Int main () {std :: string data = "01110100011001010111001101110100"; Std :: stringstream sstream (data); Std :: string output; While (sstream.good ()) {std :: bitset & lt; 8 & gt; Bits; Sstream & gt; & Gt; Bits; Four c = four (bits.To_Long ()); Output + = C; } Std :: cout & lt; & Lt; Output; Return 0; } Note that binsets are part of C ++ 11. Also keep in mind that if the data is not well formed, the result will be silently reduced when

c# - Does not Including the Version of a Dll Differ From Including It and Setting SpecificVersion to False? -

AjaxControlToolKit के लिए इन दो csProj संदर्भ परिभाषाओं को देखते हुए: & lt; संदर्भ शामिल करें = "AjaxControlToolkit, संस्करण = 4.1.7.1213, संस्कृति = तटस्थ, PublicKeyToken = 28f01b0e84b6d53e, प्रोसेसरअर्चैचर = MSIL" & gt; & LT; SpecificVersion & gt; झूठी & lt; / SpecificVersion & gt; & LT; HintPath & gt; .. \ संकुल \ AjaxControlToolkit.7.1213 \ lib \ 40 \ AjaxControlToolkit.dll & lt; / HintPath & gt; & Lt; / संदर्भ & gt; & Lt; संदर्भ शामिल करें = "AjaxControlToolkit" & gt; & LT; HintPath & gt; .. \ संकुल \ AjaxControlToolkit.7.1213 \ lib \ 40 \ AjaxControlToolkit.dll & lt; / HintPath & gt; & Lt; / संदर्भ & gt; यह परिवर्तन कैसे वी.एस. डीएल को पाता है, और यह क्या संभवतः डीएलएल संदर्भित कर सकता है? क्या इस पर कोई संभावित प्रभाव है, जब यह क्रम में हो सकता है कोड तैनात किया गया है?

actionscript 3 - AS3 What causes lag with side scrollers? -

I am programming a side scroller based on the tutorial I found in a book. My friend did this, and he is working perfectly. I have just changed some variable names (I did the animation differently), but for some reason, when my character is running, there is a large amount of interval. HOwever intervals are only present when there are 'walls' on the stage. Both walls and floors use the same code (both of them are referred to as the 'flow object' variable) and use the same collision code, although I do not Find out why the intervals are involved. If the character is omitted, then by the character (about 60x) starts, there is a large amount of interval. If I'm fine, there is not much gap until the screen starts scrolling. The interval since moving to the left is to believe that something can happen with the program preventing the scroll from scrolling but I do not understand why the interval trying to move right is. I've listed the scroll code, and

r - Condense "flat" list of occurrences for analysis with arules eclat -

I have a file that looks like this (list of person ID and product name) 123 A 123b 123D 456A456B 123C And I want to change it in such a way for use with AVLat (list of products purchased by each person ) list (C ("A", "B", "D", "C"), C ("A", "B")) The best I've been able to do is read it as a data frame, and new day Received strucutre is to try to use variants of applying the function to create. collectValues ​​& lt; - Function (Obs, map) {a = obs [1] [1] b = obs [2] [1] If (! (%% In map%)) {map [[a]] & lt; - list (b)} Else {c (map [[A]], b)}} But I'm also new to R for working R ... I think that after you split : dat < - read.table (text = "123 A 123b 123D 456A456B 123C", header = F.LESE, string AFFactors = falls) splitting (split (DT [, 2], DAT [, 1]), sort ### $ 123` ## [1] "A" "B" C "D" ## ## $ `456` ## [1]" A "" B "

jquery - ajax/php/mysql shopping cart project -

एक सरल शॉपिंग कार्टट परियोजना को डिजाइन करना जिसमें उपयोगकर्ता को एक MySQL डेटाबेस "आइटम" प्रस्तुत किया जाता है जिसमें एक पीएचपी में वस्तुओं का एक वर्गीकरण प्रदर्शित होता है पृष्ठ। मैंने डेटाबेस में 2 टेबल डिज़ाइन किए हैं जिन्हें एक नामित आइटम और दूसरे नामित गाड़ी है, गाड़ी वर्तमान में रिक्त है क्योंकि पेज इसके अनुसार डेटा जोड़ देगा, इसके कॉलम निम्नानुसार हैं: "cust_id" (ग्राहक आईडी के लिए कम है, प्राथमिक कुंजी है) , "आइटम" (आइटम तालिका से उपयोगकर्ता द्वारा चयनित आइटम से संबंधित, प्राथमिक कुंजी भी), और "मात्रा" (मात्रा भी उपयोगकर्ता को अगले तालिका में परिभाषित किया गया है) आइटम डेटाबेस 4 कॉलम से बना है: कोड, नाम, मूल्य, कर योग्य "कोड" आइटम कोड से मेल खाती है, जो कि प्राथमिक कुंजी है और ऑटो-वेतन वृद्धि भी है, और कर योग्य राज्यों में आइटम पर कर योग्य है या नहीं। वर्तमान में मेरे पास डेटाबेस को प्रदर्शित करने के लिए PHP पृष्ठ की स्थापना की गई है, साथ ही 1 कॉलम के साथ 2 और कॉलम जो कि उपयोगकर्ता को आइटम की मात्रा का चयन करने की इजाजत द

c# - Set Checkbox Values to a Specific values -

Image
I have a winform C # app that receives value from a SQL server and is checked in the check box as a check value It has to be stored. The user will check the checkbox and save this value back to the table (this section is running later.) .. Here's what my form looks like For example, in my table, for example, it has 12 topics like sub 1, sub2 ... sub12. There is no distinction in the table, subject to which it is related to the semester related to my problem in this matter, I want to be able to say the subjects for the semester and display only in the first 4 checkboxes Take that the topics are from cm2, show them in the check box in the fourth panel. I know that I have to compare all the values ​​manually, if they contain words like "sub1", check yes check box.

mysql - Exact match, or do partial match if no exact match, in a single query? -

I have to find a MySQL database under the following conditions: 1) If there is an exact match keyword Is found to return the number of rows and exact match results. 2) If no exact match is found, return the number of rows and results with partial matching. For example, if the keyword was cake , and there were following rows in the table, then the search only required 1 and 5 rows. 1 | Cake 2 | Pancake 3 | Cupcake 4 | Fruit cake 5 | Cake 6 Pi However, if only the following rows were present, then search should only have 2-4 rows. 2 | Pancake 3 | Cupcake 4 | Fruit cake 6 Pie It is trivial to do this in two questions, such as: SELECT SQL_CALC_FOUND_ROWS field with table WHERE word = `cake` // PHP check For the number of rows, if 0, select another query, the word '% cake' 'like the word' cake shape 'from the table from the SQL_CALC_FOUND_ROWS field To cut the tour, is there any way to do this in a single question? I can come up with the

dll - java.lang.UnsatisfiedLinkError - Native method issue -

I am facing a problem in Java (Eclipse) regarding the use of DLS. Up to now, I have been experiencing the following problem: Exception exception for agent. Some advanced java.lang.UnconfirmedLinkError: SomePackage.SomeClass.SomeNativeMethod (II) Z [...] Z On the Core. Behaviours.Behaviour.actionWrapper (Behaviour.java344) at jade.core.Agent $$ ActiveLifeCycle.execute (agent.java:1532) at jade.core.Agent.run (agent.java1471) at java.lang. I do not know that this will help in detecting the problem, but I am also using ZE in this project .... Edit (28/04/2014): I am trying to use which DLL is a custom (a former company Built by employee where I work). The curious thing about this problem is that I have 2 Java projects that do the same thing. One of these projects runs completely, while the other is facing dissatisfied link entry . About Paths: I have created a specific folder for DSL which is in the workspace folder but not inside the project folder (in other words, the sa

Color Class in Java -

मेरे पास Java में color वर्ग से संबंधित प्रश्न है। I वर्तमान में वर्ग संकेताक्षर का उपयोग कर रहा है जैसे कि Color.RED और Color.BLACK । मेरे पास तीन पूर्णांक की एक सूची है, जैसे कि निम्नलिखित: int var1 = 0 int var2 = 0 int var3 = 255 क्या कोई तरीका है इन पूर्णांक को उपयुक्त जावा रंग नाम में परिवर्तित करने के लिए कोई भी नहीं है जावा कोर कक्षाओं में एक ही विधि के साथ ऐसा करने का तरीका। हालांकि, आप इसे काफी आसानी से दो तरीकों से कर सकते हैं। पहला रास्ता एक नया रंग आरजीबी मूल्यों से आपके पास बनाएं: रंग का रंग = नया रंग (var1, var2, var3); तब ऑब्जेक्ट को Color से वर्ग से प्राप्त करें। उस से तत्व प्राप्त करें इसका उपयोग करके स्ट्रीम करें इसे कॉल करके फ़िल्टर करें, इसलिए इसमें केवल सभी एंमा स्थिरांक होते हैं जो आपके द्वारा किए गए रंग के बराबर होती हैं (कोई एक या शून्य होनी चाहिए)। स्ट्रीम को एक सरणी में बदलने के लिए उपयोग करें। उस सरणी के पहले तत्व को [0] से प्राप्त करें। यदि कोई रंग आपके रंग से मेल नहीं खाता है, तो यह एक अराइंडएक्सऑटऑफ़बॉइ

What is the output of this ML code? -

मजेदार वर्ग (x: int) = x * x; मानचित्र (~, मानचित्र (वर्ग, मानचित्र (~, [1, 2, 3]))); क्या यह सिर्फ तीन नंबरों का वर्ग होगा (1, 4, 9)? मैंने इसे न्यू जर्सी के एसएमएल पर चलाने की कोशिश की लेकिन इस त्रुटि को देखते हुए ... - मज़ेदार वर्ग (x: int) = x * x; Val square = fn: int - & gt; अंतर मानचित्र (~, मानचित्र (वर्ग, नक्शा (~, [1,2,3]))); StdIn: 3.11-3.35 त्रुटि: ऑपरेटर और परिचालन सहमत नहीं है [टाइॉन बेमेल] ऑपरेटर डोमेन: 'Z - & gt; 'वाई प्रचार्य: (एक्स -> एक्स) अभिव्यक्ति में * इंट सूची: नक्शा (~, 1 :: 2 :: और लेफ्टिनेंट; एक्सपी & gt; :: & lt; exp & gt;) stdIn: 3.4-3.36 त्रुटि: ऑपरेटर और ऑपरेंड सहमत न हो [टाइकॉन बेमेल] ऑपरेटर डोमेन: 'Z - & gt; 'वाई ऑपरेंड: (इंट-> इंट) * _ अभिव्यक्ति में: मानचित्र (स्क्वायर, मैप (~, & lt; exp & gt; :: & lt; exp & gt;)) stdIn: 3.1-3.36 त्रुटि: ऑपरेटर और परिचालन सहमत नहीं है [टाइकॉन बेमेल] ऑपरेटर डोमेन: 'Z - & gt; 'वाई प्रचालक: एक्सप्रेशंस में: (' एक्स - & gt; 'ए

.htaccess - htaccess and GEOIP infinite loop -

itemprop = "text"> I wrote this in my htaccess: GeoIPEnable RewriteCond% RewriteEngine on ON {ENV} : GEOIP_COUNTRY_CODE} PE RewriteCond% {HTTP_HOST} myweb.com [NC] RewriteCond% {HTTP_HOST}! Es [NC] RewriteCond% {REQUEST_URI}! ^ / Es / [nc] RewriteRule ^ (. *) $ / Es / $ 1 [R, L] SetOutputFilter DEFLATE AddOutputFilterByType DEFLATE Text / html Text / CSS Application / X-Javascript Rewrite% {REQUEST_FILENAME} -s [OR] Rev. % {REQUEST_FILENAME} -l [OR] revaccount% {REQUEST_FILENAME} -D recriminate rule ^. $ - [NC, L] Rev. Raul ^. * $ Index.php [NC, L] I want to redirect to countries and other countries of Peru But I got an error: I How can I fix this? Thank you. Use negative lookahead regex to prevent redirects when it is already / es / :. GeoIPEnable RewriteCond% RewriteEngine turned on {REQUEST_URI} \ (? Jpeg | gif | bmp | png | tiff | css | js] $ [nc] RewriteCond% {REQUEST_URI} ^ / ( / | Index \ .php) [NC] RewriteCond% {ENV: GEOIP_COUNTRY_CODE}! PE Re

mapreduce - Hadoop Map/Reduce Job distribution -

I have 4 nodes and I'm running a maggie sample project to see if all 4 nodes work between I was attacked by Project Time and I found that, the Mapper function is being divided into all 4 nodes, but only one node is being done by the reducer function. Does it seem like this is reducer work, as it is split between all four nodes? Thanks The distribution of the mapers depends on the data of the mapper's data Operated on the block. The framework tries to assign tasks to a node by default, in which the blocks of data are stored. This will prevent network transfers of data. Again it depends on the number for the reducer. If your job requires only one broadcast, then it can be assigned to any PF of the nodes. This will also impact speculative execution. If then this is the result of many instances of the map or reduces the work to start work on different nodes and the job tracker is decided on the basis of completion, which passes through one and the other Examples will

security - file html link to a shared folder doesnt work -

Hello I have an HTML link that contains a link to a shared folder, this link will be fully linked to my local host Works from, but when I switch goes down to a production server, my code is: & lt; A href = 'file: // somesharedfolder / anotherfolder' & gt; Link to folder & lt; / A & gt; I think it may be a browser security issue, but I'm not sure, any thoughts? Thank you very much. Your base url on the production side is your hostname Try it & lt; A href = 'http: //www.yourwebsiteurl.com/somesharedfolder/anotherfolder> Links to the folder & lt; / A & gt;

javascript - Issue with SVG in IE9 -

I have this slider: This works fine in all browsers I'm using SVG in my HTML code except IE9 (it works in IE8 too). Please, can someone help me? Thanks! It seems that the foreign object is broken in IE9. See also the same problem for another person: Why are you using foreign objects? & lt; Svg & gt; & Lt; Foreign object style = "mask: url (# mask);" Height = "185px" width = "250px" & gt; & Lt; Img src = "http://patrickkirkby.com/files/images/gallery/thumb_001.jpg" & gt; & Lt; / ForeignObject & gt; & Lt; / Svg & gt; should be able to replace it with: & lt; Svg xmlns: xlink = "http://www.w3.org/1999/ XLink" & gt; & Lt; Image xlink: href = "http://patrickkirkby.com/files/images/gallery/thumb_001.jpg" style = "mask: url (#mask)" height = "185px" width = "250px" & gt; & Lt; / Svg & gt; And it should work

sql - Return setof record with 1 row -

I am changing a PLPGSQL function and I have a small problem. Post announcements: Create or replace function permissions (_prinsl text) SETOF records $ BODY $ DECLARE ID integer: = 0; Rolero record; In this case, in some cases, if is handled by statements, and all of them, return UNION is 1 For more queries, such as: for roller (select SELECT 'role1' as role from WHERE id = table1.id) union (form of selection from table 2 Select 'role2') WHERE id = table2.id) UNION (selection as role3 'Table 3 WHERE id = role from table3.id)) LOOP RETURN Next Rolero; End loop; Return; And it all works well, but in one case, I need to return a single query result, it will be a SETOF record , but only with 1 before, so I did it so: the (selection Rolero for 'role table as 4' 4 WHERE id = table4.id) LOOP RETURN NEXT Rolero; End loop; Return; I also tried Returns the choice of QUERY as 'role4' table 4 WHERE id = table4.id; But in both ca

.htaccess - Htaccess external server rule -

I have a subdomain xxx.example.com. I am in folder 'images' so my URL is xxx.example.com/images/, I want to create a rule that says 'yxx.example.com/images/test/' to 'yyy.com/test.php' addresses Redirects to. My code: Revive on revivebase / images option + follow-up script -multi-viz rewritable ^ Test $ http://yyy.com/test.php [P] but I have error 404. What's wrong

c++ - Explicitly initialize DWORD to 1, but debugger shows wildly out of range value -

Image
I am a little surprised with this issue - this issue has not come at all in debug mode, but it continues. Feels that there is almost nothing that I can do to fix it. Here's a screenshot of what's happening inside VS 2013: I initialize nResult for 1 code, and the internal value is shown as 3422785012. In debug mode, this value is actually 1L. Why does the value displayed in the form of any idea is not close to the initial value which I have set for nResult ? I have tried to play with compiler settings - this code runs fine in debug mode. Your code is more likely to be from customized that means the compiler has the code In a manner that does not match your source code, which is not generated by the compiler. Optimized code with either debug unoptized code or full debug, which will not match source actual instructions. If you want to debug the release build but want to see the correct values ​​in the debugger, go to the property of your property in the

android - ActionBar get current icon, findviewbyid -

I know how to set the taskbar icons, but how can I decide which mark is present? I do not see an accelerator like getIcon , I think it's possible to get an icon view by ID because I did it in the action with the search widget, but I did not know According to source code of ActionBarView.HomeView you android.r.id .home should be able to get the ImageView icon. The code can look like this: ImageviewView = (see image) Find VVBID (android.r.id.home); Drawable dr = imageView.getDrawable (); Not sure that this support will work with libraries

matlab - Opening address stored in cell aaray and the concat the strings -

Suppose that there are five text files content of the files text file 1 = I saw a crocodile, text file 2 = crocodile near a tree Was sitting, textfile 3 = crocodile was sleeping, textfile 4 = parrot was flying, textfile 5 = parrot was flying. I have stored the address for each file, how to open a cell-array of those addresses, and then insert the stars to create a single cell-array. If you have a cell array that you can use to say files: txt = cell (0); I = for 1: length (files) txt = [txt, fileread (files {i})]; End In the cell array txt , the same number of elements will be in the same form as files and each element will keep the text from that file < / P>

python - Can virtualenvs be made to fall back to user packages instead of system packages? -

I use Python for autocomplete in amax, but this is not my code dependency, so I Do not want to insert my requirements.txt . (Other developers can not use a JDI editor plugin, and when I deploy to Heroku, it definitely does not need it.) But Jedi is available to work from my VirtualNV That means if I import jedi this does not work. Is there any good way to set up a JDI user-universally that it is available in all my Virtual Connections? I think what do i want in jdi ~ / .local / lib / python2.7 / site-packages / Then with , then to create my virtualenv, but instead of the user package system package. My current workaround is for pip installation jedi in each of my virtual envisions, when I add new dependencies I pip install foo , pip freeze> Requirements.txt , then manually delete jedi and some other things before the file. Obviously, this is time consuming and error prone. Is anyone's better solution? when virtuenv active s, this ma

ajax - How to pass a view and a json from a function in laravel? -

यह मेरा फ़ंक्शन है अगर (isset ($ _ POST ['franchisesIds']) ) {$ Id_array = array (); विदेशी मुद्रा ($ _ POST ['फ्रैंचाइजीआईड्स'] $ डेटा के रूप में) {array_push ($ id_array, (int) $ डेटा ['id']); } $ परिणाम = डीबी :: तालिका ('फ्रेंचाइजी') - & gt; जहां में ('आईडी', $ id_array) - & gt; प्राप्त (); } वापसी प्रतिक्रिया :: जेएसन (सरणी ($ id_array)); वापसी देखें :: बनाने ('फ्रंटएण्ड। स्टोर्स') - & gt; साथ ('फ्रेंचाइजीज', $ परिणाम); तो मैं इस सब डेटा को कैसे पारित करने के बारे में थोड़ा भ्रमित हूँ मुझे यकीन है कि सब कुछ काम करने के लिए सिर्फ json पास करने की आवश्यकता है और इसी समय मुझे देखने के लिए आईडी की एक सूची उत्तीर्ण करने की आवश्यकता है I मैं यह कैसे कर सकता हूं ?? उम्मीद है कि यह वही है जो आप चाहते थे: कृपया सीधे $ $ का उपयोग न करें _POST या $ _GET $ फ्रेंचाइजीज = आदान-प्रदान :: प्राप्त करें ('फ्रैंचाइजीआईड्स'); $ Id_array = array (); यदि ($ फ्रैंचाइजीआईडी) {विदेशी मुद्रा ($ फ्रैंचाइजीज $ डेटा

c# - Can you use Generic Action<> or Func<> parameters with the where clause? -

I'm not sure whether I'm missing something or just can not understand the way in which work ... actually I want to be able to take any action with a constraint parameter without having to reboot it, work with the code below with the cast: Private Readonly Dictionary & Lt; Type, action & lt; ICommand & gt; & Gt; _dictionary = New Dictionary & lt; Type, verb & lt; ICommand & gt; & Gt; (); Public Zero Register & lt; TCommand & gt; (Action & lt; TCommand & gt; Actions) where TComand: Icosmod {_dictionary.Add (Typef (Tecmund), X => Action ((Comm. X)); } The following triggers an error and says that no parameter of encoding can be passed as ICommand Public Zero Register & lt; TCommand & gt; (Action & lt; TCommand & gt; Action) Where Tecmund: ICMMund {_dictionary.Add (typed, action); } Am I doing something wrong or is it that the where constraint is only understood by the method signing and the remain

ios - RestKit 0.20 Posting object's attributes on conditional basis -

I handle complex JSON data in bulk quantities; Customize traffic. To say for simplicity that I am following user class: @property (nonatomic, retain) NSString * email; @property (nontomic, write) NSString * fname; @property (nonatomic, retain) NSString * password; @protecti (nanatomic, retten) nssting * profiles; @protecti (nontomic, retten) nssting * snm; @property (nonatomic, retain) NSString * status; @property (non-constructive, retaining) NSString * tokens; @property (nonatomic, retain) NSString * Username; @protecti (nonatomic, intact) NSNumber * huggine in; @protecti (nontomic, raten) NSDT * Detroit; and mapping of my attributes is low: [dic addEntriesFromDictionary: @ {@ "fname": @ "fname", @ "snom" @ "Password", @ "password", @ "status": @ "profile": @ "profile", @ "email": @ "email", @ "user name": @ "user name", @ "password": @ &quo

cmd - Copy only directories from a command prompt -

I want to copy the directory (this file and subdirectory) from the command prompt to the current directory only. I have already copied all the files in the current directory using this command. Copy * d: \ copyfolder I used these for separate folders to copy a folder: XCOPY C: \ utils D: \ Backup utilities / i To copy a folder including all subfolders. XCOPY C: \ utils * D: \ Backup utils / s / i But the only way to copy the directory could not be found. The command line should work to copy all folders with subdirectories and files: for D / A / h / e / k / f / c / d% a (*) in xcopy "% a \ *. *" D: \ copyfolder \

apache - multiple domains with htaccess rewrite rule -

I have difficulties getting an htaccess to work with a subdomain. My server structure: root / index.php --- // codeinator index file, A, here for main domain points . root / staging / staging website --- // My subdomain is pointing here. Folder StagingWebsite has a file called temp.html , running, my root htaccess file is this: ReviveInInRewriteConcurrentRightCanc $ 1 ^ (Index \ .php | picture | robot \ .txt) RevRightium ^ (. *) $ / Index.fp? / $ 1 [L] which gives any access to MyDomain / foo to MyDomain / index.php / foo (without showing index.php). Problem: When I try to access my subdomain / temp.html , I get a 500 Internal Error . When I delete my root / .htaccess , then it works fine, then this is clearly my HTACAC file. I have come to know that the problem is that the root / .htaccess rule is being applied to the subdomain, which breaks everything, but I have to solve it There is no idea for. I have placed an empty .htaccess file inside the r

python - How to save results to a .txt file -

I am doing a project for a few weeks and the deadline has come for tomorrow, I have completed all the tasks I've been set aside from one, I was trying to do it for at least a few weeks on my own but I can tilt it if someone can help me, I actually Admire This task was to create a program that saves the data created in the textile file; this is my code so far; import randomly char1 = str (input (enter a name for '1 character:')) Strh1 = ((random.randrange (1,4)) // (random. Randrange (1,12) + 10) skl1 = ((random.randrange (1,4)) // (random.randrange (1,12)) + 10) print ('% s with the strength value of% s and % S has the skill value) '% (char1, strh1, skl1)) char2 = str (input (please enter a name for character 2:')) strh2 = ((random.randrange (1,4)) // (random.randrange (1,12)) + 10) skl2 = ((random.randrange (1,4)) // (Random.randrange (1,12)) + 10) print ('% s in% S strength value and the skill value of% s'% (char1, strh1, skl1)) [1] = "Now

Geoserver merker displacement -

I am using geographical structures, and I want to add numerical marks like Google Maps or custom icons, I created it: & lt; Point simulators & gt; & Lt; Graphic & gt; & Lt; ExternalGraphic & gt; & Lt; OnlineResource xlink: type = "simple" xlink: href = "administration.png" /> & Lt; Format & gt; Image / png & lt; / Format & gt; & Lt; / ExternalGraphic & gt; & Lt; / Graphic & gt; & Lt; / PointSymbolizer & gt; But it takes center of the icon, for example, to make the displacement X and Y to focus on the top right of my icon, to know how to make ICON 32x32px < / P> Thanks I found a solution but not very well: is: & Lt; / Svg & gt; The problem is that the clicked area is bigger than the visual icon in the open alleys. Any help is very valuable

javascript - How to search for a tag with a class inside of a tag -

मेरे पास ऐसा कुछ है: & lt; g & gt; & Lt; rect x = "98" y = "77" चौड़ाई = "141" ऊंचाई = "119" वर्ग = "with_href चयनित" & gt; & lt; / rect & gt; & Lt; rect class = "सहायक चाल" ऊंचाई = "5" चौड़ाई = "5" x = "165.5" y = "133.5" & gt; & lt; / rect & gt; & Lt; rect class = "सहायक n- आकार" ऊंचाई = "5" चौड़ाई = "5" x = "165.5" y = "74" & gt; & lt; / rect & gt; & Lt; rect class = "सहायक s- आकार" ऊंचाई = "5" चौड़ाई = "5" x = "165.5" y = "1 9 3" & gt; & lt; / rect & gt; & Lt; / छ & gt; & LT; छ & gt; & Lt; rect x = "390" y = "130" चौड़ाई = "76" ऊंचाई = "70" वर्ग = "" & gt; & lt; / rect & gt; & Lt; rect class = "सहायक चाल" ऊंचाई =

R - Finding centroids of different id values -

I'm trying to find sandide for a SpellPointDataFrame. The following is a snippet of data frame called "spdf". Name XY 1 16 56 39 2 16 57 39 3 16 55 38 4 16 55 37 5 16 54 38 6 16 55 39 7 16 55 40 8 12 58 41 9 12 56 45 10 12 58 43 11 12 56 42 12 12 55 44 13 12 55 47 I function "gCentroid"'m using Senkrods recognize "Rejojh" package for the I gCentroid (spdf, byid = FALSE) I am able to calculate the nucleus for the entire data frame with but when I tried to calculate the centroids by using the "code" "code" I am, then GCentroid (spdf, byid = TRUE, id = "name") . In other words, on the basis of the above figures, I want to get two centroids for the name "12" and "16". The document is sparse about the "id" field on gicentride. Does anyone have any suggestions on how I can calculate centroids for each "name"? The document is a bit confusing, but you ID input are not

php - Im wanting to make it so page views only get raised if its someone who hasnt visited before -

This section of the code is on the article page, and I'm basically creating a page that has been viewed page_ and if If this is incorrect then add a view and also the ID of the article in the IP and other tables so that I can see that the user has already visited the page. If they should echo this 'you are present', it is not working and I do not know why if (page_ viewed ($ id) === incorrect) {mysql_query ("UPDATE Main_posts SET` view` = `view` + 1 WHERE article_id = '$ id'"); Mysql_query ("INSERT views in SET user_ip = '". $ _SERVER [' REMOTE_ADDR '].' ', Article_id =' $ id '");} and {echo' you exist ';} This function is in the init.php file. // page-like function page_viewed () {$ user_ip = $ _SERVER ['REMOTE_ADDR']; $ Query = mysql_query 'WHERE` user_ip` = $ user_ip and `article_id` = $ id") from the SELECT COUNT (`user_ip`) views; return (mysql_result ($ query, 0) == 1) r

sql - Why does Entity keep making new databases? -

I am doing a project using the code-first approach of the unit framework until we have created the database By then the things had been cured: connectionString = "data source = (locali) \ projects v12; attachment debufflename = | data directory | schema.stem.mdf; integrated security = true; Connect timeout = 30 " and then we set DataDirectory : AppDomain.CurrentDomain.SetData (" Duda "Environment, GatefolderPath (Environmental Specific Folder. EpicataData) +" \\ TestDB \\ "); Now, there are several databases with our name, SCHEMA_TEST _ * , where * is a random number (I'm sure this Not random, but I did not know how this has happened). Apart from this, I am not sure what is happening due to the creation of any other database instead of being built earlier. Why is this creating another database, and why it is schema. Test can not be said as I had mentioned in connectionString UPDATE When I have a connection string Remove the

Java toggling value of boolean not working -

I am trying to toggle the boolean playerTurn to allow methods to control However, this is not working, the methods will not be transferred, nor will print any other print statement. {PARTIAL ZERO ACTION ACTION (ACTION AE) {DISEAST () • Private Boolean player Turn = true; if (player current == true) {moveC1Up (); FirstPanel.Repent (); System Out.print (DysRol); System Outprint ("Counter 1 Transfer"); PlayerTurn =! PlayerTurn;} and if (player turn == incorrect) {moveC3Up () ; First paneel.print (); system.out.print (dicrrol ()); system.out.print ("transfer to counter 3 "); Plaarturn =! Plaarturn;}}}); This is your action: I This is my turn! Yes, this is my turn, so I go up and repaint, and this is not my turn I get out and Still the same ... something is wrong ... the second can never be executed. Use the debugger and analyze how the program is working, what you see from it.

ios - Apple Mach-O Linker Error during profile -

So I went to this strange issue where I am able to compile and run my iOS project in simulator with any issue , But when I ran it for profile with device (CMD + I), I am getting an Apple Mch O linker error for one of the libraries. I tried to read it for the project, but he did not help. I also checked my search path which resembles the following: Other linker flag: -Abject -all_load always find user path: no framework search path: $ (SRCROOT) recursive library search path : $ (SRCROOT)) Recurring I get the following error message: Undefined symbols for architecture i386: "_OBJC_CLASS _ $ _ TestFlight" Referenced from: objc-class-ref AppDelegate.o ld: Symbol (s) not found for architecture i386: Error: Linker Brand failure code to see -V orientation failed with 1 (use) What I am missing whatever my linking stage is going to be this thing? The easiest way to determine whether this testflight library is not searching is that the libcodefile in the Xcode projec

javascript - Replacing JQuery DOM object with a function parameter -

I create a jack object that HTML will get with the GJSON method, and I would like to call different methods on that jQuery object. Recover DOM Elements The methods I use will be different depending on the source of the HTML. I tried to build method chains in advance of an object, of var and passed that object and thought in the Formor DOM object function, that the empty dom object will be replaced by the DOM object, which is a function parameter Not happening because VertChat resolves an empty string with length = 0 in the function. I'm quite new to JS and JQ, so I'm probably far away from it. var x = $ (); ("P: Eq (1) '). Text ()," Chain 2 ": x.filter (' Children ('P: eq (5)'). Text ()," Series 3 ": X. Filters ( ('P: eq (9)'). Text ()} $ .getJSON ('http://whateverorigin.org/get?url=' + encodeurIC component (' Url) + 'and callback =?', Function (data) {X = $ (data.contents); thisfood.kcal = test (x, k);

java - ScheduledExecutorService behavior on Android -

When I have a deep sleep in the device, I am looking for Android special implementation details of ScheduledExecutorService.schedule. I understand that the schedule will not guarantee the exact time, but after the delay "execute" what I am not clear is how long sleep (and deep sleep) to be a specific scenario: After one hour, a work schedule in 5mins, the phone sleeps for 30mins when I expect to get scheduled work? In addition, if the phone is awake for a long time after the scheduled time, then the work is scheduled for immediate execution? As long as this post says, it will not work in deep sleep mode and I think That if you try to run the job after an uncontrolled time and await the device to go into a deep sleep mode, it should be very easy to test on Android devices.

DirectX11 Quad in Screen Coordinates - C#/SlimDX -

How do I put a tractor on the plane near disappointment at a particular point defined by the screen space? I have frustrated corners and I have tried many things to give them names, but I could not save myself by getting a quarter at an accurate point, especially if I move the camera at all / rotate. I have had some limited success in keeping the center of quad at a certain point, but they are not able to offset them, so the corners are where I want to. I have not tried about a perspective left hand launcher, the only thing I have tried, is going down the way of using a fixed artho camera with a fixed video camera and I think I I can go ahead in this way ... A failed attempt is near me: Vector 3 lower backconner = Vector 3 Transform coordinant (frust. Curators [1], see projection); where frustum.Corners [1] is the bottom left corner of the bottom. Using that vector would be a tractor center in the corner of the screen but I failed to offset it from the center, which I t

html - CSS div container display: table with floating div -

I have the following CSS DIV table grid in which DIV duration is required on more than one DIV I think the browser is related to the Jade index between browsers. This code looks right in Firefox but does not work in IE or Chrome which I have tested so far. I would like to know how to float my DIV correctly by CSS, display the class ".blocadata" around my div that is set to display: will continue to allow table and overflow scrolling. To look for differences, please check in Chrome or IE in Firefox. You can see my example here: This is my CSS / * column holder is not related to the grid - for its use Used for demo. Table-Inner-to-scroll * / .column-holder {width: 600px; } .Bokdata {Background: -Mo-Linear-Slope (Center Top, #FFFFFF 0%, # IEEEE) Repeatable Scrolls 0 0 RGBA (0, 0, 0, 0); Border: 1 px solid # 999999; Boundary-radius: 5px; Down: 5px; Box-Shadow: 0 2px 3px RGBA (0, 0, 0, 0.3), 0 2 Px RGBA (255, 255, 255, 0.8) Inset; Color: # 666666; Font-size: 12px; L

How to find the set intersection from two lists using Prolog/Eclipse language? -

So before I start, here's the problem: I have the example Xs = [ 1, 2,3] and list YS = [2,3,4] two common fundamental members of these two lists [2,3]. Therefore, I am trying to make a bill set interaction (Xs, YS, ZS) , as a result ([2,3]) will be bound to Z, and I try to do I am using Prologue language which can run on ECLIPs program on Windows and it should be used for loop iterator, any revision . Even the code I have is: setIntersection (Xs, Ys, Zs): - (foreach (alpha, x), from ([ YS], [Head | Tail], Tail, []), Forchha (Bravo, YS) ((alpha =: = Head - -> Bravo = Head;)). The second version of the code I have is: set injection (xs, ys, zs): - (foreach (alpha, x), absolute (YES, za) (Bravo, YS), foreach (Charlie, Zs), do the alpha ((alpha = = = Bravo) -> Charlie Alpha ;;)). results (from second code): ? - Set inception ([1,2,3], [2,3,4], x). X = [2, 3, α 12] Yes (0.00 CPS) The results I get for the code given above are very strange. Please hel

jpa 2.0 - JPQL query syntax exception -

I am trying to run the following question: new br.com. Choose edipo. Ada.tv Join esclo SA, such as Risaltado (et, AGLE.SL.Aklaho), resolocae again and again on Radiolucco = ESID Resoluco. Join Alternativa on Al.A.Alentativaa = es.idAlternativa at Qu.idQuestao = al.idQuestao qe.id to bring QuetaoEtiqueta qe. Questao = qu.idQuestao join proportion and et.idEtiqueta = qe.idEitiqueta where es.blSelecionada = 1 and re.idAvalacao =: idAvaliacao and re.idUsurario =: IDUsUU group at Aids etivata But I'm getting the following error: Reason by: org.hibernate.hql.internal.ast.QuerySyntaxException: Unexpected token: On Line 1, column 14 9 [br.com. Edipo.ada.entity.Resultado (and, vlCalculado as avg (es.vlEscolha)) join br.com.edipo.ada.entity.Escolha es to retrieve Resoluos again. Join Redoluca = es.idResolucao FECH Alter Nativa al on al.id.alternativa = es.idAlternativa Join qu.idQuestao = al.idQuestao at Quetoquo Quito at Quitoitequita qe on qe.idQuestao = qu.idQuestao Join and

javascript - Option Select JQuery Event from Add Input -

I am trying to write a script that selects option with a code: HTML here Is: & lt; Div id = "rule" & gt; & Lt ;! - jscript / js / - & gt; Is controlled by addRule.js in & Lt; Div id = "add-rule" & gt; & Lt; P & gt; & Lt; / P & gt; & Lt ;! - left empty to clear script - & gt; & Lt; A href = "#" class = "add-rule" id = "add" & gt; + Included rule & lt; / A & gt; & Lt; / Div & gt; When you press + Rule : $ (function () {var) then my javascript will actually contain new fields Will add scntDiv = $ ('# rule'); Var I = $ ('# rule p'). Shape (); $ ('# Add') Live ('click', function () {var inputRule = '& lt; P & gt; User: & lt; br & gt; & lt; select name = "user_relev_' + i +'" & gt; + '& Lt; option value = "registered" & gt; registered & lt; / option &

css - Chrome dev tools, preserve HTML edits on refresh of page -

I am changing the CSS path to a live page to point to my locality. I'm sure that before I noticed that you can put HTML edits in the "Elements" panel while refreshing the page, but I can not get it online, is it possible? Otherwise, there is an option to refresh the CSS file in Dev Tools, and not the whole page? Thanks for any help

c++ - Update a program directX -

I'm new to stackoverflow, even though I've been here for a while (not registered) reading very important And useful things, and I'm grateful for such a community! I have a program that uses DirectX 7.0 C. The thing is, and all of you know, directx7.0c is quite old and there are issues of dissonance with win8. I have a program full screen, then when I minimize it and then maximize it, still Sprites look quite bad. To be more specific, the program is a client for 2D games that loads sprites, so when the least sprites / go crazy look / look bad. I was just thinking that someone who has done this before, can direct me (Can I give possible links? Can not find anything good on the Internet, or maybe I Just a bad searcher) How to update the DirectX version of the program (DirectX 9 should be more than right) Thanks in advance