back soft

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

Why does my braces shows error?

Vote count: 0 enter image description here enter image description here Hello everyone. Today i started writting a code so i could open second activity while i am pressing on the button. And i am keep getting the "{}" brace errors. I also created manifest "android:name=".activity2">" But i can't find the way how should i fix my braces to stop showing error? Any tips to fix the problem? Thank you :) asked 43 secs agoTadas Let's block ads! بخوانید...

ادامه مطلب

How to retrieve stdobject class outside the foreach

Vote count: 0 Array ( [0] => stdClass Object ( [rating] => 2 ) ) How do I get the rating value from this array asked 5 mins agoSuganya Rajsekar 1 Answer Vote count: 1 This value is an array containing elements of type stdClass. These elements have fields that can be accessed using element->field_name. Since you want to access the rating of the first element in your array (= at index 0), you should use $array[0]->rating answered 40 secs agochristophetd Let's block ads! بخوانید...

ادامه مطلب

DocPad How can I include file into eco template

Vote count: 0 I'm writing application with Docpad and I want to not duplicated navigation code in two different ECO templates. How can I include this code from exteal file? I was trying with include() function but it seems doesn't work. asked 1 min agouser3219243 Let's block ads! بخوانید...

ادامه مطلب

Python/Tkinter: why does the .get method of IntVar shows same value when clicking different radiobuttons?

Vote count: 0 Brief overview of the programme: When launching script, the dialog window is appearing and asking you to select directory path (class MyApp) When selected - one need to push "Start Monitoring" button. This action withdraw main window (root) and initialize container (class FrameContainer) consisting of two frames, namely 'PageOne' and 'PageTwo' (see corresponding classes). Button "Back Home" on "Page One" should destroy the instance of class FrameContainer and show again the dialog window - this action is realized using methods .update() and .deiconify(). Selection of any of the radiobuttons on "Page One" should change the value of variable "rb_indx" - it is realized using .get(...

ادامه مطلب

how sort DropDownList items alphabetically asp.net

Vote count: 0 I am quite new In asp.net. Today I want to sort my drop down list. This is my controller of editing: public ActionResult Edit(int? id) { if (id == null) { retu new HttpStatusCodeResult(HttpStatusCode.BadRequest); } User user = db.Users.Find(id); if (user == null) { retu HttpNotFound(); } ViewBag.DefaultCustomerProjectId = new SelectList(db.CustomerProjects, "Id", "Name", user.DefaultCustomerProjectId); ViewBag.DefaultServiceId = new SelectList(db.Services, "Id", "Name", user.DefaultServiceId); ViewBag.CustomerId = new SelectList(db.Customers, "Id", "Name", user.CustomerId); retu View(user); } And this is my edit view @model TimeReportingLib.User @{ ViewBag.Title = "Edit"; } Edi...

ادامه مطلب

How do i change the color of Dropdown menu on selecting an entry?

Vote count: 0 This is a sample code: Volvo Saab Opel Audi Now when i select an option, i want the minimized dropdown menu rectangle to change it's background color, highlighting the selected option.If i choose 'Saab', the rectangle should tu 'red', if i select 'volvo', the rectangle should tu 'green'. How can this be implemented? asked 25 secs agoManish Chawla Let's block ads! بخوانید...

ادامه مطلب

How to fix the the soft button overlapping the app in windows phone?

Vote count: 0 The bottom part of the app is being covered by the soft buttons in Nokia Lumia 640 XL and similar phones. I am developing an app in IBM worklight, backbone JS and is a Hybrid platform. asked 33 secs agoAnand C J Let's block ads! بخوانید...

ادامه مطلب

PHP - how do I get top ten records from database by highest to lowest

Vote count: 0 I've searched everywhere including Stackoverflow for my answer and couldn't find the exact information's I was looking for. Like I've tried those answer's in other sites and some answer's here at StackOverFlow and it didn't work. The problem is that I am working on a project where displaying the highest reputation by top ten (aka: "Leaderboards/Charts") but keep getting low (first) and then random (eg: low, high, low, medium) based on reputation. It's weird, I'm not experienced in SQLi commands, so call me a noob (I'll accept). Here's the code I have currently written that doesn't work: Leaderboards top ten User Reputation Points The results that comes up is: jay 100 ray 1000 j...

ادامه مطلب

How do copy formulas that contain defined names and unlock the cell refrence in excel 2016?

Vote count: 0 If I have a formula =sumif(dates,A1,column_1) =sumif(dates,A1,column_2) ----------------------------- =sumif(dates,A1,column_30) Normally if the ranges were not defined then I would be able to change column_# into something like =sumif(dates,A1,C$1:C$10) where C is not locked, so when copying horizontally it would change the columns referenced automatically. How would I do the same with defined names? asked 2 mins agoAasim Azam Let's block ads! بخوانید...

ادامه مطلب

How do I describe the a type in typescript that has dynamic name?

Vote count: 0 I want to describe a type that has the following behavior export class myData { key : string; display_name : string; } However I want to have dynamic name for key and display_name eg. the following would be valid myData type mySample1:myData = { myKey : 'myKeyValue' myName : 'myNameValue' } mySample1:myData = { myKey2 : 'myKeyValue2' myName2 : 'myNameValue2' } Is this possible in typescript? If it is possible, is this a good idea in typescript? asked 30 secs agotesting Let's block ads! بخوانید...

ادامه مطلب

How to do push notification in android using GCM

