Questions tagged [init]

May refer to Linux init, an abbreviation of initialization - giving variables a "starting" value, or Python's __init__ class initiation method.

May refer to :

  • Linux Init - the parent of all processes, which primary role is to create processes from a script stored in the file /etc/inittab.
  • variable init (abbreviation of initialization) - giving variables a "starting" value.
  • python magic __init__ - magic function that initializes an object.
1905 questions
0
votes
1 answer

Codlfusion ORM: Can not load SQL after an init of ORM

Trying to drop/create table with orm but facing a situation: When I try to drop/create table I see tables are created but data. I have a sql which contains data but no luck. I have proper definitions for the sql that has to be imported when I…
B.U
  • 129
  • 6
0
votes
0 answers

How to extend init constructor

source code: protocol UIImageExtension{ init?(normalImage: NSInteger, pressedImage: String, textTag: NSInteger) } extension UIImageView: UIImageExtension{ required convenience init?(normalImage: NSInteger, pressedImage: String, textTag:…
Will Wang
  • 3
  • 2
0
votes
0 answers

Undefined reference to static header method

My program is returning Undefined reference to Data::init(). It's all declared correctly as far as I can tell. The method is prototyped in Data.h and filled in Data.cpp and called in main.cpp. The code was written in Visual Studio and it shows no…
DSchana
  • 968
  • 3
  • 13
  • 28
0
votes
1 answer

Git push existing project without files in upload directory

Since not so long I started to work with git and I start to love it as I work in small teams as well. Now I would like to push one of my projects with kind a large amount (13gb) of uploaded data. As I don't need to have this data I am wondering how…
directory
  • 3,093
  • 8
  • 45
  • 85
0
votes
1 answer

Code inside onCreate causes crash, but works inside init()

first of all, I want to apologize if I cannot make myself clear. I have a problem using the HERE Maps SDK. I am not able to make my code work inside the onCreate statement, but outside the init() method for the map. However, if I put the last block…
VollNoob
  • 267
  • 4
  • 15
0
votes
1 answer

Function in Class __init__ Dict | Functions Evaluated on Call of Class

I have a bunch of functions that I am storing in a dictionary used to gather data from a more "cryptic" source (I have written functions to access this data). In my code, I want to create "visibility" of what functions / parameters are loading…
m3m5rr
  • 125
  • 1
  • 1
  • 7
0
votes
1 answer

Property 'self.animator' not initialized at super.init call

import UIKit @objc protocol SideBarDelegate{ func sideBarDidSelectButtonAtIndex(Index:Int) optional func sideBarWillClose() optional func sideBarWillOpen() } class SideBar: NSObject,SideBarTableViewControllerDelegate { …
Anand Yadav
  • 479
  • 5
  • 17
0
votes
3 answers

How to create a custom UIView?

I've created a UIView subclass and corresponding xib file where I've laid out some UILabels and UIImageViews. I want to then put multiple copies of this custom UIView into a UIViewController. When I do that they appear blank in interface builder…
xmr
  • 635
  • 8
  • 9
0
votes
1 answer

ubuntu automatic stop a daemon doesnt happening

I`m trying to make my mysql server to stop automatically from init. root@server:/# update-rc.d mysql defaults Adding system startup for /etc/init.d/mysql ... /etc/rc0.d/K20mysql -> ../init.d/mysql /etc/rc1.d/K20mysql -> ../init.d/mysql …
SScast
  • 59
  • 1
  • 10
0
votes
1 answer

Drupal: Catcing userId in hook_init();

I have the following code in a custom module as well as I have firePHP installed (dfb($userId) is supposed to be written in the console). At every page pageload I want to catch and print the current users ID and I think the following should work but…
Martin
  • 548
  • 5
  • 14
0
votes
0 answers

Windows gcloud init

There is a problem. error occurs when you run the gcloud init command. [C:\Users\xxxxx\default]:C:\gcloud.repo Cloning into 'C:\gcloud.repo'... bash.exe: warning: could not find /tmp, please create! bash.exe: warning: could not find /tmp, please…
hiro
  • 141
  • 3
  • 12
0
votes
2 answers

How can I init this kind of Enum which contains properties and no constructor in Swift?

In Alamofire, I find there is a enum: public enum Result { case Success(Value) case Failure(Error) /// Returns `true` if the result is a success, `false` otherwise. public var isSuccess: Bool { get } /// Returns `true` if…
Desmond
  • 767
  • 1
  • 6
  • 18
0
votes
2 answers

python class self and __init__

i have the following code and any trying to make a class that generates two random numbers in a list and returns them import random class add : def __init__(self): self.data = [] def GenerateLocation(self): random1 = 10 …
Broomer
  • 107
  • 10
0
votes
0 answers

register an imported bundle from my own bundle in symfony2

I've created a bundle (via generate:bundle) which is could use an imported one. For example, my bundle's name is EmailBundle. This will use sending functions from another bundle, name is SmtpBundle (imported from composer). SmtpBundle has…
Roland
  • 183
  • 4
  • 21
0
votes
1 answer

Setting up puppet directory environment in puppet

I am learning puppet but I stuck with one problem. I have a Puppet installation with one Puppet master and one Puppet agent, and I am using open source Puppet. I to set up a environment named Test. The directory is as follows…
Bidyut
  • 933
  • 1
  • 14
  • 30
1 2 3
99
100