back soft

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

I create a UIColor with IBInspectable but I do not know How to set the default color?

Vote count: 0 I create a UIColor with IBInspectable,but not all view need set different color, so I want set default color. thinks! enter image description here asked 1 min agonewfun Let's block ads! بخوانید...

ادامه مطلب

What are default methods that gets called when we scroll tableView iOS

Vote count: 0 In my tableViewCell, I am trying to display dynamic content from CoreData string object in a textView with a background image. When the tableView is loading for the first Time, background image is stretching to right and text content in textView is trimming, but when I scroll the tableView, rect of background image is appearing as expected however, textView content is still trimming. can anyone please tell me what default methods will system call inteally when we scroll a tableView? Because some method is setting my background Image rect correctly which i am failing to set in initial loading of tableView. asked 29 secs agoSRK Let's block ads! بخوانید...

ادامه مطلب

Rails migration add default not null properties to existing boolean field

Vote count: 0 I have a rails model that has a non-defaulted boolean field that is nullable and am trying to set a default. I found a blog post about avoiding a 3-stat boolean issue, so am trying to cater for this. This is the migration I have: def change change_column :table, is_foo, :boolean, null: false, default: false end Ruing the migration fails because of existing null values in the database. What is the correct way to update existing entries to allow the schema change? Or should the not null control be added to the model: validates :is_foo, presence: true Not sure if adding this to the migration is the "right" way: Table.update_all(:is_foo => false) Similarly, this field was added by ...

ادامه مطلب

When grouping a set of rows in Excel for Mac, how can I make the summary row be on top instead of the default which puts this at the bottom?

Vote count: 0 How can I have the group summary (when grouping rows in Excel for Mac) to be at the top instead of the bottom? I know there is an option to do this on Excel for Windows, but I can't seem to find this option on Excel for Mac. asked 38 secs agoSean Beardino Let's block ads! بخوانید...

ادامه مطلب

How to check BACK and front camera ID in default Camera in android?

Vote count: 0 I am trying to use default camera with Intent for both image and video capture. when i tu to front camera and capture the image or video preview (captured image or video ) is inverted . So now i want to put preScale in frontCamera. But didnt know where to find Camera ID in default Camera.!! Note : this is not Custom Camera.!! Help! asked 17 secs agoHarsh Bhavsar Let's block ads! بخوانید...

ادامه مطلب

Default path for file import Julia

Vote count: 0 I have created a package and am now creating my tests within the package. For one test my inputs are a set of files and my outputs will be a different set a files created within the test. I am saving the input files in the test directory of my package and would like to save the output files there too. Since others may run this test, I do not want to specify the input/output file location using my own path eg /home/myname/.julia/v4.0/MyPackage/test/MyInputFile.txt How do I specify that the input location is within the package's test folder? So basically how do I tell Julia to look in the packages's folder under the test directory and not have to worry about specifying the entire...

ادامه مطلب

VR Default mode ON

Vote count: 0 I embendeded a Youtube with the iframeApi. Now i want to customize it putting the VR (cardboard buton) ON as default. If this happens the stereostopic will work? Thanks, Franco asked 1 min agoVirtual Ventures Let's block ads! بخوانید...

ادامه مطلب

Custom keyboard mimic the default IOS "globe" button

Vote count: 0 In IOS keyboards there is a globe button that if held will show a pop-up list of keyboards that the user can switch too. However in the KeyboardViewController class, the only method I see to make a keyboard switch button is the self.advanceToNextInputMode() The problem with this is that while it allows you to create a button that if clicked will switch keyboards this method does not allow you to create a button that if you press and hold will show the list of currently enabled keyboards that the user can switch to by moving their finger to the correct entry. How can I mimic the default IOS globe keyboard button behavior? asked 43 secs agoRoymunson Let's block ads! بخوانید...

ادامه مطلب

MySQL left join with default values

Vote count: 0 I have a couple of tables, one with source data which I'll call SourceData and another which defines overridden values for a given user if they exist called OverriddenSourceData. The basic table format looks something this like: SourceData | source_id | payload | | 1 | 'some json' | | 2 | 'some more json' | OverriddenSourceData | id | source_id | user_id | overrides | | 1 | 2 | 4 | 'a change' | For a given user, I'd like to retu all the Source data rows with the overrides column included. If the user has overridden the source then the column is populated, else it is null. I started by executing a left join and then including a condition for checking the user like so, but then s...

ادامه مطلب

Differentiate between default image and user image from google/FB response

Vote count: 0 Is there a way to differentiate between default image and user image from google/FB response? what I want is to display it(the image) as a profile pic of that user only if a user has one in Google/FB (not the default pic provided by them like this one) thanx in advance any help will be appreciated asked 1 min agoVishAl Let's block ads! بخوانید...

ادامه مطلب

A better way to add default color the Text component?

