back soft

مطالب مرتبط با «using» در back soft | نویسنده: استخدام کار

Reusing jQuery HTML Snippet to populate data from JSON Array

Vote count: 0 I am trying to reuse an HTML snippet to fill an array of JSON data. The following piece of HTML is somewhere hidden (eg. css: #empty { display: none; } in the page. This block basically defines the HTML structure of LI tags. NAME TOTAL Now, how can I fill up the image src, href, anchor text and TOTAL value in jQuery? asked 35 secs agoBimal Poudel This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

Draw Rectangular2D using Swing on JPanel, and display the shape resizing

Vote count: 0 I have started reading Performing custom paint with swing. I wanted to extend what I read on the tutorial and draw rectangle "live". Not just the rectangle to pop up and show on the panel, but I wanted visually see the Rectangle shape resize I drag the mouse, and finally when I release the mouse I wanted it to appear on the JPanel. I have added what I did so far with research and reading. The problem is since I am trying to catch each Rectangualr2D(this is the class I want to use) shape with mouse drag it end up looking like having a black background shape. How can I accomplish my target? Thanks for suggestions as always. import java.awt.BasicStroke; import java.awt.Color; impo...

ادامه مطلب

How to display custom tooltips on line chart using Rickshaw Library

Vote count: 0 I am developing a realtime graph system which will display the memory usage at particular time using data from json file . I am using Rickshaw Library which accepts tool tip in numeric type else the hard coded value supplied as a property to graph . I have a json object as : [ { "memory": 444.08203125, "memoryInfo": { "rss": 444.08203125, "vsize": 1271.125 }, "cpu": 0.2, "url": [ "/admin/company/approved" ], "time": "2/12/2016, 10:42:09 AM" }, ... ... ] I want to show in tool tip at particular time what was the url served by server so that i can get proper information like which route is consuming more memory. I will share my so far js code with you so that it will be better to...

ادامه مطلب

Wordpress only load after contents using ajax

Vote count: 0 My wordpress home page posts are like this From nd mobiles. Get the best theme mockups on the market. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est I shows post content before tag on my home page, and trying to load after contents separately via ajax, i wrote some codes but it restuns full post, but i only need to retu after part of ex Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est only this part my code for get contents via ajax is...

ادامه مطلب

MacVim copy to system clipboard using register not working

Vote count: 0 I have been spending some time looking for my problem. I have reinstalled Vim on my mac for several times using brew. The vim --version command show that +clipboard and +xterm_clipboard, so I should be good to go. However, when I type "+yy or "*yy inside vim, the :reg command show that the register changed to the current line, but when I do paste outside vim, the content still did not change. Everything in vim I can tolerate to trade off its super flexibility, however, this copy/paste which is frequently used but extremely difficult in vim really driving me crazy... asked 2 mins agouser3646064 This entry passed through the Full-Text RSS service - if this is your content and you...

ادامه مطلب

Selecting a value from jQuery Chosen Dropdown using CodeCeption test script

Vote count: 0 Hello i m trying to pick a value from jQuery Chosed Dropdown using codeception scripting, following is dev code United States Please select country United States Canada United Kingdom Ireland South Africa Turkey Although i am able to select it using xpath via following;(United Stated in this case) $I->click(['css' => 'div#Merchantserviceproviders_country_chosen']); $I->click(['xpath' => '//div[@id="Merchantserviceproviders_country_chosen"]/div/ul/li[2]']); But the issue is that the selection is through position of the value in the list, so as if any new value(country is added) i will not be able to select it until i know its placement. I want to know how would i be able to sele...

ادامه مطلب

How to make Jlabel visible and invisible using for loop in java?

Vote count: 0 I have the following code. I want to Make jLabel Visible and Invisible 4 times with 0.5Seconds delay for every loop. The code below is not working as expected. String a = (String)jTextField1.getText(); if(a.equals("")){ for (int i = 0;i...

ادامه مطلب

Using both soft keyboard and physical keyboard in Android app

Vote count: 0 is there a way to force soft keyboard in Android 4.4 app? I'm developing an app which needs both software keyboard and bluetooth barcode reader. Barcode reader will be used in 99% of cases, but there are some options which require soft keyboard (e.g. typing e-mail address or password). When barcode reader is paired with the phone, soft keyboard doesn't appear. I'd like to keep it that way, but when user enters a selected view soft keyboard should appear. Thanks in advance! asked 1 min agopioand This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#pu...

ادامه مطلب

Ordering the output using gulp and main-bower-files (gulp-order doesn't work)

Vote count: 0 Java engineer here, new to the Javascript world, so apologies if I'm not providing enough/correct info! I have a gulp build script and use bower to manage the dependencies for my JS frontend app. I am struggling to get the (bower controlled) vendor javascript libraries concatenated in the right order so that jQuery and angular come first. If they aren't first then I get angular is undefined or jQuery is undefined when I load my application, as their corresponding javascript code is buried somewhere further down in the concatenated library. I've attempted to use gulp-order to order the output from the resulting main-bower-files call, but it appears to have no effect. My gulp tas...

ادامه مطلب

Moving a div to a new location with buttons and mouseover using math.random

Vote count: 0 I'm new to JavaScript and trying to pick up on a new skill in my free-time. I'm confused on why this "div" is not wanting to move right. Basically what I'm trying to do is have a div and three buttons. With each button, the jump/delta is changed and would randomly move around the screen with using mouseover. I've gotten the div to move in one direction, but not all over the screen. I do not care if the div moves off the screen. Here is what I have so far. What am I doing wrong here? function moveDiv() { var delta; var pos; var id = document.getElementById("moving"); if(document.getElementById("small").checked===true) { delta = 20; var pos = Math.floor (Math.random() * delta) - ...

ادامه مطلب

Creating CSV Using Multiple Ruby Queries Across All Columns

Vote count: 0 I am using Ruby to automate reporting from a remote MySQL database. I am using multiple queries (and not joining them into one) as I eventually wish to split rows based a given value in one or several columns. It also gives me the option to work across different databases or even different hosts. I am using the mysql2, watir and csv Ruby gems. My code: #!/usr/local/bin/ruby require "mysql2" require "watir" require "csv" puts "Initializing Report" Mysql2::Client.default_query_options.merge!(:as => :array) mysql = Mysql2::Client.new(:host => "1.2.3.4", :useame => "user", :pass => "password", :database => "db") puts "Successfully accessed db" month = mysql.query("SELECT DATE_FORMA...

ادامه مطلب

Using range based for loop to replace traditional nested loops in C++11

Vote count: 0 I am trying to apply the range based for loop from C++11 std in some of my existing code which has a lot of nested loops like the one below: vector myClassVec ; for(vector::const_iterator itr_m(myClassVec.begin()); itr_m != myClassVec.end(); ++itr_m) { const MyClass* star_m(*itr_m) ; > for(vector::const_iterator itr_n(itr_m +1); itr_n != myClassVec.end(); ++itr_n) { const MyClass* star_n(*itr_n) ; if (star_m->GetIndex() == star_n->GetIndex()) { } } } I want to use auto variable and range based for loop here to make my code simpler. I was easily able to apply these to the outer loop but I am stuck at how to do this for the ier loop. Are range based loops not meant for situations...

ادامه مطلب

Limit execution time of PHP imagecreatefromjpeg() function when using external images

Vote count: 0 When using imagecreatefromjpeg() and passing it a URL to an exteal image ( fetching 10 images per page, since pagination is set ), it works on pages 1-7 for example and fetches the images correctly, but when it comes to page 8 in most cases, it needs about 2 minutes to execute fetching of 10 images for that page and gives this error: Php error for imagecreatefromjpeg() I've googled this issue the whole day and found out that in most cases, the issue is the remote host that serves these images. It is either slow or has some missconfigurations on it. Now, I have setup displaying a default image if the image is not fetched through this PHP function, however, code still runs for ab...

ادامه مطلب

Direct to page using PHP or JQuery

Vote count: 0 At the moment I am using AJAX on a form where the user uploads their photo, it goes to the php to check the file and will retu a message depending if it is successful or not. I am echoing the result into a paragraph tag so at the moment my PHP will header the user to the page I want but it loads the page in the tabbed content where I am echoing the result. I caot really use the success of the AJAX to do it because it is a success even if an error message is displayed to the user Here is my AJAX $("#avatar_form").submit(function (event) { //disable the default form submission //grab all form data var formData = new FormData($(this)[0]); $.ajax({ url: 'photo_system.php', type: 'P...

ادامه مطلب

Get data using angularjs with restful web api in mvc

Vote count: 0 I need to create an application which gets the data from store procedure and display it on view. When i was passing id from view to angularjs controller, have the value of that field, but unable to get the same in web api, it displays null(while calling). To be more specific, have tried various options, some of following: Used [FromBody] Passed string value in json from angularjs controller to webapi So, when it is null, it always throws result with fail, not success. Please help. asked 1 min agoKeyur Thakkar This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-...

ادامه مطلب

Convert html page to pdf file using javascript

Vote count: 0 Can I create a pdf file using javascript? If yes, how can I do it? I need help and guide. I really appreciate for any help. asked 1 min agoD. Clara T This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

Is there any way to print the object ref that called an instance/Static method, Using byte-code instrumentation

Vote count: 0 I read somewhere that when ever a method is called by "invokevirtual", the object reference is fetched from the top of stack, followed by arguments. I need to somehow print the object reference. Is it possible? asked 4 mins agoamit kumar This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

Using JQuery.serializeArray with MaskMoney Unmask

Vote count: 0 So, I'm making an AJAX call like so (this is Clojure but the problem was the same under pure JS): (POST (str "/input/" spreadsheet "?") {:params (.serializeArray (jquery (str "#" page))) :format :json :handler render-spreadsheet :error-handler error-handler}) The problem is that I have MaskMoney components on-screen, and they retu their formatting, so "$1,234.56" comes back as "$1,234.56" and not "1234.56". MaskMoney has an "unmask" function that retus the raw value, but I think that requires me to re-do .serializeArray, which I'd prefer not to. So: 1) How do I get .serializeArray and .unmask to play together? 2) If not, should I just find the .serializeArray code, and copy-and...

ادامه مطلب

Using PHP Value with GET clause

Vote count: 0 We are using the get clause to attempt to get the current 'upload_link' to be placed in the pop up video player. however we're ruing into issues of it saying our values are undefined, and will not out put the GET values into the URL. All changes are taking place on the same page, any suggestions on a better way to pass the values welcomed as well. HTML 0 DB coections ini_set('error_reporting', E_ALL); //exteal pages area include_once('config/database.php'); //include_once('object/flickr.php'); include_once('object/youtube.php'); //include_once('bottom_db_conx_close.php'); //grabs info from the various pages.sql files $database = new Database(); $co = $database->getCoection(); $...

ادامه مطلب

How to upload multiple images using ajax in php

Vote count: 0 I am having UI like this I want to upload multiple videos using ajax in php. For that i tried FormData() in jQuery. But it's uploading only one image, not more than that. My Form file : my jQuery file: $(document).ready(function(){ $("#add").click(function (){ var $div = $('div[id^="inputdiv"]:last'); var num = parseInt( $div.prop("id").match(/d+/g), 10 ) +1; var $klon = $div.clone().prop('id', 'inputdiv'+num ).appendTo( "#athleteRegister" ).insertBefore( "#submitbutton" ); $('#inputdiv'+num).find("input").attr('name','file['+num+']'); $('#inputdiv'+num).find("input").val(""); $('#inputdiv'+num).find("input").attr('id','file'+num); $('#inputdiv'+num).find("input").css("outline"...

ادامه مطلب