Posts

Showing posts from February, 2012

file - Multiple image upload php code -

I have a script that is uploading images and making thumbnails, but I want to upload several pictures Make and create thumbnails for each of them. I think I have a problem here: if (isset ($ _ files ['image'])) {$ myImage = new_image; $ MyImage- & gt; Upload = 'upload /'; $ Res = $ myImage-> Upload ($ _ files ['image']); If ($ res) {// RESIZE // $ myImage- & gt; Pad Collar = '# 222222'; $ MyImage- & gt; NewWed = 400; $ MyImage- & gt; Newhigh = 300; $ I = $ myImage-> Resize (); Echo $ i; }} And {? & Gt; & Lt; Form action = "" method = "post" enctype = "multipart / form-data" name = "form1" id = "form1" & gt; & Lt; P & gt; & Lt; Input type = "file" name = "image" id = "picture" /> & Lt; / P & gt; & Lt; P & gt; & Lt; Input type = "submit" name = "button" id = "button" valu...

html - Make File select "/" go other way -

I think there is a problem in an HTA im. I have the choice of HTML file input; & lt; Input type = 'file' name = 'txtOpen' & gt; & Lt; Br> & Lt; Input type = "button" name = "button2" value = "add" /> From this I have a VBSSPTP that pulls the value (file path) which then adds to the database. It all works properly. How, format shown in the form (x / x / filename.exe). I need a value format either (x \ x \ x \ x \ filename.ext) or is it just in file name / ext if this is possible? Use the method to get the file name and extension, Or work to go up the slash: & gt; & Gt; P = "c: \ d \ e.f" & gt; & Gt; WScript.Echo goFS.GetFileName (p) & gt; & Gt; Change WScript.Echo (p, "\", "/") & gt; & Gt; E.f c: /d/e.f

jquery - how to use php $_GET variable with unicode characters? -

& lt; div class = "linkL" & gt; STRAŠNI MIKROSKOP & lt; / div & gt; & Lt;? Php $ अध्याय = "अध्याय /" $ _GET ["ch"] ".php"; $ अध्याय शामिल करें; ? & Gt; जेएस $ ("। LinkL")। क्लिक करें (फ़ंक्शन () {var a = $ (this) .html (); var b = A.split ('') .जोइंड ('-'); var c = b.toLowerCase (); location.href = "index.php? सी =" + c;}); पता बार में क्लिक करने के बाद मेरे पास index.php? Ch = strašni-mikroskop है। यही कारण है कि ठीक है, लेकिन फ़ाइल अध्यायों / strašni-mikroskop शामिल नहीं है? अगर मैं बदलने के लिए s के साथ रों - सब कुछ काम करता है तो, कैसे मैं का उपयोग करके उपरोक्त कोड का उपयोग कर सकते s यूनिकोड चरित्र सभी फाइलें UTF8 के रूप में इनकोड ।?। location.href = "index.php? Ch =" + c; आपको एनकोडुरआईकॉन्पेंट (c) की आवश्यकता है अन्यथा, यूआरएल में विशेष रूप से कोई भी अक्षर, जैसे कि % या & amp; , यूआरएल को तोड़ देगा। इसके अलावा यह सुनिश्चित करत...

javascript - jQuery ajax callback load content displayed twice -

After making the following ajax call, the "load" function reloads the updated content, but before the AJAX call If the content is still visible then, you will be able to "pre-ajex content" & amp; "Post Ajax content" in one page: & lt; Script & gt; Function myUnPause {var table = $ ('# realtime'). Datable (); Var Extension = $ (LM) .clostest ("tr"). ('Td.extension') search. Text (); Var Agent = $ (Lm) .clostest ("tr"). ('Td.name') search Text (); Alert (extension. Trim () + 'will be canceled and put back in the queue); $ .jax ("/ cura / pages / realtime / realtime2.php", {type: "GET", data: {action: 'agent', 'pauselocation: (extension.trim ()), queue:' testq ' Paused: 'false'}, success: function (msg) {$ ("# myunpause"). Load ('/ cura / include / realtime.inc.php');}}); } & Lt; / Script & gt; The PHP script that dis...

android - How to Reduce draw calls in unity3d -

How can I reduce the attracted calls in the Unity 3D game? I want to create games for mobile devices and Due to the large number of calls received, I do not get good performance in mobile. You apply these things batching Dynamic and static / Texture can reduce the calls attracted by Atlas; Kill Invasion Lightmapping Mobile Friendly Shaders Low Poli Objects Less Numbers of Particles Unity has already defined what to do for mobile display And from my experience I also used the free unity phone call the plugin Or they go and show them how they call reducing calls from 69 to 12 .

android - Getting Text from TextView nested in ListView via LongClick -

I have is populated with stories from Skyueliti dB according to user input with text in a list view that written. My code is: cursor cursor = mDbHelper.searchDb ((query = null query.toString (): "@@@@"); If (cursor == zero) {} else {string}] = new string [] {COLUMN-1, COLUMN-2, COLUMN-3}; For Int [] = new int [] (Rt.TexView1, RID.TextView2, R.Id.TexView3); Simple cursor adapter cursor adapter 1 = new simple cursor adapter (this, R.Let Search results, cursor, from, to); MListView.setAdapter (cursorAdapter1); RegisterForContextMenu (mListView); And I ContextMenu @Override public boolean (MenuItem item) onContextItemSelected {AdapterView.AdapterContextMenuInfo information = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo (); Int menuItemindex = item.getitim id (); String [] menuItems = {"Option-1", "Option-2"}; String MenuEutamName = MenuItem [menuItemIndax]; TextView Text View4 = (TextView) findViewById (R.id.textView1); String Text = Text...

java - Object creation in system class -

We have a printstream class object in the system class, but how is this possible because the printstream class is without Java import package? Is it possible to create that object in the system class? Please refer to the source code. / P> import java.io. *; is the first import line / statement in the system class

angularjs - Angular $http doesn't turn all response headers -

I would like to receive the 'X-total-count' response title of a raceipul API. Trying to get the header in the query callback function of my NgrSource 'user', it seems that $ http ignores several repost headers. This is the answer header for my request: Access-control-permission-origin: * cache-control: max-age = 0, personal, re-modify Connection: Close Content-Encoding: gzip Content-Type: Application / Jason; Charset = utf-8 Date: Fri, 17 October 2014 11:13:26 GMT Link: & lt; Http: //xxxx.xxx/user? Page = 2>; Here I ask the set of users: User.query ({Page: $ scope.pagingOptions.currentPage, range: $ scope.pagingOptions .pageSize}, function (user, feedback header) {console.log (responseHeaders ()); console.log (responseHeaders ('x-total-count'));); The result of this console is: object {cache-control = "max-age = 0, personal, required-modify", content- Type = "Application / Jason; Charset = UTF-8"} Empty So why $...

html - Video tag with MP4 does not display in Apple Safari -

I have a code for the video tag on my website that looks like this: and lieutenant; Div class = 'Choose videoordboardboard video' id = 'rozw1border' & gt; & Lt; Div id = 'filmPierwszy' & gt; & Lt; Video id = 'film1video' autoplay class = 'epilm movie' selected 'width = "251" height = "156" loop onmsovor =' hoverfilm (1); 'OnFocus =' hoverFilm (1); ' Onmouseout = 'hoveroutFilm (1);' OnBlur = 'hoveroutFilm (1);' Onclick = 'window.location.href = "Category = Fire and Orta = Strowsgeni-Strawny-InternetWise"' Poster = "http://websoul.pl/newdesign/videos/tworzenie-stron-www.png" & gt; & Lt; Source src = "http://websoul.pl/newdesign/videos/tworzenie-stron-www.mp4?v=8" type = "video / mp34" /> & Lt; Source src = "http://websoul.pl/newdesign/videos/tworzenie-stron-www.ogg?v=7" type = "video / og...

Chained payment after authorisation using paypal in asp.net -

How To Use Both Features Of PayPal - EXPRESS Checkout Setup in PayPal, Authorization and Chain Payment I want to authorize the buyer and seller when When the buyer pays, the transaction will remain with PayPal and the payer goes to the seller account and 20% of the amount will be in the admin account and the seller account will be 80% using PayPal. Please understand this process at step rate. I want to implement this process in my ASP.NET project. You can use the concept of PreApproval Adaptive Payments where you can charge it at any time in future You can get permission from the buyer and once he agrees that you will get a prepoll key which you can use to pay the payment of primary and secondary receiver in the Adapter Chain Payment API call. . This way the buyer will not be charged immediately and you will have enough time to repay it. The flow will be something like this: 1. Acquisition NVP request: requestEnvelope.errorLanguage = hi & amp; STARTINGDATE = 2014-10...

c# - Visual Studio Project Reload Removes Added ProjectType GUID -

Image
To add a GUID to all the Internet and even SO, type GUID project file project here The suggested loft menu options are missing to create a MVC controller. This is also not a available template while doing a simple "add item". Here is the place on which SO is mentioned on SO: So I add that GUID to the project that I reload, the Visual Studio automatically updates it without any notification Decides to remove It's just upset if MVC controllers do not have scaffolding, although I know I can manually build them. I do web API controllers as well as loft for MVC scenes. In the web project, I am using MVC 4 and Web API 2.2. It is also being fully updated with Vs. 2012 on Web Tools 2013.1, as well as the fully updated VS 2013 However, GUID has added a partner VS2012 to add work and project to the project Reloading does not remove it. The only thing I can think is that on my VS2012 I have MVC 5 and Web API 2.2 support installed (I'm thinking through Web Tools 201...

c# - Creating BreadCrumb in Sharepoint 2013 and JQuery -

I am new to SharePoint 2013. I have started working, but I have got the work to make breadcrumbs in the share point. P> Like SharePage 2007 Route - & gt; My site - & gt; My menu - & gt; My sub site - & gt; Folder and now when I will mouse over the item / folder link, it should show all the lists. As I "My Site" this site and other sites like "My menus" should show in popup Please share some links or examples that I can understand skills. I need things in SharePoint 2013. Please please if anyone has any ideas please share. Thanks in advance.

ios - UIActivityViewController completion handler is !completed when using AirDrop -

I am using UIActivityViewController to send some text and some text when the URL works well To share and a URL. The user UIActivityViewController is canceled based on whether I currently use the completed handler or has actually sent something that needs to do additional actions. Completed handler returns a ( activityViewController.completionHandler for iOS 7 which is now activityViewController setCompletionWithItemsHandler has been deprecated in iOS 8) email sms Facebook when sending correctly complete airdrop When sending code> Twitter , the code should be sent to the cancel to send the code to UIActivityViewController and thus complete my With handler Sha is false received. Does anybody know that Airdrop when UIActivityViewController is dismissed? Thanks There is some interest for me, but unfortunately I could not test it because AirDrop did not want to work between my idiovell. Forgive for this Anyway, you could try setCompletionWi...

python - how to send a set of objects in a template? -

Please help solve the problem I send a set of objects in a pattern. Model: Class Model (models.Model): message = models.CharField (Max_length = 2000, blank = False, null = False,) View: def custom_pros (request): modal = Modal.get_entries () return {'request': request, 'model': Modal.objects.all ( ),} template: & lt; Br / & gt; {% To enter Modals%} {{entry.id}} {% endfor%} & lt; Br / & gt; results are displayed: [& lt; Model: Model Object & gt;, & lt; Model: Model Object & gt ;, & lt; Model: Model Object & gt; ] but it should be displayed: 1 2 3 You are printing a model object, and likewise it is displayed by default as a string. You can print a specific field, e.g. See {{entry.message}} , or __Unicode __ method model

mysql - C# INSERT TO access database creates 2 database entries rather than 1 -

I have created a C # program to the data in an Access database combined with some well-known address. Every time I code runs, I, I get two entries in the database namespace quotes {public partial class quote form: Form {private OleDbConnection quotescon; Private OLEDB Commands OLDBCMD = New OLEDB Commands (); Private String Connect = @ "Provider = Microsoft.Jet.OlDD.4.0; Data Source = H: \ Excerpt. MDB; Continue Security Information = Wrong"; Public Quotation Form () {QuotesCon = New AllBackNation (Connect); InitializeComponent (); } Private void btn_insert_Click (object sender, EventArgs e) {int quote = Convert.ToInt32 (txtb_Quotenumber.Text); Quotescon.Open (); Oledbcmd.Connection = quotescon; Oledbcmd.CommandText = "Insert Table 1 ([citation counts], account, made, accepted) values ​​( '+ Quotes +' ','" + this.txtb_name.Text + " ','" + this.date_created. Text + "','" + This.comboBox1.Text + "')...

c# - MVC 5 - Partial view not showing data -

I have a company model as seen below In the company model, a IQueryable is EmailHistory (this is the second model) Public Ent ID {get; Set; } Public String CompanyName {get; Set; } Public IQueryable & lt; IEmailHistory & gt; Email history (get; set;} In my company's controller I get my company details and get all my email history records, so this is my controller. // Go to the repository and company record var company records = the repository.gatecompany (transaction.companyID, user.indentity.getUSIID)); // Receive email for this company company.Record.EmailHistory = TheRepository.GetEmailHistoryByCompany (User.Identity.GetUserId (), ID); If I expand the results at this point in the controller, then I can see the email for the company ... so far everything is fine. My company's page is a partial view for email history. @ Html.Partial ("~ / visible / email history / _EmailHistories.cshtml", Model.EmailHistory); partially looks like t...

java - Android decryption: Error while finalizing cipher -

I use the images sent between encrypted and apps using Android. The Encryption works well, but when the file reaches the destination will not decrypt it so I copied the file to the destination application and using it decrypted successfully 3rd party software Error I get:. Invalid blockquote exception due to "error in finalizing cipher" on CipherInputStream (CipherInputStream.java:107). Encryption & amp; Below the decryption code: public static string Encrypt (string plainFile, string encryptedFile) throws IOException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException {// Here you read clear. File extStore = Environment.getExternalStorageDirectory (); FileInputStream fis = New FileInputStream (plainFile); // This stream writes encrypted text, this stream will be wrapped by // other stream. FileOutputStream fos = New FileOutputStream (Encrypted File); // length of 16 bytes SecretKeySpec SKS = new SecretKeySpec ( "MyDifficultPassw"...

java - Variable not initialized in try catch block `finally` -

क्यों कंपाइलर समझता है कि चर को या तो try या पकड़ो ब्लॉक और अंततः ब्लॉक पर शिकायतें? int i; कोशिश {i = 0; } पकड़ (अपवाद ई) {i = 2; } अंत में {System.out (i); } यदि आप आरंभीकरण से पहले ब्लॉक में 'i' को प्रिंट करते हैं, तो यह त्रुटि देता है क्योंकि कंपाइलर सोचता है कि 'आई' का प्रयास ब्लॉक में सेट करने से पहले एक अपवाद फेंका जा सकता है, इस मामले में 'आई' का प्रारंभ नहीं होता, इसलिए अंत में यहां यह मामला है जब आप अंत में 'आई' को प्रिंट करते हैं तो संकलक को लगता है कि 'आई' को कैल ब्लॉक में सेट करने से पहले एक अपवाद फेंका जा सकता है, इस मामले में 'आई' को आरम्भ नहीं किया जाता है संकलक यह नहीं समझता है कि चर या तो कोशिश या पकड़ ब्लॉक। कंपाइलर शिकायत करता है क्योंकि स्थानीय चर को एक ही समय में घोषित और आरम्भ किया जाना चाहिए, लेकिन आपने इसे अभी घोषित किया है। यदि आप इसका उपयोग किसी भी ब्लॉक (प्रारंभ, पकड़ने, अंत में) में करते हैं, तो इसके बारे में बिना शिकायत की शिकायत करते हैं। इसे आज़माएं: int i; Try {system.out.println (i...

javascript - After ajax page allready reloads. -

I'm just searching Ajax to know it. I try the following Javascript test code. / P> & lt ;! DOCTYPE HTML PUBLIC "- // W3C // DTD HTML 4.0 Transcription // N" & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Ajax demo & lt; / Title & gt; & Lt; Meta name = "" content = "" & gt; & Lt; Script type = "text / javascript" & gt; Function aa () {var xmlhttp; If (window.XMLHttpRequest) {// code for IE7 +, Firefox, Chrome, Opera, Safari xmlhttp = New XMLHttpRequest (); } Else {// code for IE6, IE5 xmlhttp = new ActiveXObject ("Microsoft.XMLHTTP"); } XMLhttp.open ("GET", "getprod.php", false); Xmlhttp.send (); Document.getElementById ("myDiv") innerHTML = xmlhttp.responseText. } & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Form & gt; & Lt; Input type = "text" name = "txta...

c++ - How to find the angle of rotation and translation using opencv if I know the homogeneous transformation matrix in 3d? -

I have received many posts about this topic, but no solution is using opencv. I am thinking that OpenCV has a function or class which can help on this topic? I have 4 * 4 affin changes in OpenCVI and I am looking to find rotation, translation assumes that scaling is 1 and there is no other change in the matrix. Is there a function in OpenCV to help find these parameters? The problem you are experiencing is known as the matrix decomposition problem. You can retrieve your desired matrix in the following steps: By these values ​​the first three base vectors Divide (thus they are normalized) Left 3x3 part of upper-matrix now represents rotation (you can use it as this, or convert it to quaternion form ) The fourth base vector of the matrix (punishment) The National coordinates - in the first three elements which are interested) your case, your scaling factor is 1, you can skip the first two steps. To retrieve the rotation matrix axis and angle (in radians) I r...

r - Is a While Loop actually appropriate here or have I (once again) misunderstood the apply family of functions? -

I am a new user of R and more programs are used for loops functions with programs like Matab, but RK I am trying to shy away from the extremities in the strength and weaknesses of implementing the tasks. The only problem is that I am not 100% sure when one should go in favor of another, for example: I have a series in which I want to convert to individual plots. I want to locate these plots at a particular point and then zoom into the area of ​​plot by determining the plot of Xml and Yelim so that the graph will contain only 80 or fewer digits and now the code For (In German) = Weg = Kraft = Strain, Zeit = Time): Data MyData & lt #reads; - read.table (file, header = true, leave = 52, dec = ",") #establishes Are the fields of MyData what are the craft's & lt; - MyData [, 2] weg & lt; - MyData [3] Zeit & lt; - MyData [, 1] #Finds is the distance plot, the area in which I am interested in Weg_Values_at_Fmax & lt am the values ​​associated with ...

javascript - Unblocking AngularJS UI -

I have an AngularJS app My app allows the user to enter and execute a number. When the execution button is pressed, then I am dynamically creating an array for processing. While the array is being created, the UI seems locked. I have the following: & lt; Input type = "text" ng-model = "numToExecute" & gt; & Lt; / Input & gt; & Lt; Button class = "btn btn-primary" ng-click = "execution ()" & gt; Execute & lt; / Button & gt; & Lt; Div class = "alert alert-info" role = "alert" ng-if = "building array === true" & gt; & Lt; Strong & gt; Building Array & lt; / Strong> & Lt; Br / & gt; & Lt; / Div & gt; $ Scope.preloadedItems = loadArray (); $ Scope.executeTests = function () {$ scope.buildingArray = true; Var i = 0; Angular.forEach ($ scope.preloadedItems, function (item) {if (i & lt; numToExecute) {$ scope.myArray.push ({id: item.id})}} i = ...

php - Variable inside recursive function change in for-loop -

I have a variable that is the argument of a recursive function, and its value changes in the warning code without it Resonate in $ idParent and for , and the value is different. Public Function Sort Carburebailleval ($ ranges, $ level max, $ IdParent, $ currentLevel = 0) {$ sorted categories = array (); $ CategoriesFiltered = array (); // Here's what I have not been considered: The echo has been sent for 'idpint fonts:'. $ IdParent; // ID for output ($ i = 0; $ i & lt; Count ($ ranges); $ i ++) {echo '& lt; Br / & gt; "For" idParent: '; Var_dump ($ idParent); // Output -1 No matter what !!!! Echo & lt; Br / & gt; Private Identity: '; Echo isset ($ idParent); $ Level = $ categories [$ i] - & gt; Level; Echo & lt; Br / & gt; RAN & lt; Br / & gt; '; If ($ level == $ current transaction) {echo ' ID] [0] = $ categories [$ i]; Echo & lt; Br / & gt; ENREGISTREMENT & lt; Br / & gt; ...

mysql - Eloquent Pivot Relationship with 2 tables -

I can not be that it is not sure, but I have two tables: parts: ID part_number details multiplier Kit type ======================================== = ====================================== 2012 ADH01-PRCD01-E program disks 1.00 0 3 2013 ADH01-STHO01 e aim Worksheet 1.00 0 3 2014 ADH01-STPT01 e student post-test VA 1.00 0 3 2015 ADH01-STPT02 e student post-test vB 1.00 0 3 kit_parts: ID kit_id part_id ======= == ===================== 1 2012 2013 2 2012 2014 3 2012 2015 If parts have been set in the table , Then he Need to see the parts of the kit to know what is included. I am trying to figure out how this can make a relationship with Laravel in a relationship with a model. Does anyone know that this is possible? Thank you Assuming that each part only ever a kit, You can do this in your part model with a one-to-many relationship referenced column at kit Public Function Kit () {Return $ This- & gt; Hamind ('part', 'kit', 'kit'); } F...

jquery - Custom scrollbar for Bootstrap Table -

I have a stripper table that uses the bootstrap table with the following code (from the first example). I need to find a way to scrollbar to look exactly the same as being generated by SlimScroll (). This is a non-negotiable client requirement. & lt; Table data-toggle = "table" data-url = "data 1.jason" data-cache = "incorrect" data-height = "299" & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th data-field = "id" & gt; Item ID & lt; / Th & gt; & Lt; Th data-field = "name" & gt; Item name & lt; / Th & gt; & Lt; Th data field = "value" & gt; Item price & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; / Table & gt; Question: 1) Is it possible, and if so - how? 2) If this is not possible with the bootstrap table, is there a library that will make such a scrollbar for a person? (SlimScroll only works on ...

uiview - Position of Nib-loaded Subview incorrect in iOS 8 -

Image
I have a custom class called CNJobMapView which is the subclass of UIView. This custom class loads one view from a nib file and adds it as a subview, so I do this so that I can add a UIView object to a view in the storyboard, give it a CNzab mapview custom class, and when I If you run the app then it will appear in that scene. I accept CNJobMapView's awakeFromNib method, such as: - (zero) awakeFromNib {[NSBundle mainBundle] loadNibNamed: @ "CNJobMapView" owner: self choice: zero]; [Self add sbewview: self Content view]; [Self interval setup]; } In this case, the self.contentView is the main view in the nib named "CNJobMapView" It is connected to IB. In iOS 7 and 7.1, it all works properly. It looks like: In iOS 8, this is true ContentView does not work correctly appears in the wrong position. Such as: I do not know why it is different IOS In 8 I will find some help in detecting this problem! I got the answer! Apparently in iOS 7, i...

javascript - Animate element from left to right with specific transition -

Image
I have an element that I want to behave like this: Perhaps it's easy to use GIF, but my goal is to scripts (Or CSS), so I want to animate the "cube" like a gif with the same behavior. So far, I get the "cube" from left to right, but I am Can not find where I slow "Cube to be close to the center"; and speed when it gets away from the center. HTML: & lt; Div class = "holder" & gt; & Lt; Div class = "cube" & gt; & Lt; / Div & gt; & Lt; / Div & gt; CSS: .holder {status: relative; Width: 400px; }. SEB {status: absolute; Exhibit: None; Background: # 48a548; Width: 10px; Height: 10px; } Jquery: var width = $ (".holder"). Width (); ({Left: "100%"}, width). Fade ("slow");}, 2500); Here's the animation using the right alignment and CSS (better performance). @ -webkit-keyframe loader {0% {left: 0%; } 100% {LEFT: 100%; }} @ Keyfram...

php - Removing next/previous links on first & last posts in Staceyapp V.3 with Twig -

I am using Stacey V.3 app for a small site of mine. On my blog posts, I want to link the previous and next to navigate through different positions. easy. What I would like to do on my last post, it will remove the 'next' link, which will be essentially a link to the post before my collection. I do research and try to use this snippet which is not working {pageibliblings%} {{For Brother Sister}% { % If loop.first%} should not be generated {% else%} {% include 'partial / next-page'% '%} {% Endif%} {% endfor%} My knowledge of TIG and PHP can be written at the top of a pin, so I will be honest with you. I am trying to do something like this {else} {show a next and previous link on each post} Please do not shoot me because I am a news " previous project page To remove the next project link: Change the contents of the template /partials/next-page.html with: { % If page.is_last%} & lt; P & gt; & Amp; Nbsp; & Lt; / P & ...

php - Rewrite Subdirectory to URL String with Episerver Platform -

I need to create a rule that defines the sub-directory "" of the URL string To prevent duplicate URLs, the product ID number was added at the end of all the URLs, but it should not be in their own folder. The platform episode is an example: www.example.com/products/blue-to/2324 www.example.com/products/hair-spray/3374 www.example.com/products/blue-to-2324 www.example.com/products/hair-spray-3374 You can use this rule as your first rule in your root. Htaccess: RewriteEngine On RewriteRule ^ (Products) / ([^ /] +) / ([0- 9] +) /? $ / $ 1 / $ 2- $ 3 [L, NC, R = 302]

c - Difference between __pragma(deprecated) and __declspec(deprecated) -

To degrade the object as C / C ++ in Visual Studio, you have three solutions: #pragma dislikes (x) __pragma (deprecated (x)) __discacks (excluded (x)) The first two are identical, except that only one other can be used inside a macro; The first person I have kept for the first time is only for perfection, the third person is the most used in the community. I wonder what is the difference between the two people. According to the documentation on MSDN and, I think there is no difference. The strange thing is that different warning codes are raised depending on what you are using: C4995 for Proge-case, C4996 for declspec-case. So someone knows whether there really is a difference (any small), or why do not these instructions raise the same warning code? With the exceptions given below, Deprecated Declaration similar functionality to the excluded pragma : Deprecated You can specify the special form of freeze overload in the form of dislikes, while the pre...

javascript - Fotorama container doesn't get its initial width after fullscreen -

On some actual projects, I use photomars over time. I had to work totally on some part of this website (fullscreen is also allowed) Anyway, there is another template I need in the slider and there it is a strange behavior that I am fine Can not drive me and drive me crazy And it's about accountability. As long as I do not allow fullscreen, it works fine, fullscreen mode works well, but then when I click to exit the fullscreen mode, div Fotorama_stage & lt; Div class = "fotorama__stage" style = "width: XXXpx; height: XXXpx;" & gt; Its initial value is not returned, it stays at the stays, the image gets more than displayed. When I change the size of the window, the correct width value is assigned to the DOM, and everything looks fine. Can anyone tell me what should I look?

javascript - Bind click event to jquery.appear -

I'm using the plugin Jquery. I am working with a project. It works great and it's free, but I'm curious to know if I can tie it a click event. Actually what I am after I scroll to a certain device on the page, a fire incident It seems, is easy. However, I would also like to make it, so I can have a 'click' event fire, but the user can actually fire without having to click So I was thinking using the tie. It would be possible I would have included $ (Document.body) $ (function () {var $ visible = $ ('# boost-que'); $ (' # Boost-que '.) Manifest (); $ (document.body) .one (' displayed ',' #but-que ', function (e, $ affected) {function test scroll (warnings (' works ');} $ (Document.body) .bind (click on' TestScroll '); $ empty ();});}); This work Does, but I have to click physically to create click event fire Is there a way to bind the click event, so that it will set itself on fire? Any input is always appreciate...

animation - jQuery: Animate on change of .innerHTML or .text -

I translate my site with jQuery, dynamically by translating it like this: & lt; Span id = "mySpan" & gt; Some English & lt; / Span & gt; $ ('# MySpan') Html ("Something else in Spanish"); This works great, but due to changes in the length of the text, it is a difficult transition, the new text just appears and the original element is immediately changing the shape. Is there an easy way to reduce / ease the transition during change of text? Well like fading and / or resizing? I know that is possible with hidden elements, but because I have lots of text, I do not want to load it if not. Thank you! OK, if your duration element has a parent, for example For: & lt; Div class = "parent" & gt; & Lt; Span id = "mySpan" & gt; Some English & lt; / Span & gt; & Lt; / Div & gt; You can do this: $ ('# mySpan'). Chetan ({'opacity': 0}, 400, function () {$ (t...

Can chrome extension background call a function defined in popup? -

यहाँ मेरा प्रकट होता है {"manifest_version": 2, "name": " "", "विवरण": "" "परीक्षण", "संस्करण": "1.0", "अनुमतियां": ["सक्रियटैब", "टैब"], "ब्राउज़र_अनुप्रयोग": {"default_popup": "index.html"}, " पृष्ठभूमि ": {" स्क्रिप्ट ": [" background.js "]}} मेरे index.html में मेरे पास है: & lt; html & gt; & Lt; शीर्ष & gt; & Lt; script src = "jquery.min.js" & gt; & lt; / स्क्रिप्ट & gt; & Lt; script src = "script.js" & gt; & lt; / स्क्रिप्ट & gt; & Lt; / head & gt; & LT; बॉडी & gt; & Lt; div वर्ग = "कंटेनर" & gt; & Lt; / div & gt; & Lt; / body & gt; & Lt; / html & gt; और मेरी स्क्रिप्ट.जेएस में मेरे पास है: var चैट = फ़ंक्शन (उपयोगकर्ता नाम, अवतार) {username = username} ""...

how to goup items in a list of dictionaries by matching values ​​in python -

मेरे पास शब्दकोशों की एक सरणी है: dictionaty = [['' name ' : '' आग ',' कमांड ':' 1; 2; 3; 4 '}, {' नाम ':' मस्तिष्क ',' कमांड ':' 2; 2; 3; 4 '}, {' name ':' शब्द ',' कमांड ':' 1; 3; 4; 5 '}, {' नाम ':' सेलफोन ',' कमांड ':' 6; 1; 3; 4 '}, {' नाम ':' महासागर ' , 'कमांड': '9; 3; 7; 4'}, मैं उन शब्दकोशों को कैसे प्राप्त करूं जिनके पास दूसरे और तीसरे मान के साथ ';' क्रमशः बराबर? उदाहरण के लिए: 'कमांड': '1; 2; 3; 4' बराबर है 'कमांड': '2; 2; 3; 4' आप उपयोग कर सकते हैं आप लैम्ब्डा अभिव्यक्ति का निर्माण कर सकते हैं जो कि 'कमांड' कुंजी से संबंधित मान की खोज करती है, फिर [1] और पाता है [2] ';' चरित्र पर विभाजन के तत्व। d = [['' नाम ':' आग ',' कमांड ': '1; 2; 3; 4'}, {'नाम': 'मस्तिष्क', 'कमांड...

java - How to append cell (String) value from Excel file to JTextArea? -

This is my problem: I try to add value from cell loop to excel file . I use this part of the code: workbook workbook = new HSSFWorkbook (new file inputstream (file chooser.gate selected file)); Sheet Sheet = Workbook. Gadgetsite (0); (Iterator & Lt; Row & gt; rit = sheet.rowIterator (); rit.hasNext ();) {line line = rit.next (); (Iterator & lt; cell & gt; cit = row.cellIterator (); cit.hasNext ();) {cell cell = cit.next (); Cell.setCellType (Cell.CELL_TYPE_STRING); While (cit.hasNext ()) {notatnik.append (String.valueOf (cell.getSheet). ToString ()) "" \ n "); } System.out.print (cell.getStringCellValue () + "\ t"); } System.out.println (); } But it has only got value back "1" or "org.apache.poi.hssf.usermodel.HSSFSheet@6325a3ee". I have the value for example in Excel: 1 SP 25 KP 5 6.5 etc. What should I do to get this value back to JTextArea from Excel? PS I use the PoI 3.10 library. You're a little ...

javascript - Weird Behavior when eq() is followed by attr() -

I was trying to create a button with jQuery that fade all target devices one by one and then He used to fade again. . I know that I have to fulfill the same thing. (And) loop, but as I mentioned, I am trying to understand this part of jQuery. This code is var divCount = $ ('. Box'). Length; Var counter = 0; Click $ ('.button') (function () {var divAttr = $ ('. Box'). Eq (counter) .attr ('class'); if (divAttr! == 'hidden' & amp; Counter> = 0 & amp; counter & lt; = divCount) {$ ('.box'). Eq (counter) .attr ('class', 'hidden'); $ ('. Box'). Eq (Counter), css ('background', 'gray'); $ ('. Box'). Eq (counter) .css ('border', '1px solid black'); counter ++;} And here's my problem, this line of code is: $ ('. Box'). Eq (counter) .attr ('class',' Hidden '); If this is active then the script only / other devices I know that ...

Optimize image size in Parse.com -

I have a strange problem with the way to resize on parse image modules: First of all I have a 3.8MB (1920x1080px) The image gets a parse cloud code, then I will resize it to 384x216 pix. I do not know when I download the resultant image in my front application, the file size is still 3.8 MB, while the size of the image I have my users Can not allow images to be compelled to download so heavy Any suggestions about how to solve it? I am ready to work with an external library, as long as it can be executed on parse cloud code. Do not resize images in the cloud, resize them on the clients and send small files to the web. But it takes less processing time to resize them than travel. You are seeing an old image in front of your application, probably because of internal cache of pars. Queries that have been sent before loading the cache to reduce the amount of data transferred. You can easily see and reset the application and see that your images might work well.

elasticsearch - Way to populate Logstash output variable without getting it from an Input? -

Do any output variable to supply a value without dragging it into Logstash Tell A LogStash Input? For example, in my case, I want to create an elastic search index based on an executable run ID (which I was doing with an external script) and must send the logstash. For now though I have been thinking of making a TCP input just to get a PERF run info and then have a filter to match on run ID though it seems a complicated way to do this. For example: input {tcp {type = & gt; "Perifino" port = & gt; 8888}} If [type] == "perfoffo" {id matches something to remove} output {elastic search {cluster = & gt; "Michelter" manage_template = & gt; False index = & gt; "% {Id} -perftest"}} I'm not sure that setting the manage_template to the wrong would be really necessary. I've read that this is it. Update thanks for that using Nirdesh Ruby can be very easy. When I was waiting, I tried to use a groke filter: ...

compilation - compile c++ file includes are not being found -

इस सवाल का पहले से ही एक उत्तर है: 28 जवाब मैं कुछ त्रुटियों को प्राप्त कर रहा हूँ किसी प्रोग्राम को संकलित करना, किसी कारण से यह मेरी शामिल लाइब्रेरी नहीं मिलेगी। क्या मैं कंपाइलर का सही उपयोग कर रहा हूं? Im नीचे मेरी निर्देशिका और संकलक का उत्पादन लिस्टिंग। धन्यवाद, इस तरह से सहित आईएम: # शामिल "lib / RF24 / RF24.h" पी @ रास्पबेरीपीगिम ~ Makefile lib / सैंडबॉक्स $ ls उदाहरण bcm2835.o nRF24L01.h RF24.cpp RF24 test.cpp अनुकरणीय @ raspberrypigym ~ / सैंडबॉक्स / lib $ ls RF24 अनुकरणीय @ raspberrypigym ~ / सैंडबॉक्स / lib / RF24 $ ls bcm2835.c readme.md ओ bcm2835.h librf24-bcm.so.1.0 RF24_config.h RF24.h अनुकरणीय @ raspberrypigym ~ / सैंडबॉक्स $ जी ++ -Wall test.cpp -ओ परीक्षण /tmp/ccXhlYKu.o: समारोह में `सेटअप () ': परीक्षण । सीपीपी: (। + टेक्स्ट x 0x14): `आरएफ 24 :: शुरू () 'test.cpp: (। + टेक्स्ट + 0x24) के लिए अनिर्धारित संदर्भ:` आरएफ 24 :: सेट रीसेट्स (अहस्ताक्षरित चार, अहस्ताक्षरित चार)' परीक्षण के लिए अनिर्धारित संदर्भ सीपीपी :( पाठ + 0x3c...

python - How to compare hdfs file with unix file? -

I want to compare the HDFS file with the Unix file. I know that using the cat command in the same way we can compare the files because the cat command is provided by the Hadoop Distributed File System (HDFS). Let's take an example: # hdfs dfs -ls -r / demo-rw-r-r-- 3 root hdfs 129617 2014-10-17 12 : 22 /demo/abc.log #l / tmp xyz.log I want to compare abc.log here. Code> to xyz.log . Any better approach ?? You can probably use shell redirection + diff diff & lt; (Hdfs dfs -cat / demo / abc.log) & lt; (Cat /tmp/xyz.log)

jsf - Rich:autocomplete keep showing after rendered false -

I do not know why, but my automatic completion is disappeared field after false set wrong but not a substitute & lt; rich: autocomplete id = "# {idClassificacao} inputAutoComplete" value = "# {campoClassificacaoBean.valorSelecionado}" auto-complete method = "# {campoClassificacaoBean.autocomplete}" var = "classe" autofill = "false" Minchars = "2" mode = "Ajax" Chunenprtham = "true" FetchValue = "# {} Classekid" disabled = "# {Campo Clasifaikoko Bean. Clasifikakaamidikao}" Onsaititm = "# {on Ichet Itom full} ();" StyleClass = "inputClassificacao" layout = "table" sung = "# {campoClassificacaoBean.contextoConsulta}" & gt; & Lt; Rich: Columns & gt; & Lt; De: classeDetails classe = "# {classe}" printanoplano = "true" /> & lt; / Rich: Columns & gt; & Lt; / Rich: Autocomplete & gt;

iphone - Proper graphics for iOS Device Family -

As the iOS device family gets bigger than the coming of iPhone 6 and iPhone 6+, I'm a bit confused. / P> iPhone (non-retina): What graphics do you need to provide to fully optimize the visual experience for the image iPhone 4/4 S / 5/5 S / 5C (retina): image@2x.png (100 px x 100px) iPhone 6: ?? IPhone 6+ (HD Retina): image@3x.png So I understand that if you provide a graphic (Image.png) format, @ 2x format ( Image@2x.png), and @ 3x (image@3x.png) format, that you should be good to go, but how about iPhone 6? The graphics and layout that I've used for the iPhone 5 devices just scales to fit the big screen of the iPhone 6, but I wonder if I need a different set of graphics for iPhone 6 or not? Actually, I'm confused to some extent how we can export each graphical property in our projects so that it works perfectly for all devices, including new ones! Any help would be greatly appreciated on this matter. This is probably a simple solution, but some good exp...

java - Programatically create exclusion parameters in Apache CXF? -

I am creating a secure web service that queries the database using a query queryeria object. There are fields like 'color' and 'size' in QueryCriteria. public string getObject (@Context final HttpServletRequest httpRequest_, @QueryParam ("") Last question serenity criteria) {...} I want to be able to query for color! = Blue However, the only way I can think of doing this is, for each field in QueryCriteria, there is an exclusion field, e.g. Exclude, Exclude Color This will add a lot of bloat to my criteria objects, is there a more elegant solution to my problem? Answer: Answer: Answer: OK, here is a solution that I thought. For each region, create two sets, e.g. SetExcludeColor and setColor. Both will modify a pair, where the left side of the pair is included and what's right.

javascript - Dropbox dropins conflicts with underscore -

I have a web application that uses underscore and dropin dropbox APIs. Today, web applications suddenly stop working due to JS error at load time: is undefined function error comes from this statement After some debugging, I have found that _ global variable _ _ Each (...) ^ is no longer set to underscore but in reality the dropin is set to the Dropbox API Now, _ All parts of my application, which rely on , have to be isolated. Commenting on the line where dropin is loading, fixes the problem, underscore is now loaded OK However, for my Dropbox The application support is completely broken. Question Has anyone seen this error before? How can I solve it without making too many changes in my application code?

unity3d - My GameObject's transform won't rotate through 360 - "pingpongs" between 270 - 90. (Unity 3D C#) -

Sorry in advance if it is difficult to comply, then I need to draw a diagram when I need it. I am using Unity 3D to develop a game and I am having trouble in the player's adaptation. The game is the first person, 3D, and there are points where the gravity will change, the player will be allowed to walk with a wall - it's all up and running. When the severity of the players is such that it moves on a wall, when I behave strangely to rotate the character to see its result, it can rotate through a full circle and There are no visible problems with the character while playing the game. If I look at the Inspector in Play mode, suppose I am continuously correcting, the following happens: Rotation rises to 90 degrees As soon as it reaches 90 degrees, it starts returning to 0 in the opposite, as I have changed direction Then it counts the last 0 and Moves up to 270 - Once it hits 270, it starts counting back again, increases to 90, and so on. Mr. sought. The other axes...

c++ array to array assignment -

मैंने लिखा है कर्मचारी वर्ग: # include & lt ; iostream & gt; # से & lt में शामिल हैं, स्ट्रिंग & gt; नेमस्पेस एसटीडी का उपयोग करना; क्लास कर्मचारी {निजी: इंट आईडी; इंट वेतन [12]; Int annualS; स्ट्रिंग का नाम; सार्वजनिक: कर्मचारी (इंट आईडी 2, स्ट्रिंग नेम 2, इंट सर [12]) {आईडी = आईडी 2; नाम = NAME2; वेतन = सरणी; // यहाँ त्रुटि कहाँ हुई } ~ कर्मचारी () {cout & lt; & lt; "ऑब्जेक्ट डिस्ट्रक्टेड"; } कर्मचारी () {id = 0; नाम = "Mhammad"; } एंट एनयुलल सेलेरी () {के लिए (इंट आई = 0; आई & lt; 12; i ++) {वार्षिक एस + = वेतन [आई]; } वापसी वार्षिक एस; } इंट टैक्स () {रिटर्न (वार्षिक एस * 10/100); }}; शून्य मुख्य () {इंट वेतन [12]; के लिए (इंट आई = 0; आई & lt; 12; i ++) {cin & gt; & gt; वेतन [i]; } कर्मचारी मोहम्मद (10, "मोहम्मद", वेतन); अदालत के & lt; & lt; Mohammad.annulalSalary (); अदालत के & lt; & lt; Mohammad.tax (); } ... लेकिन जब मैं इसे संकलित करता हूं, तो कंपलर निम्न त्रुटि देता है: को ...

winapi - How do I extend nonclient area into a window thinner than 16 pixels? -

I am working on the project for which I have to draw a thin line horizontally on the screen and drag it vertically. To add some variation, I am trying to add the DWM glass effect in the window so that windows 7 and 8 can match window boders (although I know I will not get transparency in Windows 8). I have drawn the line by creating a child window with an extended non-client area in the client area with an era like DumexFontFriendInteractiveAiria: margin margin = {-1, -1 , -1, -1}; DwmEnableComposition (DWM_EC_ENABLECOMPOSITION); DwmExtendFrameInClientArea (DIV_HWND, and margin); And I will create a window like this: hwnd DIV_HWND = CreateWindow (DIV_NAME, NULL, WS_VISIBLE, 0, 0, mon_info.rcWork.right, Mon_info.rcWork.top + 3, top-> HWD, Faucet, H-Instance, Faucet); and thus window class: const wchar_t DIV_NAME [] = l "DIV"; WNDCLASS DIV = {}; DIV.lpfnWndProc = DIV_PROC; DIV.hInstance = hInstance; DIV.lpszClassName = DIV_NAME; DIV.hCursor = Loaders (NU...

Simple Git workflow -

I seem to have a problem with setting up a simple workflow that appears to be with GET. I have two developers, Dev and Deob God creates a branch from 'Master' ... git checkout -b ' Newbranch ' Deva has made changes in the new branch and commits git add git commit -m' newbranch changes' Pre> She has made changes in the new branch and has pushed the change in the original GIT add GIT commit- M 'message' git push --all Deva needs to make changes with the remote and it becomes ... GIT checkout Newbrain GIT bridge - You asked to drag all of you with remote'all ', but No branch specified. Because this is not the default configured remote for your current branch, you must specify a branch on the command line. Then ... git branch -r original / new branch original / head - & gt; Basic / Master Origin / Master Then ... GIT bridge original / new branch deadly: 'original / nebrobrunch...

mysql - Isint Memcached doing the same job as Buffer pool in Innodb? -

is that I consider it as: buffer pool in INODAB : This stores the index and data from the SQL table and caches it for future queries, so it does not need to disturb MySQL at all times. Memkachad : It is used to store data from the insod and cache, so there is no need to ask Enodab every time. Does not they both do the same thing, caching the feedback in Rama, then it gets faster and decreases I / O and SQL Parsing? Then why add another layer of memcatch to the top of the Indob buffer pool is managed by InDebby. Everything needed to do the query should be in the buffer pool, so read new data from the disk used in existing data On the go, the data already present there is ejected. Adds between tables is still expensive, even if table buffers are in the pool. On the other side, Memcatch is an important-value store where no relational operation can be performed on the data stored, just inserted and retrieval. Usually the results of long lasting or heavy questions are s...

sas macro - SAS put variable format in title -

I have a variable agegroup , which many categories, such as: 1 = "0- 5 "2 =" 6-10 "etc. If I agegroup I am by making a macro to print data and to age group format in the title, so how can I do it? % macro Apiprint (Age Grade = 1); Proc print data = age; Title "Age Group and Age Grade"; Run; % improvement; If I run this macro am I like the title "age group may be printed as" age group 0-5 "instead of" 1. Is there any sign? Thank you! You can also use the # byval (age) option, assuming it is formatted in the title: proc format; Let grpformat 0 - 12 = '0 - 12' 12 - 14 = '12 - 14 'Other = "Other"; Run; Proc sort data = sashelp.class = class; by age; Run; Proc print data = square; by age; Format age grpformat.; Title "Age Group # Beewell (Age)"; Run; You can still use the same method if you need a macro to control that where the output is going for example: % macro ageprint (...

regex - Error: pattern must be a RegExp -

I need to accept a mobile number as the input of the web service, but validating it with the JOI framework The following problem is facing. Joy says: Error: Pattern should be a regular expression on Object.exports.assert (/ home / pride / pride-drive / code / nodejsWorkspace / ragchews / Node_modules /joi/node_modules/hoek/lib/index.jsitter24:11) internals.String.regex (low to / home / gaurav / gaurav-drive / code / nodejsWorkspace / ragchews / node_modules / joi / lib / string Js: 107: /home/gaurav/Gaurav-Drive/code/nodejsWorkspace/ragchews/src/validators/userValidator.js:10:40 at 10) on the item & lt; Anonymous & gt; (/home/gaurav/Gaurav-Drive/code/nodejsWorkspace/ragchews/src/validators/userValidator.js:13 jun) on Module._compile (module.js: 456: 26) at Object.Module._extensions..js (Module.js: 474: 10) on module.load (module.js: 356: 32) function. for validation. Module (. Module: User Profile Validation = Function () {Return {Payload: {UID: JOI. String (). R...

javascript - Grab File From Address Using hostname -

How do I ask this question properly, it is not at all obvious. I am trying to customize an existing script and it so that people do not manually enter the URL to use the domain: window.location.hostname . Original code: & lt; Script type = "text / javascript" src = "http://enter-your-domain.com/feeds/comments/default?alt=json&max-results=5" & gt; & Lt; / Script & gt; This is what I tried: I do not understand how it works properly. You are twice the nest of the Sprague Tag, just use: & lt; Script type = "text / javascript" & gt; Var getDomain = "http //" + window.location.hostname + '/ feeds / comments / default? Alt = Jason and max-result = 5 'Return Guest Domain & lt; / Script & gt;

How can I customize the line highlight color in Vim CtrlP? -

When I being highlighted as using Vim plugin I have a hard time to file the current file I Can open I want to be the main attraction line bright and vivid. I can change the color of your CursorLine settings, but I do not want it to change everywhere. When I am editing files normally I want to be a subtle background-ish color to my main attraction cursor line. How can I change the color of the attraction line in the CtrlP file selection buffer? I've got a lead on a fix for this. CtrlP provides called a setting Ctrlp_buffer_func , which you set the function to call every time CtrlP load and when it exits. . In my .vimrc file, I just set the highlight color to a bright and vivid colors to load CtrlP, and then when I quit CtrlP to set it back to my default let g: ctrlp_buffer_func = { 'Enter': 'BrightHighlightOn', 'Exit': 'BrightHighlightOff',} function BrightHighlightOn () Hi CursorLine guibg = darkred endfunction function BrightHighl...