back soft

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

Wrong annotation text location on basemap

Vote count: 0 I try to aotate sampling position name on each scatter sample location based on mercator projection. I used sampling position as aotation location with map projection coordinate. But placed aotation location is wrong position on map. Ex. When I aotate some position in pacific ocean, aotate text placed on Japan inland. Here is my code. from mpl_toolkits.basemap import Basemap import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1.inset_locator import inset_axes from matplotlib.patches import Polygon # create new figure, axes instances. fig=plt.figure() ax=fig.add_axes([0.1,0.1,0.8,0.8]) # setup mercator map projection. m = Basemap(llcrlon=120.,llcrlat=10...

ادامه مطلب

Pass data from a button in reused custom cell

Vote count: 0 I'm having trouble passing data from a custom cell by a user tapping a button in that custom cell. I sometimes get the wrong cells data since the cell is being reused. I was wondering if there was a full proof way to always get the right cell data to its button in each cell no matter which cell is currently on the screen. Below is my code. Any help is greatly appreciated. My Custom Cell: protocol CustomCellDelegate { func segueWithCellData() } class CustomTableViewCell : UITableViewCell { var delegate = CustomCellDelegate? @IBAction func buttonTapped() { if let delegate = self.delegate { delegate.segueWithCellData() } } } MyTableViewController: class MyTableViewController : UIT...

ادامه مطلب

React + Bootstrap + Redux value not working in form

Vote count: 0 I'm defining a form in React with Bootstrap and Redux with the following code: import React from 'react'; import { FormGroup, ControlLabel, FormControl, HelpBlock, Button } from 'react-bootstrap'; import { coect } from 'react-redux'; import './actions'; const _c = component => coect(s => s)(component); const FieldGroup = ({ id, label, help, ...props }) => { retu ( {label} {help && {help}} ); }; const LoginForm = _c(React.createClass({ render() { retu (...

ادامه مطلب

PHP Session not being saved

Vote count: 0 I have a rather strange problem; there are three pages which are using this cookie - one sets $_SESSION = 0 (as another Stack article suggested my issue might be related to PHP having difficulties with timings so 'pre-creating' the session, then writing to it might help), another file starts the session, changes the session cookie to an array with some useful data in it and supposedly saves it. Only, in this file the session will never actually get written to disk... On the third page, I will try and access the cookie and get an output of '0' (first page). I've spent a lot of time debugging this and have checked: That session_start and session_write_close are being used appropr...

ادامه مطلب

Xamarin custom attribute of reference type does not work

Vote count: 0 I'm trying to create a custom attribute for my control. Here's my attrs.xml: In my test app at root, I add this namespace xmlns:TestCustom="http://schemas.android.com/apk/res-auto" Later in my layout file I have an image view The first android:src property is fine, however TestCustom does not work. The error given is "No resource found that matches the given name (at 'testcustom' with value '@drawable/icon) So... what's going on here? Anyone have any ideas? asked 22 secs agoJames Scott Let's block ads!...

ادامه مطلب

Uncaight Error: undefined vairable google maps api