Vote count: 0 Does anyone know a good way to change the default text color of the Text component? Here is my attempt by wrapping it in a MyText component. import styles from 'somewhere'; // import default color function MyText(props) { retu ( {props.children} ); } MyText.propTypes = { allowFontScaling: PropTypes.bool, children: PropTypes.any, numberOfLines: PropTypes.number, onLayout: PropTypes.func, onLongPress: PropTypes.func, onPress: PropTypes.func, style: PropTypes.object, suppressHighlighting: PropTypes.bool, testID: PropTypes.string, }; asked 4 mins agoNameTaken Let's block ads! بخوانید...

ادامه مطلب

Create multiple plugin in a single placeholder in django cms when using default plugins

Vote count: 0 How can I create multiple plugin in a single placeholder in django cms if I am using default plugins which django cms provide? asked 3 mins agoAkshay Sharma Let's block ads! بخوانید...

ادامه مطلب

Firefox - How do I override the CSS on all webpages so that the default image scale is 0.75?

Vote count: 0 Nothing happened when I tried this, but here's what I tried: img {-moz-transform:scale(0.25) !important;} under the my profile folder (random letters and number.default) with the following path: storage > permanent > chrome > userChrome.css asked 1 min agoGeorge Tye Let's block ads! بخوانید...

ادامه مطلب

sql server 2012 connection using Uid and Pwd defaulting to Windows Auth

Vote count: 0 I have an Excel workbook that will query a SQL Server 2012 database using VBA. Many users will temporarily use this workbook so I created a generic ID with SQL Server credentials only. Some of the users can execute the VBA and retrieve data without a problem. When other users try, the VBA ignores the provided coection string using the generic user and password and provides their windows credentials. Why are they sending their windows credentials instead of the credentials provided in the coection string? How do I force the coection to use the provided Uid and Pwd? The error message isCoection Failed:SQL State '28000'SQL Server Error 18456...Login failed for user 'DomainUserid' ...

ادامه مطلب

Default inside switch closing right away

Vote count: 0 Begier coder here. I am trying to make a program that can calculated a future day by inputting today and number of days elapsed. For the most part, it works. However, I stumbled upon a tiny problem and I have been stuck with it for the past hour. `do { cout...

ادامه مطلب

Load an Office add-in by default

Vote count: 0 I take Excel for example. At the moment, every time when a user wants to use an add-in, they need to go to insert ==> add-ins and choose the add-in. Then either a take pane or content add-in appears. If the manifest xml of the add-in has add-in commands, users can launch the add-in via menu or ribbon. If the user closes and re-open Excel, they need to go to insert ==> add-ins again and so on... It is tedious. Is it possible to set an add-in loaded by default (either by developers or users)? For example, each time the user opens Excel, they could see the item in the menu or ribbon (or even the task pane) to launch the add-in. asked 1 min agoSoftTimur Let's block ads! بخوانید...

ادامه مطلب

Setting a default value on settings form return null in Octobercms

Vote count: 0 I create a little plugin for the OctoberCMS but now dealing with a problem of setting a default value for a settings form. I used database storage for my plugin settings (Backend -> Settings tab -> My Plugin tab) which works , quite good, except I caot set default values. I have a fields.yaml with this content: tabs: fields: reviews_border_color: label: 'Field1' span: left tab: 'review_sticker' required: 1 type: text default: '#F2F2F2' rating_star_size: label: 'Field2' span: left tab: 'review_sticker' required: 1 type: number default: 14 I retrieve the settings in my components like this:...

ادامه مطلب

std default function typedef?

Vote count: 0 In C++11 does it exist any equivalent to C# delegate Action ? This is a method prototype which takes 1 templated argument. I prefer to use standard ones if they exist, otherwise I will have to create my own : template using Action = void(T & p); asked 3 mins ago56ka Let's block ads! بخوانید...

ادامه مطلب

jQuery/Bootstrap : dropdown-toggle is not setting the selected menu item as default selected item

Vote count: 0 I have a bootstrap dropdown but i am not able to set the selected menu item as default selected dropdown item? Select a Category Category 1 Category 2 Category 3 Category 4 $('.dropdown-toggle').click(function() { $('.dropdown-men').toggle(); } asked 52 secs agouser5050407 Let's block ads! بخوانید...

ادامه مطلب

Specializing a non-default constructor in a template class

Vote count: 0 Here's a rough structure of my code: #include using namespace std; template class Stack{ public: Stack(); ~Stack(); Stack(const Stack& b); Stack& operator=(const Stack& b); Stack(string str); //this is the original constructor ... }; In addition to the constructor Stack(string str)", I want to have another constructor that takes two parameters, say, Stack(int n, string str). But I don't know how to implement that. If I let the new constructor in the class, I get an error message. Any idea how to do this? asked 49 secs agoLewis Let's block ads! بخوانید...

ادامه مطلب