mercredi 1 octobre 2014

Disclosing security issues responsibly for open source projects


Vote count:

0




I have a project that is opensource and I would like to use the github issue tracker. Some issues might be of a sensitive nature however and should only be made publicly available. Is this possible or should I look for another issue tracker where posted issues are not visible for other people?



asked 52 secs ago

JelteF

300






Disclosing security issues responsibly for open source projects

Unable to work on ImageMagick properly on Windows xampp


Vote count:

0




I read all the questions before posting this . I am trying to install ImageMagick on my local system Windows 7.It gets installed without But when i try using it to crop images I get NoDecodeDelegateForThisImageFormat . I am running Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7


This is what i did



  • I installed ImageMagick ImageMagick-6.8.9-8-Q16-x86-dll.exe (I tried 6.8.1 and 6.7 also)

  • I got the dll from http://ift.tt/1mPz0Su TS for PHP 5.4

  • Updated php.ini

  • The server started with out problem .

  • I checked via cmd the ImageMagick is working fine.

  • phpinfo() ImageMagick number of supported formats: 0


I tried many DLL's but none is working i need a solution to this .


Also phpinfo keeps on showing ImageMagick version:ImageMagick 6.8.8-4 Q16 x86 2014-01-29 even when i uninstalled it / updated it .



asked 1 min ago







Unable to work on ImageMagick properly on Windows xampp

iPhone - Putting and manipulating an Image from the Camera in a UIImageView


Vote count:

0




This is what I want to do:



  1. Take the camera image an put it in a small (not full screen) UIImageView.

  2. Manipulate the image in realtime (e.g. give half of it a red tint).


I have checked around this subject and uncertain as to the best approach. People are recommending both UIImagePickerController and AVCamCaptureManager, or is there something else.


Could I have your advice?



asked 1 min ago







iPhone - Putting and manipulating an Image from the Camera in a UIImageView

Text Search in WPF ListView not working properly


Vote count:

0




I have a WPF ListView with selection mode set to Extended (and I need to keep it extended for other funationality). I have also enabled text search on this listview using TextSearch options.


Now consider I have following 5 items in ListView :



Apple
Ball ==> This is current selected item.
Cat
Dog
Elephant


At this stage, if I press key "E" on keyboard, the text search works properly and the item "Elephant" gets selected. However, if I press "Shift + E", all items from Ball to Elephant gets selected, i.e. Shift key is used for extended selection and not for Capital Letter E. However, since I am doing a search using keyboard, shouldn't the only item "Elephant" get selected and shift key should be used for capital E and not for extended selection? Can we somehow achieve this?



asked 3 mins ago







Text Search in WPF ListView not working properly

Result filter to block data based on user profile


Vote count:

0




Say I have a controller action like this.



[Authorize]
public ActionResult Details(int id){
return View(_playlistService.GetPlaylistDetails(id));
}


The user has to be authorized to access the action. After that he can see details for any id he sends to the server. But I don't want that since the application will be used by many customers that have data that is not sharable. To solve this each playlist has a property customerGuid by which I can tell who the owner is.


The user also has a profile where it is possible to get info about which customer/organization he belongs to:



var profile = Profile.GetProfile(User.Identity.Name);
var customerGuid = profile.CustomerGuid;


So I want to keep the controllers skinny and the service and data layers separate from the controllers.


Where would I put the code that checks that? There are also more controllers that retrieve other data, that has the same requirements. I was thinking about writing an Result filter, but am not quite sure how to approach this for different types of results.


For cases where an user requests data that is not his I would like to return a 404 error.



asked 34 secs ago







Result filter to block data based on user profile

Almost got Office365 API working on Windows Phone


Vote count:

0




I got the API working on a Android device and can use al the references/libraries from that project for a WIndows Phone project because they are PCL (with WP8 support). Except the Microsoft.Office365.OAuth part to retrieve the Token.


I also got the the Authenticator (Microsoft.Office365.OAuth) working and can authenticate myself. But to procede I need to have the "AuthenticationInfo" that I found in the OnAuthenticationSucceeded() that is passed with the IAuthenticationResultHandler that is passed in to the constructor in Authenticator(IAuthenticationResultHandler).


