Vote count: 0 How to Apply Zoom in and Zoom out On Camera view Using UIPinchGestureRecognizer and AVCaptureDevice. It is Not Zooming properly.Zoom Out is Not Working in My below Code : AVCaptureDevice *device =[AVCaptureDevice defaultDeviceWithMediaType: AVMediaTypeVideo]; AVCaptureDeviceFormat *format = device.activeFormat; CGFloat maxZoomFactor = format.videoMaxZoomFactor; const CGFloat pinchVelocityDividerFactor = 2.0f; if (pinchRecognizer.state == UIGestureRecognizerStateChanged || pinchRecognizer.state ==UIGestureRecognizerStateBegan) { NSError *error = nil; if ([device lockForConfiguration:&error]) { CGFloat desiredZoomFactor = device.videoZoomFactor + atan2f(pinchRecognizer.velocity, ...
ادامه مطلبVote count: 0 I'm a newbie to webdesign. What is HTML and CSS for creating a simple split screen layout? asked 3 mins agonafri This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 I have successfully used TabLayout with AppCompatActivity with a CoordinatorLayout that looks close to this snippet: Now I have implemented a NavigationDrawer and I am struggling to implement tabs within one of the Fragments being shown inside my AppCompatActivity. I want to be able to switch with TabLayout between few child Fragments inside of this Fragment. How do I access TabLayout from one of my Fragments? How do I set PagerAdapter for each of the Fragments correctly? Where do I call addOnPageChangeListener? How do I hide TabLayout when one of my Fragments does not need to display tabs? asked 1 min agoxAF 1 Answer Vote count: 0 1. Switching between first-level Fragments Sup...
ادامه مطلبVote count: 0 I am trying to understand how all this works, this a how it fits together question rather than a how to do it question. My plan is to move my current GoDaddy ASP.Net website to Azure. GoDaddy will not scale and its database it unreliable. The GoDaddy website has the purchased URL and email based addresses using myUrl, noreply@myUrl.com and contact email I correspond to. From what I have read, from Azure I probably want to use SendGrid instead of GoDaddy to send website emails, I may eventually have thousands of non-spam emails eventually. Leaving my email support correspondence with GoDaddy email abilities. I have read about problems using SendGrid from a GoDaddy based website ...
ادامه مطلبVote count: 0 I am trying to draw the line using C/C++ code and Win API functions. For the specific reason I need to have exactly 1 pixel line width, but what I am getting on the screen is completely different. Depending on the ways of Pen/Brush settings it could be either 2 or 3 pixels wide line and never 1. Just for the test I’ve tried to draw 3 pixels line and as a result getting 5 pixels. The same story with other kind of drawing primitives: rounded rectangles, rectangles, ellipses etc. Is there any way to disable such shadow bounding around drawn lines? Code sample of drawing function is below. void DisplayDrawings (HDC hDC, HWND hWnd) { LOGBRUSH stLogBrush; RECT rRect = {0,0,0,0}; HBIT...
ادامه مطلبVote count: 0 Let's say I have list of user agents in my robots.txt like User-agent: Applebot Disallow: something User-agent: baiduspider Disallow: something User-agent: Bingbot Disallow: something User-agent: * Disallow: something Would bots reference User Agents in OR maer or AND maer? If Bingbot crawls this site, do Bingbot rules and * rules apply together? edited 18 secs agoMatt Raines asked 2 mins agoEnglishMaster This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 I am trying to display a data set in descending order by snap.key in a firebaseUi TableView Firebase *firebaseRef = [[Firebase alloc] initWithUrl:@"firebaseio.com/data"]; self.dataSource = [[FirebaseTableViewDataSource alloc] initWithRef:firebaseRef cellReuseIdentifier:@"cell" view:self.tableView]; [self.dataSource populateCellWithBlock:^(UITableViewCell *cell, FDataSnapshot *snap){ // Populate cell as you see fit, like as below cell.textLabel.text = snap.value[@"Data"]; }]; asked 3 mins agoJonathan Caraveo This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-on...
ادامه مطلبVote count: 0 Problem statement:- I am using third party library, which need to have config.plist(name must be same), Config.plist have several key-value pairs, for production,Dev and stating environment, values for key does change. Right now i need to manually change file Name, like if i need to run app in production environment, i do change file name ConfigPROD.plist into Config.plist, for Staging i do change file name from ConfigDev.plist into Config.plist. Need Solution like:- can i change, file content using preprocessor macro, like #if isProductionBuild == 1 #define kBaseURL @"https://api.base.com/bart/" #define kEnvironmnet @"PROD" ***//copy ConfigPROD.plist file content into Config.p...
ادامه مطلبVote count: 0 Currently i am using UISearchController.becomeFirstResponder() to present the keyboard when the app is first launched. I am also using UISearchController.obscuresBackgroundDuringPresentation = false to display the background with the keyboard. However, currently i am not able to interact with the background views or use gesture recognition such as swipe or tap? Is there a way to fix this? Thanks for the help! asked 1 min agouser37375 This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 I'm using node mailer and I caot get content on my email,I'm trying to get all the input content, from the client, to send it to my email so I can review it, but I do receive an email but no content. is there anything i have to change on my code??? var http = require('http'); var express = require('express'); var nodemailer = require("nodemailer"); var bodyParser = require('body-parser') var app = express(); var port = Number(process.env.PORT || 5000); app.use(bodyParser.json()); // to support JSON-encoded bodies app.use(bodyParser.urlencoded({ extended: true })); // Home page app.get('/', function(req, res) { res.sendfile('index.html'); }); // sending mail function app.post('/...
ادامه مطلبVote count: 0 I am trying to edit inside a .xls file using Apache poi library. All the updation is succesfull on local computer.But, i am stuck when jar file of application does not saved excel file on computer on which it is installed. FileChooser fileChooser = new FileChooser(); fileChooser.setTitle("Generated data of Dvat "); fileChooser.setTitle("Generate XLS File of " + "Dvat 31"); fileChooser.getExtensionFilters().addAll( new ExtensionFilter("XLS Files", "*.xls")); fileChooser.setInitialFileName(Common .replaceWhiteSpaceAndSlash("Dvat31") + "_" + Common.replaceWhiteSpaceAndSlash(Common.comp.getName()+"_") +this.fromdate+"_"+this.todate+ ".xls"); fileChooser.setInitialDirectory(new File...
ادامه مطلبVote count: 0 I have started reading Performing custom paint with swing. I wanted to extend what I read on the tutorial and draw rectangle "live". Not just the rectangle to pop up and show on the panel, but I wanted visually see the Rectangle shape resize I drag the mouse, and finally when I release the mouse I wanted it to appear on the JPanel. I have added what I did so far with research and reading. The problem is since I am trying to catch each Rectangualr2D(this is the class I want to use) shape with mouse drag it end up looking like having a black background shape. How can I accomplish my target? Thanks for suggestions as always. import java.awt.BasicStroke; import java.awt.Color; impo...
ادامه مطلبVote count: 0 I have the following code. I want to Make jLabel Visible and Invisible 4 times with 0.5Seconds delay for every loop. The code below is not working as expected. String a = (String)jTextField1.getText(); if(a.equals("")){ for (int i = 0;i...
ادامه مطلبVote count: 0 is there a way to force soft keyboard in Android 4.4 app? I'm developing an app which needs both software keyboard and bluetooth barcode reader. Barcode reader will be used in 99% of cases, but there are some options which require soft keyboard (e.g. typing e-mail address or password). When barcode reader is paired with the phone, soft keyboard doesn't appear. I'd like to keep it that way, but when user enters a selected view soft keyboard should appear. Thanks in advance! asked 1 min agopioand This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#pu...
ادامه مطلبVote count: 0 Java engineer here, new to the Javascript world, so apologies if I'm not providing enough/correct info! I have a gulp build script and use bower to manage the dependencies for my JS frontend app. I am struggling to get the (bower controlled) vendor javascript libraries concatenated in the right order so that jQuery and angular come first. If they aren't first then I get angular is undefined or jQuery is undefined when I load my application, as their corresponding javascript code is buried somewhere further down in the concatenated library. I've attempted to use gulp-order to order the output from the resulting main-bower-files call, but it appears to have no effect. My gulp tas...
ادامه مطلبVote count: 0 I'm new to JavaScript and trying to pick up on a new skill in my free-time. I'm confused on why this "div" is not wanting to move right. Basically what I'm trying to do is have a div and three buttons. With each button, the jump/delta is changed and would randomly move around the screen with using mouseover. I've gotten the div to move in one direction, but not all over the screen. I do not care if the div moves off the screen. Here is what I have so far. What am I doing wrong here? function moveDiv() { var delta; var pos; var id = document.getElementById("moving"); if(document.getElementById("small").checked===true) { delta = 20; var pos = Math.floor (Math.random() * delta) - ...
ادامه مطلبVote count: 0 Sell Activity ** I am creating a BookStore Automation app and in sell activity as shown in the picture I am using expandable list view . The group header is name of category of book which I have populated using array list . And I want to populate child of each group with data fetched from sqlite database (i.e name of any book under that category ) . I am new to android development ,plz tell me how should I proceed ? ** asked 2 mins agorishabh maurya This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 I'm getting a problem. I can't update ListView when using android emulator, but on real device it works fine. Here is a code of my ListActivity subclass. public class FileTree extends ListActivity { private File m_lst[] = null; private String m_path = "/"; private ArrayAdapter m_adapter = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_file_tree); m_adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1); setListAdapter(m_adapter); listFiles("/"); } protected void onListItemClick (ListView l, View v, int position, long id) { Log.v("click", String.valueOf(position)); position-...
ادامه مطلبVote count: 0 I want to know if there is a way to generates routes using ng-repeat and ui router? for example: I get a data to show a list of 5 clickable items something like item 1 item 2 item 3 item 4 item 5 And if I click for example in item 2 I want to get all data from item 2 to change it in the principal view and at the same time change the route with something like url/item2. To be more specific, i'm building this website and I'm using ui-router, I want to know how can I click a singer in the left side and after do that, it has to change the data in the music player and build a url with something like url/singer-name I hope you understand me, I will create a lot of singers in the left...
ادامه مطلبVote count: 0 I am developing SpriteKit universal iOS application that will contain many spritekit images. I was wondering if there are better methods for working with large amount of data images in iOS apps from what's available as default from Apple (i.e. texture atlases or image assets). Some resources point out that working with a database, like SQL, to save and load images data to/from a disk, improves the overall app performance in terms of memory resources. What is the really best way to manage images content in the iOS application? asked 1 min agosaate_group This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, ple...
ادامه مطلب