Vote count: 0 I am working on something and i ran into a small problem because a variable is not defined and I cant figure out why.The vairalbe that is pointItem which is in the first like of the marker function towards the very end initialLocation = { center:{ lat: 34.04129, lng: -118.263667 }, zoom: 14 } points = [ { name: "Maccheroni Republic", street:"332 South Broadway. ", city:"Los Angeles, ", state:"CA ", zip:"90013", food:"Italian", lat: 34.050076, lng: -118.248646, map: map }, { name:"Baco Mercat", street:"408 South Main Street. ", city:"Los Angeles, ", state:"CA ", zip:"90013", food:"Spanish-Fusion", lat: 34.047847, lng: -118.247222, map: map }, { name:"Mex Peru Gipsy", street:"414...

ادامه مطلب

PHP CURL Proxy "curl -x" VS "sudo http_proxy=... curl"

Vote count: 0 sudo http_proxy=200.108.138.118:3128 curl -L -> curl -x 200.108.138.118:3128 -L -> Received HTTP code 403 from proxy after COECT Why last one doesn't works? asked 57 secs agoNoah Burger Let's block ads!...

ادامه مطلب

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'EMAIL' cannot be null

Vote count: 0 I am new to laravel please give the solution This is user controller code when i submit the form i am getting email is null but i am inserting email. there is no laravel issue i think its mysql issue...

ادامه مطلب

.toggleClass not working, no idea why

Vote count: 0 I am trying to get a div box to expand when clicked, and go back to normal size when clicked again. Seems simple enough, but I can not get it to work no matter what I try. I have no idea what could be going wrong as the part of the code where the error is most likely to be occurring is not very long. Thanks for your time!https://jsfiddle.net/uL1r08am/ .panels { position:relative; border:2px solid silver; transition:transform 1.5s; } .panels:hover { transform:skewY(3deg); } #panel1.clicked{ width:460; height:290; } $('#panel1').on('click', function() { $(this).toggleClass('clicked'); }); $(document).ready(main) asked 2 mins agoJoshua Let's block ads!...

ادامه مطلب

Scrollspy not working on bootstrap 4

Vote count: 0 could anyone check the code here at http://codepen.io/Ago/pen/VjoPgY and tell me why isn't scrollspy working? I initiated it on body tag like this and also my CSS body is on position:relative I made sure that my links on nav have hrefs similar to the ID I want scrollspy to trigger Produktet Produktet asked 34 secs agoNex Let's block ads!...

ادامه مطلب

Ajax sending data from other php file contact form

Vote count: 0 I am new to AJAX, i came from a code in inteet about sending Ajax to php file. The problem is i dont know if the data is submitted or what happen. The alert box doesn't pop up if it was submited success: function () { alert('form was submitted'); } Here is the full form from html : Name Email...

ادامه مطلب

How to Parse JSON to [String: AnyObject] in Swift. Old answers are not working

Vote count: 0 Hi I am trying to do a simple JSON string to Object conversion. Here is the code: let u = "somehost.com/api/1/ipa/2" let url = NSURL(string: u )! let data = NSData(contentsOfURL: url)! let parsed: AnyObject? = try NSJSONSerialization.JSONObjectWithData(data, options: NSJSONReadingOptions.AllowFragments) if let json = parsed as? [String: AnyObject]{ // parse json. } but it will not unwrap correctly. Seems to me that this should be much simpler. Could someone please help? Also using Xcode 7.3 and swift 2.2. I want to avoid using a third party library. asked 52 secs agoxazb Let's block ads!...

ادامه مطلب

Not getting desired output. Is there something inherently wrong in the logic?

Vote count: 0 the input depicts no of tests followed by size of input array followed by the array and the output either gives -1 or the square of the largest prime in the given array. I am providing the code and the expected and actual output along with sample standard input used. standard input: 3 5 1 4 6 8 10 3 2 2 9 2 156 13 expected output | getting -1 -1 4 4 169 -1 #include int main(){ int test,size; int i,j; scanf("%dn",&test); while(test>=1){ scanf("%dn",&size); int data[size],factors=0,max=0; for(i=0;i=2){ printf("%dn",max*max); }else{ printf("%dn",-1); } max=0; test-=1; }...

ادامه مطلب

Google Maps Annimation - App halting at polyline.Distance();

Vote count: 0 I wonder if someone can help with my stalled Google Maps application. I am adapting the animation features of this example are on the geocodezip, for example Multiple Marker Aimation. The general code for the startAimation sequence looks like this. `function startAnimation(index) { if (timerHandle[index]) clearTimeout(timerHandle[index]); eol[index] = polyline[index].Distance(); map.setCenter(polyline[index].getPath().getAt(0)); poly2[index] = new google.maps.Polyline({ path : [ polyline[index].getPath().getAt(0) ], strokeColor : "#FFFF00", strokeWeight : 3 }); timerHandle[index] = setTimeout("animate(" + index + ",50)", 2000); // Allow time for the initial map display currentD...

ادامه مطلب

Docker exposing ports site can't be reached

Vote count: 0 I have exposed the required ports in my dockerfiles as well mapped them in my docker-compose.yml. If i create containers without a docker-compose.yml i can access everything, but if i use docker-compose.yml file i caot access 2 out of 3 images via a http-get request. But according to docker port the ports are mapped: bitmovin@bitmovin-VirtualBox:~/Documents$ docker port php-container 8080: 0.0.0.0:8080 bitmovin@bitmovin-VirtualBox:~/Documents$ docker port php-container: 8080/tcp -> 0.0.0.0:8080 bitmovin@bitmovin-VirtualBox:~/Documents$ docker port comp-container: 8080/tcp -> 0.0.0.0:8070 bitmovin@bitmovin-VirtualBox:~/Documents$ docker port phpmyadmin-container: 8080/tcp -> 0.0...

ادامه مطلب

Code works in Excel Modules but not in ThisWorkbook module.

Vote count: 0 I have a very simple piece of VBA code to copy the value of a cell, open another workbook, and paste that cell value into the newly opened workbook. It works perfectly in a normal module. But when I run the code in the ThisWorkbook module, for the purpose of triggering it when the file is saved, the other workbook will not open. Simpler macros like opening a MsgBox work fine in ThisWorkbook, however. Another weird thing is that the code DOES work in ThisWorkbook if I am viewing the code. Anyone know why this might be happening? I'm ruing Excel 2010. Code is below: Option Explicit Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) Dim rangetocopy As St...

ادامه مطلب

dynamic sql: the printed sql worked, but EXEC not work

Vote count: 0 Hi I wrote a stored procedure with dynamic sql. The dynamic sql throws error when I call it when arguments: IF OBJECT_ID('[dbo].[find_most_frequent]') IS NOT NULL DROP PROCEDURE [dbo].[find_most_frequent] GO CREATE PROCEDURE [dbo].[find_most_frequent] @table_in VARCHAR(100), @table_out VARCHAR(100), @col_group VARCHAR(100), @col_2 VARCHAR(100) AS BEGIN DECLARE @sql NVARCHAR(4000); SET @sql = --start of code 'USE CTR GO IF OBJECT_ID(N''[dbo].[two_columns]'', N''V'') IS NOT NULL DROP VIEW [dbo].[two_columns]; IF OBJECT_ID(N''[dbo].[count_in_group]'', N''V'') IS NOT NULL DROP VIEW [dbo].[count_in_group]; IF OBJECT_ID(N''[dbo].[rank_in_group]'', N''V'') IS NOT NULL DROP VIEW [dbo]....

ادامه مطلب

BigCommerce Stencil language files not working

Vote count: 0 I've enabled stencil themes for my store, and am trying to use "Coerstone" as my theme. However, the whole reason for opting in and trying out new stencil themes is their built in support for multiple languages. I need my store to at least be available in Swedish, and if possible, English as well. I've followed the documentation adding a "sv.json" file to the langs folder, and uploaded the modified theme to my store and applied it. No changes. I've ensured my browser is setting the "Accept-Language" header to "sv". https://stencil.bigcommerce.com/docs/the-schema I've also tried modifying the default en.json file, but I still can't see any changes in my store...and that seems a ...

ادامه مطلب

WinHttpRequest "send" is working on office 2007 products but not 2013

Vote count: 0 I have written some code that retrieves text from our server and writes that text into a word document. We are in the process of upgrading our office suite from 2007 to 2013, but I'm having issues when testing my previously working code in Word 2013. I've narrowed it down to the http.send line, this doesn't seem to send anything. When I run the code on 2007 suite I get a small wait and then it jumps to the http_OnResponseFinished() Sub, but in 2013 suite it doesn't enter that sub. The URL is the correct one and it looks the same/retus the same data between 2007 and 2013 suites. Public Sub Download(Url As String, Optional Async As Boolean = True) Debug.Print "About to download t...

ادامه مطلب

get metrics for google cloud pubsub

Vote count: 0 I am using google cloud pubsub and I want to know about how to get number of outstanding, delivered and undelivered messages in pubsub. Is there any available api provided by google pubsub for this? asked 20 secs agoShubham Let's block ads!...

ادامه مطلب