text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
There has to be a simple explanation for this. I have a parent `<div>` tag containing a number of child divs that need to be hidden depending on their class. Problem is, I can't even seem to get a handle to my parent div. What on earth is the problem here? I'm going out of my gourd. The jQuery code (snippet) looks li...
[ 0.3588467240333557, 0.12279262393712997, 0.27025407552719116, 0.05738113448023796, 0.0006782232667319477, 0.1215670108795166, 0.3606942892074585, -0.06562665849924088, -0.21585597097873688, -0.5187662839889526, 0.050594694912433624, -0.007502335123717785, 0.12472525984048843, 0.50340706110...
<div id="#dasummary"> <div id="itemPlaceholder" runat="server" /> </div> </LayoutTemplate> <ItemTemplate> <div id="toggleRow" runat="server" class="group"> <asp:Image ID="imgToggle" runat="server" ImageUrl="~/App_Themes/SunDIAL/images/maximize.png" ...
[ -0.1373741328716278, -0.21248173713684082, 0.5791481733322144, -0.14530664682388306, -0.14366024732589722, 0.30235570669174194, -0.06953344494104385, -0.4123384654521942, -0.5989954471588135, -0.6527279615402222, -0.12150328606367111, 0.3558630049228668, -0.33748552203178406, -0.0812289565...
<%# Eval("Key") %> (<%# Eval("Count") %> entries) </div> <!-- Add nested ListView control for individual items here --> <asp:ListView ID="lvItems" runat="server" DataSource='<%# Eval("Tasks") %>'> <LayoutTemplate> <div class="activity_summary"> <t...
[ -0.1223815456032753, -0.38173022866249084, 0.6295706033706665, -0.1868116855621338, -0.19798730313777924, 0.3119724988937378, 0.15000823140144348, -0.49886199831962585, -0.640504002571106, -0.5417624115943909, -0.26539337635040283, 0.30607151985168457, -0.2038521021604538, -0.0964466035366...
<thead> <tr> <th class="first" />
[ -0.11573494225740433, -0.0040032039396464825, -0.13382239639759064, 0.02780039794743061, -0.20539195835590363, -0.02565712109208107, -0.062557153403759, 0.052136361598968506, 0.2325604408979416, -0.5963041186332703, -0.46507659554481506, 0.35212793946266174, 0.1306619942188263, -0.01686240...
<th>Day</th> <th>Job</th> <th>Batch</th>
[ 0.27637341618537903, 0.16511593759059906, 0.036003876477479935, -0.18785251677036285, -0.18215163052082062, 0.2571812868118286, 0.3118125796318054, 0.30814531445503235, -0.2084248960018158, -0.7067442536354065, -0.40214547514915466, 0.27509912848472595, 0.13645601272583008, 0.3031574487686...
<th>Duration</th> </tr> </thead> <tbody>
[ 0.34147965908050537, -0.2901647686958313, -0.10888537019491196, -0.05192135274410248, -0.1426933854818344, -0.025875214487314224, 0.20909693837165833, -0.047112274914979935, -0.044801387935876846, -0.2716791033744812, -0.37550196051597595, 0.42233216762542725, -0.15076568722724915, 0.16861...
<tr id="itemPlaceholder" runat="server" /> </tbody> </table> </div> </LayoutTemplate>
[ -0.22948019206523895, -0.17435674369335175, 0.21901746094226837, -0.07894384860992432, 0.13598421216011047, 0.2609013319015503, -0.4160730838775635, -0.3858984708786011, -0.3157275319099426, -0.5781590938568115, -0.30916929244995117, 0.21271264553070068, -0.26673418283462524, 0.11922594159...
<ItemTemplate> <tr id="item" runat="server" class="itemRow"> <td class="first" /> <td> <h4>
[ 0.014591819606721401, -0.21232488751411438, 0.3923489451408386, 0.13224279880523682, -0.3317694664001465, 0.31475794315338135, -0.13775599002838135, -0.5214279294013977, -0.2878750264644623, -0.3385296165943146, -0.2314128875732422, 0.30286791920661926, 0.03796538710594177, 0.1519278436899...
<a><%# Eval("Day") %></a> </h4> </td> <td><%# Eval("Project") %></td>
[ 0.5330340266227722, -0.1874605417251587, 0.0032837423495948315, -0.15284855663776398, -0.034696463495492935, 0.3221394717693329, 0.4254056215286255, -0.6741407513618469, -0.22281470894813538, 0.0009500100277364254, -0.5123425722122192, 0.04389307647943497, -0.17927201092243195, -0.02752245...
<td><%# Eval("Name")%></td> <td><%# Eval("Hours") %>:<%# Eval("Minutes","{0:00}") %></td> </tr> </ItemTemplate> </asp:ListView> </ItemTemplate> </asp:ListView> ``` The rendered HTML looks (as far as I can see) just fine. Let me know if you want the whole th...
[ 0.4226788282394409, -0.3760414123535156, 0.4001329839229584, 0.03919798508286476, -0.3340769112110138, 0.19551153481006622, 0.22865064442157745, -0.2636100649833679, -0.43881723284721375, -0.4462268054485321, -0.3484994173049927, 0.25866106152534485, -0.0019649157766252756, -0.004039222374...
<div id="ctl00_ContentPlaceHolder1_dashboardFrame_ctl00_ActiveDayLedger1_lvLedger_ctrl0_toggleRow" class="group"> <img id="ctl00_ContentPlaceHolder1_dashboardFrame_ctl00_ActiveDayLedger1_lvLedger_ctrl0_imgToggle" src="App_Themes/SunDIAL/images/maximize.png" align="left" style="border-width:0px;" /> ...
[ 0.06350302696228027, 0.07034018635749817, 0.9855603575706482, -0.09842424839735031, 0.15167658030986786, -0.009987200610339642, 0.07448916882276535, -0.2377694547176361, -0.44778960943222046, -0.5694398283958435, 0.031113512814044952, 0.6429826021194458, -0.15268069505691528, -0.1784023493...
wrong. In the html it must be `dasummary`, not `#dasummary`, so you can grab it by jQuery with `$("#dasummary")`
[ 0.2844095528125763, 0.1227981224656105, 0.08609368652105331, 0.1727154701948166, -0.2733529806137085, -0.08579295873641968, 0.6213927268981934, 0.36863404512405396, -0.1738121658563614, -0.31223776936531067, -0.3685656189918518, 0.07884238660335541, -0.26846885681152344, 0.1626148819923401...
My objective is to write a program which will call another executable on a separate computer(all with win xp) with parameters determined at run-time, then repeat for several more computers, and then collect the results. In short, I'm working on a grid-computing project. The algorithm itself being used is already coded ...
[ 0.5208466053009033, 0.37243300676345825, 0.0408126525580883, 0.1242961511015892, -0.013749177567660809, -0.010262573137879372, -0.07972653210163116, -0.12757961452007294, 0.10727469623088837, -0.6103842854499817, -0.03689449280500412, 0.7049540281295776, -0.01785360835492611, -0.1280921697...
But how can I write a program which will write to, upload, and run a script on a separate computer? I had considered GridGain, but the algorithm is already coded and in a different language, so that is ruled out. My current guess at accomplishing this task is using Expect ([wiki/Expect](http://en.wikipedia.org/wiki/E...
[ 0.5896320939064026, -0.20200929045677185, 0.10232656449079514, 0.32181015610694885, 0.1099155992269516, -0.3017892837524414, 0.1782929003238678, 0.04384227842092514, 0.016913440078496933, -0.8589691519737244, -0.03258396312594414, 0.6964299082756042, -0.07598818838596344, -0.50915837287902...
your needs.
[ 0.2706453502178192, 0.359676331281662, -0.13641095161437988, -0.015202676877379417, -0.03840618580579758, 0.36103159189224243, 0.12328927963972092, -0.1925162971019745, -0.0619504339993, -0.8031258583068848, -0.09103403240442276, 0.6488790512084961, -0.16690297424793243, -0.041297443211078...
I admit, I don't know too much about javascript, mostly I just "steal and modify" from Javascript.com and Dynamic Drive. I've run across a few scripts that call two .js files ``` <script type="text/javascript" src="lib/prototype.js"> </script> <script type="text/javascript" src="src/aptabs.js"> </script> ``...
[ 0.5269680023193359, 0.2142937183380127, -0.09862156212329865, -0.27648472785949707, -0.2353666126728058, 0.02263408899307251, 0.15546703338623047, -0.053838424384593964, -0.07474789768457413, -0.9937551021575928, 0.2341834008693695, 0.6741618514060974, -0.3419767916202545, -0.1447446048259...
http requests, as each one carries some overhead. That said, that's something best left to the very end of production. During development it's easier to have everything seperate. If you're going to join them, it's best to have an automated build script to do the operations.
[ 0.5533188581466675, -0.0678744912147522, 0.12888891994953156, 0.24191510677337646, 0.007407488767057657, 0.013530286960303783, 0.12116067111492157, 0.054791923612356186, -0.10478833317756653, -0.7423954010009766, -0.15171261131763458, 0.33207014203071594, 0.0934484526515007, 0.109459146857...
I need an open-source application which streams on demand (RTSP?) the prerecorded files. It should support all major codecs (G.711,g729...), and must be reasonably efficient. Up until now Ive found only VLAN player suitable for this task. Any advice? mediastremer2 sdk was good enough for me. But live555 media server ...
[ 0.32810845971107483, -0.09272046387195587, 0.5801461338996887, 0.12249325960874557, -0.018132662400603294, -0.2847289443016052, 0.137619748711586, -0.1271226406097412, -0.20708078145980835, -0.5980634093284607, -0.3488794267177582, 0.7986145615577698, -0.14543263614177704, 0.10668413341045...
Is browsing speed depends on browser (like IE,firefox)? If it depends on browser which browser is best and works fast? And if we clear the cache in browser will it slow down the browsing speed? thanks. Yes, it is dependent on the browser. Not just which browser, but also its configuration. There are lots of things w...
[ -0.1292455643415451, 0.006652685347944498, 0.29610008001327515, 0.43515250086784363, -0.17715151607990265, -0.05099746957421303, 0.18469764292240143, 0.05306960642337799, -0.40104949474334717, -1.1333962678909302, -0.005365313030779362, 0.5768616199493408, 0.07175467163324356, -0.127602621...
Whether compression etc, is supported * How soon during page loading the browser chooses to display or layout the page - this can have a big impact on user perception, even if overall load time is the same. Most browsers will make some attempt to render a page before it's finished loading at least some of the time, if ...
[ 0.3034169375896454, -0.11671368777751923, 0.40088656544685364, 0.05337587371468544, -0.03902294859290123, -0.25684061646461487, 0.4819524586200714, 0.13219614326953888, -0.4932954013347626, -0.5834848284721375, -0.39982926845550537, 0.27839723229408264, -0.057553865015506744, -0.0633825212...
background images are still loading).
[ 0.03661199286580086, -0.1912977546453476, 0.7160784006118774, 0.1898394227027893, 0.3981815278530121, 0.13201777637004852, 0.3238101899623871, 0.08468730002641678, -0.4949903190135956, -0.5140250325202942, -0.2565126419067383, 0.38416603207588196, -0.21689170598983765, -0.43015843629837036...
This has always bugged me. Perhaps someone with some hardcore knowledge of .NET internals can explain it to me. Suppose I define an enum as follows: ``` public enum Foo { Eenie = 1, Meenie = 2, Miney = 3, Moe = 4 } ``` Now, also suppose that somewhere in my code, I have the following code: ``` int bar ...
[ 0.6166113018989563, 0.3732956647872925, 0.42899492383003235, -0.4418545067310333, 0.1895274966955185, 0.1466435045003891, 0.16044862568378448, -0.032775308936834335, -0.42414724826812744, -0.3317946493625641, -0.07213260233402252, 0.5745044946670532, -0.4924338757991791, 0.4877900779247284...
void Main() { ProcessFoo((Foo)5); } ``` Again, no exception. In my mind, this should result in a type mismatch exception, because 5 is not a `Foo`. But the designers chose not to do that. Now, I've written an extension method that can verify that this is the case, and it's no big deal to invoke it to ensure th...
[ 0.3748897612094879, 0.19790418446063995, 0.19176487624645233, -0.40446653962135315, 0.2873876094818115, -0.1178688183426857, 0.5022174119949341, 0.09331469982862473, -0.32480520009994507, -0.16714347898960114, -0.0940445140004158, 0.6276674866676331, -0.38669028878211975, 0.224044099450111...
documentation for the Enum class](http://msdn.microsoft.com/en-us/library/system.enum.aspx): > When you define a method or property > that takes an enumerated constant as a > value, consider validating the value. > The reason is that you can cast a > numeric value to the enumeration type > even if that numeric va...
[ -0.032576631754636765, 0.030841320753097534, 0.027163302525877953, 0.3749934136867523, 0.045587584376335144, -0.13302229344844818, 0.13633641600608826, -0.35973626375198364, -0.048166900873184204, -0.539034903049469, -0.033565349876880646, 0.37368160486221313, -0.1382669061422348, 0.131899...
0x2, IsLastAccessed = 0x4 } ``` Having to do a bitwise check for every single integer which is converted to an Enum value was deemed to be too expensive. Hence the relaxed conversion to enum values.
[ -0.06737838685512543, -0.04053930193185806, 0.1905251443386078, -0.28163567185401917, 0.08296296000480652, -0.06736161559820175, 0.1957974135875702, -0.4206870198249817, 0.008512010797858238, -0.019060058519244194, -0.1976483166217804, 0.5734395980834961, -0.366748183965683, 0.399220556020...
Is there anyway I can create a not in clause like I would have in SQL Server in *Linq to Entities*? If you are using an in-memory collection as your filter, it's probably best to use the negation of Contains(). Note that this can fail if the list is too long, in which case you will need to choose another strategy (see ...
[ 0.28175073862075806, -0.19756419956684113, 0.16108697652816772, -0.10042132437229156, 0.013260447420179844, -0.01207096315920353, 0.2946302890777588, -0.3756003677845001, -0.3355163335800171, -0.4031527638435364, -0.07492953538894653, 0.08540083467960358, -0.32144415378570557, 0.0514446459...
.Select(e => e.Name) .Where(e => !exceptionList.Contains(e.Name)); ``` If you're excluding based on another database query using `Except` might be a better choice. (Here is a [link](http://msdn.microsoft.com/en-us/library/bb738638.aspx) to the supported Set extensions in LINQ to Entities) ``...
[ -0.11679814010858536, 0.15613937377929688, 0.37707221508026123, 0.12862756848335266, 0.5215691924095154, -0.11259694397449493, 0.19029028713703156, -0.10606476664543152, -0.38442081212997437, -0.5248234868049622, -0.5541561245918274, 0.1595207005739212, -0.4531208276748657, 0.1567085981369...
.Select(e => e.Name); var query = myEntities.MyEntity .Select(e => e.Name) .Except(exceptionList); ``` This assumes a complex entity in which you are excluding certain ones depending some property of another table and want the names of the entities that are not ex...
[ -0.2502405345439911, -0.05103638023138046, 0.15033818781375885, -0.05015771836042404, 0.24623844027519226, -0.03592417761683464, 0.17991851270198822, -0.11305873095989227, -0.26529568433761597, -0.4242801368236542, -0.4566669762134552, 0.16247449815273285, -0.5487329959869385, 0.2824190258...
entire entity, then you'd need to construct the exceptions as instances of the entity class such that they would satisfy the default equality operator (see [docs](http://msdn.microsoft.com/en-us/library/bb348938.aspx)).
[ -0.3616873323917389, 0.0473359152674675, 0.051430970430374146, 0.25707387924194336, 0.09608139842748642, -0.20811161398887634, 0.1698489934206009, -0.02833135612308979, -0.4445487856864929, -0.18887121975421906, -0.45130655169487, 0.2007005661725998, -0.4422931671142578, 0.2108658105134964...
If all CMS's (Drupal, MediaWiki) are just a collection of PHP or ASP in the background, then how do they display pages at **www.example.com/directory/** or **www.example.com/File\_name** without extensions or anything? Is this some .HTACCESS configuration? Python? Perl? What could do this? **How could I do this for m...
[ 0.21451494097709656, -0.004444236867129803, 0.41991671919822693, 0.23799574375152588, -0.18313823640346527, -0.2577288746833801, -0.05725027248263359, 0.036715175956487656, -0.5443252325057983, -0.6063903570175171, -0.3352040946483612, 0.18302689492702484, -0.20527644455432892, 0.210068091...
[SWFAddress](http://www.asual.com/swfaddress/) claims that it is search-engine friendly, but how is one supposed to **feed the deep-links into search engines** like Google? Because in all my SWFAddress-powered websites, **not a single deep-link** shows up in Google. Tried and **failed** methods: * In the **hidden-HTM...
[ -0.07628754526376724, 0.07187473028898239, 0.5759758353233337, -0.1503029614686966, -0.35482901334762573, -0.19077765941619873, 0.44592374563217163, 0.04071377217769623, -0.20313838124275208, -0.2884117662906647, -0.12373144924640656, 0.6185120940208435, -0.23794078826904297, 0.09933985024...
I need to be able to import an IIF file into a QuickBooks 2008 application, via a .NET application. I do not know the first thing about Quickbook automation. Where should I look? IIF files are deprecated in favour of a more fully featured API. See question 20 here - <https://developer.intuit.com/blog/2015/03/03/top-2...
[ 0.18526092171669006, -0.044615838676691055, 0.4321538209915161, -0.006726610939949751, -0.1714702844619751, -0.24871890246868134, 0.3052375614643097, -0.3044653832912445, 0.05081813782453537, -0.6975827217102051, -0.2543514370918274, 0.5384930372238159, -0.24162398278713226, -0.18263782560...
I've moved a file manually and then I've modified it. According to Git, it is a new file and a removed file. Is there any way to force Git into treating it as a file move? Git will automatically detect the move/rename if your modification is not too severe. Just `git add` the new file, and `git rm` the old file. `git s...
[ 0.42846232652664185, 0.19094179570674896, 0.7073849439620972, -0.14217668771743774, 0.21942582726478577, -0.30632928013801575, 0.014960428699851036, -0.3292098641395569, -0.5229349136352539, -0.4093397557735443, -0.4598284065723419, 0.4591335952281952, -0.2708713412284851, 0.26133492588996...
"new file" is now a "renamed" file If git status still shows "new file" and not "renamed" you need to follow [Hank Gay’s](https://stackoverflow.com/a/433114/107768) advice and do the move and modify in two separate commits.
[ 0.4306112229824066, 0.18775950372219086, 0.27832671999931335, 0.12937308847904205, 0.44189563393592834, -0.4419337511062622, 0.205386683344841, -0.10878342390060425, -0.5148290991783142, -0.38998350501060486, -0.2992183268070221, 0.3239814043045044, -0.15274874866008759, 0.2687133848667145...
How do I add/subtract/etc. time values in Ruby? For example, how would I add the following times? 00:00:59 + 00:01:43 + 00:20:15 = ? Use ActiveSupport, which has a ton of built-in date extensions. ``` require 'active_support/core_ext' t1 = "#{Date.today} 00:00:59".to_time t2 = "#{Date.today} 00:01:43".to_time t3 = "#...
[ 0.23719385266304016, -0.04815135523676872, 0.5071638226509094, -0.23883302509784698, 0.35292062163352966, 0.03389507159590721, 0.36006173491477966, -0.18266421556472778, -0.3373168110847473, -0.42851561307907104, -0.18572673201560974, 0.48875489830970764, -0.11972107738256454, 0.1758006364...
If only email is available then the users don't seem to engage. A feedback box within the app feels like a step in the right direction, but doesn't offer any ability to build community. Uservoice and tenderapp both look like they could work well, and GetSatisfaction seems like a better option once your app is in past...
[ 0.49739378690719604, -0.10797575861215591, 0.17290948331356049, 0.23651689291000366, -0.2948256731033325, -0.038805361837148666, 0.4490436613559723, 0.16825394332408905, -0.27581846714019775, -0.8123792409896851, 0.24123914539813995, 0.4897572696208954, -0.08729380369186401, 0.044297635555...
another site where they have limited interest isn't in my handbook for cultivating communities. You want: 1. ... to keep users on *your* site. Pop-in JS things are *okay* if branded well. But they might still have to log in and then there's the problem of... 2. ... to keep them involved in problems they raise. If so...
[ 0.7281934022903442, 0.03374221920967102, 0.015139230526983738, 0.29571661353111267, -0.20256826281547546, -0.43405547738075256, 0.4617238938808441, 0.3461589515209198, -0.3643876910209656, -0.4238538444042206, 0.04917612671852112, 0.3756714165210724, -0.3648490905761719, -0.176245450973510...
works so well is its points system. Points mean prizes (or status and power, here) and that's a great way to make people want to keep going at it. Some users will just care and incentives just sweeten the deal but most users won't really care enough without the prospect of benefiting from it some how. Just to skip bac...
[ 0.4695720970630646, 0.01581103727221489, 0.06771587580442429, 0.4292459189891815, 0.10336826741695404, -0.17356576025485992, 0.07110877335071564, 0.30696383118629456, -0.24104942381381989, -0.44036269187927246, 0.042885977774858475, 0.57513427734375, 0.1552761197090149, 0.0904722809791565,...
after a task. Stick feedback questions *on your site* at the end of tasks. Eg if a user posts a new something-or-other, at the end of the process, stick an unmissable box in there, asking them how it was for them. You can ask relevant questions and you'll catch more problems because people have just done the task (opp...
[ 0.4655492603778839, -0.24890701472759247, 0.16641418635845184, 0.14806769788265228, -0.14179545640945435, -0.12185990065336227, 0.3057228624820709, 0.3773009181022644, -0.5217007398605347, -0.5521721839904785, -0.22634389996528625, 0.10568636655807495, -0.04656454548239708, -0.038108456879...
This is easy for non-inlines. Just override the following in the your admin.py AdminOptions: ``` def formfield_for_dbfield(self, db_field, **kwargs): if db_field.name == 'photo': kwargs['widget'] = AdminImageWidget() return db_field.formfield(**kwargs) return super(NewsOptions,self).formfield_f...
[ 0.33980903029441833, -0.049673326313495636, 0.4581335783004761, -0.04992710053920746, -0.2848784029483795, -0.09549597650766373, 0.3667369484901428, -0.2484378218650818, -0.06718193739652634, -0.640943706035614, -0.013536610640585423, 0.678928554058075, -0.47544384002685547, -0.05882830917...
I'm having an annoying problem with my iPhone app. Whenever I set the optimization level to something other than "None", I get computation errors. This only happens in when building for the iPhone SDK (the iPhone Simulator is always fine). I wouldn't mind disabling optimizations in release mode, but the application is...
[ 0.1369287073612213, 0.5868334770202637, 0.2390693873167038, -0.03790965676307678, 0.058802857995033264, 0.047150034457445145, 0.345877081155777, 0.2291518598794937, -0.43319836258888245, -0.5640249252319336, 0.12549571692943573, 0.5720461010932922, -0.14158287644386292, 0.07371636480093002...
way to only disable optimizations only for certain part of the code? How would you deal with that kind of issue? Yes, that's entirely possible. GCC has an [attribute](http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#Function-Attributes) for that: ``` /* disable optimization for this function */ void my_funct...
[ -0.11432895064353943, 0.10405200719833374, 0.2630425691604614, 0.09800081700086594, 0.22618736326694489, 0.0898497924208641, 0.26969215273857117, -0.06829484552145004, -0.13389889895915985, -0.6782602071762085, -0.3333788216114044, 1.009507179260254, -0.5144860744476318, -0.133936166763305...
What is the current status of TagLib# (TagLib sharp)? The official homepage www.taglib-sharp.com (link removed due to the NSFW nature of the new site that's parked at that address. -BtL) doesn't exist anymore! I've found the project on [ohloh](http://www.ohloh.net/p/5598) where the old homepage is still linked. Also ...
[ 0.02227398008108139, 0.08640741556882858, 0.5845329761505127, -0.026067951694130898, -0.24497456848621368, -0.19662898778915405, 0.28458690643310547, -0.026878848671913147, -0.2634359300136566, -0.2856362760066986, -0.1901976615190506, 0.47160258889198303, -0.04853527247905731, 0.298506349...
releases**? The page at Novell (<http://www.novell.com/products/linuxpackages/opensuse11.1/taglib-sharp.html>) is no longer updated. The source code is now hosted at <https://github.com/mono/taglib-sharp> and the best way to install and use the latest version is using NuGet. Open the Package Manager Console in Visual...
[ 0.22666889429092407, 0.04393117129802704, 0.486258327960968, -0.034704796969890594, 0.0008403921383433044, -0.3965795636177063, -0.05465859919786453, -0.003907348494976759, -0.4479426145553589, -0.47014740109443665, -0.6259339451789856, 0.5447196960449219, -0.2258056402206421, 0.1527195572...
I'm looking for a portable and easy-to-use string library for C/C++, which helps me to work with Unicode input/output. In the best case, it will store its strings in memory in UTF-8, and allow me to convert strings from ASCII to UTF-8/UTF-16 and back. I don't need much more besides that (ok, a liberal license won't hur...
[ 0.16945573687553406, -0.0008664473425596952, 0.11948853731155396, 0.11327310651540756, -0.1552746444940567, -0.16024915874004364, 0.040459129959344864, 0.28268131613731384, -0.20994699001312256, -0.608523964881897, -0.24607127904891968, 0.429572731256485, -0.18331968784332275, 0.2664153873...
APIs expect UTF-16 strings, and I need to convert ASCII or UTF-8 strings to pass it on to the API. Same goes for XML parsing, which may come with UTF-16, but I actually only want to process internally with UTF-8 (or, for that matter, if I switch internally to UTF-16, I'll need a conversion to that anyway). So far, I'v...
[ 0.4432157576084137, 0.07762213796377182, 0.30670997500419617, 0.03320503234863281, -0.18635064363479614, -0.0715547725558281, -0.0040495507419109344, -0.13731347024440765, -0.2700580060482025, -0.6189866662025452, -0.28887102007865906, 0.4976370334625244, -0.42761874198913574, -0.012024993...
like compile all these .c files, link and good to go), instead of shipping something large as the ICU along my application. Do you know such a library, which is also being maintained? After all, this seems to be a pretty basic problem. [UTF8-CPP](https://github.com/nemtrif/utfcpp) seems to be exactly what you want.
[ 0.35538196563720703, 0.004934206139296293, 0.2871318757534027, 0.17875587940216064, 0.07003963738679886, -0.4542562663555145, 0.12851102650165558, 0.4336000680923462, -0.3775520622730255, -0.47201547026634216, -0.12036119401454926, 0.3174457550048828, -0.06943944096565247, 0.12792140245437...
The black lines are awful, how can I get rid of them? I want only the colored surfaces. Another choice is to set the *edgeColor* and/or *lineStyle* properties of the surface handle object to *none*. ``` >> hSurf = surf(X,Y,Z,'EdgeColor','none','LineStyle','none','FaceLighting','phong'); ```
[ 0.5491421818733215, -0.05203026160597801, 0.5873958468437195, -0.012625844217836857, -0.08389464765787125, 0.20099680125713348, 0.1906934678554535, -0.08810439705848694, -0.38164928555488586, -0.8285293579101562, 0.17673522233963013, 0.4643365740776062, -0.11568078398704529, 0.120999753475...
Usually when I plot in [MATLAB](http://en.wikipedia.org/wiki/MATLAB), it always draws on the same figure. How do I make it draw in a new figure? I know it is pretty elementary, but I'm not finding it using Google Search. ``` figure; plot(something); ``` or ``` figure(2); plot(something); ... figure(3); plot(someth...
[ 0.21833491325378418, -0.3305385708808899, 0.3213792145252228, 0.1258101761341095, -0.16638849675655365, -0.04887460544705391, -0.250847190618515, -0.117868572473526, -0.2589775621891022, -0.7799219489097595, -0.045125458389520645, 0.37415048480033875, -0.04818302392959595, -0.0530230551958...
Know of any good libraries for this? I did some searches and didn't come across anything. Someone somewhere must have done this before, I hate to reinvent the wheel. I would look at: [http://vobject.skyhouseconsulting.com/usage.html](http://vobject.skyhouseconsulting.com/) (look under "Usage examples") Very easy pars...
[ 0.30366507172584534, 0.05734899640083313, 0.06723129004240036, 0.24808412790298462, -0.2693178951740265, -0.08807582408189774, 0.013771027326583862, 0.2224896252155304, -0.327730268239975, -0.7910509705543518, 0.4498400092124939, 0.7316445708274841, 0.02151053585112095, 0.18416643142700195...
How can I set the maximum amount of characters in a `UITextField` on the iPhone SDK when I load up a `UIView`? While the `UITextField` class has no max length property, it's relatively simple to get this functionality by setting the text field's `delegate` and implementing the following delegate method: **Objective-C*...
[ -0.06344521045684814, -0.11561299115419388, 0.67786705493927, -0.1813448965549469, 0.11652496457099915, 0.028116459026932716, 0.4631127715110779, -0.5767412185668945, -0.10979440063238144, -0.7418182492256165, -0.25894173979759216, 0.7477878928184509, -0.0985652357339859, -0.22296808660030...
+ [string length] - range.length; return newLength <= 25; } ``` **Swift** ``` func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { let currentCharacterCount = textField.text?.count ?? 0 if range.length + range.location > currentCha...
[ 0.07199224829673767, 0.052982691675424576, 0.7557318210601807, -0.2669750154018402, 0.23722225427627563, 0.054101839661598206, 0.24947263300418854, -0.6200981140136719, -0.13914917409420013, -0.4284888505935669, -0.4820157289505005, 0.6051428318023682, -0.042141400277614594, 0.228693932294...
we grab it's current length and the string length we're inserting (either through pasting copied text or typing a single character using the keyboard), minus the range length. If this value is too long (more than 25 characters in this example), return `NO` to prohibit the change. When typing in a single character at t...
[ -0.14366422593593597, -0.1487048715353012, 0.3013691306114197, 0.007250759284943342, 0.400015652179718, 0.24654322862625122, -0.06768756359815598, -0.021447665989398956, 0.05038870498538017, -0.336274653673172, -0.3223530948162079, 0.2505704164505005, -0.0012502610916271806, 0.176252514123...
one character in it. Deleting single characters or cutting multiple characters is specified by a `range` with a non-zero length, and an empty string. Replacement is just a range deletion with a non-empty string. A note on the crashing "undo" bug ================================= As is mentioned in the comments, ther...
[ -0.16941778361797333, 0.050227101892232895, 0.25137221813201904, -0.15320979058742523, 0.13238762319087982, 0.20236699283123016, 0.41322579979896545, -0.05558374524116516, -0.1995079517364502, -0.4193936288356781, -0.42693042755126953, 0.35935646295547485, -0.31213119626045227, 0.033084362...
to replace the string it *thinks* it pasted in to itself with an empty string. This will crash because it never *actually* pasted the string in to itself. It will try to replace a part of the string that doesn't exist. Fortunately you can protect the `UITextField` from killing itself like this. You just need to ensure...
[ -0.03244680166244507, -0.22563639283180237, 0.5523282885551453, 0.10260675847530365, 0.016189251095056534, -0.2555452287197113, 0.6401876211166382, 0.10503055900335312, -0.15910643339157104, -0.7522565722465515, 0.015148088335990906, 0.8759830594062805, -0.6381068825721741, 0.0441733151674...
let str = (textView.text + text) if str.characters.count <= 10 { return true } textView.text = str.substring(to: str.index(str.startIndex, offsetBy: 10)) return false } ``` Hope it's helpful to you.
[ -0.031229587271809578, 0.11234567314386368, 0.7861741781234741, -0.44553816318511963, 0.048505574464797974, 0.25150325894355774, 0.3040286600589752, -0.23177358508110046, 0.10604282468557358, -0.7158621549606323, -0.3227308690547943, 0.6611912846565247, -0.07370951771736145, -0.29568591713...
I know semilogx and semilogy for 2D plots. There is any equivalent for SURF and MESH? Have you looked at the *XScale*, *YScale* and *Zscale* axis properties. You can set them to either *linear* or *log*. However, to set these properties to *log* the data needs to be positive. See <http://www.mathworks.com/matlabcentral...
[ 0.4402543604373932, -0.45665624737739563, 0.3422185778617859, 0.20023149251937866, -0.1411834955215454, -0.09464547038078308, -0.3562825620174408, 0.240336075425148, -0.32579946517944336, -0.6712870001792908, 0.17641910910606384, 0.590493381023407, -0.03342200815677643, 0.5441330075263977,...
I'm trying to deploy to a slicehost slice using this config/deploy/production.rb file. I'm clueless & haven't used capistrano before now. Here are the steps I followed. Sorry but I'm completely new to capistrano. It keeps asking for my password (have set up passwordless SSH), and throwing this error: ``` (SocketError...
[ 0.24160464107990265, 0.2266061156988144, 0.5566722750663757, -0.35415199398994446, -0.03244801238179207, 0.30485042929649353, 0.10307967662811279, -0.32508087158203125, -0.42332014441490173, -1.0006046295166016, -0.20742937922477722, 0.7524175643920898, -0.5834123492240906, -0.063849024474...
"--------------------------" server domain, :app, :web role :db, domain, :primary => true ############################################################# # Git ############################################################# set :scm, :git set :branch, "master" set :scm_user, '---------' set :scm_passphrase, "----------...
[ -0.2178851217031479, 0.29721614718437195, 0.36872392892837524, 0.21549344062805176, 0.014105339534580708, 0.2436838299036026, 0.18768391013145447, -0.19173093140125275, -0.1708098202943802, -0.8665415048599243, -0.5845165252685547, 0.39927080273628235, -0.31630709767341614, 0.2483753710985...
put db_config, "#{release_path}/config/database.yml" ######################################################### # Uncomment the following to symlink an uploads directory. # Just change the paths to whatever you need. ######################################################### desc "Symlink the assets...
[ -0.08102404326200485, -0.13028375804424286, 0.27396371960639954, 0.1582256257534027, 0.05036121979355812, -0.008947395719587803, 0.38465988636016846, -0.3996952176094055, -0.2944537103176117, -0.8747960329055786, -0.254972368478775, 0.6869743466377258, -0.36958301067352295, -0.025688432157...
=> { :no_release => true } do run "touch #{current_path}/tmp/restart.txt" end [:start, :stop].each do |t| desc "#{t} task is a no-op with mod_rails" task t, :roles => :app do ; end end end ``` I think the problem would be either * It can't resolve your hostname * You typo wrong `domain` value Jus...
[ -0.22844712436199188, -0.16325537860393524, 0.6581793427467346, -0.07437766343355179, 0.2712342143058777, -0.08588314801454544, 0.5761470794677734, -0.14332495629787445, -0.24544164538383484, -0.7206593155860901, -0.2284107506275177, 0.5662575960159302, -0.4691917598247528, 0.2487740963697...
I have an automatically generated XML file for the game that I run. It however apparently has an error. The file is at: <http://woarl.com/myXML.xml> And the error is apparently at line 520, here are lines 519-521 ``` <type>Academy</type> <typeid>23</typeid> <completion>4</completion> ``` Any ideas as to what the e...
[ 0.020849475637078285, 0.007317460607737303, 0.548445463180542, 0.22541707754135132, 0.00786619819700718, -0.23883303999900818, 0.46679410338401794, -0.15282298624515533, -0.35408443212509155, -0.7065631747245789, -0.07897360622882843, -0.07520122081041336, -0.16550903022289276, 0.339161932...
<walled>1</walled> <building> <type>Academy</type> ``` That's it, the last `<type>` line there is line 518.
[ 0.22541894018650055, -0.34703582525253296, 0.6851369142532349, -0.031649984419345856, -0.10534755885601044, -0.010526197031140327, -0.008503957651555538, 0.1606501042842865, -0.10555832833051682, -0.6953637003898621, -0.35082048177719116, -0.21050091087818146, -0.03473369777202606, 0.00200...
I am trying to subclass NSOutlineView. Here is my code: OutlineViewSublcass.h: ``` #import <Cocoa/Cocoa.h> @interface OutlineViewSubclass : NSOutlineView { } @end ``` OutlineViewSubclass.m: ``` #import "OutlineViewSubclass.h" @implementation OutlineViewSubclass - (id)initWithFrame:(NSRect)frame { self = [...
[ 0.15624669194221497, 0.30076971650123596, 0.5032572150230408, -0.35359928011894226, -0.12191557139158249, 0.03147872909903526, 0.23575752973556519, -0.5134211182594299, -0.10424234718084335, -0.7460517883300781, -0.09942147135734558, 0.37010177969932556, -0.22401247918605804, -0.0081304032...
object is serialized using NSCoding. It's a little bit different if you stick a custom NSView subclass in a nib that doesn't implement NSCoding, in that case initWithFrame: will be called. In both cases awakeFromNib will be called after the object is loaded, and is usually a pretty good place to perform additional ini...
[ 0.04851894825696945, -0.3242916166782379, 0.168507918715477, 0.33082816004753113, -0.4013916254043579, -0.22534191608428955, 0.23125287890434265, 0.16561387479305267, -0.2965470850467682, -0.9472290873527527, 0.1552891582250595, 0.35624074935913086, -0.15601950883865356, 0.3181515038013458...
I have a classical many to many scenario with three tables (students, courses, and third StudentsCourses assignment table). I'm using EF in my new project and EF designer doesn't create third table. I need to select all cources along with number of students assigned to it. Using plain SQL is very straightforward: ```...
[ -0.0551799051463604, 0.009477557614445686, 0.42028746008872986, 0.1421899050474167, -0.06677528470754623, 0.12325645238161087, -0.31934329867362976, -0.31263047456741333, -0.0621882863342762, -0.7348820567131042, 0.0014083018759265542, 0.22234207391738892, -0.13135914504528046, 0.111789166...
reference students from courses or vice versa.
[ 0.6032090187072754, 0.16491052508354187, 0.2900461256504059, 0.31327009201049805, 0.022994492202997208, -0.21085289120674133, -0.17445385456085205, 0.20339183509349823, -0.0714273676276207, -0.34281280636787415, -0.6500612497329712, 0.34219470620155334, 0.1355106085538864, 0.12868399918079...
In a Grails domain class, how do I set the constraint for a String field so that its MySQL column type is TEXT or LONGTEXT? So far my best approach is to set the constraint's size: ``` myTextField(size:0..65535) ``` which results in TEXT ``` myTextField(size:0..2147483646) ``` results in LONGTEXT (2147483646 = 2...
[ -0.37910589575767517, 0.018609104678034782, 0.3498217463493347, -0.1723078042268753, -0.24671295285224915, 0.11785069108009338, 0.3633301854133606, -0.3582287132740021, -0.18681058287620544, -0.2527382969856262, -0.3108491599559784, 0.5090557932853699, -0.2757367789745331, -0.0673490390181...
I'm a junior student in IT. I am facing a problem with the output of the program. The idea of the program is that I should use functions to read an array of 10 elements, then get the average of the elements, then get the the max and min. I've got the max and min right but the average is showing weird stuff. Please chec...
[ 0.4318748116493225, 0.0863039419054985, 0.1852698028087616, 0.08937224745750427, -0.08173739910125732, 0.26139068603515625, 0.26054513454437256, -0.07650104910135269, -0.24964302778244019, -0.42499151825904846, 0.0865257978439331, 0.2477063089609146, -0.19342724978923798, -0.20506370067596...
parameters to let it take only 10 then it's showing weird stuff ``` enter the group of integers numbers 1 2 3 4 5 6 7 8 9 0 9 1 2 3 4 5 6 7 8 9 0the avg is 3.500000 9 1Press any key to continue . . . // func-sortarray.cpp : Defines the entry point for the console application. // #include "stdafx.h" #define size 10...
[ 0.14670148491859436, -0.12399712204933167, 0.6707938313484192, -0.0819176658987999, 0.019228817895054817, 0.2472326159477234, 0.11691701412200928, -0.29933011531829834, -0.2517531216144562, -0.4032186269760132, -0.041250623762607574, 0.3353646993637085, -0.445794939994812, 0.13671067357063...
printf("enter the group of integers numbers\n"); for (int i=0; i<=size-1 ;i++) scanf("%d\n",&a[i]); } void average(int a[]) { int i; double avg; double total = 0; for (i=0; i <= size-1; i++) { total = total + a[i]; } avg = total /size-1; printf("the avg is %f\n",avg...
[ -0.11728614568710327, -0.24148231744766235, 0.318866103887558, -0.43202653527259827, -0.2713034451007843, 0.5032665729522705, 0.3978775441646576, -0.5010303258895874, -0.34853264689445496, -0.25338301062583923, -0.31325626373291016, 0.7385389804840088, -0.5532107353210449, -0.2571559250354...
size - 1; j++) printf( "%2d", a[ j ]); } void max(int a[]) { int ma =a[0]; for (int j=0;j<size-1;j++) { if (ma<a[j]) ma=a[j]; } printf("%d",ma); } void min(int a[]) { int mi =a[0]; for (int j=0;j<size-1;j++) { if (mi>a[j])
[ -0.013033675961196423, -0.12325800210237503, 0.3887708783149719, -0.4799906313419342, 0.06815896928310394, 0.7143653035163879, 0.6644284129142761, -0.4903056025505066, 0.0016672713682055473, -0.4674229919910431, -0.6110068559646606, 0.6989725828170776, -0.16191673278808594, 0.0412450022995...
mi=a[j]; } printf("\n%d",mi); } ``` thanx in advance It is skipping the first input number because of the '\n' in the scanf() string. To fix it, remove the '\n' from the scanf string, like this: ``` scanf("%d", &a[i]); ```
[ -0.03523257002234459, 0.028576044365763664, 0.3394075036048889, -0.5407175421714783, 0.44381222128868103, 0.06976372003555298, 0.3837164640426636, -0.06119373068213463, 0.2053811401128769, -0.4321414530277252, -0.47633644938468933, 0.47876793146133423, -0.3829348087310791, 0.18349476158618...
How can I do the following in C#? What is the right way to write the first line of this code snippet? ``` using KVP<K, V> = System.Collections.Generic.KeyValuePair<K, V>; class C { KVP<int, string> x; } ``` You can't, basically. You can only use fixed aliases, such as: ``` using Foo = System.Collections.Generic.Key...
[ 0.32686981558799744, -0.131844624876976, 0.3161115348339081, 0.05029294639825821, 0.030665546655654907, -0.28490763902664185, 0.5672165751457214, -0.07355986535549164, -0.06424880027770996, -0.45728838443756104, -0.2946341037750244, 0.6593612432479858, -0.2093822956085205, 0.12759152054786...
Say I'm interested in the source for one particular Linux utility, like `factor`. Where can I find the source code for that utility? What I did was type ``` man factor ``` and went to the bottom and found 'GNU coreutils 6.10'. So I googled 'coreutils' and... found the site joschi just linked to.
[ 0.4737831950187683, 0.13199478387832642, -0.21080368757247925, -0.05563218891620636, -0.06688638776540756, -0.2653220593929291, 0.17513489723205566, 0.1808428019285202, -0.10618606954813004, -0.5162901282310486, 0.033172350376844406, 0.3882024884223938, -0.348812073469162, 0.08225325495004...
I'm trying to convert a struct to a char array to send over the network. However, I get some weird output from the char array when I do. ``` #include <stdio.h> struct x { int x; } __attribute__((packed)); int main() { struct x a; a.x=127; char *b = (char *)&a; int i; for (i=0; i<4; i++) print...
[ 0.02362467534840107, -0.04753435403108597, 0.35147058963775635, -0.32869288325309753, 0.040635015815496445, 0.1752099096775055, 0.6811442375183105, -0.006702574901282787, -0.056645676493644714, -0.5859441161155701, -0.19625690579414368, 0.4284127950668335, -0.5602695941925049, 0.3018507361...
a.x (on an X86 using gcc): 127: 7f 00 00 00 127 0 0 0 128: ffffff80 00 00 00 -128 0 0 0 255: ffffffff 00 00 00 -1 0 0 0 256: 00 01 00 00 0 1 0 0 I understand the values for 127 and 256, but why do the numbers change when going to 128? Why wouldn't it just be: 80 00 00 00 12...
[ 0.06482640653848648, 0.32080143690109253, 0.464061975479126, -0.03653561323881149, -0.25124025344848633, 0.01866214908659458, 0.17946292459964752, -0.3144760727882385, -0.23697549104690552, -0.1732826828956604, -0.04622986540198326, 0.5367358326911926, -0.2754683494567871, 0.04561205953359...
or am I forgetting something about integer representation? \*Note: This is just a small test program. In a real program I have more in the struct, better variable names, and I convert to little-endian. \*Edit: formatting The `x` format specifier by itself says that the argument is an `int`, and since the number is...
[ 0.055494971573352814, 0.21361349523067474, 0.2702798843383789, -0.2648470997810364, -0.16906125843524933, 0.46258750557899475, 0.1531330943107605, -0.13093480467796326, -0.21838712692260742, -0.3815005123615265, 0.03269416466355324, 0.5716694593429565, -0.22157445549964905, -0.238272994756...
doesn't provide a way to specify a *maximum* width, except for strings. Now then, you're only passing a `char`, so bare `x` tells the function to use the full `int` that got passed instead — due to default argument promotion for "`...`" parameters. Try the `hh` modifier to tell the function to treat the argument as ju...
[ 0.13373562693595886, 0.2016019970178604, 0.17807725071907043, -0.2722838819026947, -0.10046366602182388, -0.005994169507175684, 0.43208083510398865, 0.05269057676196098, -0.2901388704776764, -0.28302526473999023, -0.242441326379776, 0.49624258279800415, -0.018812987953424454, -0.0423726066...
I have a bash script to upload some files to my webserver. The problem is that it seems to assume that when they get to the webserver they are missing the final 4kb of the file. On my computer the file is listed as 8kb (rounded up because blocks are 4kb) yet only 4kb are uploaded. Here's the funny/confusing part, thi...
[ 0.30507969856262207, 0.42375800013542175, 0.006595683749765158, -0.15053968131542206, -0.25292351841926575, -0.00966616440564394, 0.5070826411247253, -0.14846016466617584, -0.5786051154136658, -0.7417928576469421, 0.13584627211093903, 0.36578187346458435, 0.09878706187009811, 0.14134390652...
<username> quote PASS <password> binary put file1.xml put file2.xml put file3.xml put file4.xml put file5.xml put file6.xml put file7.xml put file8.xml put file9.xml put file0.xml quit EOF ``` A link to one of the example files is <http://woarl.com/xml/f8d9b3b981a356efc1ecbb705b369c9e.xml> The last put command is p...
[ 0.6013819575309753, -0.34541836380958557, 0.3798701763153076, -0.08372819423675537, -0.351358562707901, -0.35869577527046204, 0.20458561182022095, -0.3288174867630005, 0.04699321836233139, -0.38621044158935547, 0.003043638076633215, 0.7625165581703186, -0.2972683310508728, 0.06219301000237...
I have a db2 database file, but do not have a db2 server. I would like to export this data into something else (e.g. SQL, but it doesn't really matter what), without having to setup a full db2 server (I started looking into this, but it seems very involved). Ideally the tool would run on (Debian) Linux, but Windows/OS...
[ 0.4896164834499359, 0.3038876950740814, 0.10214033722877502, 0.14711113274097443, -0.11511337012052536, -0.3731660544872284, 0.2062966376543045, -0.020113449543714523, 0.018312357366085052, -0.5695338845252991, -0.030465293675661087, 0.6289796829223633, -0.10783538967370987, 0.052477348595...
response to the comment: I downloaded Express-C, and ran dp2prereqcheck, db2setup (didn't seem to do anything), and db2\_install. It's not clear how to actually run the server (googling references "db2start", but I cannot find such a file. Googling didn't find me any other setup instructions). Such instructions would b...
[ 0.23220263421535492, 0.03178801015019417, 0.2794260084629059, -0.05540797486901283, -0.2799857556819916, 0.020451465621590614, 0.6954408884048462, 0.07235917448997498, -0.18778614699840546, -0.7229830622673035, -0.007956168614327908, 0.40837597846984863, -0.30628371238708496, 0.29009079933...
quit so it won't help, but maybe you could try adding some other command between the put and quit, for example ls. Or if no firewalls forbid, setting up the session the active mode would most likely force the client to wait for the last put to complete before issuing the quit.
[ 0.6490159034729004, -0.28528472781181335, 0.1420559585094452, -0.06250081211328506, -0.0364847406744957, -0.27646440267562866, 0.2035742700099945, -0.1027485728263855, -0.050175029784440994, -0.2520945370197296, -0.044424284249544144, 0.9598358273506165, -0.39192578196525574, -0.1141507551...
I've written some integration tests that I'd like to run against a copy of my prod database before I push to production. This lets me test all of my routes are still correct, all of the pages render without errors and some of the multipage workflows work as expected. When I run the integration tests it drops the datab...
[ 0.5764992237091064, 0.22580792009830475, -0.024205459281802177, -0.14626596868038177, 0.08882970362901688, 0.15949998795986176, 0.4953388571739197, -0.5193572044372559, 0.08744993805885315, -0.8772225379943848, 0.04959023371338844, 0.4416387975215912, -0.4055408835411072, 0.181155711412429...
:your_namespace do Rake::TestTask.new(:integration => "db:migrate(if you want") do |t| t.libs << "test" t.pattern = 'test/integration/**/*_test.rb' t.verbose = true end end ```
[ 0.2505625784397125, 0.1913205236196518, 0.10122474282979965, -0.02703900635242462, 0.021328318864107132, -0.03254787623882294, 0.6151555776596069, -0.3853837549686432, 0.2705184817314148, -0.708114504814148, -0.17165076732635498, 0.2748692035675049, -0.2518590986728668, 0.16262878477573395...
I have around ~40 custom modules and a custom skin on a DotNetNuke site that I have created. I tried updating it to 5.0 and got a few exceptions. I want to see what the effort would be to convert a bunch of modules and a skin to work in DotNetNuke 5.0. I cannot find anything specific using Google. Any experiences or r...
[ 0.8602798581123352, -0.11060024797916412, 0.03917616233229637, -0.17166468501091003, 0.17718176543712616, 0.2275688499212265, 0.2064528912305832, -0.16867056488990784, -0.43206796050071716, -0.9309917688369751, 0.17918826639652252, 0.4345577359199524, -0.023165181279182434, 0.0631754547357...
the end I don't think she got it to work and it doesn't look like it'd be a trivial task however so I'd be prepared to put in some hours to learn how it works under the covers. I know nothing about the modules however.
[ 0.6305869817733765, -0.12940463423728943, 0.34917929768562317, 0.2798958718776703, 0.12487940490245819, -0.07938248664140701, 0.34565237164497375, -0.0032212233636528254, 0.09672141820192337, -0.2830134928226471, 0.08554714918136597, 0.5629187226295471, 0.6900150179862976, 0.41732808947563...
Consider type like this one ``` public interface IHaveGenericMethod { T1 Method<T1>(T1 parm); T2 Method<T1,T2>(T1 parm); int Method2(int parm); } ``` How do I get a methodInfo for its methods? for a regular non-generic method, like method2, I can go with ``` typeof(IHaveGenericMethod).GetMethod("methodName...
[ -0.050901032984256744, 0.029857976362109184, 0.3128233850002289, -0.030993415042757988, -0.2501943111419678, -0.030551772564649582, 0.2732563316822052, -0.46945878863334656, -0.03984691947698593, -0.6361202001571655, 0.24333012104034424, 0.5111582279205322, -0.5695805549621582, 0.046183336...
in typeof(IHaveGenericMethod).GetMethods()) { Console.WriteLine(method.Name); if (method.IsGenericMethodDefinition) { foreach (Type type in method.GetGenericArguments()) { Console.WriteLine("> " + type.Name); } }
[ -0.3208467662334442, 0.0325046144425869, 0.4308848977088928, -0.21086052060127258, 0.37926623225212097, -0.09360051155090332, 0.38832178711891174, -0.5594338178634644, 0.20237423479557037, -0.4413139820098877, -0.35500890016555786, 0.2853565812110901, -0.19816924631595612, 0.26266741752624...
} ``` So you can check by the number of args, and check the signature. But nothing cleaner.
[ 0.5435991883277893, 0.3305385112762451, 0.08637145161628723, -0.013986611738801003, 0.009539001621305943, -0.34698405861854553, 0.07603391259908676, 0.30553457140922546, -0.11897773295640945, -0.4165475070476532, 0.05607077479362488, 0.5179579257965088, -0.3957468867301941, 0.3747143447399...
1) Besides the negative frequencies, which is the minimum frequency provided by the FFT function? Is it zero? 2) If it is zero how do we plot zero on a logarithmic scale? 3) The result is always symmetrical? Or it just appears to be symmetrical? 4) If I use abs(fft(y)) to compare 2 signals, may I lose some acc...
[ 0.06945788115262985, -0.36649638414382935, 0.31594377756118774, 0.11023294180631638, -0.3892338275909424, 0.2756456434726715, 0.14171206951141357, -0.5685060620307922, -0.15233688056468964, -0.3382602632045746, 0.04891887679696083, 0.7759777307510376, -0.4782731235027313, -0.09973460435867...
as defined on 0 ... N-1 (hence, the 'periodic repetition' of y(t) can be thought of as a periodic signal defined over Z). The first sample of `fft(y)` corresponds to the frequency 0. The Fourier transform of real, discrete-time, periodic signals has also discrete domain, and it is periodic and Hermitian (see below). H...
[ 0.07578913122415543, -0.47638747096061707, 0.23144149780273438, -0.1750257909297943, -0.313837468624115, 0.2601597309112549, -0.013117500580847263, -0.4352506101131439, -0.08702783286571503, -0.33178624510765076, -0.2265397310256958, 0.5447876453399658, -0.437280535697937, 0.45191469788551...
0, 2π/N ... 2π(N-1)/N. The samples of the transform at the negative frequencies -π ... -π/N are the conjugates of the samples at frequencies π ... π/N, and are equal to the samples at frequencies π ... 2π(N-1)/N. > 2) If it is zero how do we plot zero on a logarithmic scale? If you want to draw some sort of [Bode plo...
[ 0.16586241126060486, -0.5621258020401001, 0.186382457613945, -0.22205059230327606, -0.38019677996635437, -0.05444387346506119, 0.1746179312467575, -0.7324828505516052, -0.06241456791758537, -0.5106862783432007, -0.060409434139728546, 0.5451820492744446, -0.3723762631416321, 0.2895177602767...
Its real part is symmetric, its imaginary part is anti-symmetric. Stated another way, its amplitude is symmetric and its phase anti-symmetric. > 4) If I use abs(fft(y)) to compare 2 signals, may I lose some accuracy? If you mean `abs(fft(x - y))`, this is OK and you can use it to get an idea of the frequency distribu...
[ -0.05358906835317612, -0.3803405463695526, 0.6872177720069885, 0.01962900161743164, -0.29261747002601624, 0.06828983128070831, 0.389404833316803, -0.573280394077301, -0.14514347910881042, -0.2800847589969635, -0.05011700093746185, 0.6780233383178711, -0.3156094551086426, 0.0773574635386467...
As the question says, what are some common/major issues that C++ programmers face when switching to Java? I am looking for some broad topic names or examples and day to day adjustments that engineers had to make. I can then go and do an in-depth reading on this. I am specifically interested in opinions of engineers w...
[ 0.353751003742218, 0.11084473133087158, -0.2818811237812042, -0.044600896537303925, -0.4123518466949463, -0.08778166025876999, 0.18325328826904297, 0.06185552105307579, -0.29135820269584656, -0.5673573613166809, 0.06789309531450272, 0.9308722019195557, -0.20443259179592133, -0.123010076582...
is to use finalizers. Don't. Ever. Instead use this pattern: ``` OutputStream os; try { os = ... // do stuff } finally { try { os.close(); } catch (Exception e) { } } ``` You'll end up doing stuff like that a lot. * If you specify no access modifer, **in Java the members are package-private by default**, un...
[ -0.20452763140201569, -0.1131114512681961, 0.11295957118272781, -0.21436242759227753, -0.14627832174301147, -0.4843909740447998, 0.49510496854782104, -0.2711842656135559, -0.3692449927330017, -0.5412737727165222, -0.3727079927921295, 0.35478755831718445, -0.4143080711364746, 0.114196769893...
that's not strictly true but we'll pretend it is); * There is no pass-by-reference; * The equivalent to function pointers is anonymous interfaces.
[ 0.12732215225696564, -0.03850150853395462, 0.32256847620010376, 0.28928425908088684, -0.18710501492023468, -0.33781757950782776, 0.4016396701335907, 0.18413576483726501, -0.13883709907531738, -0.4532325863838196, -0.041224561631679535, 0.7704868316650391, -0.38180819153785706, -0.048374004...
I'm trying to work through this [guide to Rails routing](http://guides.rubyonrails.org/routing_outside_in.html), but I got stuck in section [3.3](http://guides.rubyonrails.org/routing_outside_in.html#_urls_and_paths): > Creating a RESTful route will also make available a pile of helpers within your application and th...
[ -0.006286121904850006, 0.09760253876447678, 0.417474627494812, 0.12783761322498322, -0.059416770935058594, 0.028350358828902245, 0.40266332030296326, -0.09049984812736511, -0.19606143236160278, -0.571281373500824, 0.1315651684999466, 0.3227881193161011, -0.3576468825340271, 0.0767398700118...
from (irb):8 ``` You have several questions in there, most of which have already been answered by people below. The answer to one that wasn't fully addressed however, is: yes you can use the script/console to see where your routes go. Just type in `app.[route_helper]` and it will respond with the path. For example `a...
[ -0.10930663347244263, 0.21585962176322937, 0.9083001017570496, -0.07303573936223984, 0.12747310101985931, 0.12161209434270859, 0.022767098620533943, -0.05518963560461998, -0.2513982653617859, -0.7749146819114685, -0.221174955368042, 0.5913688540458679, -0.2388288974761963, -0.1808400899171...