how to change resolution or reduce size of image
◷
تاریخ انتشار: 1395/2/9 | ساعت: 11:10
Vote count: 0 public ActionResult ChangeAvatar(CustomerModel customerModel) { string CustomerID = ""; if (Session["RoleID"] != null) {CustomerID = Request.Form["CustomerID"]; //string CustomerID = Request.Form["Customer.CustomerID"]; if (CustomerID != null) { if (Request.Files.Count > 0) { var file ...
SQL XML or JSON to return to Objective-C via ASP.NET
◷
تاریخ انتشار: 1395/2/9 | ساعت: 9:51
Vote count: 0 I have a question about getting Data from a SQL Database via ASP.NET and then passing the data over to objective-c. Currently I am just using an SQL select statement to get data from the database via ASP.NET and ASP.NET retu s the data like so: <ArrayOfKeyValueOfstringPunchListCellMode...
Error, Null Pointer Exception for SharedPreferences
◷
تاریخ انتشار: 1395/2/9 | ساعت: 9:51
Vote count: 0 So I keep getting the same error no matter how many times I try to tweak my code here and there. I will be posting every little bit of code that has to do with the error. I will not include u ecessary code so if my code doesn't look complete it's because I cut it out to make it easier ...
How to reduce whitespace in Python?
◷
تاریخ انتشار: 1395/2/9 | ساعت: 9:51
Vote count: 0 How do I reduce whitespace in Python from test = ' Good ' to single whitespace test = ' Good ' I have tried define this function but when I try to test = reducing_white(test) it doesn't work at all, does it have to do with the function retu or something? counter = [] def reducing_white...
Present read email in screen
◷
تاریخ انتشار: 1395/2/9 | ساعت: 8:31
Vote count: 0 I'm not asking how to read SMTP or POP3. I'd like to leave this clear from the begi ing. My question occurs with what happens afterwards: I'm reviewing an old application that read email and presents it on screen using 2008's techniques. Nowadays, is there a css template that handles c...
Netbeans CUnit runs once per application launch
◷
تاریخ انتشار: 1395/2/9 | ساعت: 8:31
Vote count: 0 I am using Netbeans 8.1 with CUnit testing. I can run and test my project just fine, and it spits out the correct results. However, when I try to test it again it does not give me results. Instead it only says: CUnit - A unit testing framework for C - Version 2.1-3 http://cunit.sourcef...
Angular module loading error
◷
تاریخ انتشار: 1395/2/9 | ساعت: 8:31
Vote count: 0 I have an angular project that I'm breaking out into a better file structure but I'm getting Argument 'fn' is not a function, got undefined for an error when creating a new service. Any ideas what I'm doing wrong? app.js angular.module('app', [ 'app.controllers' ]); angular.module('app...
How to filter rows in the jqueryGrid based on certain fields?
◷
تاریخ انتشار: 1395/2/9 | ساعت: 6:55
Vote count: 0 I have a dropdown menu item on the navigation bar of the jqgrid. Each menu item shows the count of the rows fulfilling certain condition. For example, number of rows that have 'XYZ' property set to true. My problem here is, When i click on this menu item, i would like to show just thos...
Selenium on Safari: org.openqa.selenium.TimeoutException: Timed out awaiting response to command "sendKeysToElement" after 30001 ms
◷
تاریخ انتشار: 1395/2/9 | ساعت: 6:55
Vote count: 0 I have a page that I am trying to test which basically consists of an upload button. Once you click the button you are given an uploader which will take a still image and convert it into a short video. The java code works fine on chrome and firefox but safari does not seem to ever see ...
Appcelerator message = "JSON Parse error: Unexpected identifier "undefined"";
◷
تاریخ انتشار: 1395/2/9 | ساعت: 6:55
Vote count: 0 I am adding new features to an app I wrote last years and is working now ... I just port the code from Appcelerator (3.2...) to the Appcelerator Studio 5.2.0.GA SDK ... and I have spent 2 days trying to figure out why code that currently works on an app in the app store is not working ...
What does enabling Google Developers Console actually do?
◷
تاریخ انتشار: 1395/2/9 | ساعت: 4:54
Vote count: 0 We have a request from a company doing work for one of our departments which would require us to enable the Developers Console in our Google Apps For Education domain. I can find scant information on what tu ing this on actually does. One of the things I did google up talked about sett...
issues with serializing and deserializing avro data using FlinkKafkaProducer / Consumer
◷
تاریخ انتشار: 1395/2/9 | ساعت: 4:54
Vote count: 0 I am facing some issues while reading / writing Avro data via FlinkKafkaProducer / FlinkKafkaConsumer through Beam. May be missing something very basic stuff. Will add the code in following posts. It would be great if someone can point to working example of FlinkKafkaProducer and Consu...
Auto detecting unflushed SQLAlchemy model changes?
◷
تاریخ انتشار: 1395/2/9 | ساعت: 4:54
Vote count: 0 What is a good automatic/general way to check whether there are any data changes left 'dangling' and unflushed in SQLAlchemy at the conclusion of any request in Flask anywhere in the application? In other words, I want to catch any SQLAlchemy model changes that are just "swept under th...
SQL - Get databases size
◷
تاریخ انتشار: 1395/2/9 | ساعت: 3:49
Vote count: 1 I have implemented Blob storage for sharepoint. The code below works and I want to make sure it's counting the filestream on the drive for the blobs as well. SELECT [Database Name] = DB_NAME(database_id), [Type] = CASE WHEN Type_Desc = 'ROWS' THEN 'Data File(s)' WHEN Type_Desc = 'LOG' ...
git reset causes web.config not to be readable
◷
تاریخ انتشار: 1395/2/9 | ساعت: 3:49
Vote count: 0 I've managed to get my codebase/repository/machine into a state where git reset --hard breaks my code and closing/re-opening the sln in VS fixes it. Specifically: Open the Code base Rebuild & Run Site runs fine run git reset --hard Rebuild & Run Site fails with <Error_below> Close and ...
Basic Authentication with CXF client
◷
تاریخ انتشار: 1395/2/9 | ساعت: 3:49
Vote count: -1 Its a continuation to my previous post. I'm trying to create a web-service client with CXF and now managed to create it with code-gen plugin. But my service takes a few params to to authenticate the service (Say use ame, password and clientId). While looking at the generated code, I'm...
Seeking solution to Missing values in dataset
◷
تاریخ انتشار: 1395/2/9 | ساعت: 2:47
Vote count: 0 my current dataset includes around 28,000 observations and 35 features. My X matrix includes the first 34 features, my y Matrix includes the last feature or 35th feature (I've labled it HighLowMobility in the code below) I've constructed a neural network to classify high vs low, howeve...
suffix tree in R
◷
تاریخ انتشار: 1395/2/9 | ساعت: 2:47
Vote count: 0 I have a sequence of event time-stamps based on which i have created event process flow strings in R as below : A->B->C->D->E A->C->D->E B->C->D A->E etc... I have 50 such process flow combinations. I want to list out each unique transition available in the process flow like below: A->...
Rails spring custom class reloading
◷
تاریخ انتشار: 1395/2/9 | ساعت: 2:47
Vote count: 0 I've got a problem with autoreloading custom classes. I need to execute: spring stop After each change made to my observers which are placed inside app/observers. Observer classes are simple Ruby classes which doesn't inherit from ActiveRecord. How to make spring autoreload them. I'm w...
PHP/MySQL Auto select option based on previous page
◷
تاریخ انتشار: 1395/2/9 | ساعت: 1:44
Vote count: 0 I have a music database with a PHP front end where you can add/edit/delete artists, albums, tracks using the web client. The last real problem I have is getting a select box to automatically select an option I pass to the page. Example: On a page called 'createCD.php' I have this code:...