Can Poyrazoğlu

1

votes
0

answer
6

views

Title not working on react-navigation createStackNavigator

I'm using createStackNavigator inside createBottomTabNavigator from react-navigation in my app. I want to have a title on my screen. Following React Navigation's tutorial I've implemented it this way: createBottomTabNavigator( { Home: createStackNavigator( {screen: HomePage, navigationOptions: () =...
Can Poyrazoğlu
1

votes
1

answer
171

views

How to seek with GPUImageMovie with AVMutableComposition

I have an AVMutableComposition (which is an AVAsset) and I'm using GPUImage (https://github.com/BradLarson/GPUImage) to filter it by using a GPUImageMovie. It is working, but I need to implement seeking functionality. I'm currently initializing GPUImageMovie with my mutable composition: [[GPUImageMo...
Can Poyrazoğlu
1

votes
0

answer
104

views

Presenting a specific view controller messes up the app on device (works on simulator)

I'm facing a very weird bug. I have a button and I'm pushing a view controller normally, using segues. However, when I push the view controller the whole app layout messes up: it sometimes works, sometimes glitches such as leaving me with a blank view with nothing but the tabbar, or previous view co...
Can Poyrazoğlu
1

votes
0

answer
53

views

sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type only on some systems

I have a SQLite table in Python: conn.execute('create table if not exists users (id integer primary key, username text, fullname text, points integer)') Then I'm querying this table: pk = int(like['pk']) #just some integer users = conn.execute('select * from users where id = ?', (pk,)) I'm getting t...
Can Poyrazoğlu
1

votes
1

answer
1.8k

views

SaveChanges() on context having new/modified objects doesn't do anything

I used to have a WORKING database for my ASP.NET site, up until the point that I've learned that using static Database Context objects throughout the app lifetime is a very bad practice. So, initially, I used to have this: public class Database { MainDBContainer db; static Database() { db = new Main...
Can Poyrazoğlu
1

votes
1

answer
570

views

Silverlight 4 DataGrid edit null value's cell

I'm creating a DataGrid where I set ItemsSource of the grid to a WCF request result. I have some null values for some strings, and I want to be able to enter values for those null values. I have no problems editing/saving pre-populated non-null values, but I can't modify the values of cells which ha...
Can Poyrazoğlu
1

votes
1

answer
142

views

Visual Studio Silverlight Control Editor Weird Lines in design view

While designing Silverlight UI, I occasionaly encounter some weird lines of an unknown origin in the designer canvas. It is shown below: I cannot click on it (nothing happens), there's no way to select it, and there is nothing that is supposed to be there too. Those 'phantom' lines started to appear...
Can Poyrazoğlu
1

votes
1

answer
561

views

Calling derived class override method from generic reference in C#

I'm building a game and there is basic inheritance hiearchy: GameObject is a base class, has a virtual method called Clone PlatformObject is derived from GameObject, overriding the Clone method I have a serializer/deserializer generic class for any GameObject or derivations defined as below: public...
Can Poyrazoğlu
1

votes
1

answer
220

views

How to get rid of using ElementName in WPF bindings in XAML

I am building a WPF application and I have some DependencyProperties in my window's codebehind (actually a big bunch of them). I want to bind a textbox to one of these string values. If I use {Binding ObjectName} it just doesn't work and it complains about not finding the property in the output. If...
Can Poyrazoğlu
1

votes
2

answer
729

views

In-app purchase fails after telling “item already bought” message

I am building an iOS app and trying to implement an in app purchase (non-consumable). All the bundle IDs etc. are set up and working, and I can see my product as valid when I fetch the Apple Store servers. However, while testing, I am getting failed transactions at the paymentQueue callback. Here is...
Can Poyrazoğlu
1

votes
1

answer
488

views

Single Sign-On in iOS App with Adobe AIR

I am trying to integrate Facebook SSO on my iOS Game that I'm developing using Flash (with AIR). I'm using the only tutorial that I've found (it's a pretty good one): http://www.saumitrabhave.com/2011/10/facebook-single-sign-on-for-air-ios.html I've gone so far, and implemented the things there, but...
Can Poyrazoğlu
1

votes
2

answer
580

views

Any way to select IP address for outgoing connection?

I am creating a web app and I need to select the IP address for outgoing connection (or it chooses a randomly changing one automatically - GoDaddy shared hosting (but I have a dedicated IP too with that hosting for incoming connections, which I should be able to use for outgoing connections too, obv...
Can Poyrazoğlu
1

votes
1

answer
512

views

Getting number of friends in FBFriendPickerViewController

I am using FBFriendPickerViewController to display a list of friends and I'm trying to find an easy way to get the number of friends in the list. I've tried implementing the friendPickerViewControllerDataDidChange:(FBFriendPickerViewController *)friendPicker method but it sometimes (especially while...
Can Poyrazoğlu
1

votes
1

answer
919

views

SQL CE 4 Error: The ntext and image data types cannot be used in WHERE, HAVING, GROUP BY, ON, or IN clauses

I'm trying to migrate an old SQL Server database (created in Entity Framework 4) to SQL CE 4. I've moved everything, recreated the schema and inserted the data into the SDF file, but now when I try to launch my site, I'm getting this error: The ntext and image data types cannot be used in WHERE, HAV...
Can Poyrazoğlu
1

votes
1

answer
709

views

How to send long query string in Windows Phone with HttpWebRequest

I am making an API call to Facebook, using the Facebook C# SDK, and I can't seem to send long query strings via HTTP GET. I need a long FQL query (select .. from .. where .. in ) to execute and I can't seem to send it. If the query is smaller, it does send successfully and return the results. Unfort...
Can Poyrazoğlu
1

votes
1

answer
349

views

Write a specific movie clip to bitmap in Adobe AIR

I am developing a game for iOS in Adobe AIR and I want to take a screenshot (or the bitmap capture of a specific portion/movie clip of the screen). I've read that it is possible with a native extension to take screenshots, but I don't actually need the whole screen, I just need the bitmap representa...
Can Poyrazoğlu
1

votes
3

answer
1.9k

views

UIPageControl doesn't obey it's constraints inside UIScrollView

I have a UIScrollView and there are many views inside my scroll view. I am using autolayout and all my views are layed out in the same manner: Left and top spacing to the superview, width and height set. Everything scrolls just fine, however my page control stays whereever it is. It does not scroll...
Can Poyrazoğlu
1

votes
1

answer
1.3k

views

Unable to add entitlement on Xcode 5 with multiple developer accounts

I have multiple developer accounts registered on my Mac, the first one being my personal, and the rest the people/companies that I work with/for. I am trying to add an In-app purchase entitlement to one of the projects and I'm getting An app ID with identifier 'com.XXX.XXX' [I have my correct bundle...
7

votes
1

answer
104

views

Generate static Javascript client from Swagger for use in React Native

I'm building a React Native app that will consume an API with Swagger 2.0 definition. I went to Swagger's repo at https://github.com/swagger-api/swagger-codegen#where-is-javascript and it points to their Javascript generator at https://github.com/swagger-api/swagger-js. The problem is that the gener...
Can Poyrazoğlu
1

votes
1

answer
802

views

Cannot login with read-only user to SQL Azure database

I've followed the answer to this question: In SQL Azure how what script can I use to create a read only user I've completed all the steps successfully on the correct server. However, when I try to login to the Azure database, I'm getting the following error: Login failed for user 'readerUser'. This...
1

votes
1

answer
211

views

How to update all rows of a table with an aggregate value referenced by foreign key on an another table in Entity Framework

I have a users table and my User entity has a Rating column. A User has a navigation property called IncomingRatings, which is a one-to-many relationship of list of Rates from a table called rates. A rating can be positive or negative, and is represented by the IsPositive boolean. I want to find all...
1

votes
1

answer
269

views

Navigation bar color has slightly different color in different devices in iOS

I am designing an iOS app and my app's navigation bar appears slightly different on different devices. Here are two screenshots demonstrating the issue: As these are taken directly from screenshots (not camera-shots), we are eliminating the issue of some devices having slightly different color rende...
Can Poyrazoğlu
1

votes
1

answer
611

views

ACAccountStore requestAccessToAccountsWithType:options:completion:accountStoreHandler returns granted = NO immediately

I am trying to integrate Twitter into my app using iOS's Accounts framework. I call: ACAccountStore *accountStore = [[ACAccountStore alloc] init]; ACAccountType *twitter = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter]; [accountStore requestAccessToAccountsWithTyp...
Can Poyrazoğlu
1

votes
1

answer
1.5k

views

Can't commit because someone else pushed, can't pull without discarding my changes in git

I am working with a friend on an iOS project, and we are using git for versioning, with Xcode. My friend has committed the changes, and I have my changes locally. When I try to commit my changes, I'm getting this error in Xcode: hint: Updates were rejected because the remote contains work that you d...
Can Poyrazoğlu
1

votes
1

answer
299

views

How to restrict iOS Keyboard app to only iPhone 6 and iPhone 6 Plus

I'm designing a keyboard that takes advantage of the larger screen of iPhone 6 Plus (but on iPhone 6 it's usable to some extent too). My keyboard is basically useless on pre-4.7 inch devices (e.g. iPhone 5s and below) and for this reason I need to target only iPhone 6, iPhone 6 Plus, and any future...
Can Poyrazoğlu
1

votes
1

answer
2.9k

views

Xcode Build Phase - Run Script. How to define a variable in a scheme to read at build phase script?

I've created a new scheme, and I want to define a constant on that scheme, and on Run Script build phase, I want to execute a custom command. I don't have problems with adding a run script phase and execute a command. But I have trouble with the conditional. I'm effectively following this tutorial:...
Can Poyrazoğlu
2

votes
0

answer
141

views

How to change iOS/Android project folders in React Native

I am new to React Native and I want to move android and ios folders to a folder that I've created named platforms. I've moved the folders and ran: react-native run-ios --project-path ./platforms/ios Got an error about the ../node_modules/react-native/scripts/react-native-xcode.sh script, changed it...
Can Poyrazoğlu
1

votes
3

answer
959

views

Can't get default UINavigationController back button to work

First, I've read almost all of the questions and answers on the web and SO about navigation bar/back button/title/navigation item etc. I have a navigation controller and view controllers. Nothing fancy. Whatever I do, I can't display a back button when I push a new view controller. Neither via story...
Can Poyrazoğlu
1

votes
2

answer
30

views

ParseOSX/ParseOSX.h not found

I am trying to compile my app with Parse OS X SDK (downloaded directly from Parse, not Cocoapods etc.). Initially the build succeeds. Then, after a few tries/few seconds, when I try to build my project again, it fails with 'ParseOSX/ParseOSX.h not found' error. It is there. I can browse to it in Fin...
Can Poyrazoğlu
1

votes
1

answer
154

views

DbGeography is of a type that is invalid for use as a key column in an index or statistics

I am on Entity Framework 6.1 code first and I'm trying to create an index on a column of type DbGeography as my app is primarily location-focused so not indexing is not an option. Here is the relevant part on my class: public class Post { ... [Required, Index(Order = 1)] public DateTime CreateDate {...
Can Poyrazoğlu
1

votes
1

answer
139

views

Updating Twitter profile picture with iOS SLRequest results in error 215 bad authentication data

I am trying to post new profile picture according to Twitter's documentation at https://dev.twitter.com/rest/reference/post/account/update_profile_image and here is my code: NSData *jpeg = UIImageJPEGRepresentation(img, 0.9); NSString *base64 = [jpeg base64EncodedStringWithOptions:NSDataBase64Encodi...
Can Poyrazoğlu
1

votes
1

answer
129

views

Picasso never calling completion handler while trying to load an image on Android

I am trying to load an image: Picasso.with(SelectActivity.this).load(picture).into(new Target() { @Override public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from) { bmp = bitmap; findViewById(R.id.facebookButton).setEnabled(true); continueToEditing(); } @Override public void onBitmapFail...
Can Poyrazoğlu
1

votes
1

answer
381

views

Code called by ASP.NET MVC Razor breakpoint symbols not being loaded

First of all: I cleaned my solution. Closed Visual Studio. Deleted the Temporary ASP.NET Files. I've also seen Breakpoint in ASP.NET MVC Razor view will not be hit. No symbols have been loaded for this document but that's not the case for me. Here is my code: This called is actually called by my ASP...
Can Poyrazoğlu
1

votes
1

answer
1.2k

views

Why is Android Studio build taking too long if app is uninstalled from device/emulator?

I am building my app in Android Studio, and whenever I'm making changes, I hit debug (Ctrl+D) and it launches in a matter of seconds, which is great. However, when I uninstall my app from the device, and hit build again (no project-cleaning or anything) it takes about a minute for the project to bui...
1

votes
2

answer
109

views

ClickableSpan avoid touch propagation to parent view

I have a SpannableString set as the text of my TextView which is inside another view that has a click handler. I've got ClickableSpans inside my text which are, you are right, clickable. My problem is that I need touch events to be captured in case of a click inside the clickable span and not to pro...
Can Poyrazoğlu
1

votes
1

answer
80

views

How to get the value of a grandchild in an expression in C#?

I am building a helper method that takes a model expression and does something with its value, as in: Html.EditorFor(expression) (that I can use as: Html.EditorFor(m => m.Name) I've implemented such method as: public static MvcHtmlString MyMethod(this HtmlHelper html, Expression expression) { TModel...
Can Poyrazoğlu
1

votes
1

answer
294

views

Apple Watch app not starting, console logs “SandboxViolation: MyApp(183) deny(1) file-read-times /var”

I am trying to run my Apple Watch app on my Apple Watch and it is stuck at the loading spinner forever (the new one where the indicator turns around the app icon). I went to Xcode/Devices to inspect the logs on my watch, and the moment I tap my app icon it says: Nov 29 22:34:40 Cans-AppleWatch kerne...
Can Poyrazoğlu
1

votes
1

answer
375

views

iOS Reachability not working

I'm using the popular Reachability framework (https://github.com/tonymillion/Reachability) in my app and I'm testing reachability on a real device (though it's exactly the same behavior on simulator too). Here is my code (I'm strongly referencing the Reachability instance as an instance variable in...
1

votes
1

answer
637

views

UICollectionViewFlowLayoutAutomaticSize EXC_BAD_ACCESS

I have a collection view and for some cells I want to return a specific height, and some others, I want to fall back to automatic size. Here is my code: -(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPat...
Can Poyrazoğlu
1

votes
1

answer
69

views

AVPlayerLayer doesn't appear for a few seconds but sound works perfectly

I am working on an app where feed have videos looping in it (inside table view cells). There can be multiple videos present at the same time, but only one of them may be playing. I'm creating AVPlayers in background, and putting their playerLayers into my view's layer as a subview, and play the vide...
Can Poyrazoğlu

View additional