back soft

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

How to make a custom C++ Preprocessor?

Vote count: 0 I need the preprocessor to change a certain comment from the source files into normal code and keep registry of them: Example: Let's say the comment is: //Check, and it's followed by any definition let's say we've got: int main(){ //Checkint Time; //Check char* name; int age; ... More Code } So i need the preprocessor to take away those //Check, but also to keep a registry of the definitions for further serialization(put them into a .json file). So the resulting source code before the compiling must be: class test{ int Time; char* name; int age; ... More Code } And also the registry of the definitions to e serialized later. So my question is, how can i make a pre-processor that...

ادامه مطلب

margin of customMediaItem in jsqmessageviewcontroller

Vote count: 0 i have a class that extend: JSQLoadingPhotoMediaItem, all works fine expected that in my chat i do not use image for bubble, but i have a background color and radius for textView inside the bubble, if i use the class i obtain this: The first one is the textView of the cell with a color background, the second one is a view that i retu from class with this code: view = UIView(frame: CGRect(x: 0, y: 0, width: UIScreen.mainScreen().bounds.width, height: 38)) view!.backgroundColor = UIColor(red:0.89, green:0.98, blue:0.78, alpha:1) view!.layer.coerRadius = CGFloat(9) view!.layer.masksToBounds = true in a function override func mediaView() -> UIView! How can i give the same right mar...

ادامه مطلب

Custom overlay in google maps area clicked then zoom in

Vote count: 0 So I tried to draw grid line on my map and I found a good example on google api documentation here : https://developers.google.com/maps/documentation/javascript/examples/maptype-base it works , now I have another problem in every area or square which built by grid line, I want them to have a listener on click event and then zoom to area that has been clicked. I have tried like this google.maps.event.addListener(map, "click", function (e) { var latLng = e.latLng; map.setCenter(new google.maps.LatLng(latLng.lat(), latLng.lng())); map.setZoom(17); }); it works either, but as you can see the latitude and longitude are the exact location where the cursor / pointer clicked, it's not ...

ادامه مطلب

FullCalendar customize week display

Vote count: 0 Now my callendar week is like this: Friday dd/mm. I'd like to know if there is a way to hide the day/month number and only shows the name of the day. Couldn't find anything Here asked 37 secs agoPlayHardGoPro Let's block ads! بخوانید...

ادامه مطلب

Custom array for each object of the same class

Vote count: 0 I'm making tower defense game in unity. writing in c#. And I have gameObject Enemy which is using waypoints array to move along the map. I spawn thease enemy objects several times and they all move using the same waypoints array which is declared in separate class. I thought If I declare new private waypoints1 array inside enemy class. enemyies start to use waypoints1 array. And they did. But now they all are using the same waypoints1 array, becase it belongs to enemy class and they all are from the same class. So how can I declare Unique array for each member of enemy class ? asked 1 min agoDavid Let's block ads! بخوانید...

ادامه مطلب

Custom AMI Elastic Beanstalk Windows - ec2 service properties not applying

Vote count: 0 I have followed the instructions here: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.customenv.html I am specifically trying to do this part: (Windows platforms) Run the EC2Config service Sysprep. For information about EC2Config, go to Configuring a Windows Instance Using the EC2Config Service. Ensure that Sysprep is configured to generate a random password that can be retrieved from the AWS Management Console However when I attempt to change this setting, I caot apply the changes. I have run the EC2Config service as administrator. How do I complete this step? asked 16 secs agoSSED Let's block ads! بخوانید...

ادامه مطلب

Build Error with custom keyboard (app extension) - Invalid Entitlement

Vote count: 0 I'm building a custom keyboard app. I made 2 separate App IDs and provisioning profiles for each - the app and the extension. I added 'app group' capability to both on Member center portal. Then in Xcode, I enabled App group capability for both targets. I'm getting the following error while building this on my iPhone: The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile. (0xE8008016). The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile. (0xE8008016). Please Help!! asked 3 mins agoanivader Let's block ads! بخوا...

ادامه مطلب

How do i declare custom generated strings inside a while loop?

Vote count: 0 What i'm trying to do is to declare a certain amount of strings according to the amount of tokens a scaer scans in a single input, then have these strings equal the next input. This is what i'm trying: int numberOfTokens = 0; boolean mainLoop = true; Scaer input = new Scaer(System.in); while(mainLoop == true) { while(input.hasNext()) { String int(+ numberOfTokens) = input.next(); (this doesn't work) numberOfTokens += 1; } } I hope I made it clear of what I am trying to do. I tried using String arrays, but they won't work for what i'm trying to do. Thanks. asked 4 mins agoJava Noob Let's block ads! بخوانید...

ادامه مطلب

Custom view with CGRectMake location x and y providing incorrect view

Vote count: 0 Previous i am using Xcode 6.4 or below, In that I didn't notify this type issues. but now I am getting noticeable problems in Xcode 7.2 in related CGRectMake x,y Position. CGRect screenRect = [[UIScreen mainScreen] bounds]; CGFloat screenWidth = screenRect.size.width; CGFloat screenHeight = screenRect.size.height; UIView *smallView=[[UIView alloc]initWithFrame:CGRectMake(screenWidth/2, screenHeight/2, 100, 100)]; smallView.backgroundColor=[UIColor redColor]; [self.view addSubview:smallView]; NSLog(@"%f",smallView.frame.origin.x);// 137.500000 above snip code, the position of x & y not perfect. the below image is output . but if i add center=self.view.ceter It will come to cente...

ادامه مطلب

freeradius (MySQL config) adding custom attributes to the reply-item

Vote count: 0 I've run into a dead end while trying to set up customized attributes as a reply item (I want custom information added to the "access accept" packet). While trying to achieve this I came across this entry: # If you want to add entries to the dictionary file, # which are NOT going to be placed in a RADIUS packet, # add them to the 'dictionary.local' file. # # The numbers you pick should be between 3000 and 4000. # These attributes will NOT go into a RADIUS packet. # # If you want that, you will need to use VSAs. This means # requesting allocation of a Private Enterprise Code from # http://iana.org. We STRONGLY suggest doing that only if # you are a vendor of RADIUS equipment. # ...

ادامه مطلب

Wordpress WP_query not working for custom post (events)

Vote count: 0 I am using events-manager (a great event management plugin for Wordpress). It works really well and does a lot of things out of the box. That said, I have been trying to build a custom query for one of my events page, but caot seem to get this to work (ie. i am not able to query by custom fields, in this case event_owner). I have looked online for days, i have tried a million different snippets but nothing seem to work. FYI - If i omit meta_key' => 'event_owner', 'meta_value' => 1 the loop works just fine. Also, while I am not a developer, i usually “get” things. Thanks a lot guys! Many thanks, Yvan asked 1 min agoYvan Nasr This entry passed through the Full-Text RSS service - ...

ادامه مطلب

You are required to write JAVA program that will calculate customer’s monthly electricity consumption [on hold]

Vote count: -8 The program should: I. Ask user to enter account number II. Read current meter reading III. Read previous month’s meter reading IV. Calculate amount consumed V. Calculate amount to be paid VI. Produce receipt VII. Repeat the whole process until user select ‘N’ VIII. Produce report for All the customer (amount to be paid) The requirement: i. Comments ii. Selection control structure iii. Repetition control structure iv. Methods (at least TWO methods) v. Objects and Classes (constructor and at least create ONE object) vi. Arrays – to store all the customer data asked 3 mins agoAhmad Zharfan This entry passed through the Full-Text RSS service - if this is your content and you're r...

ادامه مطلب

Using compute Method for Calculating Values in Odoo Module customization?

Vote count: 0 My aim is to create a CRM-Lead extension module in Odoo. My modules aim is to add certain more fields to the Lead section in The CRM Odoo module. I created a module code which is working fine but one problem is that I have a field named percentage in it, which should calculate like amount * 100 & store in database. So for that I used compute attribute in Model. But its is not calculating the value... I will provide my code below :- from openerp import models, fields, api class legacy_sales(models.Model): _inherit='crm.lead' legacy_description = fields.Text(string="Comments") legacy_amount = fields.Float(string="Amount") legacy_startdate = fields.Date(string="StartDate") legacy_...

ادامه مطلب

How to padding bottom of the customize EditText character?

Vote count: 0 I have a customize EditText character with some simple character and image. Look like this image : But i want the image padding the bottom like this image : This is my pwd_bullet.png : This is my code : custom_edittext.xml Custom_Edittext public class Custom_Edittext extends Activity implements TextWatcher{ EditText editText; Spaable.Factory spaableFactory; int lastIndex = -1; protected void onCreate(Bundle savedInstanceState) { enter code here`super.onCreate(savedInstanceState); setContentView(R.layout.custom_edittext); editText = (EditText) findViewById(R.id.editText); spaableFactory = Spaable.Factory .getInstance(); editText.addTextChangedListener(this); } public Spaable get...

ادامه مطلب

Applying custom directive in AngularJS

Vote count: 0 I have created a custom directive which will check conditions and either display buttons or not in my HTML .When I apply it in html it is not working My directive looks like this angular.module('cmAuthorizeMdl',[]) .directive('cmAuthorizeDir', [function() { retu { enter code hererestrict: 'EA', link: function(scope, element, attrs) { //console.log(scope.policyDetails.policyBasic.policyPledged); scope.$on('authorizationData',function(event, data){ var isPolicyPledge = data.policies.policyList.authorization.pledge; var isPolicyPortfolio = data.policies.policyList.authorization.portfolio; var isIncompleteSavings =data.policies.policyList.authorization.inCompleteSaving; var isIrrev...

ادامه مطلب

Add custom hook in prestashop's cms page in custom template

Vote count: 0 I'm in need to create a custom hook in a specific cms page in order to show various instances of the same module (sliders of products). I tried following this guide here http://nemops.com/how-to-hooks-prestashop-cms/#.VtbJR8Q0mdU but when I go to the backend the hook I named "Vert" doesn't show. I'm using the latest version of prestashop, with cache disabled and I forced the recompilation of the tpl everytime a page is loaded. asked 1 min agoJavis Ulrick 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....

ادامه مطلب

What is error in my code ?? I Want Retrieve Customer Information using

Vote count: 0 Profile Sharing Server-Side Integration (PayPal-iOS-SDK) Retrieve Customer Information Using a Valid Access Token. but it is not working (customer Information not fetch what is issue in my code. if any idea and code please help me ) $access_token = "A103.9RZJFEa4fW5sQOX6DFsfTTH1tCPV_Om-icjqwrzzi2e1n7Jd_iFYBkrCCK_2ENsg.W5-JERJfcL6VphiZEbjeOLA-IAe"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://api.paypal.com/v1/identity/openidcoect/userinfo/?schema=openid"); curl_setopt($ch, CURLOPT_HEADER, "Content-Type:application/json"); curl_setopt($ch, CURLOPT_HEADER, "Authorization: Bearer ".$access_token); $result1 = curl_exec($ch); curl_close($ch); print_r($result1);die; aske...

ادامه مطلب

Meteor.Error - custom [reason]

Vote count: 0 I am throwing a Meteor.Error with a custom [reason] like this: if (Meteor.isServer) { Accounts.onCreateUser(function(options, user) { ... if (emailAlreadyExist === true) { throw new Meteor.Error(403, "email already registered"); } else { retu user } }) } then trying to show this error message to the user: if (Meteor.isClient) { ... if (error) { // Inform the user that account creation failed sAlert.error(error.reason); } ... } But this alert does not show my custom Meteor.Error [reason], it always gives me "Email already exists". What I am doing wrong? asked 42 secs agoEdgar This entry passed through the Full-Text RSS service - if this is your content and you're reading it on s...

ادامه مطلب

getView() never called on custom adapter

Vote count: 0 I am aware that other people have asked this question, but I have looked at other solutions and still can't get it to work. Adapter code: private class CustomTextAndImageAdapter extends ArrayAdapter { private Context context; private Activity activity; private ArrayList timeArrayList; private ArrayList weatherIconArrayList; private ArrayList descriptionArrayList; private ArrayList tempArrayList; private ArrayList popArrayList; private ArrayList windSpeedArrayList; public final void setTimeArrayList(ArrayList timeArrayList) { this.timeArrayList = timeArrayList; } public final void setDescriptionArrayList(ArrayList descriptionArrayList) { this.descriptionArrayList = descriptionAr...

ادامه مطلب

How to display custom tooltips on line chart using Rickshaw Library

Vote count: 0 I am developing a realtime graph system which will display the memory usage at particular time using data from json file . I am using Rickshaw Library which accepts tool tip in numeric type else the hard coded value supplied as a property to graph . I have a json object as : [ { "memory": 444.08203125, "memoryInfo": { "rss": 444.08203125, "vsize": 1271.125 }, "cpu": 0.2, "url": [ "/admin/company/approved" ], "time": "2/12/2016, 10:42:09 AM" }, ... ... ] I want to show in tool tip at particular time what was the url served by server so that i can get proper information like which route is consuming more memory. I will share my so far js code with you so that it will be better to...

ادامه مطلب