text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
it replaces with the view definition before generating the execution plan that will be run
[ 0.03380489721894264, -0.3251563608646393, 0.2640877664089203, -0.14033956825733185, 0.2808123528957367, -0.1430494338274002, 0.14377133548259735, 0.050592947751283646, 0.11635160446166992, -0.5198060274124146, -0.47772204875946045, 0.5638957619667053, -0.0944271981716156, -0.10857318341732...
I want to send SMS messages to multiple numbers in my database based on an event happening. I was wondering if there is a way of doing this in PHP or Javascript? Maybe there is a function like php's mail function? If not does anyone know of any good and easy to implement systems paid or free? I'd like to have a go at...
[ 0.48008063435554504, 0.04891810193657875, 0.16811682283878326, 0.2221832275390625, -0.2825315594673157, 0.15907587110996246, 0.35492831468582153, 0.37436532974243164, -0.35596638917922974, -0.5889525413513184, 0.3847482204437256, 0.3310268819332123, -0.2329448163509369, -0.1803740859031677...
that helps. There is no function in PHP or javascript that can send sms directly. SMS are basically based on Short Message Peer-to-Peer (SMPP) protocol so there is no way you can directly send sms programmatically. Yes you could use smsgateway or an existing api where you can make a http request from php. There are lot...
[ 0.19648930430412292, -0.03643389418721199, 0.20076215267181396, 0.15181683003902435, -0.24410341680049896, 0.09810131788253784, 0.45692285895347595, -0.007866420783102512, -0.4904473125934601, -0.49626296758651733, 0.16074629127979279, 0.5333864688873291, -0.1591261625289917, -0.1638091057...
I am trying to reposition a form to bottom/right point of a control. ```cs public void SetAutoLocation() { Rect rect; GetWindowRect(referenceControl.Handle, out rect); Point targetPoint; targetPoint = new Point(rect.left, rect.top + referenceControl.Height); if (rect.left + referenceControl.Width ...
[ 0.11554611474275589, -0.10131273418664932, 0.8709889054298401, -0.23030135035514832, 0.2840139865875244, 0.10138920694589615, 0.36159777641296387, -0.4178658425807953, -0.023110348731279373, -0.7023260593414307, -0.3910747766494751, 0.2587713301181793, -0.3404482305049896, 0.17027743160724...
if (targetPoint.X + this.Width > System.Windows.Forms.SystemInformation.WorkingArea.Right) //Outside right border { targetPoint.X = System.Windows.Forms.SystemInformation.WorkingArea.Right - this.Width; } else if (targetPoint.X < 0) targetPoint.X = 0; if (targetPoint.Y + this.Height > S...
[ -0.07835570722818375, -0.4378076493740082, 0.9900853633880615, -0.0975947380065918, 0.24549266695976257, 0.012339054606854916, 0.14884886145591736, -0.370771199464798, -0.3586907684803009, -0.5375973582267761, -0.43124300241470337, 0.43722984194755554, -0.02543841302394867, 0.0170684698969...
= 0; } if (targetPoint.X < 0) { targetPoint.X = 0; } this.Location = targetPoint; this.Refresh(); } ``` The above code works well in single monitor display. But when the parent form is opened in dual monitor display, the form positions itself on the 1st monitor, as GetWindowRect() re...
[ -0.1662673056125641, -0.22013914585113525, 0.9583367109298706, -0.39333122968673706, -0.017113829031586647, -0.06822186708450317, 0.0445694699883461, -0.22641216218471527, -0.006815262138843536, -0.904857873916626, -0.280848890542984, 0.20182178914546967, -0.31557613611221313, 0.0967735424...
the control is on: ``` var screen = Screen.FromControl(referenceControl); var area = screen.WorkingArea; var rect = referenceControl.RectangleToScreen( new Rectangle(0, 0, referenceControl.Width, referenceControl.Height)); // etc.. ``` Note how RectangleToScreen can help you avoid having to p...
[ -0.12159433960914612, -0.23023317754268646, 0.8865314722061157, -0.02938286028802395, 0.1969834268093109, -0.2351323515176773, -0.11580418050289154, -0.2900139093399048, -0.2583463490009308, -0.6014062166213989, -0.2596755921840668, 0.7353665232658386, -0.1761760115623474, 0.17832130193710...
I'm creating a simple notepad type of application with the tab functionality. I'm creating the TabControl, its TabPages and RichTextBoxes at run-time. I have them instantiated at class scope. And there is a MenuStrip item called New, by clicking that you can add more tab pages. ``` TabControl tbcEditor = new TabContro...
[ -0.0637187510728836, -0.1201929897069931, 0.6998284459114075, -0.08756567537784576, -0.0923568531870842, 0.1299392282962799, 0.2423231303691864, -0.48548102378845215, -0.1993030607700348, -0.8011792302131653, -0.20086650550365448, 0.8996322751045227, -0.5641338229179382, 0.1359994113445282...
//TabPage tbPage = new TabPage(); //RichTextBox rtb = new RichTextBox(); tbPage.Controls.Add(rtb); rtb.Dock = DockStyle.Fill; tbcEditor.TabPages.Add(tbPage); } ``` The problem I'm facing is a bit difficult to explain. I'll try my best. When the form loads, everything works as expected. The TabCon...
[ 0.14293095469474792, 0.1179560199379921, 0.6573659777641296, -0.2530492842197418, -0.16424335539340973, -0.038592271506786346, 0.647827684879303, -0.11166159063577652, -0.2120150327682495, -0.8924838900566101, 0.039926741272211075, 0.8005584478378296, -0.5854769349098206, 0.013098973780870...
click event), which creates 2 instances of TabPage and RichTextBox, everything works as I want. Now my first question is why do I have to make new instances of only those 2 types(TabPage, RichTextBox) again but not TabControl? As you can see in the last line, I can use `tbcEditor` once again. But not `tbPage` and `rt...
[ 0.03918579965829849, -0.2679152488708496, 0.40523648262023926, -0.03509217128157616, -0.20425592362880707, -0.2956589460372925, 0.17456217110157013, 0.016568662598729134, -0.35453715920448303, -0.9096924662590027, -0.12306971848011017, 0.6633149981498718, -0.5757623314857483, 0.33494588732...
by this so any suggestions, ideas on how to overcome these 2 issues would be greatly appreciated. Thank you. `If I un-comment out those 2 lines(under MenuItem click event), which creates 2 instances of TabPage and RichTextBox, everything works as I want.` When you uncomment those lines, you are adding the same instan...
[ 0.14428845047950745, 0.08198436349630356, 0.3183480203151703, 0.09967830032110214, -0.29414665699005127, -0.2722189426422119, 0.2322458028793335, 0.09373065084218979, -0.3306071162223816, -0.861920952796936, -0.1882491558790207, 0.6179608702659607, -0.5230938196182251, 0.1817227452993393, ...
parent control which has TabPages as child controls. You can have multiple tabs under one TabControl. So you need not create TabControls other than the `tbcEditor` you have already added. We do not add container controls more than once (unless its the requirement). Do we need more forms? No, just one form which can hol...
[ 0.11548403650522232, -0.11390797048807144, 0.2897983491420746, 0.3660762310028076, -0.08831978589296341, -0.05286215618252754, 0.011446158401668072, 0.05105484277009964, -0.08022502809762955, -0.7407196164131165, -0.059918757528066635, 0.39118218421936035, -0.29903876781463623, 0.516244113...
local.` This is no big deal. You can do in two ways: 1) Search for your appropriate control by looping. The [SelectedTab](http://msdn.microsoft.com/en-us/library/system.windows.forms.tabcontrol.selectedtab.aspx) property gives what you want. ``` private void someEvent(object sender, EventArgs e) { ...
[ -0.21501092612743378, -0.5600429177284241, 0.3476649820804596, 0.381855309009552, 0.20208851993083954, -0.17620794475078583, 0.25086042284965515, 0.2801031768321991, -0.06096027046442032, -0.5115891695022583, -0.2979624271392822, 0.6534746289253235, -0.45613929629325867, 0.2439982742071151...
Clipboard.SetDataObject(((RichTextBox)c).SelectedText); break; //assuming u have just one main rtb there } } } ``` 2) Tag each rtb to the tabPage when you create it, and then you can get the tag element of the selected tab page to get the rich text box. I would go for this approac...
[ 0.2405589371919632, -0.20953108370304108, 0.548153817653656, -0.053808897733688354, -0.03909512609243393, -0.15655481815338135, -0.0628548264503479, -0.1002461388707161, -0.2093392014503479, -0.8495490550994873, -0.08010201156139374, 0.742404580116272, -0.5742090940475464, -0.0861171633005...
= new TabControl(); private void frmTextEditor_Load(object sender, EventArgs e) { Controls.Add(tbcEditor); tbcEditor.Dock = DockStyle.Fill; AddMyControlsOnNewTab(); } private void AddMyControlsOnNewTab() { TabPage tbPage = new TabPage(); RichTextBox rtb = new RichTextBox(); tbPage.Tag...
[ -0.0927012637257576, -0.41316694021224976, 0.8064404726028442, -0.12811417877674103, 0.06414270401000977, 0.2305554896593094, 0.628753125667572, -0.3642560839653015, -0.3714296817779541, -0.600151538848877, -0.36827540397644043, 0.815471351146698, -0.42086079716682434, 0.1500697135925293, ...
RichTextBox rtb= (RichTextBox)tbcEditor.SelectedTab.Tag; Clipboard.SetDataObject(rtb.SelectedText); //or even better in just a line, //Clipboard.SetDataObject(((RichTextBox)tbcEditor.SelectedTab.Tag).SelectedText); } ``` What you have to consider here is which is the control that you first ge...
[ -0.2473914474248886, -0.2188110202550888, 0.43459072709083557, 0.07743901014328003, -0.13985849916934967, -0.2820807695388794, 0.11208909004926682, -0.43491941690444946, 0.01523209735751152, -0.6412175893783569, -0.3118252754211426, 0.6152507662773132, -0.664301872253418, 0.029645625501871...
object, so you have to specify which kind of object it is. Finally, this method has the advantage that you need not loop through a list, so its more performant. And that you can have more RichTextBoxes in the TabPage (provided you want to copy text from only one set of RichTextBoxes, one from each TabPage)..
[ 0.0017556187231093645, -0.24190112948417664, 0.3262050151824951, 0.3687503933906555, -0.282675564289093, -0.13748513162136078, 0.27749261260032654, 0.04039178416132927, -0.4639180302619934, -0.6729252338409424, -0.2786656320095062, 0.4112236797809601, -0.29702258110046387, 0.00570127088576...
I have a complex Query (Without any locking hints) that takes data from many tables say Table1,Table2,Table3 Below is the code the code to retrieve data (there are no transactions) ``` IDbCommand sqlCmd = dbHelper.CreateCommand(Helper.MyConnString, sbSQL.ToString(), CommandType.Text, arParms); sqlCmd.CommandTimeo...
[ -0.033584751188755035, 0.2375946193933487, 0.6073984503746033, -0.17932380735874176, 0.05398742854595184, -0.09902937710285187, 0.40976446866989136, -0.3102684020996094, -0.23991675674915314, -0.683577299118042, -0.1097131073474884, 0.4258798658847809, -0.39414381980895996, 0.3138499855995...
those 2 lines(under MenuItem click event), which creates 2 instances of TabPage and RichTextBox, everything works as I want.` When you uncomment those lines, you are adding the same instance of the rich textbox and tab page to the container panel again which is meaningless. Instead add new controls foreach tabpage. (I...
[ 0.14435523748397827, -0.03436050936579704, 0.33512043952941895, 0.19146068394184113, -0.0909254178404808, 0.14143283665180206, 0.13653028011322021, -0.01664450392127037, -0.18165838718414307, -0.883485734462738, -0.14116454124450684, 0.4132394790649414, -0.42687729001045227, 0.414705455303...
TabControls other than the `tbcEditor` you have already added. We do not add container controls more than once (unless its the requirement). Do we need more forms? No, just one form which can hold all the child controls right. Similarly just one TabControl which can hold a collection of TabPages. You would need more Ta...
[ -0.0012203952064737678, -0.28354620933532715, 0.48841747641563416, 0.466839998960495, 0.06571055948734283, -0.17631785571575165, 0.15623676776885986, -0.10804726183414459, -0.1477537453174591, -0.6382731795310974, -0.20818282663822174, 0.43586787581443787, -0.3947634696960449, 0.3019607961...
gives what you want. ``` private void someEvent(object sender, EventArgs e) { foreach (Control c in tbcEditor.SelectedTab.Controls) { if (c is RichTextBox) { Clipboard.SetDataObject(((RichTextBox)c).SelectedText);
[ 0.19468186795711517, -0.39739298820495605, 0.4859594404697418, 0.01910601183772087, 0.36531686782836914, -0.09946300834417343, -0.0863778367638588, -0.014051481150090694, 0.04386715218424797, -0.40969282388687134, -0.31571507453918457, 0.4304830729961395, -0.3804285228252411, 0.11693986505...
break; //assuming u have just one main rtb there } } } ``` 2) Tag each rtb to the tabPage when you create it, and then you can get the tag element of the selected tab page to get the rich text box. I would go for this approach. **Edit:** (In general pls make the following changes too to your cod...
[ 0.11619075387716293, -0.23586200177669525, 0.4354359209537506, -0.1770867258310318, 0.2181186079978943, -0.21249467134475708, 0.3251103460788727, -0.4578472375869751, -0.2556746006011963, -0.4671076536178589, -0.3177047669887543, 0.7373235821723938, -0.5674571394920349, -0.0595390386879444...
tbcEditor.Dock = DockStyle.Fill; AddMyControlsOnNewTab(); } private void AddMyControlsOnNewTab() { TabPage tbPage = new TabPage(); RichTextBox rtb = new RichTextBox(); tbPage.Tag = rtb; //just one extra bit of line. tbcEditor.TabPages.Add(tbPage); tbPage.Controls.Add(rtb); rtb.Dock = Do...
[ -0.06891302764415741, -0.4182559549808502, 0.6851358413696289, -0.05483674630522728, 0.06568704545497894, 0.2068723738193512, 0.4768936038017273, -0.3939663767814636, -0.20596225559711456, -0.7322867512702942, -0.2706397473812103, 0.6862608790397644, -0.4225323498249054, 0.1780784577131271...
Clipboard.SetDataObject(rtb.SelectedText); //or even better in just a line, //Clipboard.SetDataObject(((RichTextBox)tbcEditor.SelectedTab.Tag).SelectedText); } ``` What you have to consider here is which is the control that you first get and which is the one you do not get. You would get TabPage anyw...
[ 0.026392526924610138, -0.2813566029071808, 0.5324735045433044, 0.16822414100170135, -0.16365748643875122, -0.30042335391044617, -0.07121066749095917, -0.20639576017856598, -0.10076161473989487, -0.7654295563697815, -0.1802767813205719, 0.4339197278022766, -0.6081506609916687, 0.01621957123...
not loop through a list, so its more performant. And that you can have more RichTextBoxes in the TabPage (provided you want to copy text from only one set of RichTextBoxes, one from each TabPage)..
[ 0.4563162326812744, -0.43683019280433655, 0.07722149789333344, 0.3273868262767792, -0.15601831674575806, -0.2571478486061096, 0.3567023277282715, 0.08122317492961884, -0.4398099184036255, -0.6737531423568726, -0.3015153706073761, 0.27898794412612915, -0.4661847651004791, -0.168313667178154...
when i apply this styles to **option** element: ``` border-color: #8A8A8A #E5E5E5 #E5E5E5 #8A8A8A; border-style: solid; border-width: 1px; ``` the all browsers display it correctly, but google chrome ignores this styles and rendering double border. How can i fix it? Add `outline: none` to your CSS rule. This will re...
[ -0.03935180976986885, 0.1748204529285431, 0.6986202001571655, -0.12042638659477234, -0.06504444777965546, 0.173313707113266, 0.5921065807342529, -0.13773466646671295, -0.3580971658229828, -0.6112041473388672, -0.33507177233695984, 0.14235730469226837, -0.45791593194007874, 0.02469253726303...
I'm using play framework 1.2.4 and i'm preparing an meal order system. So i want to get them in a map. ``` package models; import java.util.ArrayList; import java.util.Date; import java.util.Map; import javax.persistence.Entity; import javax.persistence.ManyToMany; import play.db.jpa.Model; @Entity public class Or...
[ 0.19938066601753235, -0.028990691527724266, 0.6689136028289795, -0.33839645981788635, -0.02632111683487892, 0.20375382900238037, 0.26979801058769226, -0.5622519254684448, -0.21587355434894562, -0.8707512021064758, 0.03235209733247757, 0.47920340299606323, -0.5153898596763611, 0.27495187520...
like 1 porsion pizza, 1.5 porsion soup etc. You must change table name for the entity Order by using @Table annotation. In many DBMS "order" is a reserved word. ``` @Entity @Table(name="apporder") public class Order extends Model { // ... } ``` About order items: you need other entity for storing this data. For ...
[ 0.06599972397089005, -0.044640958309173584, 0.2889622151851654, -0.3253105580806732, -0.1268840730190277, 0.2817266881465912, 0.27937057614326477, -0.47019854187965393, -0.288395494222641, -0.6561594605445862, -0.36522576212882996, 0.3769811987876892, -0.709781289100647, 0.2947906255722046...
So I tried to make A button invisible, I searched first the forum for the answer and tryed it but it just doesn't work. ``` int level=0; try{ String FILENAME = "TowerFile"; FileInputStream fos = openFileInput(FILENAME); byte[] b = new byte[1]; fos.read(b); fos.close(); ...
[ 0.2390543520450592, -0.14625439047813416, 1.059693694114685, -0.17220106720924377, 0.38835132122039795, -0.0868806466460228, 0.5987929105758667, -0.3268122375011444, -0.07974337786436081, -0.6182352304458618, -0.1425243616104126, 0.5460883378982544, -0.5721184015274048, 0.00165451900102198...
level=1; } if(new String(b).equalsIgnoreCase("2")){ level=2; } if(new String(b).equalsIgnoreCase("3")){ level=3; } if(new String(b).equalsIgnoreCase("4")){ level=4; }
[ -0.11945553123950958, -0.2131984531879425, 0.9522167444229126, 0.046684443950653076, -0.06432364881038666, -0.021564649417996407, 0.3334011733531952, -0.4684832990169525, 0.08543982356786728, -0.5646477341651917, -0.1293506622314453, 0.4626249074935913, -0.5465084910392761, 0.0792270302772...
if(new String(b).equalsIgnoreCase("5")){ level=5; } }catch (java.io.FileNotFoundException e) { } catch (IOException e) { e.printStackTrace(); } Button button1 = (Button) findViewById(R.id.button1); Button button2 = (Button) findViewById(R.id.button2); Button butt...
[ -0.29545924067497253, -0.35693803429603577, 0.8163440823554993, -0.3705666959285736, 0.23593980073928833, 0.05133267864584923, 0.21694794297218323, -0.7238460183143616, 0.04545603692531586, -0.5811591148376465, -0.31188786029815674, 0.5508925914764404, -0.2117863893508911, -0.0374606736004...
button1.setVisibility(View.INVISIBLE); } ``` So I first get A variabel out of my file, and then I want to make A button invisable depending on the output. I get the wright number out of my file but it doesn't do anything, I also did 0 and gone but nothing works ``` buttonName.setVisibility(View.GONE); ``` This ...
[ 0.22839562594890594, -0.2842999994754791, 0.5960139632225037, -0.30533573031425476, -0.10892613232135773, 0.11395449936389923, 0.2789681553840637, -0.37803998589515686, -0.29162973165512085, -0.890175461769104, -0.016596343368291855, 0.5381420850753784, -0.609201192855835, 0.06938106566667...
I appreciate this question is a little silly, so I apologise in advance if this is off topic or non constructive. Why, in C# is it standard convention\* to define properties with the getter before the setter? For properties with both you're almost always going to use the setter before the getter so it's in a valid sta...
[ 0.2114546000957489, 0.21109429001808167, 0.175879567861557, 0.04125770926475525, -0.21162158250808716, -0.27493607997894287, 0.15369786322116852, -0.03475561365485191, -0.033795904368162155, -0.21191859245300293, -0.2500593364238739, 0.544511616230011, -0.11220499128103256, 0.1602208018302...
clearer how the property should behave. For example: ``` public decimal Price { get { return _price; } set { if(value < 0m) { throw new ArgumentOutOfRangeException(); } _price = value; OnPropertyChanged("Price"); } } ``` The code in the setter is f...
[ 0.08730318397283554, -0.30325761437416077, 0.2941005825996399, 0.06948219239711761, 0.030385645106434822, -0.17893224954605103, -0.4054949879646301, -0.21284133195877075, 0.07224792242050171, -0.5442957282066345, -0.3608461618423462, 0.9438015222549438, -0.08738955110311508, 0.059893503785...
it not take precedence and be defined first? \*I know there are no rules with these things, but practically every example ever, ever of properties defines the getter before the setter. Because it is better to give than to receive. On a more serious note, I'm guessing because whoever wrote the snippet (or whatever it ...
[ 0.4055922031402588, -0.2807094156742096, 0.2633374333381653, 0.05619943514466286, -0.23640024662017822, -0.046248361468315125, 0.5026591420173645, -0.08807716518640518, 0.06101140379905701, -0.4675110876560211, -0.06655734777450562, 0.6070724129676819, -0.29662463068962097, 0.4428739845752...
I'm modifying a simple php crawler script. one of the modules it uses is a converter of relative urls into absolute urls. For this, I need to find a way to determine the base href of a given url. Otherwise I end up with a bunch of wrongly converted links. I need a simple function to check if an url has a base href...
[ 0.23365972936153412, 0.26853930950164795, 0.42009595036506653, 0.02634713612496853, 0.01743069663643837, -0.1333734095096588, 0.6900877952575684, 0.10332685708999634, 0.17562773823738098, -0.6123047471046448, 0.09770948439836502, 0.5795789361000061, -0.24413135647773743, 0.3095634877681732...
minimum on the page, still nothing works. As a last resort I looked through the source code of Modernizr. In the mq method, another project is cited matchMedia. The matchMediaproject is by one of the Modernizr contributors, Paul Irish. In fact, Modernizr will call mediaMatch if it already exists on the page in place o...
[ -0.015067193657159805, 0.16560767590999603, 0.2034708559513092, -0.1833506077528, 0.006568534765392542, -0.13946057856082916, 0.18041639029979706, -0.2744249105453491, 0.20995599031448364, -0.7406209111213684, -0.0004220118571538478, 0.7093502879142761, -0.633659303188324, -0.1137483566999...
matchMedia result, else execute modernizr code var matchMedia = window.matchMedia || window.msMatchMedia; if ( matchMedia ) { return matchMedia(mq).matches; } //if mediaMatch is not found the moderizr version of this method executes... ``` You can get matchMedia.js here,...
[ -0.151133194565773, -0.13615170121192932, 0.695229172706604, -0.14065024256706238, -0.04949016124010086, -0.16061989963054657, 0.4967464506626129, -0.31293192505836487, 0.3158971965312958, -0.8635292649269104, 0.0319233201444149, 0.6062852740287781, -0.572716474533081, 0.3870776295661926, ...
I would like to get country, region and city name from longitude and latitude over Google maps API (V3?) - with PHP. I just can't manage to get it for every county, I managed to get this code but it doesn't work on other counties because the returned result is different (the only correct information is country but even...
[ 0.08235133439302444, 0.22581753134727478, 0.8181328773498535, 0.03997232764959335, 0.2612120807170868, 0.1961132436990738, 0.2688148021697998, -0.11105610430240631, -0.11918524652719498, -0.6656961441040039, -0.31044480204582214, -0.27071189880371094, -0.29948630928993225, 0.10827661305665...
if(is_array($jsondata )&& $jsondata ['Status']['code']==200) { $addr = $jsondata ['Placemark'][0]['AddressDetails']['Country']['CountryName']; $addr2 = $jsondata ['Placemark'][0]['AddressDetails']['Country']['Locality']['LocalityName']; $addr3 = $jsondata ['Placemark'][0]['AddressDetai...
[ -0.1736682802438736, -0.19794206321239471, 0.6438000798225403, 0.022337431088089943, 0.25225013494491577, -0.11106287688016891, 0.1626703292131424, -0.5669056177139282, -0.03299759700894356, -0.6806979179382324, -0.5525703430175781, 0.08586281538009644, -0.27788835763931274, 0.008558890782...
$output= json_decode($geocode); echo $output->results[0]->formatted_address; ``` Try this.. Edit::::: ``` $geocode=file_get_contents('http://maps.googleapis.com/maps/api/geocode/json?latlng=48.283273,14.295041&sensor=false'); $output= json_decode($geocode); for($j=0;$j<count($output->results[0]->addr...
[ 0.034936510026454926, 0.13229498267173767, 0.3413916528224945, -0.3194401264190674, -0.17014795541763306, 0.19769792258739471, 0.3738579750061035, -0.6229279637336731, -0.330841064453125, -0.3583008646965027, -0.515438437461853, 0.08700487017631531, -0.6889721155166626, 0.11904869973659515...
I am in the process of developing an application (Quartz scheduler) where we have a job class which is responsible for actually executing the work and we need to tell/pass the name of the job class while creating a trigger in the Quartz scheduler. I want to provide an extension point to all who want to use the API (be...
[ 0.6292497515678406, 0.1885516196489334, 0.16832275688648224, -0.2122998982667923, 0.0655001699924469, -0.0024205115623772144, 0.09519106149673462, -0.12450846284627914, -0.023037349805235863, -0.263750821352005, 0.20270408689975739, 0.44953399896621704, -0.05591759830713272, -0.07191486656...
(declare to) implement the interface. I am not sure how I can find which classes are following the contract (by implementing the interface) so that I can show them to the user who want to schedule a trigger in the scheduler. *My requirement is not to load the classes at run time but to show user list of classes which...
[ 0.5306478142738342, 0.07415588945150375, 0.18584215641021729, -0.1406453549861908, -0.11162615567445755, -0.2787446081638336, 0.3553062379360199, -0.3082992434501648, 0.1225852370262146, -0.2812633514404297, -0.014104469679296017, 0.7138781547546387, -0.22883963584899902, -0.05091096833348...
can achieve the above goal or is there any other better way to achieve what I am trying to do? **Edit** I went through the doc of [ServiceLoader](http://docs.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html) and it seems that for implementing a service one has to create a file in the META-INF folder with the...
[ 0.6498289704322815, 0.05006512999534607, 0.24070371687412262, -0.172796368598938, 0.011115618981420994, 0.15610016882419586, 0.6255269050598145, -0.19688287377357483, -0.09428858757019043, -0.8769010305404663, -0.10657784342765808, 0.49224454164505005, -0.19612948596477509, -0.030737347900...
job and there can be 100s of job classes. Please correct me if my assumption is wrong. I had a similar need where I wanted to make sure that any classes created that implemented a certain interface were always truly serializable. I created a JavaClassFinder which walks through all directories in the classpath, and fin...
[ -0.006460587494075298, -0.31953665614128113, 0.3157212436199188, -0.21719391644001007, 0.047614701092243195, 0.11748140305280685, 0.12094894796609879, -0.24015893042087555, -0.16522365808486938, -0.8220221996307373, 0.15977787971496582, 0.6010206937789917, -0.4341737926006317, -0.022820595...
walkClassPath(); for (Class<?> clazz : foundClasses) { returnedClasses.add((Class<? extends T>) clazz); } return returnedClasses; } ``` I'm happy to share the code with you if it helps. The only draw back is that this will only handle .class files -- I didn't add the feature to unzip .jars and rea...
[ 0.3635776937007904, -0.2574934661388397, 0.4530279040336609, -0.11987482011318207, -0.2033313363790512, -0.10667011141777039, 0.6760009527206421, -0.1542843133211136, -0.18976734578609467, -0.9416623115539551, 0.14380508661270142, 0.4901384115219116, -0.3470578193664551, -0.072152338922023...
utility library. To make it easier, I zipped up all the code needed, which you can download from [JavaClassFinder.zip](http://www.ezxinc.com/downloads/JavaClassFinder.zip). This will set up directly in Eclipse, and you can take whatever portions of the code you need. You will find a JUnit3 test in the project, called...
[ 0.3179799020290375, -0.30604082345962524, 0.11486659944057465, -0.2876278758049011, -0.30731627345085144, -0.07801008224487305, 0.37345579266548157, -0.46477943658828735, 0.056415729224681854, -0.8967620730400085, 0.2536805272102356, 0.5888339281082153, -0.5646466612815857, -0.355983823537...
classes in the classpath which are assignable from the "MyTagInterface.class" (for example). Hope this helps.
[ 0.26126712560653687, -0.3280588686466217, -0.02741951309144497, 0.282683402299881, -0.027895284816622734, 0.005792943295091391, 0.5175215005874634, 0.5257594585418701, -0.14173439145088196, -0.9544268846511841, -0.03757688030600548, 0.1884891539812088, -0.014685002155601978, 0.106080867350...
I am developing a **games library** where I can add or delete my games. So far I just made a list with 3 games in standard, but when i was trying to test it. It gave me an error. I am trying to do it with an iteration on my vector, but for some reason it won't work. And i can't find that reason. here's my code: ```...
[ 0.28370925784111023, 0.31936880946159363, 0.452953040599823, -0.4115106463432312, -0.19019176065921783, 0.1309094876050949, 0.10121890157461166, -0.2592151463031769, -0.28342893719673157, -0.8557090163230896, 0.01572948507964611, 0.6517176628112793, -0.7422652840614319, -0.0176782831549644...
0; } ``` the types of you iterator and your vetcor are incompatible. use: ``` vector<string>::const_iterator iter; ``` To make things easier it might be better to typedef your collection type: ``` typedef std::vector<std::string> GamesListType; GamesListType::const_iterator iter; GamesListType games; ```
[ 0.06903626769781113, -0.07811857014894485, 0.5019932985305786, 0.07151934504508972, -0.0510408952832222, -0.10958605259656906, -0.3345481753349304, -0.408880352973938, -0.3551882803440094, -0.49952366948127747, -0.29721102118492126, 0.8387531042098999, -0.2636801600456238, 0.16713874042034...
I want to count payment within selected date, but i can't figure it out how to do it. Here is the example data from the my table ``` id starts_from payment_per_day ======================================= 1 2012-01-01 10,000.00 2 2012-01-15 10,500.00 3 2012-02-01 11,000.00 4 2012-...
[ 0.3178028166294098, 0.08492544293403625, 0.7698678374290466, -0.08972256630659103, -0.10723526030778885, 0.6137979030609131, 0.02223181538283825, -0.3175486624240875, -0.330293744802475, -0.399629145860672, 0.403124064207077, 0.5905870199203491, 0.3699888586997986, 0.1530929058790207, 0....
total payment should be 338,500 ``` from 2012-01-21 to 2012-01-31 = 11 days * 10,500 from 2012-02-01 to 2012-02-14 = 14 days * 11,000 from 2012-02-15 to 2012-02-20 = 6 days * 11,500 ``` But if i do : ``` SELECT SUM(payment_per_day) as total FROM table WHERE starts_from BETWEEN '2012-01-21' AND '2012-02-20' ``` ...
[ 0.03403889387845993, -0.08814909309148788, 0.8425188660621643, -0.197599396109581, 0.05016404762864113, 0.8515047430992126, -0.14711326360702515, -0.28011763095855713, -0.3775022625923157, -0.29158636927604675, -0.0037814327515661716, 0.5589747428894043, 0.37959346175193787, 0.254754334688...
AND p2.starts_from > p1.starts_from WHERE p2.id IS NULL ``` You could obtain the list from the range with the help of a numbers table, like this: ``` SELECT DATE_ADD(@date_from, INTERVAL num DAY) FROM numbers WHERE num BETWEEN 0 AND DATEDIFF(@date_to, @date_from) ``` A numbers table is a thing worth having as it c...
[ -0.03735397383570671, -0.07883832603693008, 0.11701834201812744, -0.08967642486095428, -0.0966549888253212, 0.053513526916503906, -0.2253708690404892, -0.4626659154891968, -0.1593174785375595, -0.5987010598182678, -0.03929981589317322, 0.24210092425346375, -0.0935884341597557, 0.0092110279...
@ofs = (SELECT COUNT(*) FROM numbers); INSERT INTO numbers SELECT @ofs + num FROM numbers; SET @ofs = (SELECT COUNT(*) FROM numbers); INSERT INTO numbers SELECT @ofs + num FROM numbers; … /* repeat as necessary, each line doubles the number of rows in the table */ ``` But, of course, you can use a loop instead. [Her...
[ 0.154570072889328, 0.017090704292058945, 0.2479514330625534, -0.08072062581777573, -0.05285453796386719, 0.001231457805261016, 0.28216269612312317, -0.37021028995513916, 0.016620397567749023, -0.302259236574173, 0.3135022819042206, 0.4149687588214874, -0.024973208084702492, -0.088167048990...
If i have a field in my db which clarify the type of the application . takes two values `0 or 1` **0 for web app** and **1 for win app** and now there is some requirement in my business: > There are some win applications available to all users and some of > them belong to specific users . --- What 's the best so...
[ 0.3384024500846863, 0.3255046308040619, 0.2739567756652832, 0.14561106264591217, -0.17739637196063995, -0.20480269193649292, -0.07172947376966476, -0.2562685012817383, -0.03589118644595146, -0.4787907600402832, -0.1202087476849556, 0.5903152823448181, -0.07761257141828537, -0.1370993703603...
slip in a user, role, permission based security model to the database/system, thereby giving you the ability to specify a group of users that have access to a particular application, whether it be web or windows based
[ 0.05878882482647896, -0.3879068195819855, 0.3079753518104553, 0.39965060353279114, 0.1966821551322937, -0.10141073912382126, 0.1745750904083252, -0.2379821389913559, -0.2165144979953766, -0.4891233444213867, -0.3190322816371918, 0.08103050291538239, -0.0028024252969771624, 0.14911799132823...
please i am trying to make the message show on newline as the customer types it, but i am getting `/r/n` between each line and also trying to make the `$body .= $_SESSION['username'];` appear on a separate line i have tried to use [this example](https://stackoverflow.com/questions/3396147/php-nl2br-basic-function-help)...
[ -0.17443448305130005, -0.056148234754800797, 0.679682195186615, -0.2684827446937561, 0.07246735692024231, 0.24817809462547302, 0.6291835308074951, -0.6732170581817627, -0.026734452694654465, -0.6758115887641907, -0.3553183078765869, 0.6555086970329285, -0.5578989386558533, -0.1962099373340...
repplac ON reusers.username = repplac.Uname AND reusers.username = '".$_SESSION['username']."'")or die(mysql_error()); $results = (mysql_fetch_assoc($emails)) or die(mysql_error()); $email= $results['email']; //echo "$email"; //die(); if(mysql_num_rows($emails) == 0){ exit("No email addres...
[ -0.057506125420331955, -0.08835545182228088, 0.9611997604370117, -0.14465126395225525, -0.041784852743148804, 0.5113793611526489, 0.3651388883590698, -0.7035966515541077, -0.7191994190216064, -0.2631436586380005, -0.4028332531452179, 0.726398229598999, -0.44561952352523804, 0.0616567581892...
notification"; $headers = "From: noti@r.co.uk\r\n"; $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'Bcc:noti@r.co.uk' . "\r\n"; mail($to,$subject,$body,$headers); } } ?> <p> <form action='notification.php' method='Post' class='rl'>...
[ 0.15059788525104523, 0.038611479103565216, 0.4786754548549652, -0.2906131148338318, -0.20591647922992706, 0.3519505262374878, 0.41538479924201965, -0.46276623010635376, -0.15657660365104675, -0.3878629207611084, -0.5327710509300232, 0.09431984275579453, -0.5001382231712341, -0.032591793686...
</p> </div> </form> </p> <?php include("include/footer.php");?> ``` Since it's generally safer to send HTML emails in a more archaic form of HTML I'm going to allow the HTML email content to be HTML 4; so it doesn't need to be XML well formed and `nl2br()` is acceptable. You're sp...
[ 0.054333094507455826, 0.19860538840293884, 0.40491151809692383, -0.39176687598228455, -0.22247327864170074, -0.02350754849612713, 0.4422987103462219, -0.07452649623155594, -0.4179058074951172, -0.549670398235321, -0.2504678964614868, 0.2808806896209717, -0.5718745589256287, -0.404163926839...
something like: ``` $body = $_SESSION['username']. "<br>" . nl2br($_POST['message']); ``` There's no sanity checks or validation in there but I think that's what you're trying to get it to do. ---- EXAMPLE CODE ---- I've just refactored your code somewhat so I could better see what you're doing (it's just...
[ 0.6727449297904968, 0.19584332406520844, 0.5050673484802246, -0.05610676854848862, -0.08333605527877808, -0.48037514090538025, 0.6780100464820862, -0.38817963004112244, -0.23814956843852997, -0.5557622909545898, -0.04024598374962807, 0.6145626902580261, -0.24947330355644226, -0.17212331295...
and that there IS a message if($_POST && !empty($_POST['message'])) { //sanity check - ensure there IS a username $sUsername = !empty($_SESSION['username']) ? $_SESSION['username'] : ""; if($sUsername) { //check the username against the database? $resultEmail = mysql_query("SELECT `email` FROM `reusers`...
[ -0.1500864177942276, 0.21833664178848267, 0.46841734647750854, -0.24465690553188324, 0.3522789180278778, 0.04791765660047531, 0.4036298096179962, -0.2889596223831177, -0.06822184473276138, -0.2653011977672577, -0.5255615711212158, 0.435043603181839, -0.4642102122306824, 0.1679793894290924,...
} //email verified against the database else { $sEmail = mysql_result($resultEmail, 0); //create the email $headers = "From: noti@r.co.uk\r\n" . 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=iso-8859-1' . "\r\n" . 'Bcc:noti@r.co.uk' . "\...
[ 0.28146490454673767, 0.18407930433750153, 0.2864176034927368, -0.11529621481895447, 0.3387323021888733, -0.06522305309772491, 0.5019036531448364, -0.16937102377414703, 0.2129596769809723, -0.34533071517944336, -0.18916215002536774, 0.18520690500736237, -0.3251626491546631, -0.0539895407855...
retrieved from the database has already been mxrr checked etc... $subject = "copy of your notification"; $body = $sUsername . "<br>" //remove slashes as this is going in an email, strip tags and convert newlines to "<br>" // since you're using iso-8859-1 there shouldn't be any o...
[ 0.47854816913604736, -0.159861221909523, 0.7383483052253723, 0.04282590001821518, 0.14287883043289185, -0.21055716276168823, 0.2306767702102661, -0.2965628504753113, -0.47390884160995483, -0.7943978309631348, -0.30502066016197205, 0.029390638694167137, -0.29635897278785706, -0.084805555641...
using an Arabic character set (for instance) . nl2br(strip_tags(stripslashes($_POST['message']))); //send the email if(!mail($to, $subject, $body, $headers)) { die("sendmail error!"); } } } } ?> ```
[ 0.2810269594192505, 0.016081245616078377, 0.21678104996681213, -0.39104485511779785, 0.027982385829091072, 0.05310884118080139, 0.3206615149974823, -0.2707939147949219, 0.08451296389102936, -0.692104160785675, -0.3608349859714508, 0.4907582402229309, -0.6507404446601868, -0.061036154627799...
I am working with a table in a PostgreSQL database that has several boolean columns that determine some state (e.g. `published`, `visible`, etc.). I want to make a single status column that will store all these values as well as possible new ones in a form of a bitmask. Is there any difference between `integer` and `bi...
[ 0.3186866044998169, 0.1538865715265274, 0.25425010919570923, 0.2232898622751236, -0.019091801717877388, 0.1624782383441925, -0.05584536865353584, 0.03275804594159126, -0.23588044941425323, -0.6497827768325806, 0.23562908172607422, 0.16747112572193146, -0.11122829467058182, 0.35628280043601...
keeping separate [**`boolean`**](https://www.postgresql.org/docs/current/datatype-boolean.html) columns. * Indexing is easy. In particular also [indexes on expressions](https://www.postgresql.org/docs/current/indexes-expressional.html) and [partial indexes](https://www.postgresql.org/docs/current/indexes-partial.html)...
[ -0.22246883809566498, 0.0858999714255333, 0.27720069885253906, 0.1145135909318924, -0.2646978795528412, 0.17592202126979828, 0.2989269495010376, -0.2719370126724243, -0.2877907156944275, -0.4913713037967682, -0.2389294058084488, 0.27283966541290283, -0.26040464639663696, -0.102649174630641...
4 bytes on disk (may require alignment padding, depending on preceding columns). * Very fast indexing for exact matches ( `=` operator). * Handling individual values may be slower / less convenient than with `varbit` or `boolean`. With even more variables, or if you want to manipulate the values a lot, or if you don't...
[ 0.07562756538391113, -0.13419954478740692, 0.4022219777107239, 0.034355875104665756, -0.18923838436603546, 0.31144440174102783, 0.07727126777172089, -0.3997182846069336, -0.5715768933296204, -0.2741824686527252, -0.09470441192388535, 0.4116267263889313, -0.09543271362781525, 0.042847916483...
8 bits (rounded up). * You can use [bit string functions and operators](https://www.postgresql.org/docs/current/functions-bitstring.html) directly, and [some standard SQL functions as well](https://www.postgresql.org/docs/current/functions-bitstring.html). For just **3 bits** of information, individual `boolean` colum...
[ -0.12122903019189835, 0.10046935826539993, 0.3753570020198822, 0.13759635388851166, -0.008566909469664097, 0.4697117805480957, 0.10102223604917526, -0.37548038363456726, -0.4205896556377411, -0.2113298624753952, -0.1845509558916092, 0.43555140495300293, -0.19061852991580963, -0.02558410353...
related answer](https://stackoverflow.com/a/7431468/939860). [This answer](https://stackoverflow.com/a/9053568/939860) on how to **transform the types** `boolean`, `bit(n)` and `integer` may be of help, too.
[ -0.07464159280061722, -0.089272141456604, 0.05047864839434624, 0.3431945741176605, -0.11994170397520065, -0.06352224200963974, -0.03621676564216614, -0.3904659152030945, -0.1193905621767044, -0.31623101234436035, -0.1794789433479309, 0.3802742063999176, -0.11777561902999878, -0.07260138541...
first of all I apologize if my question is difficult to understand. I'm having a hard time trying to explain exactly what I need help with. I am new to Java and the concept of passing by reference etc. Basically, I need to know why the below code is incorrect. How do I tell Java to use a method for an object passed i...
[ -0.1489514410495758, -0.070982426404953, -0.16550639271736145, -0.012754159979522228, -0.43488413095474243, -0.2613804042339325, 0.23533251881599426, 0.08481389284133911, -0.1866428256034851, -0.9998888969421387, 0.04965759441256523, 0.4382229447364807, -0.6012799739837646, 0.1122221127152...
You can create an global object to save it and then use it... ``` public class classOne{ Classtwo object; public ClassOne(ClassTwo twoObject){ object = twoObject; } public boolean OneMethod(){ object.MethodName(); } } ``` Hope it helps you :)
[ -0.20518112182617188, -0.3728116452693939, -0.013598078861832619, -0.02101745456457138, 0.2638091742992401, -0.06535278260707855, 0.1451241821050644, 0.21703924238681793, -0.20918945968151093, -1.006978988647461, -0.12979097664356232, 0.6000266671180725, -0.5933352708816528, -0.05531137809...
I am using a NivoSlider in one of my projects, this specific client has asked for the active thumbnail image to change based on the slide being shown. I have looked through the documentation and can't find anything about changing the image itself, therefore I think the best option is to change the image itself with a J...
[ -0.05807541310787201, -0.2007286697626114, 0.6749541163444519, -0.014105310663580894, -0.018560929223895073, 0.015831012278795242, -0.18520115315914154, 0.04343504086136818, -0.2603856325149536, -0.6140409708023071, 0.008618163876235485, 0.6448644995689392, -0.47032347321510315, 0.29581388...
</a> // Inactive Thumbnail Link <a class="nivo-control" rel="1"> <img alt="" src="images/inactive_wedge.png"> </a> </div> ``` The plugin adds a class of `active` to the `<a>` for the image slide that is showing. I'm trying to change the containing `<img>` source attribute to display 'active\_wedg...
[ 0.016945896670222282, -0.14045800268650055, 0.41376128792762756, -0.20914825797080994, -0.14148163795471191, -0.035354357212781906, 0.09095942974090576, 0.054831791669130325, -0.30415648221969604, -0.7460981011390686, -0.04972125589847565, 0.5398804545402527, -0.3296577036380768, 0.1304649...
at all } ``` Is this correct, or am I approaching this badly? Thanks in advance. Additional JS: ``` $(window).load(function() { $('#theslides').nivoSlider({ effect: 'fade', // Specify sets like: 'fold,fade,sliceDown' animSpeed: 500, // Slide transition speed pauseTime: 3500, // How long...
[ -0.11786497384309769, -0.18651829659938812, 1.299086093902588, -0.06278539448976517, 0.16644088923931122, -0.06440483033657074, 0.17654231190681458, -0.15404516458511353, -0.25254637002944946, -0.6728459000587463, -0.003942047245800495, 0.7948893308639526, 0.05253688618540764, 0.0641402304...
Only show on hover controlNav: true, // 1,2,3... navigation controlNavThumbs: true, // Use thumbnails for Control Nav controlNavThumbsFromRel: true, // Use image rel for thumbs keyboardNav: false, // Use left & right arrows pauseOnHover: true, // Stop animation while hovering ...
[ -0.3572809100151062, -0.20307455956935883, 1.1654837131500244, 0.04702530801296234, -0.12182483077049255, 0.12127381563186646, 0.22267088294029236, 0.013792772777378559, -0.10934373736381531, -0.31034043431282043, 0.014001778326928616, 0.6658892035484314, -0.03867913410067558, -0.342013657...
// Putting code to change the thumbnail image in here if ($('.nivo-control').hasClass('active')) { $('.nivo-control .active img').attr('src','images/active_wedge.png'); } }, // Triggers after a slide transition slideshowEnd: function(){}, // Triggers after all sli...
[ 0.019324561581015587, -0.2898233234882355, 0.752031683921814, -0.16404595971107483, 0.12873545289039612, 0.17974872887134552, 0.06908402591943741, -0.3502681255340576, -0.5572684407234192, -0.4297787845134735, -0.374931275844574, 0.49491676688194275, -0.3083622455596924, 0.1031834483146667...
lastSlide: function(){}, // Triggers when last slide is shown afterLoad: function(){} // Triggers when slider has loaded }); }); ``` without using if hasclass just: ``` $('.nivo-control.active img').attr('src','images/active_wedge.png') ```
[ -0.07939866930246353, -0.36550411581993103, 1.1022981405258179, -0.0540945902466774, 0.31349536776542664, -0.07355191558599472, 0.1943603903055191, -0.2157735377550125, -0.4543118178844452, -0.40232282876968384, -0.2378748059272766, 0.5782619714736938, -0.3459816575050354, 0.04573898017406...
I am still trying to understand the themeing engine of magento by studying a theme. im my theme there is breadcrumb pthml file in templates/page/html folder which manipulates the bradcrumbs. How does magento know about the file? does the page/html folder is standard. and what is the role of the files do in page.xml T...
[ 0.0916232019662857, 0.24230313301086426, 0.768258810043335, 0.09298107028007507, -0.2799115478992462, -0.12374108284711838, -0.3022449016571045, -0.04131987318396568, -0.29422396421432495, -0.5442556738853455, 0.003321046708151698, 0.2979239821434021, 0.08832309395074844, 0.003135918173938...
folder. All blocks will be in the `app/code/<core,local,community>/<namespace>/<module>/Block` folder. You may not find all the layout/template files in same theme say telescope. For example, Magento will check the following folders, in order, for a file named catalog.xml: ``` app/design/frontend/interface/tele...
[ 0.37766310572624207, 0.22136418521404266, 0.6909148097038269, 0.21861204504966736, -0.1286020427942276, -0.17117711901664734, -0.32970020174980164, -0.11651661992073059, -0.3968752920627594, -0.40598759055137634, -0.30668148398399353, 0.35145676136016846, 0.027890361845493317, -0.010761789...
I'm using gettext in a MAMP environment. I have locale files for `es_ES`, `ca_ES`, `en_US` and `gl_ES`. No problem with the first three, but for the forth, I get an error when trying to bind the locale translations files to the `gl_ES` language (galician in Spain). This is not a problem with apache or PHP because the o...
[ -0.10827513039112091, 0.17267835140228271, 0.539754331111908, -0.23410043120384216, -0.2519989609718323, 0.10511967539787292, 0.5497037172317505, 0.5856949090957642, 0.02266315184533596, -0.9124516844749451, -0.34387218952178955, 0.6417297124862671, -0.2956681251525879, -0.2836186587810516...
in Spain. Some terminal to show you: ``` $ locale -a | grep _ES ca_ES ca_ES.ISO8859-1 ca_ES.ISO8859-15 ca_ES.UTF-8 es_ES es_ES.ISO8859-1 es_ES.ISO8859-15 es_ES.UTF-8 eu_ES eu_ES.ISO8859-1 eu_ES.ISO8859-15 eu_ES.UTF-8 $ ll /usr/share/locale/ | grep _ES drwxr-xr-x 8 root wheel 272B 3 dic 2010 ca_ES/ drwxr-xr-x ...
[ -0.352760910987854, 0.17961566150188446, 0.6151827573776245, -0.23723600804805756, 0.08304492384195328, 0.39526718854904175, 0.32089948654174805, 0.5055793523788452, -0.13467517495155334, -0.49409782886505127, -0.15812236070632935, 0.16161715984344482, 0.05626796558499336, -0.0276292208582...
272B 3 dic 2010 es_ES.ISO8859-1/ drwxr-xr-x 8 root wheel 272B 3 dic 2010 es_ES.ISO8859-15/ drwxr-xr-x 8 root wheel 272B 3 dic 2010 es_ES.UTF-8/ drwxr-xr-x 8 root wheel 272B 3 dic 2010 eu_ES/ drwxr-xr-x 8 root wheel 272B 3 dic 2010 eu_ES.ISO8859-1/ drwxr-xr-x 8 root wheel 272B 3 dic ...
[ -0.753028392791748, 0.4731324315071106, 0.39218881726264954, -0.2391321361064911, -0.5451222658157349, 0.8605431914329529, 0.7464176416397095, -0.2275504767894745, -0.1938858926296234, -0.5936579704284668, -0.19235704839229584, 0.23272006213665009, -0.2579004466533661, -0.21750618517398834...
the installation disks (adding language packs) but no success: they're just translations of the operating system. * I found [this similar question](https://stackoverflow.com/questions/4627061/how-to-install-a-locale-to-be-used-in-php-on-a-osx-machine), but doesn't have as much information and no good answers. * I came ...
[ 0.21010854840278625, 0.06595810502767563, 0.2956864535808563, -0.1130407527089119, -0.2095058262348175, -0.09596554934978485, 0.3475862741470337, 0.34344178438186646, -0.22114849090576172, -0.6733099222183228, -0.16128361225128174, 0.49855679273605347, -0.17176170647144318, 0.1193478628993...
locales again. Galician should be there :)
[ -0.018491491675376892, 0.007306426763534546, 0.16170641779899597, -0.2759425938129425, -0.0925184115767479, 0.022963600233197212, 0.0737893134355545, 0.6956984400749207, -0.5995973348617554, -0.7334926724433899, -0.05860193446278572, 0.3466007113456726, 0.16938625276088715, -0.141500338912...
not sure how to formulate the question correctly. i've got two web-apps: A with a servlet and B with two servlets, both protected by basic authentication in web.xml (deployed to weblogic server). a user authenticates to A and to one of B's servlets (not sure if what i say here is total rubbish) using browser-native l...
[ 0.471860408782959, 0.30494433641433716, 0.4861879050731659, 0.015593850053846836, 0.05285816267132759, 0.06630010157823563, 0.4662007987499237, -0.4625401794910431, -0.09931934624910355, -0.3842564821243286, -0.019123882055282593, 0.1539829820394516, -0.17635637521743774, 0.145696565508842...
this authentication (i'm really not good at all these http session things terminology, don't throw rocks at me :)). cookies can't be used it seems, as it is really server-side communication. This should do the trick: ``` cd /usr/share/locale sudo cp -R es_ES gl_ES ``` Then open a new terminal session and list the l...
[ -0.33488380908966064, 0.13618126511573792, 0.4629395604133606, 0.11530796438455582, -0.27581778168678284, -0.3095676302909851, 0.33035561442375183, 0.15531979501247406, -0.13290663063526154, -0.5937224626541138, -0.007048394996672869, 0.5213153958320618, 0.012122757732868195, -0.0695934221...
I was wondering if there was any jQuery library that will allow us to change the perspective of an image. I know that modern browsers already support vendor specific `rotate()` in CSS but it doesn't quite give the desired result. Most of them just vary the width of the image but doesn't shrink the height of one side a...
[ 0.6251474618911743, -0.26117682456970215, 0.2981295585632324, 0.3251294493675232, -0.15729407966136932, 0.17229406535625458, 0.1382778137922287, 0.016058649867773056, -0.13812682032585144, -0.7667670249938965, 0.16530556976795197, 0.5782321691513062, 0.23577071726322174, 0.0749769434332847...
is moving towards you and decrease the one that is moving away from you. And I don't do full rotations, i just tilt the image a few degrees so the change in height has to really be there CSS3 has 2D-transforms and 3D-transforms. While the first is well supported (by all browsers, not by all used versions [[1](http://ca...
[ -0.13022521138191223, -0.4239068627357483, 0.5501724481582642, -0.134879469871521, -0.4771322011947632, 0.08931031078100204, 0.19830870628356934, -0.0609925277531147, -0.24470563232898712, -0.8863981366157532, -0.021313121542334557, 0.3416215777397156, -0.10593719035387039, -0.251658290624...
here is my code ``` public static JSONObject getLocationInfo(String address) { StringBuilder stringBuilder = new StringBuilder(); try { // address = address.replaceAll(" ","%20"); HttpPost httppost = new HttpPost("http://maps.google.com/maps/api/geoc...
[ -0.10778497904539108, -0.18497471511363983, 0.7629284262657166, -0.23022904992103577, 0.006912960205227137, -0.09349556267261505, 0.45252421498298645, -0.35484427213668823, 0.0950123742222786, -0.7536338567733765, -0.3428572118282318, 0.3636118471622467, -0.5316858887672424, 0.036741804331...
HttpClient client = new DefaultHttpClient(); HttpResponse response; stringBuilder = new StringBuilder(); response = client.execute(httppost); HttpEntity entity = response.getEntity();
[ -0.35278066992759705, -0.6005774140357971, 0.7225147485733032, -0.26098451018333435, -0.3471922278404236, 0.2981531322002411, 0.530441403388977, -0.3964530825614929, -0.39475536346435547, -0.49181148409843445, -0.47716885805130005, 0.40258175134658813, -0.5098203420639038, 0.22677235305309...
InputStream stream = entity.getContent(); int b; while ((b = stream.read()) != -1) { stringBuilder.append((char) b);
[ 0.14375658333301544, -0.32246652245521545, 0.42010414600372314, -0.313180148601532, 0.23549360036849976, 0.36389604210853577, 0.3886895179748535, -0.15563826262950897, 0.09965425729751587, -0.17906157672405243, -0.3448397219181061, 0.6140779256820679, -0.6103919744491577, 0.235242798924446...
} } catch (ClientProtocolException e) { } catch (IOException e) { } JSONObject jsonObject = new JSONObject();
[ -0.31674596667289734, -0.597937822341919, 0.3713263273239136, -0.42045626044273376, 0.2280202955007553, 0.03768908977508545, 0.1212364062666893, -0.11135532706975937, 0.04945783317089081, -0.5210921764373779, -0.24095143377780914, 0.7975549101829529, -0.46794307231903076, -0.18409428000450...
try { jsonObject = new JSONObject(stringBuilder.toString()); } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace();
[ -0.1312318742275238, -0.695412814617157, 0.2704850435256958, -0.2857804298400879, 0.3218371868133545, 0.06434676051139832, 0.4155029058456421, -0.43775761127471924, 0.00205189548432827, -0.4042171239852905, -0.4050481915473938, 0.5582955479621887, -0.6324137449264526, -0.3285062909126282, ...
} return jsonObject; } ``` I am getting a json exception , at the response . please tell me a valid url . Also I did mapview (api key and android manifest permission) for gps. Logcat: ``` 04-03 16:35:20.548: E/CheckinTask(202): java.net.UnknownHostException: android.clients.google.com 0...
[ -0.3091627359390259, 0.30208757519721985, 0.47916069626808167, -0.23940402269363403, 0.06153449788689613, 0.18688689172267914, 0.7351357936859131, -0.49959373474121094, -0.11351767927408218, -0.7396363019943237, -0.2767835557460785, 0.6062624454498291, -0.37760791182518005, -0.176203414797...
E/CheckinTask(202): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164) 04-03 16:35:20.548: E/CheckinTask(202): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119) 04-03 16:35:20.548: E/CheckinTask(202): at org.apache.http.impl.client.D...
[ -0.2127942144870758, 0.2810628116130829, 0.49005642533302307, -0.17702041566371918, -0.11182272434234619, 0.26994624733924866, 0.40921086072921753, -0.7194355130195618, -0.04027368873357773, -0.8499848246574402, -0.3844136893749237, 0.45204946398735046, -0.4591117203235626, -0.285596102476...
at com.google.android.gsf.checkin.CheckinService$1.doInBackground(CheckinService.java:214) 04-03 16:35:20.548: E/CheckinTask(202): at android.os.AsyncTask$2.call(AsyncTask.java:185) 04-03 16:35:20.548: E/CheckinTask(202): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306) 04-03 16:35:20.548: ...
[ -0.0326492041349411, -0.14664798974990845, 0.6088340878486633, -0.2571614980697632, 0.16449609398841858, 0.36538976430892944, 0.5661574602127075, -0.5323807001113892, -0.25996673107147217, -0.7094984650611877, -0.3904028534889221, 0.6626499891281128, -0.38129743933677673, -0.14425911009311...
httpResponse = httpClient.execute(httpGet); HttpEntity httpEntity = httpResponse.getEntity(); InputStream inputStream = httpEntity.getContent(); int c; while ((c = inputStream.read()) != -1) { stringBuilder.append((char) c); } } catch (Exception e) { e.pri...
[ 0.017842398956418037, -0.31074362993240356, 0.6146198511123657, -0.21611079573631287, -0.016659503802657127, 0.10384351760149002, 0.4170570969581604, -0.4241369366645813, -0.23827490210533142, -0.43434083461761475, -0.4702789783477783, 0.4738309681415558, -0.458046555519104, 0.035625375807...
I'm sure this has been asked a number of time but I'm having trouble finding something that matches what I want. I want to be able to safely render html in my webpage but only allow links, and tags I've come up with the following but want to make sure i've not miseed anything or if there is a better way please le...
[ 0.3227047026157379, 0.041290175169706345, 0.6758315563201904, -0.19797533750534058, -0.051865313202142715, -0.24702222645282745, 0.4965652525424957, -0.09253642708063126, 0.13266237080097198, -0.5313085317611694, -0.30463042855262756, 0.40040045976638794, -0.4956110417842865, -0.0511462390...
string anchorPattern = @"<a[\s]+[^>]*?href[\s]?=[\s\""\']+(?<href>.*?)[\""\']+.*?>(?<fileName>[^<]+|.*?‌​)?<\/a>"; string safeText = value; System.Text.RegularExpressions.MatchCollection matches = Regex.Matches(value, anchorPattern, RegexOptions.IgnorePatternWhitespace | RegexOptions.Ignore...
[ -0.3392375409603119, -0.24272701144218445, 0.6836428046226501, -0.2908795475959778, 0.40008726716041565, 0.10587947815656662, 0.3272266089916229, -0.5539217591285706, -0.17607061564922333, -0.08084715902805328, -0.5169116258621216, 0.5795477032661438, -0.6753076910972595, -0.06791104376316...