My last problem; (because the rest is in place) The OnAuthenticationSucceeded() never gets raised!!! (or OnAuthenticationFailed or OnAuthenticationCanceled) and I know the Authentication was a succes.


Known issue or hasn't it been made?



asked 35 secs ago







Almost got Office365 API working on Windows Phone

iOS - NSFetchedResultController and MagicalRecords


Vote count:

0




I've a UITableView with following code in lifecycle:



- (void)viewDidLoad {
[super viewDidLoad];

self.fetchedResultsController = [UserModel fetchAllSortedBy:@"fullName" ascending:YES withPredicate:nil groupBy:nil delegate:self];
[self updatePredicate];
}

- (void)viewWillDisappear:(BOOL)animated {
[super viewWillDisappear:animated];
self.fetchedResultsController.delegate = nil;
}


and in NSFetchedResultControllerDelegate:



- (void)controllerWillChangeContent:(NSFetchedResultsController *)controller {
[self.tableView beginUpdates];
}


- (void)controller:(NSFetchedResultsController *)controller didChangeObject:(id)anObject atIndexPath:(NSIndexPath *)indexPath forChangeType:(NSFetchedResultsChangeType)type newIndexPath:(NSIndexPath *)newIndexPath {
UITableView *tableView = self.tableView;

switch(type) {
case NSFetchedResultsChangeInsert:
[tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:newIndexPath] withRowAnimation:UITableViewRowAnimationFade];
break;

case NSFetchedResultsChangeDelete:
[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
break;

case NSFetchedResultsChangeUpdate:
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationNone];
break;

case NSFetchedResultsChangeMove:
[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
[tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:newIndexPath] withRowAnimation:UITableViewRowAnimationFade];
break;
}
}


- (void)controller:(NSFetchedResultsController *)controller didChangeSection:(id <NSFetchedResultsSectionInfo>)sectionInfo atIndex:(NSUInteger)sectionIndex forChangeType:(NSFetchedResultsChangeType)type {
switch(type) {
case NSFetchedResultsChangeInsert:
[self.tableView insertSections:[NSIndexSet indexSetWithIndex:sectionIndex] withRowAnimation:UITableViewRowAnimationFade];
break;

case NSFetchedResultsChangeDelete:
[self.tableView deleteSections:[NSIndexSet indexSetWithIndex:sectionIndex] withRowAnimation:UITableViewRowAnimationFade];
break;

case NSFetchedResultsChangeMove:
break;

case NSFetchedResultsChangeUpdate:
break;
}
}

- (void)controllerDidChangeContent:(NSFetchedResultsController *)controller {
[self.tableView endUpdates];
}


The method [self updatePredicate]:



- (void) updatePredicate {
NSPredicate *messageFilter = [NSPredicate predicateWithFormat:@"address != nil"];
self.fetchedResultsController.fetchRequest.predicate = messageFilter;
[self.fetchedResultsController performFetch:nil];
[self.tableView reloadData];
}


To simulate the change into CoreDate I've added a simple UIBarButton event:



- (IBAction)didChangeSomething:(id)sender {
[MagicalRecord saveWithBlockAndWait:^(NSManagedObjectContext *localContext) {
UserDAO *userDAO = [[UserDAO alloc] initWithContext:localContext];
UserModel *userDB = [userDAO getUserById:@"a3535ee6-645a-4f6e-9970-4df65120353e"];
userDB.address = userDB.address == nil ? @"Testing" : nil;
[localContext saveToPersistentStoreAndWait];
}];
}


I've this strange behaviour:



  1. If I open my UITableViewController for first time (when address field is nil) no rows is shown, then I click on my UIBarButton and nothing happens. (But in my Sqlite file I can see the real change of address in "Testing").

  2. If I close my UITableViewController and I re-open it, I can see the entry on TableView. Now if I click on UIBarButton the table updates correctly, adding and removing the entry more times.


Why I've this behaviour? What's happening?



asked 6 mins ago







iOS - NSFetchedResultController and MagicalRecords