Vote count: -1 I am very new to the world of android programming. In my project i have to do push notification using GCM. I have searched for it in inteet but haven't found any useful article. Could anyone suggest me any article related to implementing push notification in android. Thank you in advance. SAJITH asked 2 mins agoSAJITH Let's block ads! بخوانید...

ادامه مطلب

Using CSS and/or JavaScript, how do I scale a block element to appear close to the same size on multiple mobile devices?

Vote count: 0 I built a Google Cardboard app (or at least a Google Cardboard-compatible app with room for improvement) that works well on phones with 5-6" screens (iOS and Android) and a Google Cardboard viewer designed to work with those 5-6" screens. However, if viewing the app in a larger "phablet" screen, vision doubles and the app becomes useless for those devices. Since the app primarily runs in the phones' stock browsers Safari and Chrome, is there a way to scale down the app canvas/block element to stay within the 5-6" range on larger mobile devices? Here is a rough illustration of what I'm trying to accomplish: So far my search brings me to answers like this one, explaining that thi...

ادامه مطلب

How does WCF service works?

Vote count: 0 I have a question about wcf service. I found out that it differs than windows service whereby windows service can be found in the task manager under the services tab. However, when I try to look for wcf service, it doesnt show up for some reason. I read online and many articles are quite confusing for me. Can anyone briefly explain to me where is the wcf service hosted at? Local machine or some sort of web server and where do I find it? Thank you! asked 3 mins agoadam laninster Let's block ads! بخوانید...

ادامه مطلب

Using a pipe inside a for loop. How do I preserve the value of the variable inside the for loop

Vote count: 0 I've been stuck for quite some time with the following code. It works but the variable loses the value that was set during the iterations. I have the following code checkIfLetterInsideWord(){ for (( i=1; i...

ادامه مطلب

How to serialize and export data in ruby 2.2.4 (Windows)?

Vote count: 0 I just started playing around with ruby, so try to be patience =). Everything seem fine until i ran into an issue: I need to export a Int converted string into binary data, so i can use it in a micro-controler. Here is part of the code: def save_hex text_hex = File.new("hex_#{@file_to_translate}.txt", "a+") @text_agreschar.each_with_index do |string_agreschar, index| string_hex = '' string_agreschar.each do |char_agreschar| string_hex...

ادامه مطلب

How to find center dots of given dots in radius of 16 (x;z)?

Vote count: 0 I'm trying to print out locations of center dots. Compared dots must be in radius of 16. Printing out only if there is more than 5 dots in one place calculating from center. Center dot is, which is nearest to all nearby dots My code is giving me fale positives and duplicates. Methods: HashMap map = new HashMap(); for (LocationCopy loc : locs) { HashSet locsCopy = new HashSet(locs); locsCopy.remove(loc); for (LocationCopy loc2 : locsCopy) { if (distance(loc2.getX(),loc.getX(),loc2.getZ(),loc.getZ()) 5) { write("More than " + map.get(loc).size() + locToString(loc) + ": " + getLocs(map.get(loc)) + "", fileName, beta); } } private double distance(double x1, double x2, double z1, do...

ادامه مطلب

Django: Static files don't show up in the website despite being referenced correctly

Vote count: 0 I've spent the entire day trying to figure out why the static files don't appear on the website despite being referenced correctly. My base template: {% block title %}Sinergia Creativa{% endblock %} {% load staticfiles %} Sinergia Creativa Promociones Contacto {% block body %} {% endblock %} My settings.py: import os BASE_DIR = os.path.diame(os.path.diame(os.path.abspath(__file__))) DEBUG = True ALLOWED_HOSTS = [] INSTALLED_APPS = [ 'publicidad.apps.PublicidadConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.content...

ادامه مطلب

How does the browser download the source file from a video tag

Vote count: 0 I am looking at a website that displays a video tag plays an m4a file. In the html the source url of the m4a file is given. The source url and the url that the player is being displayed are the same. If I load up the source url in the browser it just loads up the same player. I can download the src file by right clicking on chrome/firefox and clicking save audio/link as. How does the video tag download the m4a file from the source video? Shouldn't accessing the src url allow me to get the file the same way right clicking the player and selecting save audio as? asked 1 min agouser3587754 Let's block ads! بخوانید...

ادامه مطلب

How to move content along with window resize so that it appears in the same position?

Vote count: 0 I have a page with a grid containing three div elements. Each one of this div has the size of the viewport so at any time just one of the divs if visible and the other two are outside. So the grid is three times big the viewport. Resizing the window will cause the divs, hence the grid, to resize as well. The html is pretty simple: 1 2 3 Styled like this: body { margin: 0; padding: 0; } .container { position: relative; height: 100vh; width: 300vw; } .square { height: 100vh; position: absolute; width: 100vw; } .square1 { background: red; left: 0; } .square2 { background: green; left: 100vw; } .square3 { background: yellow; left: 200vw; } The initial position, set via javascript, ...

ادامه مطلب

How do I change a Google Map to Satellite view after its been drawn

Vote count: 0 On the following page, http://find-a-mooring.com/berth/a3/ generated by a Wordpress plugin, I want to change the view to Satellite view after the page has loaded. I have tried this: function setMapSatellite() { map.setMapTypeId(google.maps.MapTypeId.SATELLITE); } Where am I going wrong? Aoyingly the plugin writer (wp-types) have a request to add the feature (change map type) , but have not implemented it. asked 51 secs agoM1 Creative Developer Let's block ads! بخوانید...

ادامه مطلب